CAD Extension for OpenJUMP
CAD Extension for OpenJUMP adds new tools and plugins for drawing and modifying features in a layer. It also adds new tools to calculate area and lenght and to measure angles in the workbench.
Other plugins are intended to be used with CAD files loaded using DXF PlugIn from Michaël Michaud (http://geo.michaelm.free.fr/OpenJUMP/resources/drivers).
The Plugin is a set of tools partially deriving from other JUMP-derived software (SkyJUMP and Kosmo) plus new modified tools deriving form OpenJUMP itself.
The aim is to create a complete list of tool which let OpenJUMP to work as a CAD or a Drawing software. To make life more easy for prefessional or public officer who work with CAD and cadastral maps.
Since all original plugins I used to develop these tools are distributed under the GPL2 license, CAD tools plugin is distributed under is distributed under the GPL2 license. A copy of GPL2 licence (GPL2.txt) is embedded into CADtools01.jar file, together with the source code
Giuseppe Aruta
----------------------------------------------------------------------------------------------------------------------------------------------------
CAD Extension ver. 0.1 (November 19th 2011) - list of tools
CAD Extension creates
a) a new Menu "Geometry" on Menu Bar with many drawing/modifing/measuring tools,
b) a new plugin on File>New menu ("New CAD layer"),
c) a new submenu on Layer tree>Style ("Apply Style to CAD layer") with 2 plugins ("Display all features with true colors" and "Display all features in dark grey color"
d) a submenu ("Tools") on left click menu on selected feature, with other tools
--------------------------------------
### Menu "Geometry" on Menu bar ###
-------------------------------------
## Drawing Tools ##
these menus shows drawing tools transformed into Plugin, partially deriving from OpenJUMP, Skyjump and some new innovative ones
Point
- Draw Point (deriving from OpenJUMP one)
- Draw MultiPoint
LineString
- Draw Segment
- Draw Linestring (deriving from OpenJUMP one)
- Draw Arc (deriving from OpenJUMP one)
- Draw Closed Linestring
- Draw Rectangle Linestring
- Draw Parallelogram Linestring (a modified version of Draw Parallelogram from SkyJUMP - a constrained tool)
- Draw Circle by ray/by 3 point linestring
- Draw Circular Sector Linestring
Polygon
- Draw Polygon (deriving from OpenJUMP one)
- Draw Rectangle (deriving from OpenJUMP one)
- Draw Parallelogram (deriving from SkyJUMP)
- Draw Circle by ray/by 3 point (deriving from OpenJUMP one)
- Draw Circle by defined ray (deriving from OpenJUMP one)
- Draw Circular sector
- Autocomplete Polygon
<Note that some of these tools are already available on OpenJUMP>
## Modifying Tools ##
These tools modify features in a layer
- Duplicate item
It basically "copy/move the copy" of a feature. It allows to duplicate feature from a selected one and move them into another place
- Move Item up
It only copy/paste a feature. It can be used to move a feature up to the visibility if it is covered by another feature (ex. a poit covered by a polygon) ina multigeometry layer
- Draw a series
It derives from "Move along angle" from SkyJUMP. The original can create from selected feature a series in a new layer. This plugin create a series in the layer of the selected feature
## Calculate Tools ##
These tools are basically draw tools and derives from Measure distance and area tools of OpenJUMP. The difference is that both geometries and conresponding measurements are preserved into the layer. Measurements are also converted to other units (feet, yards, miles, kilometer) and are saved as attributes.
Measurements are displayed in the view. Actually Calculus tools display distance or area in meter - assuming that working projection unit is in meter. For the next realize of Cad Tools It is planned to put an option to display measuremets in International Feet and in Survey Feet.
The Calculus tools are the following:
- Calculate LineString
- Calculate Arc
- Calculate Polygon
- Calculate Rectangle
- Calculate Circle with 3 points
## Measure Tools ##
These tools derives from drawing tools and help users to measure angles on a UTM projection. The angles are displayed as a warning message.
No information is stored as attribute
- Measure angle between 2 line
With 3 clicks it is possible to calculate the angle between two segments
- Measure angle referencing North on a UTM projection
This tool calculate the angle referencing North of a segment. This tool derives from a similat tool in Kosmo, but it has been modified to calculate the angle in degrees
- Goniometer
This tool allows to calculate the angle between two segments, using an arc.
## Add Text Layer ##
This tool allows to add texts on the view. It derives from NoteTool of Openjump. It basically add points geometry on the workbench view but allows to input text directly. Text are displayed in black color with a fix dimension (14 p)
The position of the text is (in OpenJUMP stable version 1.4.2 or former version) on top/right side of the point or on the top/middle side (in OpenJUMP 1.4.2 Nightly Build)
The position, dimension and rotation of the text are saved as attributes and defined by Label Style.
User can make TEXT Layer editable and view the attributes. It is possible to change the dimension and rotation of the text by changing TEXT_HEIGHT and TEXT_ROTATION values.
The structure of the schema of TEXT Layer follows DXF schema from Michaël Michaud (DXF PlugIn). This means that TEXT Layer can be exported as a DXF file and viewed in a CAD software.
--------------------------------------------------
### Menu "FILE>NEW>NEW CAD LAYER" on Menu bar ###
--------------------------------------------------
This plugin allows to add a new layer (CAD Layer). The schema of this layer is already defined following DXF schema from Michaël Michaud DXF PlugIn.
- There is a LAYER attribute. The values added in this field can be saved by DXF PlugIn saves to CAD Layers
- TEXT elemets are defined by TEXT, TEXT_HEIGHT, TEXT_ROTATION and TEXT_STYLE attributes. User can input TEXT information using the attribute table
- There is a COLOR field to define primary ACAD color (ACAD 0 = black, ACAD 2 = red, etc)
- All these CAD elements (TEXT and COLOR) are already defind in the style. So, if user adds on the attribute table the value "2" in the COLOR filed of a feature, this feature just turn in red color on the workbench view
This plugin was developed in support of DXF Plugin to make easier the transformation of GIS informations to CAD elements
------------------------------------------------------
### LAYER TREE > STYLE > APPLY STYLE TO CAD LAYER ###
------------------------------------------------------
This menu and conresponding plugins are developed in support of DXF files loaded using DXF import Plugin
On this submenu there are two options
- Display all features with true colors
This option allows to display all cad features with their original colors. The texts are also displayed according to TEXT dimensions and rotations.
Only ACAD color from 0 to 9 are supported right now. Which means at least 90% of the used color in the CAD topographic maps (at least in Italy).
- Display all features in dark grey color
This option allows to display all cad features in a unique dark grey color. All text are displayed and also text dimension and text rotation.
This option is useful when a CAD thopographic map is used as base for other thematic maps (geological, geomorphological, vegetation, maps of idraulic or idrogeological rescues, etc)
--------------------------------------------------
### Left Click "Tool" menu on selected feature ###
--------------------------------------------------
Left Click is always very pratical if the user has to edit/modify features. Sub menu "Tools" on left click is place for some very useful tools.
The idea comes from typical drawing software, like Inkscape or similar.
- Select feature tool
- Feature info tool. Deriving for the one on toolbar. This tool works very well on editing. Try to a) draw a polygon b) click on this Feature info to change/write attributes c) the cursor turs automatically on drawing - there is no need to click on the specific tool on "Editing toolbox"
- Move selected items
- Rotate selected featur. Note that if you click on this tool and than on Shift key, the cursor turns to a cross, user can click on any point of the view which becomes the center of rotation (this is a hidden trick of OpenJUMP)
- Duplicate items. The same which is available on Geometry>Modify menu on Menu Bar
- Move vertex tool.
-----------------------------------------------------------------------------------------------------------------------------------------------
Source: readme.txt, updated 2011-11-19