Add NTv2 Globogis vector transformation for Italy #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've slightly modified VectorIT_RER_ETRS89DirInv.py to create a vector transformation for Italy VectorIT_ITALY_ETRS89DirInv.py using the Globogis NTv2 grids.
It seems working, but I don't know if there are other changes to make in other parts of the code...
I'm unsure about these lines https://github.com/agiudiceandrea/naturalgis_ntv2_transformations/blob/b94b7b4da906bdefdecb6f98154fef29405a6b30/VectorIT_ITALY_ETRS89DirInv.py#L4-L22
and particularly this https://github.com/agiudiceandrea/naturalgis_ntv2_transformations/blob/b94b7b4da906bdefdecb6f98154fef29405a6b30/VectorIT_ITALY_ETRS89DirInv.py#L59
If all is ok with this code, I'll also try to create a RasterIT_ITALY_ETRS89DirInv.py.
By the way, I've found there's something not working properly in the ogr2ogr command for all the vector inverse transformations.
The log reports "Warning 6: dataset /vsistdout/ does not support layer creation option ENCODING" every time an inverse transformation is performed.
I wonder why /vsistdout/ and /vsistdin/ are needed in order to perform the vector inverse transformations and if we could avoid to use them.
I would also point out that two other NTv2 gridfiles are available for Italy at http://www.provincia.agrigento.it/flex/cm/pages/ServeBLOB.php/L/IT/IDPagina/309: these grids are created using the Geoportale Nazionale coordinate transform service http://www.pcn.minambiente.it/mattm/conversione-coordinate/ for ROMA40<->WGS84/ETRS89-ETRF89 and ED50<->WGS84/ETRS89-ETRF89
Could them be added to the gridfiles repository?
Partially fixes #29