Skip to content

Commit

Permalink
automatically reproject to 4326
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Dec 4, 2020
1 parent 06ea669 commit 9bcaed3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/kepler.gl-jupyter/keplergl/keplergl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def _gdf_to_dict(gdf):
Returns:
- dictionary: a dictionary variable that can be used in Kepler.gl
'''
# reproject to 4326 if needed
if gdf.crs and not gdf.crs == 4326:
gdf = gdf.to_crs(4326)

# get name of the geometry column
# will cause error if data frame has no geometry column
Expand Down

0 comments on commit 9bcaed3

Please sign in to comment.