[GRASS-dev] PyGRASS vector operations
Adrien ANDRÉ
adrien.andre at onf.fr
Mon Feb 23 11:36:20 PST 2015
Dear list,
having a point, a radius and contour lines, i'd like to build a vector
map of segments, from the point to intersections of countour lines with
the point buffer of the given radius (the attached image might be clearer).
Traditionnaly, i'd use v.buffer, v.overlay op=and, v.to.points use=node
and then build the segments.
Is it possible to achieve this with PyGRASS without creating, opening
and closing temp maps for each step (i.e. pygrass.modules.Module call)?
Or do i have to use the GDAL Python API?
http://pcjericks.github.io/py-gdalogr-cookbook/geometry.html#calculate-intersection-between-two-geometries
for example.
Thank you in advance for any help.
Regards,
Adrien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buffer_contour_intersection.png
Type: image/png
Size: 48077 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150223/64bb0987/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adrien_andre.vcf
Type: text/x-vcard
Size: 432 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150223/64bb0987/attachment-0001.vcf>
More information about the grass-dev
mailing list