Opened 8 years ago
Closed 8 years ago
#6816 closed defect (fixed)
The OGR Mapinfo TAB driver cannot produce correct projection information when writing TAB files using esgp:25832 projection.
Reported by: | lloldrup | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SRS | Version: | 1.10.0 |
Severity: | normal | Keywords: | Mapinfo TAB SRS |
Cc: |
Description
Ogrinfo should return the following projection information for a TAB file with epsg:25832 projection:
PROJCS["unnamed", GEOGCS["unnamed", DATUM["European_Terrestrial_Reference_System_1989", SPHEROID["GRS 80",6378137,298.257222101], TOWGS84[0,0,0,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1.0]]
But GDAL versions after 1.4.0.0, ogrinfo returns:
PROJCS["unnamed", GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1.0]]
Just verified same error exists using GDAL 2.2.0dev from gisinternals.
I have found the problem in gdal-1.10.0/ogr/ogrsf_frmts/mitab/mitab_spatialref.cpp and here is the patch that works for our GDAL build.
diff gdal-1.10.0/ogr/ogrsf_frmts/mitab/mitab_spatialref.cpp.org gdal-1.10.0/ogr/ogrsf_frmts/mitab/mitab_spatialref.cpp 343c343 < { 0, 115, "Euref_98", 0, 0, 0, 0, 0, 0, 0, 0, 0}, --- > { 6258, 115, "Euref_89", 0, 0, 0, 0, 0, 0, 0, 0, 0},
Note:
See TracTickets
for help on using tickets.
In 37387: