[gdal-dev] Getting Polygon Vectors Out of a dwg File?

Andrew C Aitchison andrew at aitchison.me.uk
Tue Oct 1 23:53:37 PDT 2019


On Tue, 1 Oct 2019, Brandon Biggs wrote:

> 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?

THe synopsis reads:

ogr2ogr [--help-general] [-skipfailures] [-append] [-update]
         [-select field_list] [-where restricted_where|\@filename]
         [-progress] [-sql <sql statement>|\@filename] [-dialect dialect]
         [-preserve_fid] [-fid FID] [-limit nb_features]
         [-spat xmin ymin xmax ymax] [-spat_srs srs_def] [-geomfield field]
         [-a_srs srs_def] [-t_srs srs_def] [-s_srs srs_def] [-ct string]
         [-f format_name] [-overwrite] [[-dsco NAME=VALUE] ...]
         dst_datasource_name src_datasource_name
         [-lco NAME=VALUE] [-nln name]
         [-nlt type|PROMOTE_TO_MULTI|CONVERT_TO_LINEAR|CONVERT_TO_CURVE]
         [-dim XY|XYZ|XYM|XYZM|2|3|layer_dim] [layer [layer ...]]

the line "dst_datasource_name src_datasource_name" indicates that you
specify the destination filename and then the source filename
(note the order).

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list