Skip to main content
Post Reopened by tinlyx, whyzar, JGH, Bera, xunilk
added 288 characters in body
Source Link
natsuapo
  • 593
  • 4
  • 19

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console like the bounding of yellow regions the figure shows.

What is the easiest method to do it?

enter image description here

p.s. I have tried to use layer.selectedFeatures() but it just extract the list of selected features but cannot directly get the bounding info.

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console.

What is the easiest method to do it?

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console like the bounding of yellow regions the figure shows.

What is the easiest method to do it?

enter image description here

p.s. I have tried to use layer.selectedFeatures() but it just extract the list of selected features but cannot directly get the bounding info.

Post Closed as "Not suitable for this site" by PolyGeo
added 2 characters in body; edited tags; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Easiest method to get the Getting bounding box of a selected region through pyqgisPyQGIS?

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console. 

What is the easiest method to do it?

Easiest method to get the bounding box of a selected region through pyqgis

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console. What is the easiest method to do it?

Getting bounding box of a selected region through PyQGIS?

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console. 

What is the easiest method to do it?

Source Link
natsuapo
  • 593
  • 4
  • 19

Easiest method to get the bounding box of a selected region through pyqgis

Assume I have selected several features of a layer in QGIS and I would like to get the bounding information of the whole selected area through python console. What is the easiest method to do it?