Search code examples
canvaspositioncurvegimp

How to discover position of points to draw on Canvas?


I'm making a map on Canvas and I want to find the position of all the points and control points from my curves so I tried on GIMP but I don't know if its the best way to do it. What I want to know is if you guys know a better way than going point to point and looking the position on the ruler? example of what i'm doing


Solution

  • GIMP has an API to extract the points from the "Paths":

    for stroke in path.strokes:
         points,closed=stroke.points
    

    There is a script to export the path points to a CSV, see the path-csv script