<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
Hello,</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
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).</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
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.</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
Since I want vector data, <a href="https://gdal.org/programs/ogr2ogr.html#ogr2ogr">
ogr2ogr</a> looks like the application that I need.</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
The problem is I am not seeing any output file name in the argument list. I see update, append, and overwrite.</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
For the input file, I am only seeing dst_datasource_name, which I take to be my input. Dwg file.</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
Can someone please let me know what I am missing and if there is something else I should be reading?</p>
<p style="margin: 0in 0in 8pt; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif">
Thank you,</p>
<br>
</div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>