id summary reporter owner description type status priority milestone component version severity resolution keywords cc 6485 Shapefile driver doesn't retrieve missing TOWGS84 even when the .prj has a EPSG code (e.g CRS 2056/21781) Sfkeller warmerdam "Given a Shapefile ""swiss_admin_boundaries.shp"" in EPSG:2056 (or 21781) I have problems transforming it to any other SRS/CRS. When doing this: > ogr2ogr -f ""GPKG"" swiss_admin_boundaries1.gpkg swiss_admin_boundaries.shp -t_srs EPSG:3857 ... swiss_admin_boundaries1.gpkg have a shift of about 150m. But when I convert Shapefile first e.g. to GeoPackage, and transform then: > ogr2ogr -f ""GPKG"" tmp.gpkg swiss_admin_boundaries.shp > ogr2ogr -f ""GPKG"" swiss_admin_boundaries2.gpkg tmp.gpkg -t_srs EPSG:3857 > del tmp.gpkg ... swiss_admin_boundaries2.gpkg is correct! 2016-04-24 17:58 GMT+02:00 Even Rouault answered > I guess we would want to improve the shapefile importer to get the WKT > definition from the GDAL EPSG DB when a AUTHORITY EPSG node is found. See also: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Problem-with-Shapefile-and-CRS-2056-21781-td5262662.html " enhancement closed normal 2.2.0 default unspecified normal fixed OGR