[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-user
Subject:    Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties
From:       Nathan Woodrow <madmanwoo () gmail ! com>
Date:       2016-03-26 13:50:57
Message-ID: CAAi8Yg-b_vxa8jNfE8rb2hnJFKPEjiTtghbOEsnO6ASziXne8g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Don't stress. I'm going to move it to core in 2.16. Will let you know once
it's done.

- Nathan

On Sat, 26 Mar 2016 11:21 pm John Layt <jlayt@kde.org> wrote:

> On 26 March 2016 at 00:03, Eric Goddard <egoddard1010@gmail.com> wrote:
> > Awesome, thanks John. We have about the same number of images to georef
> so
> > that will be a big help. I looked at the georeferencer code which is how
> I
> > discovered that some of the properties were stored in QSettings. I'm not
> too
> > familiar with c++ though, but since the qgis api can be used to do custom
> > applications I was hoping for a constructor for the georeferencer that I
> > could use.
>
> I did look at forking the C++ georeferencer and adapting it, or
> perhaps creating my own python bindings using SIP, but the thought of
> having to maintain and install compiled versions for all three
> platforms just seemed more hassle, even though I am a C++ developer.
>
> Trying to think of hacky ways to do this you could trigger the
> mActionRunGeoref QAction via QgisInterface.rasterMenu().actions(), but
> that would only open the georeferencer, it wouldn't get you having the
> right file preselected, there simply isn't an api or setting to do
> that. I guess it would allow you to have a plugin that when clicked on
> presets the settings you need (including directory) before launching
> the georeferencer.
>
> The ideal would be to move a lot of the code into the public api with
> python bindings and have a processing plugin so it can be python
> scriptable, but I just don't have the time to do that. One day the
> poor usability will get too much though and I will fix it...
>
> John.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Attachment #5 (text/html)]

<span>Don&#39;t stress. I&#39;m going to move it to core in 2.16. Will let you know \
once it&#39;s done.</span><div><br></div><div>- Nathan  <br><br><div \
class="gmail_quote"><div dir="ltr">On Sat, 26 Mar 2016 11:21 pm John Layt &lt;<a \
href="mailto:jlayt@kde.org">jlayt@kde.org</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">On 26 March 2016 at 00:03, Eric Goddard &lt;<a \
href="mailto:egoddard1010@gmail.com" target="_blank">egoddard1010@gmail.com</a>&gt; \
wrote:<br> &gt; Awesome, thanks John. We have about the same number of images to \
georef so<br> &gt; that will be a big help. I looked at the georeferencer code which \
is how I<br> &gt; discovered that some of the properties were stored in QSettings. \
I&#39;m not too<br> &gt; familiar with c++ though, but since the qgis api can be used \
to do custom<br> &gt; applications I was hoping for a constructor for the \
georeferencer that I<br> &gt; could use.<br>
<br>
I did look at forking the C++ georeferencer and adapting it, or<br>
perhaps creating my own python bindings using SIP, but the thought of<br>
having to maintain and install compiled versions for all three<br>
platforms just seemed more hassle, even though I am a C++ developer.<br>
<br>
Trying to think of hacky ways to do this you could trigger the<br>
mActionRunGeoref QAction via QgisInterface.rasterMenu().actions(), but<br>
that would only open the georeferencer, it wouldn&#39;t get you having the<br>
right file preselected, there simply isn&#39;t an api or setting to do<br>
that. I guess it would allow you to have a plugin that when clicked on<br>
presets the settings you need (including directory) before launching<br>
the georeferencer.<br>
<br>
The ideal would be to move a lot of the code into the public api with<br>
python bindings and have a processing plugin so it can be python<br>
scriptable, but I just don&#39;t have the time to do that. One day the<br>
poor usability will get too much though and I will fix it...<br>
<br>
John.<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" \
target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a \
href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" \
                target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" \
rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div></div>



[Attachment #6 (text/plain)]

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic