MAPCLEAN — Drawing Cleanup
Fixes drawing errors in map data: duplicates, unbroken crossings, undershoots and overshoots, pseudo nodes and unclosed polygons.
- Command:
MAPCLEAN· Global name:_MAPCLEAN - Ribbon: Mapping › Geolocation
- Menu: Mapping
Fixes drawing errors in map data, like Drawing Cleanup in AutoCAD Map 3D: repeated lines, crossings that are not broken, ends that fall short of another line or run past it, nodes that almost coincide, lines split for no reason (pseudo nodes), extra vertices and polygons that are not closed. Use it before exporting to a GIS, measuring areas or preparing a cadastral GML.
Usage
- Enter MAPCLEAN or click the button.
- Select the lines and polylines and press Enter, or choose laYers (Y) and enter the layer names separated by commas (
*for all). Objects already selected are used.
Select objects or [laYers]: Layer names separated by commas or * for all <*>:
- The Drawing Cleanup dialog box opens: check the actions you want and their tolerance and, if you only want to see the errors, mark only. OK cleans.
- The command line reports how many fixes of each type were made.
Actions
They are applied in this order, each with its tolerance (in drawing units):
| Action | What it does | Default |
|---|---|---|
| Delete duplicates | Deletes lines or polylines equal to another one (also drawn backwards) with the same properties; the first one stays. | Yes, 0.001 |
| Erase short objects | Erases objects shorter than the tolerance. | No, 0.01 |
| Extend or trim dangling ends | A dangling end that falls short of another object by less than the tolerance is extended to it (along its last segment); if it crosses it and runs past by less than the tolerance, it is trimmed at the crossing. | Yes, 0.05 |
| Break crossing objects | Breaks open lines and polylines where they cross or touch another object. | Yes |
| Snap clustered end points | Moves end points closer than the tolerance to the same point (the centre of the cluster). | Yes, 0.01 |
| Dissolve pseudo nodes | Joins into one polyline the two lines that meet at an end where there is nothing else, if they have the same properties and data. | Yes |
| Simplify vertices | Removes the vertices that lie closer than the tolerance to the remaining line (Douglas-Peucker). | No, 0.01 |
| Close polygons | Closes polylines of three or more segments whose end is closer than the tolerance to their start. | Yes, 0.01 |
| Erase zero length | Removes repeated vertices and erases what is left without length. | Yes |
Mark only
With mark only the drawing does not change: every fix that would be made is marked with a circle on layer LIMPIEZA_ERRORES, in the colour of its type (1 red: duplicates; 2 yellow: short; 3 green: extend or trim; 4 cyan: crossings; 5 blue: snapped ends; 6 magenta: pseudo nodes; 7 white: vertices; 8 grey: unclosed polygons; 9 light grey: zero length). Check the marks and delete the layer when you are done.
Notes
- Flat lines and polylines without arcs are processed; anything else selected is left as it is and counted.
- Closed polylines (polygons, parcels) are neither broken nor joined; they do cut the open ones that cross them.
- When breaking or joining, each piece keeps the layer, colour, linetype and extended data of the original. A line joined with another one becomes a polyline.
- Self-crossings of a polyline are not broken. Collinear overlaps are a job for OVERKILL.
- Everything is undone at once with UNDO.
See also
-MAPCLEAN · OVERKILL · JOIN · MAPEXPORT · Georeferencing