Opened 10 years ago

Closed 10 years ago

#3498 closed defect (fixed)

OGRGeometryFactory::forceToPolygon() broken

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords:
Cc:

Description

The statement:

    if( wkbFlatten(poGeom->getGeometryType()) != wkbGeometryCollection
        || wkbFlatten(poGeom->getGeometryType()) != wkbMultiPolygon )
        return poGeom;

in OGRGeometryFactory::forceToPolygon() always fails, so the method never does anything. Observed in trunk.

Change History (1)

comment:1 Changed 10 years ago by warmerdam

Resolution: fixed
Status: newclosed

Fixed in 1.6 (r19180), 1.7 (r19181) and trunk (r19182).

Note: See TracTickets for help on using tickets.