Opened 14 years ago

Closed 14 years ago

Last modified 11 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

Description

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, 14 years ago

Cc: warmerdam added
Owner: changed from warmerdam to chaitanya

Chaitanya,

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

comment:2 by chaitanya, 14 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, 11 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.