-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing +axis=neu in EPSG:4326, EPSG:3844, potentially other projinfo proj string #4217
Comments
PROJ.4 strings to express CRS are deprecated since many years and are lacking many other important information (like most datum). No enhancements to them is planned. They are basically frozen to what GDAL <= 2.4 used to generate. Proj4JS should consider evolving to support WKT2. |
Xref to proj4js/proj4js#400 where support for PROJJSON / WKT2 is planned. |
I spent a couple of hours trying to get the PROJ API to tell me how it was interpreting its input coordinates. I can tell from Are you open to a PR implementing such? |
no need for one. API already exists. Cf https://proj.org/en/9.5/development/reference/functions.html#c.proj_crs_get_coordinate_system + https://proj.org/en/9.5/development/reference/functions.html#c.proj_cs_get_axis_count + https://proj.org/en/9.5/development/reference/functions.html#c.proj_cs_get_axis_info Example at https://github.com/OSGeo/PROJ/blob/master/src/apps/cs2cs.cpp#L276-L298 |
fwiw I have a small code here to get the info also in PROJ string: SimonBin@a5a15c4 |
@rouault I have tried this, and it has not helped in my use case. I want to take any arbitrary string that's passable to I tried to get creative and use EDIT In a perfect world, this will be possible with 6.3 API, since Ubuntu 20.04 has 6.3.1 and is only EOL in Apr 2025. |
yes, you need to add " +type=crs" to specify the PROJ.4 style string is intended to be a CRS |
OK - if I naively check in my code for that, and add it if absent, will that make any other change to the |
@rouault Will adding |
Example of problem
here are some projinfo outputs for epsg 3844, 4326, 25832
Problem description
There is no reference to the axis order in the output of projinfo. This causes difficulty in correctly reading coordinates from an array e.g. when interpreting GeoSPARQL data, since GeoSPARQL will respect the axis order in the CRS when outputting coordinate arrays.
As you can see, axis info is included for EPSG:29385
The problem also penetrates many things like the epsg.io website (export of PROJ.4 strings) or the Javascript epsg module, where this useful information is missing and thus cannot be accessed by Proj4JS.
I also found on the issue tracker that a similar problem exists for Mars: issue #3995 (Missing +axis=wnu)
As an aside, the WKT2 output does include the axis info. However I cannot use WKT2 in Proj4JS.
Expected Output
optionally (since it is the default)
Environment Information
proj
)Installation method
The text was updated successfully, but these errors were encountered: