[gdal-dev] Regarding geometry layer creation options

Wuyyuru Ravi Teja Krishna ravitejakrishna.w at zohocorp.com
Mon Dec 9 00:02:00 PST 2019


Hello Gdal team,



Iam using ogr2ogr tool for .shp or .geojson. or .kml to .csv conversion. But i want the Geometry to be as collections as show below. ( On giving GEOMETRY=AS_WKT iam getting in a normal format is there any option to get in the format i need )



format I need : { "type": "Polygon", "coordinates": [ [ [ 76.612, 33.173 ], [ 76.64, 33.162 ], [ 76.709, 33.181 ] ] ] } 

                        or  atleast to have it in this format is aceptable for us POLYGON (([76.612 , 33.173],[76.64 , 33.162],[76.709 , 33.181])) 
format iam getting :  POLYGON ((76.612 33.173,76.64 33.162,76.709 33.181)) 



Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191209/e6e996da/attachment.html>


More information about the gdal-dev mailing list