#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 , 13 years ago
Cc: | added |
---|---|
Owner: | changed from | to
comment:2 by , 13 years ago
Milestone: | → 1.6.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.