Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
1  
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

5 Answers 5

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.

Hope this helps -- cheers

enter image description here

share|improve this answer

Alexander, I found this free tool 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.

freegeographytools!

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

I have exactly the same question. Since I have only a reputation of 15 I can't comment your answers, so I am writing here.

@klewis: The link doesn't work anymore. Could you tell me the exact name of the tool?

share|improve this answer

Your Answer

 
discard

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.