Replies: 2 comments 5 replies
-
SVG2GeoJSON (lossy conversion)As I see, your Another option is to create GeoJSON is to reuse algorithm from SVG2GeoJSON¹, which is forked from Coördinator² (SVG into XY coordinates converter):
SVG2DXF (lossy conversion)Yet another option is convert from SVG to DXF and import DXF into Mapper (via built in GDAL importer). For SVG2DXF conversion its possible to use Inkscape app or ezdxf lib:
SVG2OMAP (lossless conversion)Few years ago I was digging into SVG and OMAP file formats specification. As both has some similar point coordinate semantic, it is possible direct copy-paste object coordinates from SVG-file directly into OMAP-file:
NOTE: Map coordinates (in mm) are used for both SVG and OMAP path point coordinates, but there are little markup difference in its semantic. So, no additional projection conversion would be needed. I would recommend to investigate this way to create much better SVG2OMAP converter, preserving Bézier curves and (and then convert it to Python extension for Inkscape app). |
Beta Was this translation helpful? Give feedback.
-
Fellow Mappers,
I have created a tool for importing an SVG file (with some limitations). It can be used for map marginalia created in programs such as Inkscape and Illustrator.
If interested, please try it out! You can find it here: https://github.com/rhansson/svg2omap
and let me know what you think.
Cheers
Roland
Beta Was this translation helpful? Give feedback.
All reactions