Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#3364 closed defect (fixed)

OGRSpatialReference::IsSameGeogCS() is returning true when units don't match.

Reported by: Bushoi Owned by: chaitanya
Priority: normal Milestone:
Component: OGR_SRS Version: 1.6.2
Severity: normal Keywords:
Cc: warmerdam


For OGRSpatialReference, SetAngularUnits() will write the unit details to attribute name 'GEOGCS|UNIT'. GetAngularUnits() will also retrieve the values using the same attribute name.

But when IsSameGeogCS() extracts the angular unit to make its comparison, it tries to access the attribute node directly using the name 'GEOGCS|UNITS' (plural).

Change History (3)

comment:1 by warmerdam, 13 years ago

Cc: warmerdam added
Owner: changed from warmerdam to chaitanya


Please extend IsSameGeogCS to check the units and update autotest/osr/ with a test of this fix. This is only medium priority.

comment:2 by chaitanya, 13 years ago

Milestone: 1.6.4
Resolution: fixed
Status: newclosed

Fixed in trunk (r20131), 1.7 branch (r20132) and 1.6 branch (r20133) and a test in trunk (r20131).

comment:3 by Even Rouault, 10 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.