utility to convert vector maps to polygons
If you have ever found yourself drawing vector maps or diagrams by hand (in Inkscape, XFig, or similar) and need to convert the map to a polygon map, this could be the tool for you (when it's finished).
GDAL has a "Polygonize" utility which converts raster maps to polygons, but it performs poorly on the type of maps used here - it generates polygons, but far too many.
Consider the following four vector paths:
- The first path is abcdefa (black), a polygon
- The second path is cghi (blue). It forms a polygon by connecting up to the first polygon.
- The third path is jklm (red). It, too, forms a polygon only by connecting to other paths.
- The fourth path is nopqn (green), a polygon
The task is to split the vector map into polygons A, B, C, D and E.
Works on paper...
This work is licensed under CC-BY-SA-4.0