[gdal-dev] export to geometrycollection.

Ahmet Temiz ahmettemiz88 at gmail.com
Sun Jun 13 11:45:18 PDT 2021


Hi,
I exported the geometry to geojson as:

OGRMultiPolygon * poOGRMultiPolygon= (OGRMultiPolygon * ) unionCascaded;
    //
 char * pszJSon= poOGRMultiPolygon->exportToJson();

this generates:
 "type": "MultiPolygon", "coordinates": ....

But.  I need geometrycollection.
How can I do that?

regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem  Dairesi Başkanlığı


________________________

Ahmet Temiz
Geological Eng.

Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210613/1e7b37c8/attachment.html>


More information about the gdal-dev mailing list