[PROJ] Vertical CRS transformations and vertical grid shift

Daniele Romagnoli daniele.romagnoli at geo-solutions.it
Thu Apr 16 09:17:02 PDT 2020


On Thu, Apr 16, 2020 at 5:15 PM Even Rouault <even.rouault at spatialys.com>
wrote:

> > Well, when providing that coordinate, I got them from a sample Dataset in
>
> > EPSG:31255 so they should be valid.
>
> >
>
> > Weird thing:
>
> > cs2cs "EPSG:31255" "EPSG:4326"
>
> > 88000 273000
>
> >
>
> > 45d52'39.123"N 16d50'57.28"E 0.000 (as you said)
>
> >
>
> > However:
>
> > gdaltransform -s_srs EPSG:31255 -t_srs EPSG:4326
>
> > 88000 273000
>
> >
>
> > 14.5025684938377 47.5898013589131 46.4711159374565
>
> >
>
> > And same thing if I draw a point in QGIS: SRID=31255;POINT(88000 273000)
>
> > and I switch the map projection to 4326, that rendered point on the map
> has
>
> > the same coordinates reported by gdaltransform.
>
> >
>
> > What do you think about it?
>
>
>
> Ah, the reason is axis order. EPSG:31255 uses Northing,Easting, and cs2cs
> honours it. Whereas gdaltransform uses the "traditional GIS axis order", ie
> easting, northing.
>
>
>
> So with PROJ master:
>
>
>
> $ echo 273000 88000 600 | PROJ_NETWORK=ON src/cs2cs "EPSG:31255+5778"
> "EPSG:3035+9274"
>
> 2729881.62 4659643.84 599.75
>

Ah. That makes sense. Thanks.
Final question (sorry about that):
Are you aware of any involvement of this kind of reprojection in gdal_warp
processing?
I mean, I just did a test by building PROJ master and GDAL 3.1 against that
PROJ version and tried a

gdalwarp -s_srs "EPSG:31255+5778" -t_srs "EPSG:3035+9274" dem.tif
warpeddem.tif

Is it expected to reproject the DEM values? :-)
Asking that since I'm trying to figure out a way to see that vertical
transformation used in some practical use-case with DEM raster but I didn't
get the pixel values modified so I probably went too far and that's not how
it should be used.

Thanks again for your feedbacks so far.
Regards,
Daniele


>
>
> With EPSG:5621 "EVRF2007 height" instead of EPSG:5778 "EVRF2000 height", I
> don't get any change in Z, because there's no registered transformation
> between EPSG:5778 "GHA height" and it.
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>


-- 
Regards,
Daniele Romagnoli
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20200416/0a568f64/attachment-0001.html>


More information about the PROJ mailing list