0

I try to create a line with two points. These points are obtained in a shapefile layer.

How can I convert that points to decimals?

2
  • 2
    Could you clarify what you are looking for? After all, converting a (geometric) point into a "decimal" makes no sense on the face of it. Are you asking, perhaps, for a base-ten decimal representation of point coordinates to be output? (If so, what does that have to do with creating a line [segment] from two points?)
    – whuber
    Commented May 20, 2013 at 12:50
  • I take two points from shapefine and I want to create a line with QgsVectorLayer. I need points in decimals to the function QgsGeometry.fromPolyline Commented May 20, 2013 at 13:46

1 Answer 1

1

This functionality is covered in "Points2One" and "Points to Paths" plugins. You can take code from there.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.