Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Crash Analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karthikkbalagi

This comment has been minimized.

Copy link

@karthikkbalagi karthikkbalagi commented Apr 15, 2020

hii,

url = 'https://opendata.arcgis.com/datasets/a163c5addf2c4b7f9079f08751bd2e1a_0.geojson'
geojson = requests.get(url).json()
In [0]:

Read the data as GeodataFrame in Geopandas

crs = {'init': 'epsg:3851'} # Coordinate reference system (CRS) for Newzealand
gdf = gpd.GeoDataFrame.from_features(geojson['features'], crs=crs)

if i enter the above code
error message is thrown
KeyError: 'features'

help me execute this code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.