Re: [Qgis-developer] create (sub)lines from line between two points

2014-12-18 Thread Bjorn Nyberg
Try grass tool v.splitlines. Cheers Björn On Dec 18, 2014 10:06 PM, "Richard Duivenvoorde" wrote: > Hi List, > > anybody a simple (python) solution for following problem: > > - given a line with 5 vertices (say W-shaped) of total 100 meter > - starting from point 0 on this line I want a set of 1

[Qgis-developer] Processing Tool Multiprocessing

2014-12-04 Thread Bjorn Nyberg
Hi, I was wondering if the scripts built in the processing toolbox support the use of the multiprocessing python module? I have a few standalone ArcGIS scripts that use that module and therefore are quicker and would love to see if I can implement them within QGIS. Cheers, Bjorn __

[Qgis-developer] Installing Python Modules

2014-07-01 Thread Bjorn Nyberg
What are the recommended steps to install additional python modules that are not included in the standard qgis download package? I am trying to share some processing scripts to individuals who are not tech savy when it involves setting up various variables that might be required - instead they are

[Qgis-developer] Map Canvas Current Zoomed Extent

2014-01-13 Thread Bjorn Nyberg
Hi, I had a couple of questions that I was hoping could be answered here on the mailing list. I am trying to write some code to find the current zoomed in rectangular extent of my Map Canvas by the following pyqgis API function

[Qgis-developer] pyQgis QGS intersect

2013-10-02 Thread Bjorn Nyberg
Hi group, I am trying to create a new line feature that extends to the first polygon geometry boundary. Now i can simply do an intersects functionavailable within pyQGIS to determine if it intersects but is there a function to deter

[Qgis-developer] Processing QGIS 2.1.0 Batch Processing Bug?

2013-09-20 Thread Bjorn Nyberg
Hi, Can anyone else confirm this potential bug? Running a Batch Processing of a model I receive the following Error 'BatchProcessingDialog' object has no attribute 'showDebug' See log for more details Uncaught error while executing algorithm Traceback (most recent call last): Traceback (most re

Re: [Qgis-developer] how to distribute Processing modules?

2013-09-15 Thread Bjorn Nyberg
+1 for a processing scripts and models repository similar to that of the QGIS Plugins Repository. Currently I simply have them available on GitHub On Sun, Sep 15, 2013 at 2:57 PM, Ricardo Filipe Soares Garcia da < ricardo.garcia.si...@gmail.com> wrote: > Hi Victor > > In this case I don't think

[Qgis-developer] QgsFeature addAttribute to writer

2013-08-17 Thread Bjorn Nyberg
Hej, Is it possible to add an attribute to the writer when writing a geometry? It would appear this would be possible as explained in the 1.8 docs here (http://www.qgis.org/pyqgis-cookbook/vector.html#writing-vector-layers). However when I attempt something similar in 2.0 I received the followi

[Qgis-developer] SEXTANTE QGIS dissolve

2013-08-05 Thread Bjorn Nyberg
Hej, I hope this is the right mailing list to ask about SEXTANTE specifically looking at the qgis dissolve tool. The qgis dissolve tool in sextante only appears to accept polygons but I suppose that only recently polyline support has also been supported http://hub.qgis.org/issues/5059. I was sim

[Qgis-developer] QGIS QgsVectorFileWriter

2013-07-30 Thread Bjorn Nyberg
I have a list of Linestrings [(x,y),(x,y)] pairs that i've created as shapelist.append(([QgsPoint(x1,y1),QgsPoint(x2,y2)])) shapelist[:5] [[(4.11658e+06,5.18318e+06), (4.11717e+06,5.18218e+06)], [(4.11847e+06,5.18323e+06), (4.11771e+06,5.18223e+06)], [(4.1064e+06,5.17508e+06), (4.10647e+06

Re: [Qgis-developer] Chain Temporary Algorithms

2013-07-26 Thread Bjorn Nyberg
Sorry I posted the wrong code in the previous post it should read import sextante as st densify = st.runalg("qgis:densifygeometries"),Polygon,Detail,None) extractNodes = st.runalg("qgis:extractnodes",densify,None) voronoi = st.runalg("qgis:voronoipolygons",extractNodes,None) voronoi_lines = s