Skip to main content

I am trying to transform CRS to UTM using a GeoJESON file. This is what I tried:


from sentinelhub import CRS
country_crs = CRS.UTM_32N
country = country.to_crs(crs={'init':CRS.ogc_string(country_crs)})
country.plot()
country.crs

But this code results in a completly wrong transformation followed by a warning message:


C:\Users\ASUS\Anaconda3\envs\ASV\lib\site-packages\pyproj\crs\crs.py:53: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6
return _prepare_from_string(" ".join(pjargs))
Be the first to reply!

Reply