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

1
vote
1answer
342 views

Shell script commands

I have this shell script: #!/bin/sh r.mapcalc water = 120 d.rast water i=1 while [ $i != 100 ] do n=1 while [ $n != 10 ] do r.mapcalc < water.mapcalc d.rast ...
1
vote
1answer
245 views

Why is my controlling shell script not working?

I updated my post after I resolved the previous errors, but additional errors were produced. I want to create a controlling shell script that contains water.mapcalc within it. The problem is, I do ...
1
vote
1answer
382 views

How to link an application to grass?

I am creating an application (C#) and I want to connect it to GRASS, mainly run grass scripts from my application. This might seem to be a repeated question however I am thinking of the possibility ...
12
votes
1answer
1k views

How do you use GRASS's v.kernel?

I am flummoxed on how to use GRASS's v.kernel. I have a vector layer of around 2.5 million points. I want to make a heat map using v.kernel to show concentrations, since I have variable instances ...
2
votes
2answers
150 views

Can the arrows produced by the d.rast.arrow GRASS script be queried or stored?

I have created a map with the flow directions using the d.rast.arrow. Can i query on the map to know where the direction of the arrows are? I am going to use the arrow directions in an algorithm. Or, ...
4
votes
2answers
1k views

How to delete a map from the GRASS interface?

I want to delete a map that I generated from GRASS. I tried removing a map from the "Map Layers for each display" tab in the GRASS GIS Layer Manager, but it only removed the map from the list and not ...
3
votes
2answers
195 views

How to make the arrows in d.rast.arrow GRASS script visible?

I'm trying to create a Flow or directional raster map (with arrows) from an SRTM elevation map that I downloaded from CGIAR. I already created an aspectMap to be used for the d.rast.arrow. I used ...
1
vote
1answer
666 views

GRASS v.out.dxf 3D into AutoCAD

So continuing with my last question (Create 3D dxf with OGR) I have decided to give the GRASS option a go. I have imported my polylines into GRASS using v.in.ogr and converted them to 3D using ...
2
votes
2answers
122 views

GRASS 6.4.0 and GRASS 6.4.SVN

What is the difference between GRASS 6.4.0 and GRASS 6.4.SVN? Thanks
8
votes
4answers
1k views

Flood modelling insights

I am trying to create a flood modelling system. The system consists of two parts mainly a river flooding simulation and rainfall simulation. To do this I am running the latest version of GRASS 6.4. ...
1
vote
1answer
287 views

Error in r.terraflow

I used r.terraflow.short in GRASS, but it displayed this error: r.terraflow.short elevation=raster_bulacanElevation \ filled=raster_bulacanElevationFlooded1 \ ...
1
vote
2answers
485 views

How to create GRASS scripts in C# in Windows

Most of the tutorials that I have seen are under Python and Linux. Is it Possible to create GRASS scripts in C# or atleast in Windows. I can create scripts using a different language as a compromise ...
1
vote
1answer
158 views

How to resolve GRASS error “Execution failed: 'gproj -p' ”?

I installed the WinGRASS-6.4.0-1-Setup.exe 55M from http://grass.osgeo.org/grass64/binary/mswindows/native/. I'm using a x64. After installation, I tried opening the demoLocation but it failed and ...
0
votes
1answer
125 views

How to create a new table for a vector file?

I will use v.db.connect but i want to use a new table, and not an existing table to connect it to. What is the GRASS script for it? Thanks!
4
votes
3answers
757 views

How to get the elevation of the areas in a raster file from SRTM?

I have an SRTM elevation map. How do I get the elevation of each point in the map? I am using GRASS. Is there a GRASS script to do such?
3
votes
1answer
422 views

How to get the Flow or directional raster map using GRASS?

Aside from using r.fill.dir in GRASS, is this the script to produce the Flow or directional raster map? Is this the output for the script ...
1
vote
1answer
187 views

Why is the geonames not loading?

I want to import a geonames file. I downloaded the geonames .txt file from http://download.geonames.org/export/dump/ I used: v.in.geonames input=PH.txt output=ph but it displayed ...
1
vote
1answer
904 views

How to select a raster file that is under a polygon in a vector file?

I am using: v.db.select map=PHL_adm1 where=NAME_1='Bulacan' My vector map is over the raster map. I want to select the part of the raster map under the polygon(NAME_1='Bulacan') of a vector. Is it ...
1
vote
1answer
2k views

How to combine a vector and a raster file?

I want to combine a raster and a vector file. After combining, can I query on the resulting map to obtain a specific area? How?
4
votes
1answer
327 views

How to know contents of column names in GRASS?

I am using GRASS to extract a specific area from a vector map. Here is the script that I am running: v.extract PHL_map out=makati where="AREA_NAME = 'Makati" The problem is, I don't know what are ...
2
votes
2answers
559 views

How to query data from a vector map (shapefile)?

We want to obtain the specific place of the boundaries of a shapefile. We want to be able to get the points of each polygon corresponding to a specific place in order to use these data in an ...
6
votes
1answer
918 views

How to calculate difference in altitude along lines using GRASS?

Using SRTM altitude information and OpenStreetmap roads, I want to calculate altitude differences (sum of meters uphill and downhill separated = two values) per road element. What would be the ...
14
votes
3answers
2k views

Rubber sheeting in GRASS or QGIS

We are in the process of getting our property boundaries corrected and a side effect of this is that we need to move any assets that have been drawn relative to the property boundaries, so they are ...
12
votes
4answers
4k views

Shaded relief from DEM in GRASS and QGIS

I have been trying to get a good looking shaded relief model out of GRASS and Qgis for a day or so now and just can't seem to get it. The biggest problem I'm having is the valleys look like ...
6
votes
2answers
999 views

Moving raster to different mapset GRASS GIS

I have a raster DEM that I created in one mapset but I would like to copy it to another mapset for another purpose. Is this possible within GRASS or can I just copy some files over in the ...
4
votes
2answers
4k views

How do you Turn on the GRASS plugin in Quantum GIS?

I downloaded and installed Quantum GIS 1.5.0 with GRASS using the OSGeo4W installer on my Windows XP machine. Unfortunately, when I go to Plugins>Manage Plugins I cannot find the GRASS plugin. When ...
10
votes
4answers
3k views

Code to calculate elevation profile along line from a DEM

Given a DEM (Digital Elevation Model) say in and a line (x1,y1) --> (x2,y2) (paired coordinates (x,y)), how can one calculate the elevation profile or cross-section projected on that line ? I am ...
5
votes
1answer
627 views

What is north-up projection?

How do I know what projection to use for north-up or 0 rotation? I have a gtiff (ND83-nf) that gives me the error when importing to Grass. Should I re-project or recreate the image with the rotation ...
2
votes
1answer
530 views

How to import SpatiaLite data into GRASS?

How can I import SpatiaLite tables into GRASS? Are there any restrictions I should be aware of? How does GRASS cope with columns that don't have a specific type (Sqlite tends to create such columns ...
7
votes
3answers
1k views

How to interpret GRASS v.kernel results?

GRASS manual reads: v.kernel - Generates a raster density map from vector points data using a moving 2D isotropic Gaussian kernel ... Ok, but how do I interpret the results? I understand that ...
1
vote
1answer
2k views

GRASS GIS: How do I run a batch (bash?) script?

I am in a GRASS database (in command shell), where I want to run a loop function. For example, I want to do an operation on many raster files that are in the database. I know this must be done through ...
8
votes
1answer
790 views

How to apply a Majority filter in GRASS GIS?

I was wondering if someone could help me write a majority filter for GRASS GIS. I have this map (see below) which I need to run a filter over to make the red areas a bit more dominant. I know I can ...
53
votes
5answers
22k views

How to build effective heat-maps?

Using ArcGIS, QuantumGIS, Grass, and/or GVSIG What are some of the tools and processes involved in building effective heat maps? What are the plugins involved? What are the major data requirements? ...
9
votes
4answers
1k views

Are there any open source tools to detect and fill sinks on a DEM?

Are there any open source or inexpensive tools to detect and fill sinks on a DEM? ESRI Spatial Analyst is just out of my price range.