OpenJUMP
CAD Tutorial

back to Index page


Autocad format DWG and DXF represent an important standard in many technical public and private office. Autocad software still remains the best CAD drawing available, despite the cost and the limitation for public DWG format.
The aim of this tutorial is to help users who have to work with Autocad files in a GIS project using OpenJUMP.

There are basically two situation which requires the usage of CAD drawings: 1) import in a project aereophotogrammetric drawing (already georeferenced) or 2) import in a project tecnical drawing produced by engeneers and architect or derived from vectorialized raster images. Most of these cad drawings are not georeferenced.

Import aereophotogrammetric topographic drawings

Aereophotogrammetric DWG drawings are still diffused by many public offices (for instance, in Italy) despite many Public Recomandation to use open public file format(see for EU Symposium on use of Open Source Software in EU public administrations).
You must use different procedure whether you want to import DWG or DXF in OpenJUMP.

Some of the above limitations are usefull, especially if you may need to clean the original dxf in order to connect it to an external dababase or table

Other times you want to display the dxf in OpenJUMP “as it should be” in Autocad.
Change Style and Label support can solve the problems connected to hatch and text, simply correcting (while changing style) the parametres of color and hatch.

There is a “quick strategy” which is usefull if users want to import a DXF file as a simple base (generally as a topographic base) for a project.
This method requires Autocad 2004 or later.

Save the file in JML format. Then save the project.
JML format provides a smaller file which opens more quickly than DXF.
Saving the project is also usefull to save the style which can be copied to other imported DXF files.

Import technical drawings

To import technical drawings from Architectural or engineering project basically follow the same rules as explained before.
Since technical drawings are often non georeferenced, once imported in OpenJUMP, you can Warp the drawing in your project to the corresponding coordinates.

Sometimes it is usefull to vectorialized original raster images (ex. scanned images) and import them in an OpenJUMP Project. In this case the only step you want to do is to warp the image.

Export a layer to Autocad

DXF Plugin can also export a layer to a DXF Autocad file. This is usefull if you want to export a GIS project in a Professional CAD project.

Dante Fuster’s DXF Plugin

This plugin is formed by two files:
  1. The DXF plugìin by Dante Fuster
  2. The CAFF DXF viewer by Rammi
This plugin can:

Opening a DXF files, Dante’s plugin show the structure of attribute in Spanish:
CAPA = LAYER
TEXTO = TEXT
etc..

1 Dante’s plugin allows to export to DXF saving the features in different layers. Also TEXT, TEXT HEIGHT and TEXT ANGLE can be exported to DXF.
This is possible if the original file contains attribute like CAPA, TEXTO, etc.).
This is the Schema:

__ CAPA      String           (layer)
__ TEXTO     String           (text)
__ ANGULO    Double           (text angle)
__ ALTURA    Double           (text Height)