Re: [GRASS-user] How to create+use reclass or recode rules in a python script

2011-12-01 Thread Hamish
> Moritz wrote: > > Just one question using it with r.recode: > > > > When I use it without a rules parameter it works, but when > > I use it with rules='-' it gives me 'ERROR :Unable to open file > > <->'. Is this expected behaviour ? > > it is a bug. apparently the option description got backpo

Re: [GRASS-user] r.fillnulls for large area

2011-12-01 Thread Marcello Gorini
Nick wrote: > > Maybe I need to split my region into subregions > > and run r.fillnulls on each subregion then patch > > them together. > Hamish: > yes, that should work well. I always wanted to create a script to do that. Since (I think) r.fill.nulls identifies the null locations and create

Re: [GRASS-user] r.fillnulls for large area

2011-12-01 Thread Hamish
Nick wrote: > Thanks for the advice to fill the ocean with > zeros. It worked better, and didn't get "killed", > but it still didn't work...This time it made it > further than before, but it got "abondoned" - see > the output below... try editing the r.fillnulls script, on line 165 replace "r.to.v

[GRASS-user] Re: [GRASS-dev] Should v.in.ogr clean topology by default ?

2011-12-01 Thread Hamish
[cc'd from grass-dev ML] Hi, a couple of points-- * Radim said many times: v.in.ogr's cleaning and v.clean are not the same thing. (with a number of !! added) He explained it and understood it always better than I ever could, so check in the mailing list archives for details. * GRASS is a topol

[GRASS-user] topology model resume (and some proposals)

2011-12-01 Thread G. Allegri
I resume (first as a repeat to myself) what I've learned from the various email on the topic Vectors can be: LEVEL 1: - no topology -> very limited use LEVEL 2: - unclean topology -> limited use - clean topology -> full support I previously thought that LEVEL 2 was only possible for clean top

Re: [GRASS-user] r.fillnulls for large area

2011-12-01 Thread Nick Jachowski
Hi Hamish, Thanks for the advice to fill the ocean with zeros. It worked better, and didn't get "killed", but it still didn't work...This time it made it further than before, but it got "abondoned" - see the output below... Maybe I need to split my region into subregions and run r.fillnulls on ea

Re: [GRASS-user] How to create+use reclass or recode rules in a python script

2011-12-01 Thread Hamish
Moritz wrote: > Just one question using it with r.recode: > > When I use it without a rules parameter it works, but when > I use it with > rules='-' it gives me 'ERROR :Unable to open file > <->'. Is this expected behaviour ? it is a bug. apparently the option description got backported from tru

Re: [GRASS-user] overlapping areas seem valid to v.build: why?

2011-12-01 Thread Moritz Lennert
On 30/11/11 18:37, Markus Metz wrote: Moritz Lennert wrote: On 30/11/11 14:38, Markus Metz wrote: It seems to me that the confusion arises because you made use of features that allow you to skip topological cleaning which is not the default and not recommended. Maybe this calls for a v.chec

Re: [GRASS-user] How to create+use reclass or recode rules in a python script

2011-12-01 Thread Moritz Lennert
On 01/12/11 07:40, Glynn Clements wrote: Moritz Lennert wrote: I'm pretty sure someone has already answered this, but cannot get my hands on the relevant mail: which grass python lib function should I use and how in order to be able to feed r.recode, r.reclass, r.colors, etc rules on the fly ?