Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

i'm building a QGIS-Plugin and i want the user to choose a CRS out of a combobox in which the coordinates he would enter into some textfields are represented, so these can be converted into another projection.

Is it possible to get a list of all the currently available projections via the PyQGIS-API?

I'm searching the QGIS-API right now, but no luck so far.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The projections available in Qgis are stored in a sqlite database called srs.db, found in apps/qgins/resources. The data is stored in the tbl_srs table.

For a python approach, you can look into the transformation tools plugin. selectCrsDlg.py should have the data you want.

share|improve this answer
    
thanks. exactly what i needed. –  Docnaut Feb 4 '13 at 14:49

Your Answer

 
discard

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.