JOSM/Plugins/CADTools

From OpenStreetMap Wiki
< JOSM‎ | Plugins
Jump to: navigation, search

Introduction

CAD Tools plugin allows the user to make CAD-like edits of map elements.

Note: User interface is recently modified. We ask for feedback


Summary

CAD Tools is a tool group with recently 8 different tools. This plug in was developed with 6 functions as a diploma thesis (paid by the company Elektrobit Automotive) of Anamaria Rotariu and supervision from Marek Strassenburg-Kleciak. Recently version with new tools is developed by user Cetusek from Poland.

Description

  • Plugin Building generalization
  • From irregular polygon to regular polygon - redraws the selected shape so it looks like a polygon .
  • Straight way - makes straight the way between two selected points.
  • ' Cut ' corners: edit the corners of a building .
  • From polygon to circle: generation of polygon from 3 given points (points that lie on the circle).
  • From polygon to - generation of regular ellipse consisting of 4 x n edges.
  • Mirror reflection: generates a mirrored copy of activated polygon.
  • Multiply circular: generates n-copies of a polygon around a circle.

Download

https://github.com/ROTARIUANAMARIA/CADTools/raw/master/CADTools.jar

Functions

From irregular polygon to regular polygon

  • First of all, the user has to select as many closed ways as he wants,and after that he can press the specific button.As a result,those buildings are converted to regular polygons.

Make closed polygon (mostly building=yes) straight

  • First of all, the user has to select two nodes from one closed way (building), and after that he can press the specific button.As a result, the segments between these two points are deleted.

Note: all angles smaller than 85° and bigger than 95° remain unchanged. These values can be changed in preferences.

' Cut ' corners

  • First of all, the user has to select as many closed ways as he wants, and after that he can press the specific button. As a result, the corners of those objects (mostly building=yes) are changed (cutted).

Note: the user may specify the value (radius) for cutting. Reason for this function: More precisely drawing of objects (mostly buildings) with cutted with 45° corners.

There are two ways of cutting:

  1. Percentage of the wall lenght
  2. Absolutely lenght of the wall which should be cutted.

Both functions allows cutting with rounding of cutted corners (comes soon)

From circle to regular polygon with defined nr.of corners

  • First of all, the user has to select exactly three points that are representative for an imaginary circle (these points must not be connected) - the imaginary circle will pass through these points. After that, he can press the specific button and he has to write into the "No. of segments text box" the number of edges for the resulting polygon.

From polygon to ellipse

  • The first way the user can do this is to select exactly three points - the last selected point always has to be the center of the ellipse. After that,the user can press the specific button and he has to write into the "No. of segments text box" the number of edges for the resulting polygon. The final polygon will have 4 * no. of edges segments.
  • The second way the user can achieve this, is to select one rectangle (or many rectangles). After that,the user can press the specific button and he has to write into the "No. of segments text box" the number of edges for the resulting polygon. The final polygon will have 4 * no. of edges segments.

Mirror copy

Activate polygon with minimum 3 points. Klick the button "mirror copy".

Mirror copy 1.png
Mirror copy 2.png

Examples

  • From irregular polygon to regular polygon

Before 1.png After 2.png

  • Make closed polygon straight

Before 3.png After 4 1.png


  • ' Cut ' corners

Before 5.png After 1 6.png


After2 (second iteration) 7.png

  • From polygon to circle

Before 8.png After 9.png

  • From polygon to ellipse using rectangles

Before 10.png After 11.png

  • From polygon to ellipse using three known points

Before 12.png After 13.png