<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
@Matthias: what do you mean with: <br>
<div class="moz-cite-prefix">Am 19.05.2014 16:41, schrieb Matthias
Kuhn: "the code is not exported to the gui or core libraries/sip
modules"?<br>
<br>
</div>
<blockquote cite="mid:537A17FF.3070009@gmx.ch" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
It will not be so easy to just write wrappers because the code is
not exported to the gui or core libraries/sip modules.<br>
I have written code that makes it possible to generate python
bindings for (C++) plugins and I'm considering creating a
pull-request for it.<br>
<br>
Matthias<br>
<br>
<br>
<div class="moz-cite-prefix">On 05/19/2014 04:33 PM, G. Allegri
wrote:<br>
</div>
<blockquote
cite="mid:CAB4g1=z1P1WTvR=TSo3m_YrwBoezA3u+HRnRDQ-=uWUDi_G2tA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://about.me/giovanniallegri"
target="_blank">http://about.me/giovanniallegri</a>
<div> Twitter: <a moz-do-not-send="true"
href="https://twitter.com/_giohappy_"
target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a moz-do-not-send="true"
href="http://blog.spaziogis.it"
target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a
moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a>
<div>Twitter: <a moz-do-not-send="true"
href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a moz-do-not-send="true"
href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a moz-do-not-send="true"
href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>