[Qgis-developer] QGIS 2.18.4, splitting a curve results in line geometries

2017-03-03 Thread Eric Goddard
Hi everyone, I have some MultiCurve geometries in PostGIS. When I split a curve in QGIS, both of the new geometries are converted to linestrings. I couldn't find anything from googling, so I'm not sure if this is a known issue. Thanks, Eric ___ Qgis-dev

Re: [Qgis-developer] Using Processing in standalone PYQGIS scripts

2016-09-30 Thread Eric Goddard
t; > Cheers > > 2016-09-30 16:07 GMT+02:00 Etienne Trimaille : >>> AttributeError: class Processing has no attribute 'Initialize' >> >> Did you try : 'initialize' ? >> According to >> https://github.com/qgis/QGIS/blob/master/python/plugins/processing/

Re: [Qgis-developer] Using Processing in standalone PYQGIS scripts

2016-09-30 Thread Eric Goddard
t; looks like the docs are outdated and the way to call the algorithm is > now different > > ALGORITHM: Select by location > INPUT > INTERSECT > PREDICATE > PRECISION > METHOD > OUTPUT > > The PRECISION parameter is not documented in the

[Qgis-developer] Using Processing in standalone PYQGIS scripts

2016-09-29 Thread Eric Goddard
Hello everyone, I'm using QGIS 2.16.3 on Ubuntu 14.04 (from the qgis.org/ubuntugis repo with ubuntugis-unstable ppa). I have a geopackage layer (I originally started out with a spatialitelayer, but I kept getting ASSERT: "i.value() == handle" in file /tmp/buildd/qgis-2.16.3+20trusty/src/providers

Re: [Qgis-developer] how to active tool located in standard QGIS toolbar from a plugin

2016-06-09 Thread Eric Goddard
Is this in a pyqgis plugin? You should be able to activate the select tool with iface.actionSelect().trigger(). You can also use actionSelectFreehand(), actionSelectPolygon(), actionSelectRadius(), or actionSelectRectange(). Eric On Thu, Jun 9, 2016 at 8:27 AM Martin Landa wrote: > Hi all, > >

Re: [Qgis-developer] QGIS/Linux on high-resolution displays

2016-06-08 Thread Eric Goddard
Hi Barry, I also have the developer edition of the XPS 13. I've replaced ubuntu 14.04 with Fedora 23, but I think changing the following settings should work for you too. Change the Style, Icon size, and Font sizes in QGIS under Settings -> Options. Changing the Style from GTK+ to Adwaita fixed s

Re: [Qgis-developer] PyQGIS Segmentation fault when reading from Spatialite data source

2016-05-01 Thread Eric Goddard
still different from other data sources. If I connect to a postgis layer, check that it is valid and then call exitQgis(), it doesn't crash. On Sun, May 1, 2016 at 9:22 AM, Martin Dobias wrote: > Hi Eric > > On Sat, Apr 30, 2016 at 12:06 AM, Eric Goddard wrote: >> Hello all, &g

[Qgis-developer] PyQGIS Segmentation fault when reading from Spatialite data source

2016-04-29 Thread Eric Goddard
Hello all, I'm working on a sync script for use with IntraMaps Roam for offline editing. My QGIS version is 2.14.1 (Tested on Fedora 23, Ubuntu 14.04, and Windows 7 x64). I'm using a standalone pyqgis script that creates the connection to the postgis data source and the spatialite datasource that

Re: [Qgis-developer] processing.runalg() issue with grass algorithms

2014-03-25 Thread Eric Goddard
the > outputs of the algorithms. Keys are output names, values are paths to > output objects > > Hope this helps > > 2014-03-25 22:36 GMT+01:00 Eric Goddard : >> Alright, latest master (9e42c5b), with processing version >> 2.0-20131120. Running a custom tool that consists

Re: [Qgis-developer] processing.runalg() issue with grass algorithms

2014-03-25 Thread Eric Goddard
sr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/wx-3.0-gtk2', '/usr/share/qgis/python/plugins/fTools/tools', '/home/eric/Documents'] Running the code in the console completes successfully. However, I'm still unable to run a grass

Re: [Qgis-developer] processing.runalg() issue with grass algorithms

2014-03-24 Thread Eric Goddard
t tomorrow. Sorry about the confusion! Eric On Mar 22, 2014 5:06 PM, "Eric Goddard" wrote: > Ah, I didn't know a file could he specified without a path. Thanks for the > clarification! > On Mar 22, 2014 4:37 PM, "Victor Olaya" wrote: > >> > If I run

Re: [Qgis-developer] processing.runalg() issue with grass algorithms

2014-03-22 Thread Eric Goddard
Ah, I didn't know a file could he specified without a path. Thanks for the clarification! On Mar 22, 2014 4:37 PM, "Victor Olaya" wrote: > > If I run the same line in the python console, it works correctly: > radius = 4 > lpf = processing.runalg("saga:simplefilter", "SR_50M_alaska_nad",

Re: [Qgis-developer] processing.runalg() issue with grass algorithms

2014-03-22 Thread Eric Goddard
/... Any pointers on why the script doesn't run would be appreciated. I didn't see an existing issue on hub.qgis.org regarding the output folder issue, so it might be a new bug... Thanks! Eric On Sun, Mar 16, 2014 at 1:21 AM, Eric Goddard wrote: > Hi all, > > I'm using QGIS

[Qgis-developer] processing.runalg() issue with grass algorithms

2014-03-15 Thread Eric Goddard
Hi all, I'm using QGIS 2.3-Master 64-bit, fa157b0 with GRASS 6.4.4svn on linux. When I pass a grass command to processing.runalg() without specifying the GRASS_REGION_PARAMETER or GRASS_REGION_CELLSIZE_PARAMETER, I get an empty output because the region/cell size are invalid. For example, using t

Re: [Qgis-developer] Problem with GDAL_translate. REST Services, QGIS

2014-03-14 Thread Eric Goddard
Hi Randal, I'm not really sure why gdal isn't creating the xml file. It looks like it is gdal, since using the iface.AddRasterLayer() method produces the same error message as using gdal_translate from the command line. As a work around while that issue is being sorted out, if you download the gd

Re: [Qgis-developer] Run stable and master versions of QGIS on Ubuntu

2014-03-11 Thread Eric Goddard
You could try downloading the source package for gdal and modifying the debian/rules file to add the necessary --with-FileGDB and --with-MRSID=... lines. Installing the modified gdal with the package manager should allow it to be used with the stable QGIS from the ubuntuGIS repo and the development

Re: [Qgis-developer] Finding duplicate records

2014-03-01 Thread Eric Goddard
Python can also be used to find duplicate attributes. It isn't as straightforward as a sql query, but it works. And if your data isnt in spatialite/postGIS, I don't know if you can do a select distinct without creating a more complicated subquery using the expression builder. From the console: fro

Re: [Qgis-developer] Set QgsVectorLayer.EditType to value map and populate value:description pairs with python

2014-01-27 Thread Eric Goddard
Thanks for the info, Matthias. I'm using the development version of QGIS for the relations support. Looking forward to future updates! Eric On Jan 27, 2014 5:40 PM, "Matthias Kuhn" wrote: > Hi Eric, > > On Mon 27 Jan 2014 20:21:35 CET, Eric Goddard wrote: > > Hi

[Qgis-developer] Set QgsVectorLayer.EditType to value map and populate value:description pairs with python

2014-01-27 Thread Eric Goddard
Hi all, I'm running QGIS Master. I would like to update a vector layer's EditType to a ValueMap and pass in the value:description pairs using python. I haven't ever used C++ and am having some difficulty understanding the documentation. Through reading the documentation and trial and error I was a