-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vertical transform / grid files #36
Comments
My bad, the height is virtually the same; I was confused with something else. |
Hi @fr-an-k I have unfortunately no experience at all with those tif files to perform transformations. But indeed the fetching over the network by proj is currently disabled because (as far as I remember) it gave some headache and compile issues. I am using Maybe there is a way to fetch the file, then mount it in spl.js and pass the path to proj? |
Thanks @jvail. Looking in the proj db I couldn't find a reference to the gridfiles, but for anyone reading this it's easy to do vertical datum transformation in the browser using the example of the npm geotiff library (and proj4.js for 2D CRS transformation). |
Could you point me to an example to do this with geotiff/proj4.js? I think it would be interesting to experiment how this could be done in spl.js. |
It's actually called geotiff.js: https://github.com/geotiffjs/geotiff.js/ The geotiff gridfiles are maintained at https://github.com/OSGeo/PROJ-data and hosted on CDN and referred in the proj.db. Spatialite should be able to handle this already, but I don't know if it attempts it at all in the current spl.js or fails silently. |
Thank you for the detailed explanation. I am not sure about the automatic download of grids but if I can also compile/add libtiff then it should be doable if the grid file is downloaded in the main thread and then mounted in the worker filesystem. I will experiment a bit with it. |
I'm trying to do a 3D coordinate transform like this:
but the height remains unaltered:
This is node but I also tried the browser.
I was expecting the full proj.db to include or automatically fetch the gridfiles (nl_nsgi_nlgeo2018.tif on official PROJ CDN), but it appears this is not the case or the vertical transformation is silently ignored for some other reason.
I also tried EPSG 9286, which would only convert the height of the desired CRS, but this also doesn't work.
Documentation on PROJ and spatialite and spl.js are rather sparse, especially on vertical transformation.
Any ideas on how to proceed?
Is TIFF supported at all in the default build?
An alternative way to do this in the browser without spatialite dependency would also be great, but I suspect this is not going to happen anytime soon and I'm under too much time pressure myself.
The text was updated successfully, but these errors were encountered: