Opened 6 years ago

Closed 6 years ago

#4208 closed defect (fixed)

GDA94 datum not being written to ERS

Reported by: lpinner Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: GDAL_Raster Version: 1.8.1
Severity: normal Keywords:
Cc:

Description

The GDA94 datum is not being written to ERS headers, 'Datum = "RAW"' is written instead for both test1.ers and test2.ers (output of gdal_translate examples below).

>gdalinfo --version
GDAL 1.8.1, released 2011/07/09

>gdalinfo test.tif
Driver: GTiff/GeoTIFF
Files: test.tif
Size is 100, 100
Coordinate System is:
PROJCS["GDA94 / MGA zone 55",
    GEOGCS["GDA94",
        DATUM["Geocentric_Datum_of_Australia_1994",
            SPHEROID["GRS 1980",6378137,298.2572221010002,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6283"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4283"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",147],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",10000000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","28355"]]
Origin = (320325.000000000000000,6069225.000000000000000)
Pixel Size = (25.000000000000000,-25.000000000000000)
...
>gdal_translate -of ers test.tif test1.ers
Input file size is 100, 100
0...10...20...30...40...50...60...70...80...90...100 - done.

>gdal_translate -of ers -a_srs EPSG:28355 test.tif test2.ers
Input file size is 100, 100
0...10...20...30...40...50...60...70...80...90...100 - done.

Attachments (1)

test.zip (45.4 KB) - added by lpinner 6 years ago.
Test files

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by lpinner

Attachment: test.zip added

Test files

comment:1 Changed 6 years ago by Even Rouault

Milestone: 1.9.0
Resolution: fixed
Status: newclosed

r22996 /trunk/gdal/ogr/ogr_srs_erm.cpp: exportToERM() : deal with GDA94 datum and its UTM projections (#4208)

Note: See TracTickets for help on using tickets.