Ticket #2849 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

IsSame results in false positive for LOCAL_CS

Reported by: gaige Owned by: warmerdam
Priority: normal Milestone: 1.6.1
Component: OGR_SRS Version: 1.6.0
Severity: major Keywords:
Cc:

Description

OGRSpatialReference:IsSame tests for the "LOCALCS" instead of using IsLocal? or testing for "LOCAL_CS". As a result, two local coordinate systems that have different units are considered to be the same.

The change I made in my local version was to use IsLocal?() instead of the manual test.

-Gaige

Change History

Changed 3 years ago by rouault

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

Thanks for reporting.

Fixed in trunk (r16376) and branches/1.6 (r16377)

Note: See TracTickets for help on using tickets.