How to create a Geo Plugin for DXF files
Revision as of 13:12, 22 December 2023 by Maxim@tygron.com (talk | contribs)
A Geo Plugin can be used to automatically match features to functions when importing a DXF file.
How to create a Geo Plugin for DXF files:
- Open Geo Plugins by going to Tools → Geo Plugins
- Switch to the GeoLinks tab of the Geo Plugin detail panel.
- Add a new Geo Link.
- Switch to the "Matching Attributes" tab in the Bottom panel of the Editor.
- Click on the Add button below Attributes. A new attribute is added.
- Double click on the new attribute and rename it LAYER
- Next, click on the add button below Values. A new layer value has been added.
- Double click on the new value and rename it as desired. This will in effect be the name of the DXF layer in AutoCAD.
- Switch back to the "General" tab of the GeoLink.
- Give the name of the Geo Link in the Name field.
- Set the "Function" of the GeoLink to the desired Function to create.
- If applicable (e.g. for trees), set the "Geometry" setting to RADIUS_CENTERPOINT.
- Leave all other settings as default.
- Repeat the creation of a GeoLink and its configuration, for each type of Function which should be created.
Notes
- A Geo Plugin created through this process can also be linked to a Project Source referring to a DXF on the Geo Share, so that data from that DXF is automatically included in new Projects. To set this up, select that Project Source as source for this Geo Plugin, and ensure the "Use for New Projects" option is checked.
- Due to how new Projects are generated, if a (Buildings) Geo Plugin is set to be usable during Project creation it does not allow setting Geo Links to road Functions. To create roads during Project generation, use a Roads Geo Plugin.
- A Geo Plugin created through this process can also be used automatically define the mapping when the data originates from other data sources, such as GeoJSONs or WFSs.
- If a layer in the DXF file contains features which should be loaded in as different Functions, such as a layer indicating different types of housing, those features should be distinguishable by color or block name. In that case, after adding a LAYER attribute mapping, a second attribute can be added for either COLOR or BLOCK_NAME, so create a Geo Link which will assign a Function if a feature in that layer also has that specific color.
How-to's
- How to import a DXF
- How to export a DXF reference file for a project
- How to import AutoCAD BLOCKS with attributes
- How to set the geo-location of a AutoCAD DXF
- How to set the unit of measurement for a DXF
- How to create a Geo Plugin to import Buildings from a DXF
- How to deal with a long processing DXF import