readGeoJson
Reads a GeoJSON file into a GeoDataFrame.
Each row in the resulting GeoDataFrame corresponds to a single Feature from the input file:
"geometry"value is stored in thegeometrycolumn."properties"are flattened into individual columns using their keys as column names."crs"is read asnullif not specified (interpreted as WGS 84 by default).
Uses the GeoTools GeoJSON parser. Nested properties are not supported and parsed as
. According to the specification, the CRS in GeoJSON should be WGS 84; the deprecated "crs" field is used for now; if it is not present, it is read asLinkedHashMap<*, *>null.
Return
a new GeoDataFrame with the data from the GeoJSON file
Parameters
a String path to GeoJSON file
Reads a GeoJSON file into a GeoDataFrame.
Each row in the resulting GeoDataFrame corresponds to a single Feature from the input file:
"geometry"value is stored in thegeometrycolumn."properties"are flattened into individual columns using their keys as column names."crs"is read asnullif not specified (interpreted as WGS 84 by default).
Uses the GeoTools GeoJSON parser. Nested properties are not supported and parsed as
. According to the specification, the CRS in GeoJSON should be WGS 84; the deprecated "crs" field is used for now; if it is not present, it is read asLinkedHashMap<*, *>null.
Return
a new GeoDataFrame with the data from the GeoJSON file
Parameters
a URL of GeoJSON file