<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px">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].<div>
Otherwise, if Python performance would suffice, you could grab the low level math from QgsGeorefTransform and QgsLeastSquares [2] and translate it to Python.</div><div><br></div><div>giovanni</div><div><br></div><div>[1] <a href="https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsgeoreftransform.cpp" target="_blank">https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsgeoreftransform.cpp</a></div>
<div>[2] <a href="https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsleastsquares.cpp" target="_blank">https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsleastsquares.cpp</a></div><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-19 16:32 GMT+02:00 G. Allegri <span dir="ltr"><<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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].<div>
Otherwise, if Python performance would suffice, you could grab the low level math from QgsGeorefTransform and QgsLeastSquares [2] and translate it to Python.</div>
<div><br></div><div>giovanni</div><div><br></div><div>[1] <a href="https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsgeoreftransform.cpp" target="_blank">https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsgeoreftransform.cpp</a></div>

<div>[2] <a href="https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsleastsquares.cpp" target="_blank">https://github.com/qgis/QGIS/blob/master/src/plugins/georeferencer/qgsleastsquares.cpp</a></div></div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">2014-05-19 16:10 GMT+02:00 Felix Schmidt <span dir="ltr"><<a href="mailto:felix.schmidt@uni-weimar.de" target="_blank">felix.schmidt@uni-weimar.de</a>></span>:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Giovanni,<br>
thanks for your answer. Do you think it is easier to write the Plugin for the historical border extraction in c++ instead of python, cause of the binding implementation?<br>
<br>
Felix<br>
<br>
Am 19.05.2014 14:52, schrieb G. Allegri:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Felix,<br>
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.<br>
</blockquote>
<br>
</blockquote></div></div></div><br><br clear="all"><div class=""><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>
Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div></div>