Ticket #2334 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

OGRGeometryCollection::getCoordinateDimension() always return 2

Reported by: rouault Assigned to: 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

04/19/08 14:05:31 changed by rouault

  • keywords set to geometry collection coordinate dimension.
  • component changed from default to OGR_SF.
  • status changed from new to closed.
  • resolution set to fixed.

Fixed in trunk in r14328 and in branches/1.5 in r14329