Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-30 Thread Giuseppe Sucameli
Hi Martin, On 30/ott/2010, at 11:12, Martin Dobias wrote: > So as David already suggested, to ensure you are really working with > the nearest geometry, you should check the real distance. After the David's message I searched for a good solution which can work fine in every cases. So I resolv

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-30 Thread Martin Dobias
On Thu, Oct 28, 2010 at 7:48 AM, Ziegler Stefan wrote: > Hi Giuseppe > > thanks for looking into this. Do you think it's worth filling out a bug > report since the nearestNeighbor method does not the  keep the promise or is > this the normal behaviour of a spatial index based method? Spatial in

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-28 Thread David Fawcett
Isn't a problem like this usually solved with a two-pass method. The first pass uses the spatial index to eliminate all of the features that could not possibly intersect/touch/etc. And then in the second pass, an actual (more expensive) spatial overlay operation is performed on those candidates t

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-28 Thread Giuseppe Sucameli
: "Giuseppe Sucameli" > Gesendet: Mit, 27.10.2010 17:30 > An: "Ziegler Stefan" > Cc: "Jim Hammack" ; qgis-user < > qgis-user@lists.osgeo.org> > Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" > > Hi Stefan, > your workaround works

AW: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-27 Thread Ziegler Stefan
egler - Originalnachricht - Von: "Giuseppe Sucameli" Gesendet: Mit, 27.10.2010 17:30 An: "Ziegler Stefan" Cc: "Jim Hammack" ; qgis-user Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" Hi Stefan, your workaround works fine in my case! I looked at the QgsSpatial

AW: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-26 Thread Ziegler Stefan
efan" Cc: "Jim Hammack" ; qgis-user Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" Hi all, two days ago I wrote a similar plugin for a LD talk in Pisa. I was unaware of the QgsSpatialIndex class (seems there's no documentation about it in the online QGis API pag

AW: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-26 Thread Ziegler Stefan
t;Giuseppe Sucameli" Gesendet: Mon, 25.10.2010 14:09 An: "Ziegler Stefan" Cc: "Jim Hammack" ; qgis-user Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" Hi all, two days ago I wrote a similar plugin for a LD talk in Pisa. I was unaware of the QgsSpatialIndex

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-25 Thread Giuseppe Sucameli
s of the mouse click lies within one of the two polygons. > > regards > Stefan > > mit freundlichem Gruss > Stefan Ziegler > > > - Originalnachricht - > Von: "Jim Hammack" > Gesendet: Don, 21.10.2010 19:20 > An: "Ziegler Stefan" > Cc

Re: AW: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-22 Thread Jim Hammack
tefan mit freundlichem Gruss Stefan Ziegler - Originalnachricht - Von: "Jim Hammack" Gesendet: Don, 21.10.2010 19:20 An: "Ziegler Stefan" Cc: qgis-user Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" Stefan, I was looking for

AW: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-22 Thread Ziegler Stefan
egler - Originalnachricht - Von: "Jim Hammack" Gesendet: Don, 21.10.2010 19:20 An: "Ziegler Stefan" Cc: qgis-user Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" Stefan, I was looking for the same functionality as Zoran so have also been

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-21 Thread Jim Hammack
Stefan, I was looking for the same functionality as Zoran so have also been working with your "Nearest" plugin.  It is exactly what I need and seems to work well.                                                         Thanks!

AW: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-21 Thread Ziegler Stefan
Shame on me... Please update the plugin (0.0.3) and try again. regards Stefan > -Ursprüngliche Nachricht- > Von: Ricardo Filipe Soares Garcia da > [mailto:ricardo.garcia.si...@gmail.com] > Gesendet am: Donnerstag, 21. Oktober 2010 15:19 > An: qgis-user > Betreff: Re:

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-21 Thread Ricardo Filipe Soares Garcia da
It is happening to me as well (Ubuntu 10.10, Qgis 1.5 from ubuntugis-unstable ppa) > I have installed the plugin on qgis trunk and Ubuntu 10.04, and now > every time I exit qgis I get the following > > Traceback (most recent call last): >  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", lin

Re: AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-21 Thread Giovanni Manghi
Hi, I have installed the plugin on qgis trunk and Ubuntu 10.04, and now every time I exit qgis I get the following Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 187, in unloadPlugin plugins[packageName].unload() File "/home/gio/.qgis/python

AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-21 Thread Ziegler Stefan
Hi Zoran > As I can see the main stuff is in "featurefindertool.py"? And it works > through all the features in the selected layer every time? Yes, the interesting stuff is in featurefindertool.py. Yes, it works through all the features in the selected layer. > But, I really do not have that m

AW: Re: Fwd: [Qgis-user] QGIS "Near"

2010-10-20 Thread Ziegler Stefan
Hi Zoran I had some time left, took all my code snippets and also the one from Carson. Please try the plugin "Nearest" that should cover your example 1: http://www.catais.org/qgis/plugins.xml regards Stefan -Ursprüngliche Nachricht- Von: Zoran Jankovic [mailto:zoran.janko...@zi