Opened 16 years ago
Closed 16 years ago
#2334 closed defect (fixed)
OGRGeometryCollection::getCoordinateDimension() always return 2
Reported by: | Even Rouault | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.5.2 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | geometry collection coordinate dimension |
Cc: |
Description
Currently, OGRGeometryCollection::getCoordinateDimension() (and on derived classes) always return 2, thus ::getGeometryType() always return the non-25D types.
I think this bug dates back to r7855 (3 years ago!) when nCoordDimension was introduced as a field of OGRGeometry. nCoordinateDimension which was already existing as a field of OGRGeometryCollection should have been removed then and its use replaced by nCoordDimension.
I'll do that in trunk.
And in branches/1.5, because of ABI compatibility, the field will be kept, but not used anymore in the code of OGRGeometryCollection, which is not a problem since it is a private field.
Change History (1)
comment:1 by , 16 years ago
Component: | default → OGR_SF |
---|---|
Keywords: | geometry collection coordinate dimension added |
Resolution: | → fixed |
Status: | new → closed |
Fixed in trunk in r14328 and in branches/1.5 in r14329