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

Pieri70 pierigis at gmail.com
Fri Oct 12 05:21:05 PDT 2012


Hello
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
how can I set the correct coord space (3D) and srid?
Thanks in advance
Pietro



--
View this message in context: http://postgis.17.n6.nabble.com/Help-on-using-Ogr2ogr-to-load-dxf-data-to-postgis-tp5000446.html
Sent from the PostGIS - User mailing list archive at Nabble.com.



More information about the postgis-users mailing list