Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to export labels based on Shapefile attributes into a DXF file?

I use Quantum gis in Version 1.7.4. I've been reading a CSV file and view it as a Shape Layer. With the help of attributes from the File I will label the points. Now I want a DXF export with the labels. However, only the Points in the DXF file Export.

I do not have ArcGIS.

I am using AutoCAD LT 2011 for viewing DXF files. In AutoCAD I have to go through the "Insert / Link & extraction" under only the possibility to find data from Excel.

share|improve this question
On wich platform? ArcGIS? – cag May 4 '12 at 19:04
Why would you like to export as DXF? Which program do you wnat to use to read the exported files? Perhaps there are better ways. In general dxf is a rather poorly supported fileformat. – johanvdw May 4 '12 at 19:40
I think there are too many limitations for a solution without getting help from someone who has more tools. LT does not allow for programming or much manipulation. You need at least autocad or autocad map would be better. you could then create points with attributes and either make them into blocks or simply label the points. You can get closer by doing an export from qgis and include the xy coordinates in the csv, or shape file. if you had map you could just import the shp file and label it. – Brad Nesom Sep 21 '12 at 3:45

If you want the labels in CAD, here's a workaround (you're not being very specific as to what you're trying to accomplish). In ESRI, create a point file for the centroid of each label. Populate the label field in the attribute table.

Next, in a "map capable" version of AutoCAD, tpye "mapconnect" in the command line. This will bring up the screen shown below (I'm assuming you know how to manage coordinate systems in CAD). First, select "Add SHP connection". Next, click the SHP ellipsoid (shown with #2) and navigate to the location of your point shapefile. Lastly (step #3) hit the connect function, and inside that menu, hit "add to map" Now all you need to do is make your points invisible and turn on the labels (which will require you to switch to a Geospatial interface in CAD -- shown in next printscreen).

enter image description here

There are Geospatial functions available in CAD. Under the arrow highlighted below, you can see that there are Geospatial functionalities inherent to CAD (map capable versions that is). The icon looks very much like a gear (Beside "Dano1" in my printscreen). This menu can be found in the bottom right portion of your screen. If you get this far and are not sure how to proceed, the only this I can suggest is that you post another question related to labeling spatial data in CAD.

enter image description here

share|improve this answer

I found this free Converting Shapefiles and ArcINFO Coverages To AutoCAD DXF Format tool at Free Geography Tools that will create a .dxf from a shapefile.

You can specify the attribute field that you want converted to dxf Text labels.

I ran the tool and it worked as expected.

share|improve this answer

You may convert your shapefile labels to geodatabase feature class annotations, then use the Export to CAD tool to create a DWF layer with labels (if you have ArcGIS).

share|improve this answer

If you use ArcGIS then in my opinion the most stable solution is to convert the annotations to polygons then export to DXF. I use the same approach for exporting annotations to KMZ which unlike exporting annotations directly yields very high resolution labels in the resulting KMZ.

Unfortunately, this requires you to convert annotations to polygons for which there isn't an OOTB tool. I built my own addin for this. I can post the code if you'd like.

share|improve this answer

There is now native export into DXF in newer versions of QGIS which allows to export map layers including the labels:

Native DXF export in QGIS

More about the functionality can be found here:

The DXF export functionality was developed by Jürgen Fischer (Norbit) and Marco Hugentobler (Sourcepole AG). The project was co-financed by SIGE (utility provider in Vevey) and the municipalities of Vevey, Morges and Uster.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.