I have few SVG files (maps) that I want to convert to GEOJson. On those SVG files, two markers (crosses) had been drown in order to georeference the layer. So I know the coordinates of those control points, I am able to calculate the parameters : How to compute parameters for QGIS Affine transformation?.
My plan is :
- Read the SVG file and extract the paths.
- Store the coordinates of the shapes in an array
- Apply the affine transformation
- Write a GEOJson file
I have already extracted the paths with python (svgpathtool), but I have no clue on how to exploit that.
Is there a better way to do that ?
How to translate the path ?