[gdal-dev] Help on using Ogr2ogr to load dxf data to postgis

Pietro Rossin pierigis at gmail.com
Mon Oct 15 01:18:10 PDT 2012


Hello 
I wrote this question to Postgis user forum and they bounced me to this
group, so I hope to be more lucky this time.. 

I'm trying to load a thousand dxf files to postgis using ogr2ogr (windows xp 
postgres9/postgis2). 
the syntax I use is: 
ogr2ogr --config DXF_INLINE_BLOCKS FALSE --config DXF_MERGE_BLOCK_GEOMETRIES 
FALSE -f "PostgreSQL" PG:"host=localhost user=postgres dbname=mydbname 
password=mypassword" mydxf.DXF -overwrite entities 

This creates a table called entities that collect point and lines and a 
geometry column wkb_geometry with a coord dimension integer 2 and a srid 0 

My questions are: 
Is there the possibility to filter unwanted layer from dxf before insert 
them into the entities table via ogr? 
and 
is there the possibility to convert closed polylines to polygons and load
them to postgis? 
and 
how can I set the correct coord space (3D) and srid? 
Thanks in advance 
Pietro




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Help-on-using-Ogr2ogr-to-load-dxf-data-to-postgis-tp5008635.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list