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
| Name | Type | Description |
|---|---|---|
| file_h | `str | file-like object` |
Returns
| Type | Description |
|---|---|
GEOSGeometry | A geometry object initialized from the spatial data contained within the file. |