Opened 14 years ago

Closed 14 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:


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 by warmerdam, 14 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.