Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-07-29 Thread Olivier Dalang
Hi Felix, Any progress on this ? I've also a case where I'd love to be able to use georeferencer with python... Thanks ! Olivier Dalang --- Digital Humanities Lab (DHLAB) - http://dhlab.epfl.ch EPFL CDH DHLAB / CM 2 271 Station 10 / CH-1015 Lausanne Tel. +41 21 693 02 46 2014-05-19 22:07 GM

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread Felix Schmidt
Thanks a lot for the support, i will read your commit and talk to my team mates on Wednesday. Felix Am 19.05.2014 21:09, schrieb Matthias Kuhn: A pull request is online for review: https://github.com/qgis/QGIS/pull/1370 Please post your comments there if you are interested in this functionali

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread Matthias Kuhn
A pull request is online for review: https://github.com/qgis/QGIS/pull/1370 Please post your comments there if you are interested in this functionality. On Mon 19 Mai 2014 18:55:54 CEST, G. Allegri wrote: > Of course Matthias is right if you want to interface with a plugin > instance running in

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread G. Allegri
Of course Matthias is right if you want to interface with a plugin instance running inside QGIS. That's why I said you could bind only the inner logic of the Georeferencer to use it "outside" the plugin instance. In case you need to control, or get work done from, the Georeferencer plugin itself yo

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread Matthias Kuhn
The python modules gui and core are exported and the "iface" variable (QgisInterface) knows about their presence. But QgisInterface should not have any dependencies on plugin code, therefore it's harder to access this code. It may not be hard if you only make use of code which you use in a stan

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread Felix Schmidt
@Matthias: what do you mean with: Am 19.05.2014 16:41, schrieb Matthias Kuhn: "the code is not exported to the gui or core libraries/sip modules"? It will not be so easy to just write wrappers because the code is not exported to the gui or core libraries/sip modules. I have written code that m

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread G. Allegri
It depends on what parts of the Georeferencer you need. If you don't need the GUI but only the math, you could consider writing a SIP wrapper around QgsGeorefTransformInterface implementations [1]. Otherwise, if Python performance would suffice, you could grab the low level math from QgsGeorefTrans

Re: [Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread G. Allegri
Hi Felix, I fear you will have to write your own bindings if you want to leavarage the Georeferencer plugin code. It's a plugin, so it's functionality isn't exposed through QGIS API. https://github.com/qgis/QGIS/tree/master/src/plugins/georeferencer giovanni 2014-05-19 12:36 GMT+02:00 Felix Schm

[Qgis-developer] Use Georeferencer Core-Plugin with python

2014-05-19 Thread Felix Schmidt
Hello everybody, i am from a project-team of the Bauhaus-University Weimar (Germany). Our Team want to implement a plugin for QGIS, which help help to extract borders of historical maps semi-automatically. We start to write the plugin in python and need now the functionality of the Georeference