Test EPSG import.
(self)
| 255 | self.assertTrue(all(part in proj_parts for part in srs2.proj.split())) |
| 256 | |
| 257 | def test05_epsg(self): |
| 258 | "Test EPSG import." |
| 259 | for s in srlist: |
| 260 | if s.epsg: |
| 261 | srs1 = SpatialReference(s.wkt) |
| 262 | srs2 = SpatialReference(s.epsg) |
| 263 | srs3 = SpatialReference(str(s.epsg)) |
| 264 | srs4 = SpatialReference("EPSG:%d" % s.epsg) |
| 265 | for srs in (srs1, srs2, srs3, srs4): |
| 266 | for attr, expected in s.attr: |
| 267 | self.assertEqual(expected, srs[attr]) |
| 268 | |
| 269 | def test07_boolean_props(self): |
| 270 | "Testing the boolean properties." |
nothing calls this directly
no test coverage detected