MCPcopy
hub / github.com/django/django / test03_get_wkt

Method test03_get_wkt

tests/gis_tests/gdal_tests/test_srs.py:233–241  ·  view source on GitHub ↗

Testing getting the WKT.

(self)

Source from the content-addressed store, hash-verified

231 self.fail('Should not have initialized on bad WKT "%s"!')
232
233 def test03_get_wkt(self):
234 "Testing getting the WKT."
235 for s in srlist:
236 srs = SpatialReference(s.wkt)
237 # GDAL 3 strips UNIT part in the last occurrence.
238 self.assertEqual(
239 s.wkt.replace(',UNIT["Meter",1]', ""),
240 srs.wkt.replace(',UNIT["Meter",1]', ""),
241 )
242
243 def test04_proj(self):
244 """PROJ import and export."""

Callers

nothing calls this directly

Calls 1

SpatialReferenceClass · 0.90

Tested by

no test coverage detected