Ticket #2334 (closed defect: fixed)
OGRGeometryCollection::getCoordinateDimension() always return 2
| Reported by: | 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.
