Re: [GRASS-user] How to rescale

2012-01-11 Thread Moritz Lennert
On 09/01/12 20:42, leonidas wrote: I created a raster using *r.grow.distance* I need to rescale that file to a scale 0-255 but in reverse order where high values in distance file will be converted in low values to the rescaled file. I'm using the following command: r.recode input=dist_file

Re: [GRASS-user] problems with colors resulting of an image fusion

2012-01-11 Thread Moritz Lennert
On 09/01/12 19:16, Moritz Lennert wrote: On 09/01/12 00:50, Markus Neteler wrote: On Fri, Jan 6, 2012 at 5:42 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: Hi everyone, I have some troubles with image fusion through IHS transformation of a Landsat image. Hi Moritz, could you

[GRASS-user] python scripting using eclipse

2012-01-11 Thread Ismael Gómez
Hello everyone, I would like to run some scripts using python. I am not a computer scientist/engineer, just a python newbie, but I find that's a really interesting matter. Thus, I followed the instructions here: http://grass.osgeo.org/wiki/Using_Eclipse_to_develop_GRASS_Python_programs and doing

[GRASS-user] Grass 6.4.2 on mac with lion

2012-01-11 Thread Salvatore Mellino
I'm trying to compile GRASS 6.4.2 on my macbook with Lion OSX. I stopped at one point. How can I solve my problem? Thanks. Salvatore MacBook-Pro-di-Salvatore-Mellino:grass-6.4.2RC2 salvatore$ ./configure --enable-sysv --with-x --with-opengl=x11 --without-odbc --with-cxx --with-sqlite

[GRASS-user] Re: How to rescale

2012-01-11 Thread leonidas
Indeed, I run *r.univar* and the max value is 101812!!! So using: r.recode input=dist_coastline output=recoded_file 0:101812:255:0 the range of the output file was 0-255 I also checked Markus method. eval `r.univar -g map=myrast` returns max value = 101812.211145335 I re-run r.recode using

[GRASS-user] Filling an Area Added to Vector Map

2012-01-11 Thread Rich Shepard
I've not done this before and my trial-and-error approach doesn't work. I need to add a reservoir to a stream system so I used the on-screen editing feature to digitize the area, then rebuilt the topology. But, despite having a fill color selected the new area is not filled. I've attached a

Re: [GRASS-user] Filling an Area Added to Vector Map

2012-01-11 Thread Alex Mandel
On 01/11/2012 11:59 AM, Rich Shepard wrote: I've not done this before and my trial-and-error approach doesn't work. I need to add a reservoir to a stream system so I used the on-screen editing feature to digitize the area, then rebuilt the topology. But, despite having a fill color selected

Re: [GRASS-user] Filling an Area Added to Vector Map

2012-01-11 Thread Rich Shepard
On Wed, 11 Jan 2012, Alex Mandel wrote: What you digitized is the outline of an area as a line feature. To make a fillable polygon you can convert that or redigitize it in it's own polygon layer. I did not realize that I needed a new layer since the last time I digitized in GRASS was with

Re: [GRASS-user] Filling an Area Added to Vector Map

2012-01-11 Thread Rich Shepard
On Wed, 11 Jan 2012, Rich Shepard wrote: I discovered the problem: some layers obscure others. The problem is not that one layer covers another, but that one layer just will not display. I've no idea why not. There are 4 vector layers but only 3 will display. It seems that the last to be

Re: [GRASS-user] python scripting using eclipse

2012-01-11 Thread Ismael Gómez
Many thanks, Martin!! Kind regards, isma PhD student @ Urban Land Planning Department @ ETSICCPM UPM www.caminos.upm.es 2012/1/11 Martin Landa landa.mar...@gmail.com Hi, 2012/1/11 Ismael Gómez gomez.ism...@gmail.com: # PURPOSE: Script generated by wxGUI Graphical Modeler. ...

Re: [GRASS-user] How to import as vector?

2012-01-11 Thread Markus Neteler
On Wed, Jan 11, 2012 at 1:25 PM, Bulent Arikan bulent.ari...@gmail.com wrote: Dear List, I found a plan / architectural drawing online. I am not sure about the resolution but JPG version is 25 Mb and TIFF version is 410 Kb. I want to import the drawing as vector into 'xy location' and then

Re: [GRASS-user] How to import as vector?

2012-01-11 Thread Bulent Arikan
Thank you for the suggestions! Yes, it will be a lot of work and time consuming to digitize it. I was also suggested to use Inkscape to autotrace it and save it in (svg). However, saving it as (svg) does not help because 'v.in.ogr' does not seem to import that format. I even saved it as (dxf) but