Skip to content

Read Natural Earth, Winkel Tripel and Eckert IV coordinate systems from WKT and files #1701

Closed

Description

@giswqs

RustGIS draws maps in Natural Earth, Winkel Tripel and Eckert IV (rustgis-map's world module), and since #1585 to_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).

Raised by the review of #1585.

Activity

  1. bearinmindcat commented on Nov 11, 2026

    @bearinmindcat
    Contributor

    I'd like to take this one.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions