MCPcopy
hub / github.com/django/django / import_wkt

Method import_wkt

django/contrib/gis/gdal/srs.py:317–319  ·  view source on GitHub ↗

Import the Spatial Reference from OGC WKT (string)

(self, wkt)

Source from the content-addressed store, hash-verified

315 capi.from_user_input(self.ptr, force_bytes(user_input))
316
317 def import_wkt(self, wkt):
318 "Import the Spatial Reference from OGC WKT (string)"
319 capi.from_wkt(self.ptr, byref(c_char_p(force_bytes(wkt))))
320
321 def import_xml(self, xml):
322 "Import the Spatial Reference from an XML string."

Callers 3

__init__Method · 0.95
test_unicodeMethod · 0.95
__init__Method · 0.80

Calls 1

force_bytesFunction · 0.90

Tested by 1

test_unicodeMethod · 0.76