Skip to content

MAPCLEAN — Drawing Cleanup

Fixes drawing errors in map data: duplicates, unbroken crossings, undershoots and overshoots, pseudo nodes and unclosed polygons.

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

  1. Enter MAPCLEAN or click the button.
  2. 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 <*>:
  1. 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.
  2. 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):

ActionWhat it doesDefault
Delete duplicatesDeletes lines or polylines equal to another one (also drawn backwards) with the same properties; the first one stays.Yes, 0.001
Erase short objectsErases objects shorter than the tolerance.No, 0.01
Extend or trim dangling endsA 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 objectsBreaks open lines and polylines where they cross or touch another object.Yes
Snap clustered end pointsMoves end points closer than the tolerance to the same point (the centre of the cluster).Yes, 0.01
Dissolve pseudo nodesJoins 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 verticesRemoves the vertices that lie closer than the tolerance to the remaining line (Douglas-Peucker).No, 0.01
Close polygonsCloses polylines of three or more segments whose end is closer than the tolerance to their start.Yes, 0.01
Erase zero lengthRemoves 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

See also

-MAPCLEAN · OVERKILL · JOIN · MAPEXPORT · Georeferencing

Download LinceCAD Manual contents

Download the free 30-day trial · Open and edit DWG files · AutoCAD LT alternative

Coming from AutoCAD? Check what is compatible · CAD with a perpetual license