Opened 13 years ago

Closed 13 years ago

#1577 closed defect (fixed)

CCoordinateSystemMathComparator::SameCoordinateSystem() incorrectly returns [false] for equal "arbitrary coordinate systems"

Reported by: baertelchen Owned by: baertelchen
Priority: low Milestone: 2.3
Component: General Version: 2.1.0
Severity: minor Keywords: Coordinate System API comparing coordinate systems CCoordinateSystemMathComparator SameCoordinateSystem
Cc: External ID:

Description

The CCoordinateSystemMathComparator::SameCoordinateSystem() API allows to compare 2 coordinate systems on (mathematical) equality.

It incorrectly returns [false], however, if the 2 systems to be compared are so called "arbitrary system" which do neither reference a datum nor an ellipsoid.

Currently, if none of the 2 is found, the method mentioned above simply returns [false], what is not correct for systems like XY-M (Cartesian XY meter).

Change History (1)

comment:1 by baertelchen, 13 years ago

Resolution: fixed
Status: newclosed

Has been fixed in revision 5477 on December, 17th 2010. See log for http://svn.osgeo.org/mapguide/trunk/MgDev/Common/CoordinateSystem

Modified the [SameCoordinateSystem] method so it does also check the case where both systems neither reference a datum nor an ellipsoid. If the projection type is then NERTH, the method will do the remaining checks, e.g. check the x/y offsets on equality + the unit

Note: See TracTickets for help on using tickets.