MCPcopy
hub / github.com/django/django / test05_epsg

Method test05_epsg

tests/gis_tests/gdal_tests/test_srs.py:257–267  ·  view source on GitHub ↗

Test EPSG import.

(self)

Source from the content-addressed store, hash-verified

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."

Callers

nothing calls this directly

Calls 1

SpatialReferenceClass · 0.90

Tested by

no test coverage detected