Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I'm developing a plugin in python for Qgis.

I would like the user to select a particular area in a list (let say a country list) and zoom in the map on the corresponding area.

Actually I'm doing it 'ugly':I create a layer (from a wkt), zoom to this particular layer, and delete this layer...

Is there a way to do it properly ?

share|improve this question

Try this:

rect = geometry.boundingBox()
share|improve this answer
The problem with this, is that some other plugins does the same at launch time. – Djabx Jul 24 '12 at 9:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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