Ticket #3904 (closed defect: fixed)
SAD69 Spheroid Remapping in morphFrom/ToESRI()
|Reported by:||warmerdam||Owned by:||warmerdam|
I'm dealing with OGR SRS now and I (and probably every potential SAD69 datum user) became a victim of ESRI PRJ files oddities. Here in Brazil we have been using SAD69 datum with GRS 1967 Modified spheroid. Despite the recent adoption of SIRGAS 2000 as our (brazilian) new SRS there are lots of data available in SAD69 and this data will be here for some time.
So what Armando you my be asking, so let me clarify, I dunno if you are aware that ESRI PRJ file for this DATUM contains the text bellow:
You should have noticed the bold SPHERIOD name, it's the problem source. I modified, by hand, the text "GRS_1967_Truncated" to "GRS_1967_Modified" and now the postgres driver correctly assign the SRID to 4618 (as it should be) instead of adding new records to spatial_ref_sys table.
Since OGR_SRS make OSRMorphFromESRI function available I would ask if it's possible to add another fix to it changing SPHEROIDS with value "GRS_1967_Truncated" to "GRS_1967_Modified".