Tag Info

New answers tagged

0

Qgis uses GDAL's ogr2ogr to export between formats and from www.gdal.org, "Polygon and MultiPolygon features are written as HATCH entities", so the hatches in AutoCAD should be expected. To generate closed polylines from the hatch objects use the AutoCAD command HATCHGENERATEBOUNDARY. Additionally you could use the command OGR2OGR to export the shapefile ...


1

The solution to my question is: fitxer="/tmp/prova.dxf|layername=entities|geometrytype=Point" layer = QgsVectorLayer(fitxer, 'prova', 'ogr') QgsMapLayerRegistry.instance().addMapLayer(layer) This another sample loads all geometry types: #Load the dfx file to get the sublayers. vlayer = QgsVectorLayer(dfx_file, 'layer_test', 'ogr') subLayers = ...


1

You should be able to use the GDAL ogr2ogr tool to convert a file from DXF to a KML. ogr2ogr -f "KML" out.kml in.dxf -s_srs "source srs" -t_srs EPSG:4326 This will require that the DXF be georeferenced, and that you know can determine the spatial reference system of the source.


1

I would recommend FME to do the job. (http://www.safe.com/) The ability to manipulate datasets to/from many different formats and easily wrap them into batch files will more than pay for itself over time.



Top 50 recent answers are included