[PROJ] PJ_TYPE for DerivedProjectedCRS

Javier Jimenez Shaw j1 at jimenezshaw.com
Wed Nov 23 02:35:14 PST 2022


Hi

Searching from PDAL (SpatialReference::isProjected) to GDAL
(OSRIsProjected) to PROJ, I ended up in the function
PJ_TYPE proj_get_type(const PJ *obj)

Inspecting the code I realized that a DerivedProjectedCRS is not covered by
the selector, and will return PJ_TYPE_OTHER_CRS

Remember that unlike other derived, like DerivedGeographicCRS that is a
GeographicCRS or DerivedVerticalCRS is a VerticalCRS, a DerivedProjectedCRS
is not inheriting from ProjectedCRS.

How should it be? Should it be returned as PJ_TYPE_PROJECTED_CRS ? Should
we create a new category? Leave as it is now (abandoned among other first
class citizen CRS types)?

In my opinion a DerivedProjectedCRS "behaves" like a ProjectedCRS in the
same way as a DerivedVerticalCRS behaves like a VerticalCRS and so on. But
maybe I am missing something.

Thanks.
.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
Entre dos pensamientos racionales
hay infinitos pensamientos irracionales.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20221123/c73c8973/attachment.htm>


More information about the PROJ mailing list