<div dir="ltr"><div><div>I am reading a file geodb and trying to convert multipolygon to Polygon<br>OGRGeometry *pGeom = NULL;<br>                            OGRGeometry *pForced = NULL;<br>                            pGeom = pOGRFeature->StealGeometry();<br>                            if(pGeom != NULL)<br>                            {<br>                                pForced = OGRGeometryFactory::forceToPolygon(pGeom);<br>                                if(pForced != NULL)<br>                                {<br>                                    pOGRFeature->SetGeometryDirectly(pForced);<br>                                }<br>                            }<br><br>char *pJsonString = pSrcGeom->exportToJson(); //Causes crash ...<br><br></div>Do any experience these ?<br></div>Gane<br></div>