mapper
mapper copied to clipboard
import SVG
mmaddin reported on Sourceforge [tickets:#276]:
It would be nice to be able to import SVG files, e.g. logos.
Somebody posted on Sourceforge:
COOL! It's must be future with "major" priority! SVG must imported as is! Curves in SVG will be imported as Curves into Mapper!
Eugeniy Fedirets
https://github.com/RazrFalcon/resvg seems to be another active open source SVG project with Qt bindings. However, it requires Rust to build.
Hi, I have created a tool for importing SVG. Have a look: https://github.com/rhansson/svg2omap
There are two possible ways to implement import SVG vector graphics into Mapper:
- Import SVG 'as is' with preserving Bézier curves and as much of original vector data as possible.
- Import SVG path curves as polygonal chainwith adjustable curves steps (chord tolerance).
As example of the 2nd way implementation, there is "ImportVec" plugin for JOSM which could be used to import (convert) SVG paths as polygons into OSM (GPX, GeoJSON) layer:
- https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ImportVec
- https://github.com/JOSM/josm-plugins/tree/master/importvec
