How to convert mutipolygon to polygon<div><br></div><div>my code</div><div>string geometry = "MULTIPOLYGON (((76.742484035494002 9.949536084104899,76.783465713734998 9.8207365239198,76.818592866512006 9.8773302700617,76.842010968363994 9.931972507716001,76.742484035494002 9.949536084104899)))";</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div> char *geom = (char *) geometry.c_str();</div><div><br></div><div> OGRGeometry *OLGeometry = NULL;</div><div><br></div><div><br>
</div><div> OGRGeometryFactory::createFromWkt( &geom, NULL, &OLGeometry );</div><div><br></div><div>the OLGeometry is multipolygon I need it as polygon as given below.</div><div><br></div><div>Note: both are not equal</div>
<div><br></div><div>POLYGON ((76.334618761574006 10.378867951388999,76.338521778548994 10.419849629630001,76.404873067129998 10.349595324074,76.371697422840001 10.271534984568,76.334618761574006 10.378867951388999))</div>
<div><br></div><div><br></div><div><div> </div><br>-- <br><div>Thanks && Regards</div>Rashad<br>
</div></div>