[GRASS-dev] bbox of a vector geometry

Anna Petrášová kratochanna at gmail.com
Wed Aug 10 13:11:34 PDT 2016


On Wed, Aug 10, 2016 at 2:01 PM, Helmut Kudrnovsky <hellik at web.de> wrote:
> hi devs,
>
> is there a way to get bboxes of vector geometries (polygones) in a vector
> layer by pygrass/python grassscript and to loop through the bboxes?


I would say, loop through the geometries and use .bbox():

https://grass.osgeo.org/grass70/manuals/libpython/pygrass.vector.html#pygrass.vector.geometry.Line.bbox

>
> thanks
>
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/bbox-of-a-vector-geometry-tp5280283.html
> Sent from the Grass - Dev mailing list archive at Nabble.com.
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list