Skip to content

Instantly share code, notes, and snippets.

@shakasom
Created January 1, 2019 12:24
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save shakasom/382a5cc0c59e24fdae29679de6d7e88a to your computer and use it in GitHub Desktop.
Save shakasom/382a5cc0c59e24fdae29679de6d7e88a to your computer and use it in GitHub Desktop.
Crash Analysis.ipynb
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karthikkbalagi
Copy link

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