[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 ___

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

2016-09-30 Thread Eric Goddard
gt; > Cheers > > 2016-09-30 16:07 GMT+02:00 Etienne Trimaille <etienne.trimai...@gmail.com>: >>> AttributeError: class Processing has no attribute 'Initialize' >> >> Did you try : 'initialize' ? >> According to >> https://github.com/qgis/QGIS/blob/mas

[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

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

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

2016-05-01 Thread Eric Goddard
is 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 <wonder...@gmail.com> wrote: > Hi Eric > > On Sat, Apr 30, 2016 at 12:06 AM, Eric Goddard <egod

[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
unable to run a grass algorithm when the grass_region_parameter and grass_region_cellsize_parameter are set to None. Thanks, Eric On Mon, Mar 24, 2014 at 10:13 PM, Eric Goddard egoddard1...@gmail.com wrote: Oops, my mistake. I have ##lrm=output raster in the header, but lpf = ... Is the only line

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

2014-03-25 Thread Eric Goddard
a dict with 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 egoddard1...@gmail.com: 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-24 Thread Eric Goddard
. Sorry about the confusion! Eric On Mar 22, 2014 5:06 PM, Eric Goddard egoddard1...@gmail.com 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 vola...@gmail.com wrote: If I run the same line in the python

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

2014-03-22 Thread Eric Goddard
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 egoddard1...@gmail.com wrote: 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

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 vola...@gmail.com 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,

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

2014-03-16 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

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

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

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:

[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

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 matthias.k...@gmx.ch wrote: Hi Eric, On Mon 27 Jan 2014 20:21:35 CET, Eric Goddard wrote: Hi all