How to create a Geo Plugin for DXF files

From Tygron Preview Support Wiki
Revision as of 10:43, 1 November 2023 by Rudolf@tygron.nl (talk | contribs)
Jump to navigation Jump to search

A Geo Plugin can be used to automatically match features to functions when importing a DXF file. This how-to describes how to edit an existing Geo Plugin.

Editor → Tools (Ribbon tab) → Geo Plugins (Ribbon bar)
How to Edit a Geo Plugin for use in the geo data wizard:
  1. Open Geo Plugins by going to Tools --> Geo Plugins
  2. Switch to the GeoLinks tab of the Geo Plugin detail panel.
  3. Add a new Geo Link.
  4. Switch to the "Matching Attributes" tab in the Bottom panel of the Editor.
  5. Click on the Add button below Attributes. A new attribute is added.
  6. Double click on the new attribute and rename it LAYER
  7. Next, click on the add button below Values. A new layer value has been added.
  8. Double click on the new value and rename it as desired. This will in effect be the name of the DXF layer in AutoCAD.
  9. Switch back to the "General" tab of the GeoLink.
  10. Give the name of the Geo Link in the Name field.
  11. Set the "Function" of the GeoLink to the desired Function to create.
  12. If applicable (e.g. for trees), set the "Geometry" setting to RADIUS_CENTERPOINT.
  13. Leave all other settings as default.
  14. 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

See also