2D Tools
Measurement, labeling, collision detection, and export in the 2D CAD Viewer.
Measurement Tool
Distance Measurement
- Activate the Measure tool ( or key
M) - Click on the start point
- Click on the end point
- The distance is displayed as a line with a label
The measurement shows:
- Distance in the current unit (meters, if CRS is defined)
- Measurement points as colored markers
- Measurement line between the points
Area Measurement
- Activate the Measure tool ()
- Click successively on the vertices of the area
- Double-click to close the polygon
- The area and perimeter are displayed
Coordinate Display
The 2D Viewer shows the current cursor coordinates in real time (bottom left of the viewer). The coordinates use the CRS of the active layer.
Clearing Measurements
- Key
Delete/Backspace- Clear all measurements - → "Clear Measurements" in the toolbar
Snapping
When snapping is active, measurement points automatically snap to existing feature vertices for precise measurements.
Labels
Display automatic feature labels on the drawing.
Activating Labels
Click in the toolbar or press L.
Configuration
Labels can be configured:
| Setting | Description |
|---|---|
| Attribute | Which DXF attribute is used as label text |
| Font size | Size of the labels |
| Color | Text and background color |
| Style presets | Predefined label styles |
Collision Avoidance
The system uses a quadtree algorithm to automatically hide overlapping labels. Only labels with sufficient space are displayed.
Auto-Update
Labels are automatically updated when you zoom or pan. At closer zoom levels, more labels become visible.
2D Collision Detection
Detect overlaps between features of different 2D layers.
Starting Collision Detection
- Click → "Collision Detection" in the toolbar
- Select the first layer (Layer A)
- Select the second layer (Layer B)
- Click "Start Detection"
Results
The collision detection uses Shapely/STRtree for fast spatial analysis:
| Column | Description |
|---|---|
| Feature A | Element from Layer A |
| Feature B | Element from Layer B |
| Type | Type of overlap (intersection, touching, containment) |
| Area | Overlap area (m²) |
Viewing a Collision
Click on a row in the results list:
- The colliding features are highlighted
- The view zooms to the overlap
Common Use Cases
- Utility line collisions in site plans
- Overlap of construction areas and existing trees
- Setback area verification
Export
Export Formats
| Format | Description | Use Case |
|---|---|---|
| PNG | Raster image | Presentations, reports |
| SVG | Vector graphic | Scalable output, printing |
| GeoJSON | Geodata format | GIS post-processing |
| DXF | CAD exchange | Return to CAD software |
Performing an Export
- Click → "Export" in the toolbar
- Select the format
- Configure the options:
PNG Options:
- Scale - Resolution (1x, 2x, 4x)
- Background - Transparent or colored
- Include basemap - Export background map as well
SVG Options:
- Preserve layers - Separate SVG groups per layer
GeoJSON Options:
- CRS - Coordinate system of the output
- Layers - Which layers to export
DXF Options:
- Version - DXF version for the output
- Click "Export"
- The file is automatically downloaded
Keyboard Shortcut Reference
| Key | Function |
|---|---|
F / H / V | Fit all to view |
+ / = | Zoom in |
- | Zoom out |
S | Select tool |
P | Pan |
M | Measure tool |
I | Identify |
L | Toggle labels |
Space (hold) | Temporary pan |
Ctrl + A | Select all features |
Escape | Cancel tool / reset |
Delete / Backspace | Clear measurements |
See Also
- 2D CAD Viewer - Overview and navigation
- 2D Layers & Import - Layer management and data import
- Collision Detection - 3D collision detection
- Measurement Tool - 3D measurement tool