Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-29 Thread Eric Goddard
Problem solved, triggering from the raster menu didn't work, but going through the raster toolbar did work. for action in iface.rasterToolBar().actions(): if action.objectName() == 'mActionRunGeoref': georef = action georef.trigger() On Mon, Mar 28, 2016 at 12:36 PM, Eric Goddard

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-28 Thread Eric Goddard
Thanks Nathan, looking forward to 2.16 :) In the meantime I'm working on a plugin similar to the ArkPlan georeferencer (using the GeorefGraphicsView from ArkPlan) , but I'm going to temporarily use the hacky solution until I can get that finished, which brings me to my next question: If I I

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-26 Thread Nathan Woodrow
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 wrote: > On 26 March 2016 at 00:03, Eric Goddard wrote: > > Awesome, thanks John. We have about the same number of

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-26 Thread John Layt
On 26 March 2016 at 00:03, Eric Goddard 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

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread Eric Goddard
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

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread John Layt
On 25 March 2016 at 20:05, Eric Goddard wrote: > It looks like I can make sure most of the settings are configured > properly using QSettings(), but still not sure how to go about opening > the georeferencer with an image and the output and report fields > pre-populated.

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread Eric Goddard
It looks like I can make sure most of the settings are configured properly using QSettings(), but still not sure how to go about opening the georeferencer with an image and the output and report fields pre-populated. On Fri, Mar 25, 2016 at 7:36 AM, Eric Goddard wrote: >

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread Eric Goddard
Hi Nicolas, Thanks for the feedback. The script solution won't really work for us since we don't have pre-existing GCPs to use in the scripts. We need to use the georeferencer so we can place and make adjustments to the GCPs. Eric On Mar 24, 2016 1:07 PM, "Nicolas Cadieux"

Re: [Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-24 Thread Nicolas Cadieux
Hi, The easiest way probably is to use Python to write a batch files containing the gdal scripts. Then you open this .bat in the Osgeo4w shell and everything gets done. This way, all you need to do is query the file name or directories and add the parameters in the batch file. This is not

[Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-24 Thread Eric Goddard
Hi All, I'm working on a project that involves georeferencing many historic images. We'll have several people working in tandem, so to speed things up and reduce errors I'd like to create a qgis python plugin that, based on the source folder they select, auto populates the gdal transformation