SDFIdk / WEBPROJ

REST API exposing coordinate transformations with PROJ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot transform between EPSG:25832 and EPSG:4326

kbevers opened this issue · comments

When attempting transformations between EPSG:25832 and EPSG:4326 the following result is returned:

$ curl https://services.kortforsyningen.dk/rest/webproj/v1.0/trans/EPSG:25832/EPSG:4326/725448.0,6177355.0?token=<TOKEN>
{"message": "CRS's are not compatible across countries"}

The above transformation is valid and should result in a proper coordinate being returned.

A work-around until fixed is to replace EPSG:4326 (WGS84) with EPSG:4258 (ETRS89). The results are identical, as seen in these two PROJ calls:

echo 725448.0 6177355.0 | cs2cs -f %.8f EPSG:25832 EPSG:4326
55.68950141     12.58696910 0.00000000

echo 725448.0 6177355.0 | cs2cs -f %.8f EPSG:25832 EPSG:4258
55.68950141     12.58696910 0.00000000