[PROJ] X/Y swap

Martin Desruisseaux martin.desruisseaux at geomatys.com
Sat Feb 16 09:18:24 PST 2019


Le 16/02/2019 à 17:36, Paul Ramsey a écrit :

> I get a PJ in which the first ordinate is latitude and second is
> longitude, so the old EPSG axis-order issue... is there a global way
> to turn this off / condition this
>
I woud not recommend to provide a global flag causing departure from
EPSG definitions if we want to put an end to the axis-order issue. If
someone wants (longitude, latitude) axis order, this is okay but we
shall not call those definitions "EPSG". Alternatives are:

  * Use a different name.
  * Maybe use some modifier (e.g. "EPSG::4326;axisOrder=lon,lat").
  * Provide some C/C++ methods that modify PJ after construction (e.g.
    makeRightHanded(PJ)). Such method should erase the EPSG identifier
    from the PJ definition, if any.
  * Other idea?

The intent is also to avoid confusion with other CRS having non-obvious
directions, e.g. projections on poles where all directions are going
North or South (e.g. "South along 90° meridian"), or DerivedCRS or
EngineeringCRS which are now supported by Proj. Those new Proj
capabilities make more important to avoid changing axis order under the
hood (i.e. without explicit action from the developer).

    Martin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20190216/6f6c714a/attachment.html>


More information about the PROJ mailing list