Skip to content

Commit d177a3e

Browse files
artnikitinArtem NikitinConengmo
authored
Change geopandas dataframe to_crs() usage syntax (#1251)
* Change input from deprecated data.to_crs(epsg=4326) to data.to_crs('EPSG:4326') * Convert crs to string if provided as a dict * Revert "Convert crs to string if provided as a dict" This reverts commit 7dff5aa. Co-authored-by: Artem Nikitin <[email protected]> Co-authored-by: Frank <[email protected]>
1 parent fcf254f commit d177a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def process_data(self, data):
492492
elif hasattr(data, '__geo_interface__'):
493493
self.embed = True
494494
if hasattr(data, 'to_crs'):
495-
data = data.to_crs(epsg='4326')
495+
data = data.to_crs('EPSG:4326')
496496
return json.loads(json.dumps(data.__geo_interface__))
497497
else:
498498
raise ValueError('Cannot render objects with any missing geometries'

0 commit comments

Comments
 (0)