use_crs="provided"
¶Value "provided" tells Lets-Plot that the input GeoDataframe already contains coordinates in the desired CRS and should not be reprojected any further.
This is a workaround for the case when the desired CRS is not naturally supported by Lets-Plot.
For example, if you try to use the Robinson projection (EPSG:54030): use_crs="EPSG:54030"
, then Lets-Plot will return an error:
CRSError: Invalid projection: EPSG:54030: (Internal Proj Error: proj_create: crs not found)
Let's see how can we still plot a map in the Robinsons projection in Lets-Plot.
from lets_plot import *
from lets_plot.geo_data import *
The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).
LetsPlot.setup_html()