Change geopandas dataframe `to_crs()` usage syntax
* 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
@@ -492,7 +492,7 @@ class GeoJson(Layer):
elif hasattr(data, '__geo_interface__'):
self.embed = True
if hasattr(data, 'to_crs'):
- data = data.to_crs(epsg='4326')
+ data = data.to_crs('EPSG:4326')
return json.loads(json.dumps(data.__geo_interface__))
else:
raise ValueError('Cannot render objects with any missing geometries'
