3

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 ?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Antoine
  • 31
  • 4
  • 1
    Dear Antonie, do you have made some progress on this? I'm facing a similar problem. How did you solve it? – otmezger Aug 02 '22 at 09:50

0 Answers0