[PROJ] proj_trans swaps X and Y?

Matthew Woehlke mwoehlke.floss at gmail.com
Wed Mar 10 11:05:36 PST 2021


On 10/03/2021 09.41, Alan Snow wrote:
> Info on why things are this way:
> https://proj.org/faq.html#why-is-the-axis-ordering-in-proj-not-consistent

Do I understand correctly that PROJ 5 should not have this "issue"? (I 
only tested 6...)

> To find the axis order information, you need to inspect the CRS to
> determine the axis order:
> https://pyproj4.github.io/pyproj/stable/examples.html
> 
> The PROJ methods needed to inspect the coordinate system of the CRS include:
> proj_crs_get_coordinate_system
> proj_cs_get_axis_count
> proj_cs_get_axis_info

Uh... that appears to be insanely complicated. Pass, thanks.

> If you want the old behavior, you can use proj_normalize_for_visualization
> so it is in the x,y,z order.

That's better. Thanks also to Stephan for the same suggestion.

-- 
Matthew


More information about the PROJ mailing list