Skip to main content

fromfile

Given a string file name, returns a GEOSGeometry. The file may contain WKB, WKT, or HEX.

def fromfile(
file_h: str | file-like object
) - > GEOSGeometry

Given a string file name, returns a GEOSGeometry. The file may contain WKB, WKT, or HEX.

Parameters

NameTypeDescription
file_h`strfile-like object`

Returns

TypeDescription
GEOSGeometryA geometry object initialized from the spatial data contained within the file.