[Qgis-user] DXF file & geometry

Zirneklitis eko at lanet.lv
Wed Jun 20 08:43:48 PDT 2012


You can use command line tool ogr2ogr, e.g.:

$ ogr2ogr -where "OGR_GEOMETRY='POINT'" -f "ESRI Shapefile" 
my_out_file_points.shp my_in_file.dxf

OGR_GEOMETRY could be POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, 
POLYGON, MULTIPOLYGON.

Reference:
http://www.gdal.org/ogr/ogr_sql.html


Best regards,
Karlis

Andreas Neumann wrote:
> ..
> Unfortunately there is not proper DXF support currently for reading DXF
> files. QGIS only allows one geometry type per data source. The OGR dxf
> driver delivers multiple geometry types. QGIS just picks the first one
> that OGR delivers (could be point, lines and polygons). There needs to
> be some work done regarding the geometry types and the styling.
> ..
>> On Tue, Jun 19, 2012 at 6:01 AM, Philippe de FRANCLIEU wrote:
>>
>>> ..
>>> The geometry of a DXF file (french PCI-DXF) is defined as Polygon
>>> in the metadata.
>>> There are points and lines though. Which do not display...
>>> Any hint? Should points and lines be extracted  to new files?
>>>..



More information about the Qgis-user mailing list