I am reading a file geodb and trying to convert multipolygon to Polygon OGRGeometry *pGeom = NULL; OGRGeometry *pForced = NULL; pGeom = pOGRFeature->StealGeometry(); if(pGeom != NULL) { pForced = OGRGeometryFactory::forceToPolygon(pGeom); if(pForced != NULL) {
pOGRFeature->SetGeometryDirectly(pForced); } } char *pJsonString = pSrcGeom->exportToJson(); //Causes crash ... Do any experience these ? Gane
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev