OSGeo / PROJ-data

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

Add nkgrf17vel deformation model #54

Closed kbevers closed 3 years ago

kbevers commented 3 years ago

Supporting grid file for the 2020 NKG transformations.

I had trouble regenerating index.html (I can't get a recent enough proj/gdal combo with conda it seems), so hopefully I can get a bit of help with that :-)

kbevers commented 3 years ago

Metadata AREA_OF_USE=Nordic and Baltic countries ignored

Is there an easy way to fix that using GDAL tools? Perhaps by using gdal_translate and a vrt file? I am afraid I haven't got the source material and script readily available since the grid was processed by a colleague.

rouault commented 3 years ago

Perhaps by using gdal_translate and a vrt file?

yes, that's probably the best option here. Make sure you re-apply the compression options -co COMPRESS=DEFLATE -co PREDICTOR=3 when converting the VRT to TIFF. And run grid_tools/cloud_optimize_gtiff.py afterwards. Well, an easier solution, as it is just a change of case, could be to use an hexadecimal editor (I use "bless" on Linux) and just change it :-). Don't loose time on that. I'll do it for you right now

kbevers commented 3 years ago

Don't loose time on that. I'll do it for you right now

Thanks! I was just reading up on gdal_edit which also seems to be able to do the job but I am much more confident in you than me :)

rouault commented 3 years ago

gdal_edit

To add new metadata item yes, but to rename an existing one, it isn't really helpful.

I'll do it for you right now

Done, and index regenerated

kbevers commented 3 years ago

To add new metadata item yes, but to rename an existing one, it isn't really helpful.

I figured using -unsetmd in combination with a bunch of -mo's would do the trick as well. But I am sure you have better ways to do it!

Done, and index regenerated

Thanks, very appreciated!

rouault commented 3 years ago

I figured using -unsetmd in combination with a bunch of -mo's would do the trick

ah, yes you're right. That could have done it. The hex editor was just faster for that very particular use case :-)

rouault commented 3 years ago

Uploaded to CDN