Opened 14 years ago

Closed 5 years ago

#3649 closed enhancement (wontfix)

MorphToESRI support more cases of GCS name mapping and UTM prefixes

Reported by: johncz711 Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: OGR_SRS Version: 1.7.2
Severity: normal Keywords:
Cc:

Description

Within the morphToESRI function in ogr_srs_esri.cpp, the code section labeled "Very specific handling for some well known geographic coordinate systems" morphs several GCS names and provides GCS-related prefix strings that are later used to prefix UTM PROJCS names. This section can be expanded to handle more datums with specific GCS and/or UTM-prefix strings. For datums without specific needs, it should use the GCS name string (without "GCS_") as the UTM-prefix string (currently these datums provide no prefix at all for UTM PROJCS).

I have provided in the attached zip an example copy of ogr_srs_esri.cpp that contains these additions. It provides GCS name remapping and UTM prefixes for the following additional datums:

NAD83(HARN)

ETRS89

ED50

ED50(ED77)

ELD79

PSAD56

SAD69

NZGD49

Ain el Abd

Trucial Coast 1948

Yoff

Zanderij

This code sample also provides the default UTM prefix string for non-special datums.

The bulk of the code changes are in the "Very specific handling for some well known geographic coordinate systems" section, with a few lines after the "Prepare very specific PROJCS names for UTM coordinate systems" section that deallocate memory used in the generic UTM prefix case.

I have successfully used these suggested additions in a subset of OGR code recently added to my (non-ESRI-based) platform for the sole purpose of creating WKT and writing it as .prj files. The resulting GCS names and PROJCS names (for prefixed UTM) are accepted by ArcMap 9.3 and agree with its sample .prj file content.

Attachments (1)

MOD_ogr_srs_esri.zip (13.8 KB ) - added by johncz711 14 years ago.

Download all attachments as: .zip

Change History (2)

by johncz711, 14 years ago

Attachment: MOD_ogr_srs_esri.zip added

comment:1 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.