Ticket #2334 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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.

Change History

Changed 4 years ago by rouault

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

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

Note: See TracTickets for help on using tickets.