Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-03 Thread Markus Neteler
On Thu, Apr 2, 2009 at 6:37 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 02/04/09 18:12, Moritz Lennert wrote: On 02/04/09 16:58, Markus Neteler wrote: On Thu, Apr 2, 2009 at 4:51 PM, Moritz Lennert On 02/04/09 16:00, Markus Neteler wrote: On Thu, Apr 2, 2009 at 1:43 PM, Markus

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-03 Thread Moritz Lennert
On 03/04/09 08:43, Markus Neteler wrote: On Thu, Apr 2, 2009 at 6:37 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 02/04/09 18:12, Moritz Lennert wrote: On 02/04/09 16:58, Markus Neteler wrote: On Thu, Apr 2, 2009 at 4:51 PM, Moritz Lennert On 02/04/09 16:00, Markus Neteler

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-03 Thread Markus Neteler
On Fri, Apr 3, 2009 at 9:20 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: ... Ok, try the attached diff to grass6 head. It implements the same behaviour for all data types: null values are sorted to the end. Perfect, this works. Please submit. Markus

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-03 Thread Moritz Lennert
On 03/04/09 09:31, Markus Neteler wrote: On Fri, Apr 3, 2009 at 9:20 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: ... Ok, try the attached diff to grass6 head. It implements the same behaviour for all data types: null values are sorted to the end. Perfect, this works. Please

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-03 Thread Markus Neteler
Paolo, On Fri, Apr 3, 2009 at 10:04 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 03/04/09 09:31, Markus Neteler wrote: On Fri, Apr 3, 2009 at 9:20 AM, Moritz Lennert ... It implements the same behaviour for all data types: null values are sorted to the end. Perfect, this works.

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-03 Thread Paolo Cavallini
Markus Neteler ha scritto: now it dissolves the map as expected. Also backported to 6.3 if that helps for you. Thanks a lot to all! -- Paolo Cavallini: http://faunalia.it/pc ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Paolo Cavallini
Michael Barton ha scritto: Do you have a lot of null cells in your region? None. Tested also with a r.fractal surface, same results. All the best. -- Paolo Cavallini: http://faunalia.it/pc ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Paolo Cavallini
Glynn Clements ha scritto: The entire notion of least cost is based upon the assumption that the cost must always be non-negative. Bingo, you got it! I had (by my mistake in mapcalc parameters) a few negative cells. Now r.cost runs, and I'doing further testing. I think your suggestions should

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Markus Neteler
On Wed, Apr 1, 2009 at 6:05 PM, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. I cannot get a result from v.dissolve: v.dissolve input=reg...@nuovo layer=1 column=REGIAO output=reg_diss dbmi: Protocol error Cannot open select cursor: SELECT cat, REGIAO FROM regiao ORDER BY REGIAO

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Markus Neteler
On Thu, Apr 2, 2009 at 1:43 PM, Markus Neteler nete...@osgeo.org wrote: On Wed, Apr 1, 2009 at 6:05 PM, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. I cannot get a result from v.dissolve: v.dissolve input=reg...@nuovo layer=1 column=REGIAO output=reg_diss dbmi: Protocol error

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Moritz Lennert
On 02/04/09 16:00, Markus Neteler wrote: On Thu, Apr 2, 2009 at 1:43 PM, Markus Neteler nete...@osgeo.org wrote: On Wed, Apr 1, 2009 at 6:05 PM, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. I cannot get a result from v.dissolve: v.dissolve input=reg...@nuovo layer=1 column=REGIAO

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Markus Neteler
On Thu, Apr 2, 2009 at 4:51 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 02/04/09 16:00, Markus Neteler wrote: On Thu, Apr 2, 2009 at 1:43 PM, Markus Neteler nete...@osgeo.org wrote: On Wed, Apr 1, 2009 at 6:05 PM, Paolo Cavallini cavall...@faunalia.it v.dissolve

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Moritz Lennert
On 02/04/09 16:58, Markus Neteler wrote: On Thu, Apr 2, 2009 at 4:51 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 02/04/09 16:00, Markus Neteler wrote: On Thu, Apr 2, 2009 at 1:43 PM, Markus Neteler nete...@osgeo.org wrote: On Wed, Apr 1, 2009 at 6:05 PM, Paolo Cavallini

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-02 Thread Moritz Lennert
On 02/04/09 18:12, Moritz Lennert wrote: On 02/04/09 16:58, Markus Neteler wrote: On Thu, Apr 2, 2009 at 4:51 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 02/04/09 16:00, Markus Neteler wrote: On Thu, Apr 2, 2009 at 1:43 PM, Markus Neteler nete...@osgeo.org wrote: On Wed, Apr 1,

[GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Paolo Cavallini
Hi all. I cannot get a result from v.dissolve: v.dissolve input=reg...@nuovo layer=1 column=REGIAO output=reg_diss dbmi: Protocol error Cannot open select cursor: SELECT cat, REGIAO FROM regiao ORDER BY REGIAO Unable to open vector map on topology level 2 Table linked to vector map does not

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Colin Nielsen
Furthermore, I launched r.cost on a  295 rows, 378 cols matrix, and it's taking 1h, whereas I did the same previously and it ran in tens of seconds. The speed of r.cost depends not just on the number of cells but also the complexity of the surface. Smoother surfaces seem to take longer than

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Paolo Cavallini
Colin Nielsen ha scritto: The speed of r.cost depends not just on the number of cells but also the complexity of the surface. Smoother surfaces seem to take longer than rough ones, I think because there are more possibilities for the algorithm to explore. Thanks for this Colin, I'm going to

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Paolo Cavallini
Colin Nielsen ha scritto: However, if you're getting into the hours, I would think it's more likely that your region settings changed. Check g.region -p to be sure. Even if I bring resolution down to a ridiculous amount, it still takes forever: GRASS g.region -p projection: 99 (Transverse

Re: [GRASS-dev] Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Paolo Craveri
Hi 2009/4/1 Paolo Cavallini cavall...@faunalia.it: But, is r.cost working for somebody else? r.cost is working for me (Ubuntu 8.10): GRASS 6.5.svn (nc_spm_08):~ r.cost -k streets_travtime output=streets_cost coor=634886,224328 --overwrite Reading raster map streets_travt...@user1... 100%

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Markus Neteler
On Wed, Apr 1, 2009 at 6:05 PM, Paolo Cavallini cavall...@faunalia.it wrote: Hi all. I cannot get a result from v.dissolve: v.dissolve input=reg...@nuovo layer=1 column=REGIAO output=reg_diss dbmi: Protocol error Cannot open select cursor: SELECT cat, REGIAO FROM regiao ORDER BY REGIAO

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Michael Barton
On Apr 1, 2009, at 12:47 PM, grass-user-requ...@lists.osgeo.org wrote: From: Paolo Cavallini cavall...@faunalia.it Date: April 1, 2009 10:31:04 AM GMT-07:00 To: Colin Nielsen colin.niel...@gmail.com Cc: grass-user grass-user@lists.osgeo.org Subject: Re: [GRASS-user] v.dissolve and r.cost

Re: [GRASS-user] v.dissolve and r.cost problems

2009-04-01 Thread Glynn Clements
Colin Nielsen wrote: Lastly, there seems to be a bug in r.cost that causes it to get confused on surfaces with lots of negative values (try running r.cost on a surface made by r.surf.fractal to see this). In these cases, I think it never finishes. That makes sense. If a group of adjacent