OSGeo / PROJ-data

Repository for proj datum grids (for use by PROJ 7 or later)
Other
70 stars 32 forks source link

naptrans2018.gtx has alternative grid - nl_nsgi_naptrans2018.tif which is missing from ProjData cdn #113

Open aharondavid opened 7 months ago

aharondavid commented 7 months ago

PROJ version: 9.3 The following WKT has the grid shift: naptrans2018.gtx. The WKT failed to load because its alternative grid nl_nsgi_naptrans2018.tif doesn't exist in ProjData cdn. Is alternative grids ,in the proj.db, should be included in the ProjData ?

COMPD_CS["Amersfoort / RD New (GSB) + NAP height (GTX)",PROJCS["Amersfoort / RD New",GEOGCS["Amersfoort",DATUM["Amersfoort",SPHEROID["Bessel 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],EXTENSION["PROJ4_GRIDS","rdtrans2018.gsb"],AUTHORITY["EPSG","6289"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4289"]],PROJECTION["Oblique_Stereographic"],PARAMETER["latitude_of_origin",52.1561605555556],PARAMETER["central_meridian",5.38763888888889],PARAMETER["scale_factor",0.9999079],PARAMETER["false_easting",155000],PARAMETER["false_northing",463000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],AUTHORITY["EPSG","28992"]],VERT_CS["NAP height",VERT_DATUM["Normaal Amsterdams Peil",2005,EXTENSION["PROJ4_GRIDS","naptrans2018.gtx"],AUTHORITY["EPSG","5109"]],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Up",UP],AUTHORITY["EPSG","5709"]],AUTHORITY["EPSG","7415"]]

rouault commented 7 months ago

Cf https://github.com/OSGeo/PROJ-data/commit/1171740b1b68c00a791446cd4c517579a3836374 . You could likely get nl_nsgi_naptrans2018.tif back from the proj-data-1.9 archive. @Jochem-L FYI apparently https://github.com/OSGeo/PROJ-data/pull/80 breaks legacy workflows

jjimenezshaw commented 7 months ago

There is still an entry in grid_alternatives.sql that uses that tiff file: ('NOT-YET-IN-GRID-TRANSFORMATION-naptrans2018.gtx','nl_nsgi_naptrans2018.tif','naptrans2018.gtx','GTiff','geoid_like',0,NULL,'https://cdn.proj.org/nl_nsgi_naptrans2018.tif',1,1,NULL), Should it be removed or replaced, as nl_nsgi_naptrans2018.tif is not anymore in cdn?

rouault commented 7 months ago

Should it be removed or replaced, as nl_nsgi_naptrans2018.tif is not anymore in cdn?

it should be removed if we don't provide nl_nsgi_naptrans2018.tif anymore

Jochem-L commented 7 months ago

The nl_nsgi_naptrans2018.gtx file was a legacy grid that is only needed for PROJ 4.x.x. Since PROJ 4.x.x doesn't support .tif files, it makes no sense to provide the .tif version.