Skip to content

Commit

Permalink
Set crs on GeoDataFrames
Browse files Browse the repository at this point in the history
This makes it possible reproject as necessary.
  • Loading branch information
invisiblefunnel committed Sep 20, 2018
1 parent bfc10b6 commit 730908b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharedstreets/dataframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def clip_bbox(gdf):
return gdf.iloc[index]

def make_frame(features):
gdf = geopandas.GeoDataFrame.from_features(features)
gdf = geopandas.GeoDataFrame.from_features(features, crs={'init': 'epsg:4326'})
return gdf.set_index('id', drop=False, verify_integrity=True)

intersectionsdf = clip_bbox(make_frame(ifeatures))
Expand Down

0 comments on commit 730908b

Please sign in to comment.