geojson
geojson
GeoJSON input loading utilities.
geojson.load_geojson_input
load_geojson_input(data: dict | str | Path) -> dict
Parse a GeoJSON input to a dict.
Accepts a dict (returned as-is), a Path, or a str that is
either a file path or a raw JSON string.
Parameters:
-
data(dict | str | Path) –GeoJSON as dict, JSON string, or file path.
Returns:
-
dict–Parsed GeoJSON dict.
Source code in mapyta/geojson.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |