You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read Natural Earth, Winkel Tripel and Eckert IV coordinate systems from WKT and files #1701
RustGIS draws maps in Natural Earth, Winkel Tripel and Eckert IV (rustgis-map's world module), and since #1585to_wkt writes them as WKT (Natural_Earth, Winkel_Tripel, Eckert_IV, the names GDAL and PROJ read). RustGIS itself can't read them back: read_wkt's custom() has no arm for these names, and adding one isn't enough, because rustgis-data validates every custom system through proj4rs, which doesn't define natearth, wintri or eck4 (Projection not found). The same holds for the ESRI codes 54012/54077/53012/53077, which esri.rs maps to those definitions.
Today a Shapefile, GeoPackage, FlatGeobuf or GeoTIFF in one of these systems is read as longitude/latitude, with a note saying the projection isn't supported (not silent).
Supporting them needs the forward and inverse math available below L2 (for example moving it from rustgis-map to rustgis-geom, as Sinusoidal is in rustgis_geom::Sinusoidal) and a transformer kind in crs.rs that uses it, plus the reader arms and a round-trip test (proj4_to_wkt then crs_from_wkt).
Plan, following the issue: move world's formulas into rustgis-geom, as Sinusoidal is, and add what reading a file needs that the map's version doesn't read: the false easting and northing, and Winkel Tripel's standard parallel. rustgis-map would then use them from there. crs.rs gets a transformer kind for natearth, wintri and eck4, and read_wkt's custom() gets arms for Natural_Earth, Winkel_Tripel and Eckert_IV (and their WKT2 method names), so the ESRI codes read too. I'll test it against PROJ's positions (pyproj) and with the proj4_to_wkt → crs_from_wkt round trip.
Activity
bearinmindcat commentedon Nov 11, 2026
I'd like to take this one.
Plan, following the issue: move
world's formulas intorustgis-geom, asSinusoidalis, and add what reading a file needs that the map's version doesn't read: the false easting and northing, and Winkel Tripel's standard parallel.rustgis-mapwould then use them from there.crs.rsgets a transformer kind fornatearth,wintriandeck4, andread_wkt'scustom()gets arms forNatural_Earth,Winkel_TripelandEckert_IV(and their WKT2 method names), so the ESRI codes read too. I'll test it against PROJ's positions (pyproj) and with theproj4_to_wkt→crs_from_wktround trip.fix(data, map): Winkel Tripel without a parallel is at PROJ's 0; whol…
fix(data): read Natural Earth, Winkel Tripel and Eckert IV from WKT (#…