After googlin' around I get an answer myself.. This is the string I use to load a dxf file to postgis without any Layer that begin with "X":
ogr2ogr --config DXF_INLINE_BLOCKS FALSE --config DXF_MERGE_BLOCK_GEOMETRIES FALSE -f "PostgreSQL" PG:"host=localhost user=postgres dbname=mydb password=myPassw" mydxf.dxf -where "Layer NOT LIKE 'X%'" -overwrite entities bie Pietro -- View this message in context: http://postgis.17.n6.nabble.com/Help-on-using-Ogr2ogr-to-load-dxf-data-to-postgis-tp5000446p5000516.html Sent from the PostGIS - User mailing list archive at Nabble.com. _______________________________________________ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users