[PROJ] Issue with inverted axis
Mladen Mijatovic
kapadokija at gmail.com
Tue Jul 30 07:10:17 PDT 2024
Hi Javier,
I am using a .NET wrapper around the Proj, called SharpProj. I am creating
crs from a database, using *proj_create_from_database* with authority EPSG
and coe 2193 as params. Next thing I try is to convert some positions using*
proj_create_crs_to_crs_from_pj *with EPSG:2193 as source crs and EPSG:4326
as target crs. Next call is to *proj_trans* without forwarding and with and
with coordinates [-41.302232653193769, 174.77951032151356] as lat, lon. The
result is an array of 2, converted[0] = 799875.43712394813 and converted[1]
= 400261.41900983331 From this array I need to know what to pick as
Northing and what as Easting.
уто, 30. јул 2024. у 14:37 Javier Jimenez Shaw <j1 at jimenezshaw.com> је
написао/ла:
> Hi Mladen,
>
> In which context do you want to do that? python? C++? CLI? What are you
> doing later with that info (like calling cs2cs or anything else)?
> If you just want to know for a few cases,
> https://spatialreference.org/ref/epsg/2193/ is an easy reference. There
> is axis information.
>
> Cheers
>
> On Tue, 30 Jul 2024 at 14:11, Mladen Mijatovic via PROJ <
> proj at lists.osgeo.org> wrote:
>
>> Hi all,
>>
>> Is there a way to identify if crs has an inverted axis? In most of the
>> cases axes are Lat,Lon or E,N but I stumbled on one with axis N,E -
>> EPSG:2193. In this case I need to invert coordinates before the
>> transformation and I am not sure how to identify this situation in general.
>> _______________________________________________
>> PROJ mailing list
>> PROJ at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/proj
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20240730/8d00b344/attachment.htm>
More information about the PROJ
mailing list