Re: [JPP-Devel] Has anybody done a "Nearest N" tool yet?

2011-04-21 Thread Martin Davis
On 4/21/2011 9:37 AM, Michaël Michaud wrote: > I think the approach I described before can give bad results in some > corner cases, due to the fact that a part of the searching is based on > rectangles (bounding boxes, STRtree nodes) which can give different > results from the strict distance

Re: [JPP-Devel] Has anybody done a "Nearest N" tool yet?

2011-04-21 Thread Michaël Michaud
Nearest Neighbour seems to be a hot topic all of a sudden. I recently added NearestNeighbours functionality to the STRtree in JTS. Hi, I did not notice this addition, thanks Martin ! See here for the source code. http://jts-topo-suite.svn.sourceforge.net/viewvc/jts-topo-suite/trunk/jts/jav

Re: [JPP-Devel] Has anybody done a "Nearest N" tool yet?

2011-04-21 Thread Martin Davis
Nearest Neighbour seems to be a hot topic all of a sudden. I recently added NearestNeighbours functionality to the STRtree in JTS. See here for the source code. http://jts-topo-suite.svn.sourceforge.net/viewvc/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jts/index/strtree/STRtree.java?v

Re: [JPP-Devel] Has anybody done a "Nearest N" tool yet?

2011-04-21 Thread Michaël Michaud
Hi, Interesting problem. Last time I had search nearest features around a feature f, I wrote a script doing the following 1) index the dataset to search with STRtree 2) initiate the search with a small distance d 3) search for features in a bounding box equals to bounding box of f + distance d

[JPP-Devel] from OpenJUMP 1.4.0.3 to OpenJUMP 1.4.1

2011-04-21 Thread Michaël Michaud
Hi Jumpers, I now would like to stop adding features until 1.4.1 release. I still can fix small things if needed, but I'd like to let a minimum of two weeks for translation stuff and tests. Of course, any comment about this planning is welcome. - it is recommended to use last NB to help reporti

Re: [JPP-Devel] Saving in-memory layers before saving a project

2011-04-21 Thread Michaël Michaud
Hi all, The new plugin is added in the last NB. I have tried to follow everyone's recommendation and did it the following way : - created a new plugin called "SaveLayersWithoutDataSourcePlugIn" it is deactivated by default (can be activated from default-plugins.xml) it can save layers witho