[gdal-dev] Getting Polygon Vectors Out of a dwg File?
Brandon Biggs
brandon.biggs at ski.org
Tue Oct 1 14:52:58 PDT 2019
Hello,
I am wondering how I can get polygon vectors out of a dwg file? Geojson is the easiest format for me to use, but I just need the data in something I can open that's not a picture so I can perform collision detection on the polygons. (apparently autocad is unable to export into any open formats).
I would prefer to use one of the existing applications to do a simple conversion from dwg to geojson, but I'm having trouble understanding the command line arguments and what application I need.
Since I want vector data, ogr2ogr<https://gdal.org/programs/ogr2ogr.html#ogr2ogr> looks like the application that I need.
The problem is I am not seeing any output file name in the argument list. I see update, append, and overwrite.
For the input file, I am only seeing dst_datasource_name, which I take to be my input. Dwg file.
Can someone please let me know what I am missing and if there is something else I should be reading?
Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191001/8acc3c04/attachment.html>
More information about the gdal-dev
mailing list