Skip to content
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

Update the plugin to be compatible with the newest versions of GDAL and PROJ #44

Open
gioman opened this issue Feb 28, 2020 · 4 comments
Labels

Comments

@gioman
Copy link
Contributor

gioman commented Feb 28, 2020

After a first attempt (thanks @PedroVenancio) it seems that the ogr2ogr commands must be changed to something along the following lines:
ogr2ogr -s_srs EPSG:20790 -t_srs EPSG:3763 -ct "+proj=pipeline +step +inv +proj=tmerc +lat_0=39.6666666666667 +lon_0=1 +k=1 +x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +step +proj=hgridshift +grids=DLx_ETRS89_geo.gsb +step +proj=tmerc +lat_0=39.6682583333333 +lon_0=-8.13310833333333 +k=1 +x_0=0 +y_0=0 +ellps=GRS80" -f "ESRI Shapefile" -lco ENCODING=UTF-8 D:/Testes/postos_vigia/postos_vigia_rede_nacional_3763_17.shp D:\Testes\postos_vigia\postos_vigia_rede_nacional_20790.shp

where the "-ct" flag must be used (and is incompatible with GDAL 2.*).

Is unclear if an approach more similar to the one used with GDAL 2 can be used.

@gioman gioman added the bug label Feb 28, 2020
@gioman
Copy link
Contributor Author

gioman commented Feb 28, 2020

@PedroVenancio
Copy link
Contributor

OSGeo/PROJ#1998

@PedroVenancio
Copy link
Contributor

It's fixed now with proj dev 7.1.0-3 shipped with OSGeo4W.

It will also be fixed in previous versions (https://github.com/OSGeo/PROJ/milestone/23 and https://github.com/OSGeo/PROJ/milestone/21) as soon as they be released.

@gioman
Copy link
Contributor Author

gioman commented Mar 4, 2020

It's fixed now with proj dev 7.1.0-3 shipped with OSGeo4W.

@PedroVenancio thanks for the heads up Pedro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants