Ticket #2533 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

OGRSpatialReference:Clear() does not fully reset things

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.5.3
Component: OGR_SRS Version: 1.5.0
Severity: normal Keywords:


The OGRSpatialReference::Clear() method does not reset the fields dfFromGreenwich, dfToMeter, dfToDegrees and bNormInfoSet in the OGRSpatialReference.

It is believed this may be responsible for errors reported in  http://trac.osgeo.org/qgis/ticket/1221 when doing multiple importFromProj4()'s from feet based coordinate systems.

Change History

Changed 7 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

Patched so that Clear() wipes the bNormInfoSet flag and modified a few import methods to call Clear() rather than trying to do things themselves in trunk (r15160) and 1.5 (r15161).

Note: See TracTickets for help on using tickets.