gis.geos.fromfile()

fromfile(file_h)

Parameters: file_h (a Python file object or a string path to the file) – input file that contains spatial data
Return type: a GEOSGeometry corresponding to the spatial data in the file

Example:

1
2
>>> from django.contrib.gis.geos import fromfile
>>> g = fromfile('/home/bob/geom.wkt')
doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.