Skip to content

Commit 7dff5aa

Browse files
author
Artem Nikitin
committed
Convert crs to string if provided as a dict
1 parent d1730d2 commit 7dff5aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

folium/features.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ def process_data(self, data):
492492
elif hasattr(data, '__geo_interface__'):
493493
self.embed = True
494494
if hasattr(data, 'to_crs'):
495+
if isinstance(data.crs, dict) and 'init' in data.crs:
496+
data.crs = data.crs['init']
495497
data = data.to_crs('EPSG:4326')
496498
return json.loads(json.dumps(data.__geo_interface__))
497499
else:

0 commit comments

Comments
 (0)