GRASS GIS (Geographic Resources Analysis Support System) is a free, open source geographical information system (GIS) capable of handling raster, topological vector, image processing, and graphic data.

learn more… | top users | synonyms

4
votes
2answers
597 views

Monthly Average Solar Maps (R.Sun) in Grass

I'm trying to create monthly average maps as described in R.Sun in Grass. I have my DSM. In reading the page on OSGEO it mentions that it is possible without showing how. Ideas? I assume I will need ...
2
votes
1answer
420 views

Scripting in GRASS

Can anyone suggest me web-links to learn scripting in GRASS GIS (its utilities, examples etc.) other than those available in GRASS official Wiki/Sites?
2
votes
1answer
666 views

How to clean vector segment intersect errors in GRASS

I'm using GRASS to process a vector map. When I export back to .SHP and do a 'Check Geometry Validity' in Quantum GIS it lists several errors of this type... 3,segments 199 and 203 of line 0 ...
2
votes
1answer
744 views

How to handle multiple layers when importing a polygon shapefile into GRASS?

When I import a shapefile into GRASS, it seems to arrive as 3 layers. I.e. they appear in the qGIS toolbox browser as: myMap 0_polygon, myMap 1_polygon, myMap 2_polygon Is there a way to merge ...
4
votes
1answer
2k views

Convert shapefile lines to a polygon in GRASS

I have a shapefile of a map that is the outline of a number of islands. I would like to convert the lines into polygons (ie all islands filled in) using GRASS. I searched on how to do this with GRASS ...
5
votes
6answers
706 views

Southern hemisphere projections for Landsat upsets GRASS

Hi All does anyone have the last word on why Landsat scenes don't project in the southern hemisphere. This causes no end of trouble in GRASS, less so in QGIS. What I mean is, take an original scene ...
2
votes
2answers
478 views

Layer Stacking in GRASS

Similar to layer stack feature in ERDAS what functionality is available in GRASS. I am aware of r.composite, but it can accept only 3 layers. To obtain a stack of more than 3 layers what can be done?
2
votes
1answer
90 views

Can the concentration of values in a raster map be known?

I have a generated raster map containing different flood levels. Is there a grass script to determine the percentage of values in a raster map? I'm thinking of using r.mapcalc to solve this, but I'm ...
1
vote
0answers
285 views

gdal-grass plugin for gdal 1.8 [closed]

I'm facing a big issue...i moved from the ubuntugis version of grass to the svn one. I managed to compile the svn (releasebranche6.4) version nicely but i can't download the gdal-grass plugin for ...
2
votes
1answer
341 views

Command r.sunmask in GRASS

I have hypsometric model of relief, and I need to visualize shadows. I was suggested to use GRASS command r.sunmask, so I tried to set time values and run command, but it gives me an error "ERROR: ...
2
votes
1answer
336 views

Compilation of GRASS 6.4.trunk on Win7

you may have seen my other posts, at the point now where I am trying to use the landsat plugins in a lower version of GRASS. Markus N noted that the 6.4.2 might be better, since that is not out yet I ...
1
vote
1answer
551 views

Win7 GRASS 7 & i.landsat.toar

Hello has anyone got experience running i.landsat.toar ? The output files I get are empty, the command takes but a moment to complete. However when run in verbose mode all the calculations are done, ...
1
vote
2answers
417 views

GDAL-GRASS building fails

When I run ./configure --with-grass=/usr/local/grass-6.5.svn/ I get the following errors: .......... checking for gdal-config... /usr/bin/gdal-config using /usr/lib/gdalplugins as GDAL shared library ...
3
votes
1answer
205 views

SVN Version of GRASS and QGIS

I have GRASS6.5 SVN installed and wanted to go for SVN installation of Quantum GIS in Ubuntu 11.04. So as instructed in QGIS Wiki, I added the qgis repository to my sources.list file. Now I am able to ...
6
votes
3answers
429 views

Grass v.rast.stats returning null values

I have a vector layer (polygon) and a raster layer. The raster layer holds values for height above bald earth in a field called "value". I'd like the vector layer to inherit either the mean or the ...
3
votes
2answers
186 views

Is there a shortcut in GRASS for importing vector files?

Is there a keyboard or command shortcut in GRASS for importing vector files? If you know link where I can find maybe whole list of shortcuts for GRASS, that would be awesome. Thank you.
6
votes
2answers
708 views

What's a good toolchain to reproject some PNGs in plate carre to UTM?

I have some PNGs produced from Canadian DEM data. They're 1201px by 1201px heightmaps. Each one represents one quarter of a degree latitude and one quarter of a degree longitude. But I want to work ...
4
votes
4answers
1k views

Where can I find a tutorial for installing an addon to GRASS GIS that a six-year-old could understand?

I want to use the r.stream.distance addon in GRASS GIS 6.4 on ubuntu 10.04 (64 bit). I've installed grass from the repositories and that works fine but I can't seem to figure out how to install this ...
4
votes
1answer
825 views

How can I calculate the vertical distance to the nearest water?

Summary: I would like to create a raster where each cell contains the vertical distance to the nearest water (a decent approximation would be acceptable). The problem is that I'm not sure how to go ...
11
votes
5answers
1k views

Large shapefile to raster

I have a large shapefile (1 gb) and need to rasterise it. I have tried the following already. 1.) Import it into GRASS using v.in.ogr this failed with the error message: ERROR: G_realloc: unable to ...
8
votes
1answer
612 views

Kriging on GRASS+R

I'm trying to do a groundwater elevation map with an Ordinary Kriging on R, but always resulting on the lack of memory cannot allocate vector of size 146.5 Mb allocation (windows xp 32bit). ...
3
votes
3answers
706 views

How do I draw on a vector map in GRASS?

I have a vector map that has two lines. I want to have the two connected. Is there a way for me to draw a line to connect the two? I am using GRASS gis by the way. The two lines that I want to connect ...
3
votes
3answers
431 views

Can a raster map in GRASS be saved in JPEG/BMP format?

I'm trying to save a raster map in GRASS in jpeg/bmp format without using the GUI for d.out.file/d.save. Is there a script to do it? I tried r.out.gdal but it produced a map that is black and white.
14
votes
2answers
2k views

Is there a way to automate the preprocessing of LANDSAT data?

I'm currently enrolled in a remotesensing course, using LANDSAT data. Part of my course is about standardizing the scenes based on radiance values. I assume that because this is such a tedious task, ...
5
votes
2answers
734 views

Raster to Vector: Displaying classes in Vector Layer - GRASS GIS

I use Maximum Likelihood classification to classify Landsat image into two landuse classes - one of my interest and rest including all others. Inorder to assess the accuracy I export it in vector ...
2
votes
1answer
192 views

Error in using/installing v.digit: GRASS GIS

When I wanted to edit a shapefile in GRASS I got this message: Unable to start wxGUI vector digitizer. Do you want to start TCL/TK digitizer (v.digit) instead? Details: No module named ...
1
vote
1answer
380 views

How to use r.patch with two maps having different colortables?

I am using r.patch to combine two raster maps in order to fill in the null values of the other. Is there a way to use r.patch but still maintaining the colortables of the separate raster maps? I do ...
0
votes
1answer
376 views

How to convert .ps to .png in a ps.map script?

I already managed to create a .ps file. How do I convert it to .png using a GRASS script?
4
votes
5answers
625 views

How to save a raster and vector into a single PNG file in GRASS?

I am trying to save a raster and vector into a PNG file. The vector is overlayed on top of the raster map. I was only able to save the raster file into a png using r.out.png but without the vector.
3
votes
1answer
505 views

spgrass6 and GIS_LOCK

I would like to thank's everyone first, i learn a lot here (gis.stackexchange) about GIS. I have one question about the use of GRASS within R session, i'm able to do some basic task, but i have one ...
5
votes
2answers
2k views

How to return raster values based on polygon (shapefile) boundaries in QGIS?

How to return raster values based on polygon (shapefile) boundaries in QGIS? Is this an elementary question, because I am finding it hard....... Ideally I would like a neat workflow as I am likely to ...
0
votes
1answer
122 views

d.legend script is not working

I'm using the d.legend script in grass but it is not working. I can only show/hide the legend using the 'add legend' option in the Map Display window in GRASS. I need to make d.legend script to work ...
0
votes
1answer
401 views

How to transform a DEM to a cartesian coordinate system?

I am using the script r.inund.fluv. I run the script with all the required parameters and it produced a lot or errors. I emailed the author of the script and he said that "I think you are not ...
6
votes
1answer
663 views

How to modify the colors of a raster map to use only one color in varying shades?

I have a raster map in GRASS containing elevation values. I want to display the elevation values in only one color (specificaly blue) but in varying shades of blue. I tried the options in r.colors, ...
4
votes
1answer
681 views

How to extract features from a vector layer?

I have a vector file containing the river lines of an area. I want to extract a specific water line from the vector. I used: v.db.select but it only displayed: ...
4
votes
2answers
689 views

Altitude Above channel in GRASS 6.4

i'm fairly new to the GIS world and GRASS (come from econometric background), i would like to do some species distribution modeling using R and GRASS. So i started to read the book of Tomislav Hengl ...
7
votes
1answer
438 views

Saving Command History/Outputs to a file - GRASS

Is there any way to save the commands typed and the outputs obtained in terminal under GRASS GIS to a text file? I have read that GRASS saves history for each mapset but I have no much idea about how ...
3
votes
1answer
434 views

Slope, aspect and beam in R.Sun (GRASS)

I'm starting to mess about with the solar radiation packages of GRASS and ArcGIS and have become rather stuck on the GRASS side of matters. I have a DSM area, and that is feeding into GRASS well ...
4
votes
1answer
121 views

Export Region definitions - GRASS GIS

I use two different Landsat datasets in different computers. But the region settings I work is the same. Is it possible to export the region settings in the form of a file in GRASS?
3
votes
1answer
277 views

Problem in r.resample

When I run r.resample to crop a map by using a vector and a mask, the resulting map has the same shape as the vector that I used but does not replicate (exactly) the portion of the raster map that I ...
4
votes
2answers
268 views

How to select a subset of separate bands in GRASS GIS?

As you know landsat data has separate files for different bands. Creating a subset is a wise option to work on region of our interest. Therefore, I used this method to subset my image - d.zoom || ...
3
votes
2answers
894 views

How to delete a base map in GRASS?

I'm trying to delete a map that I used as a mask before, but I cannot delete it using g.remove. It displays this: g.remove rast=raster_Mnorzagaray@PERMANENT [raster_Mnorzagaray@PERMANENT@PERMANENT] ...
1
vote
1answer
609 views

Is there any pseudocode for MFD (multiple flow direction) algorithm available?

Still stuck with the simulation system, is there any good pseudocode for the multiple flow direction (MFD) algorithm? I read a pseudocode example and implemented it, however the simulation was linear: ...
1
vote
2answers
378 views

How to compile in Fortran in order to use an add-on in GRASS?

I need to use the r.inund.fluv add-on in GRASS. I installed the gfortran compiler in order to use the script. The problem is, I do not know how to compile the files in gfortran. Im using windows Here ...
7
votes
1answer
1k views

GRASS - Will r.to.vect work on this scanned map?

Total GRASS noob here. I have several very large hand contoured maps to digitize, and this thread intrigues me. In the past I have spent hours upon hours digitizing these maps and revisions in ArcMap. ...
4
votes
2answers
3k views

How to install add-ons in GRASS?

How do I install the r.inund.fluv script in GRASS? https://svn.osgeo.org/grass/grass-addons/grass6/raster/r.inund.fluv/
2
votes
1answer
666 views

How to use GRASS with HEC-RAS?

I am trying to use HEC-RAS for the flood modelling of my flood simulation. How do I use the text file output of HEC-RAS with the GRASS script r.inund.fluv?
1
vote
1answer
234 views

The resulting maps from a r.mapcalc script is not computed properly

This post is a continuation of my other post Why is my controlling shell script not working?. I created another post because this contains a separate issue that I encountered with the same scripts of ...
1
vote
3answers
426 views

d.out.file is not working

I'm trying to use 'd.out.file' to save the displayed map to a PNG file. It failed and produced this message: "Command 'd.out.file' not yet implemented in the GUI. Try adding it as a command layer ...
0
votes
1answer
286 views

How to export a png file from a raster file? r.out.png has an error

I used r.out.png to export a png file, but it produced this error: (Sun Feb 27 00:26:32 2011) r.out.png input=raster_bulacanElevation ...