[gdal-dev] ogr2ogr writing dxf with multiple layers

Bernd Kamjunke bernd.kamjunke at csogis.de
Tue Jan 15 03:40:01 PST 2013


Hello to all!

Is it possible to write data e.g. from an sqlite Database with several tables
into one dxf with multiple layers?

I found some information that it may be not, but I am not sure if it is possible
meanwhile.
I am using gdal 1.9 and I am trying something like this with german ALKIS-Data in a
SQLite-Database:
ogr2ogr -a_srs "EPSG:25832" -sql "SELECT *, 'ap_pto' AS Layer FROM ap_pto" C:\temp\Test_Schrift_ap_pto2_mit_Bahnverkehr_plus.dxf C:\ALKIS\BO\SQLite\ALKIS.sqlite -f "DXF" -dialect SQLITE -skipfailures

Inside the "Test_Schrift_ap_pto2_mit_Bahnverkehr_plus.dxf" File there is already a Layer from an export before
and unfortunately this layer will be always overwritten. :(

I have looked here for some Information:
http://gis.uster.ch/dokumentation/datenkonvertierung/ogr
http://www.gdal.org/ogr/drv_dxf.html
http://www.gdal.org/ogr/ogr_feature_style.html

Thanks for any information!
Bernd

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


More information about the gdal-dev mailing list