Skip to main content
formatting
Source Link
Oscar Campo
  • 556
  • 2
  • 17

If you want the bounding box of every selected feature:

layer = iface.activeLayer()
for feature in layer.selectedFeaturesIterator():
    print feature.geometry().boundingBox () 

If you want the bounding box of every selected feature:

layer = iface.activeLayer()
for feature in layer.selectedFeaturesIterator():
    print feature.geometry().boundingBox () 

If you want the bounding box of every selected feature:

layer = iface.activeLayer()
for feature in layer.selectedFeaturesIterator():
    print feature.geometry().boundingBox() 
Post Undeleted by Oscar Campo
Post Deleted by Oscar Campo
Source Link
Oscar Campo
  • 556
  • 2
  • 17

If you want the bounding box of every selected feature:

layer = iface.activeLayer()
for feature in layer.selectedFeaturesIterator():
    print feature.geometry().boundingBox ()