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 stefan.zieg...@bd.so.ch 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

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

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

2010-10-28 Thread Giuseppe Sucameli
...@faunalia.it Gesendet: Mit, 27.10.2010 17:30 An: Ziegler Stefan stefan.zieg...@bd.so.ch Cc: Jim Hammack hamm...@gotslack.org ; qgis-user qgis-user@lists.osgeo.org Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS Near Hi Stefan, your workaround works fine in my case! I looked

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

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

2010-10-27 Thread Ziegler Stefan
- Originalnachricht - Von: Giuseppe Sucameli sucam...@faunalia.it Gesendet: Mit, 27.10.2010 17:30 An: Ziegler Stefan stefan.zieg...@bd.so.ch Cc: Jim Hammack hamm...@gotslack.org ; qgis-user qgis-user@lists.osgeo.org Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS Near Hi Stefan, your workaround works fine in my

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

2010-10-26 Thread Ziegler Stefan
Sucameli sucam...@faunalia.it Gesendet: Mon, 25.10.2010 14:09 An: Ziegler Stefan stefan.zieg...@bd.so.ch Cc: Jim Hammack hamm...@gotslack.org ; qgis-user qgis-user@lists.osgeo.org 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

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

2010-10-26 Thread Ziegler Stefan
Stefan stefan.zieg...@bd.so.ch Cc: Jim Hammack hamm...@gotslack.org ; qgis-user qgis-user@lists.osgeo.org 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

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

2010-10-25 Thread Giuseppe Sucameli
of the two polygons. regards Stefan mit freundlichem Gruss Stefan Ziegler - Originalnachricht - Von: Jim Hammack hamm...@gotslack.org Gesendet: Don, 21.10.2010 19:20 An: Ziegler Stefan stefan.zieg...@bd.so.ch Cc: qgis-user qgis-user@lists.osgeo.org Betreff: Re: AW: Re: Fwd: [Qgis-user

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

2010-10-22 Thread Ziegler Stefan
- Originalnachricht - Von: Jim Hammack hamm...@gotslack.org Gesendet: Don, 21.10.2010 19:20 An: Ziegler Stefan stefan.zieg...@bd.so.ch Cc: qgis-user qgis-user@lists.osgeo.org Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS Near Stefan, I was looking for the same functionality as Zoran

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

2010-10-22 Thread Jim Hammack
- Originalnachricht - Von: "Jim Hammack" hamm...@gotslack.org Gesendet: Don, 21.10.2010 19:20 An: "Ziegler Stefan" stefan.zieg...@bd.so.ch Cc: qgis-user qgis-user@lists.osgeo.org Betreff: Re: AW: Re: Fwd: [Qgis-user] QGIS "Near" Stefan, I was look

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 many

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

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: AW: Re: Fwd: [Qgis-user

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! Jim On 10/20/2010

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