2D Layers & Import
Manage CAD layers, import data from various sources, and configure the display.
Importing Layers
Upload DXF/DWG
- Open the Layers panel ()
- Click "Add Layer"
- Select "Upload DXF/DWG"
- Choose the file
- The layer is parsed and rendered
Alternatively: Drag & drop the file directly into the 2D Viewer.
Supported DXF Versions
All DXF versions are supported (AutoCAD 2000 through current). DWG files are converted server-side via ezdxf.
WFS Import
Connect to Web Feature Services for live geodata:
- Click "Add Layer" → "WFS Import"
- Enter the WFS URL
- Click "Connect"
- Select the desired layer from the list
- Optional: Define a bounding box
- Click "Import"
WFS Sources
Typical WFS sources: land surveying agencies, tree cadastres, utility networks (gas, water, electricity).
GeoJSON Import
- Click "Add Layer" → "GeoJSON Import"
- Select the
.geojsonor.jsonfile - The coordinate system is automatically detected
- The data is rendered as a new layer
Layers Panel
The Layers panel () shows all loaded layers:
Layer List
| Element | Function |
|---|---|
| Visibility | Show/hide layer |
| Layer name | Click to select |
| Expand | Show sublayers |
| Style | Open style dialog |
| Delete | Remove layer |
Reorder Layers
Drag & drop layers to change their order. Layers higher in the list are drawn on top of those below.
Zoom to Layer
Double-click on a layer name to fit the view to that layer's content.
Sublayers & Classes
Sublayer Tree
Each DXF layer contains sublayers (AutoCAD layers). Expand a layer to see its sublayers:
- Checkbox - Show/hide sublayer
- Name - AutoCAD layer name
- Feature count - Number of elements
Class Filter
The class filter enables targeted display of specific feature classes:
- Open the Layers panel
- Select a layer
- Click "Class Filter"
- Use the checkboxes to show/hide classes
| Action | Function |
|---|---|
| Show All | Show all classes |
| Hide All | Hide all classes |
| Invert | Invert visibility |
| Search | Filter classes by name |
Class Fields
You can choose which attribute forms the classes (e.g., layer, color, linetype). Switch between class fields via the dropdown.
Layer Styling
Style Dialog
Click next to a layer to edit the style:
| Property | Description |
|---|---|
| Color | Line and fill color |
| Line width | Stroke width in pixels |
| Opacity | Transparency (0–100%) |
ACI Colors
DXF files use the AutoCAD Color Index (ACI). These colors are automatically detected and applied. You can override ACI colors per class.
Class Styling
Customize colors per class:
- Open the Class Filter
- Click the color swatch next to a class
- Choose a new color
- The change is applied immediately and saved in the browser
Basemaps
Display a background map to see CAD data in geographic context.
Activating a Basemap
- Click "Basemap" in the toolbar
- Choose a map:
| Basemap | Description |
|---|---|
| OpenStreetMap | Standard street map |
| Satellite | Aerial/satellite imagery |
| None | Disable basemap |
- Adjust the opacity with the slider
Coordinate System Required
Basemaps only work if the CAD layer has a valid coordinate system (EPSG code). Make sure your DXF file is georeferenced.
Coordinate Reference Systems
The 2D Viewer supports various coordinate reference systems (CRS):
| EPSG | Name | Usage |
|---|---|---|
| 25832 | ETRS89 / UTM zone 32N | Germany (standard) |
| 4647 | ETRS89 / UTM zone 32N (N-zE) | NRW standard |
| 4326 | WGS 84 | GPS / International |
| 3857 | Web Mercator | Online maps |
| 31467 | Gauss-Krüger zone 3 | Historic DE |
Setting the CRS
- Open the Layers panel
- Select a layer
- Click "Coordinate System"
- Enter the EPSG code or choose from the list
Automatic Detection
When importing WFS and GeoJSON data, the coordinate system is automatically detected. For DXF files, it may need to be set manually.
See Also
- 2D CAD Viewer - Overview and navigation
- 2D Tools - Measurement, labeling, collision, and export
- GIS Integration - GIS data and IFC generation