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
0answers
59 views

GRASS workflow for volume calculation

i am attempting a volume calculation using the route of 2 dems (upper and lower) and trying to subtract the difference. workflow as follows: A. rasterise vector contours (v.to.rast.attr) B. create ...
0
votes
1answer
26 views

QGIS GRASS vector simplification creates duplicate data rows

When simplifying polygons in QGIS (2.2.0) with the GRASS v.generalize tool the resulting layer duplicates some data rows many times. A shapefile of 657 zones/data rows: .. is simplified to one ...
3
votes
2answers
161 views

Is r.cost equivalent to diffusion interpolation with barriers?

I want to perform interpolation using cost distances rather than euclidean distances similar to Greenberg et al. (2011). In that paper they use r.cost in GRASS to compute cost distances for each ...
2
votes
0answers
60 views

Background (sky/terrain) of a viewshed

Is it possible to determine whether a point feature of a particular height would be backed by sky or by terrain? I've done the viewsheed analysis of a wind turbine. Now I would like to make a raster ...
0
votes
1answer
162 views

How to use python to set a variable to a value from a vector attribute table for GRASS

I'm adding to a python script for GRASS v.transects.py. I want to set a variable to equal a value from a field in the vector's attribute table using a for loop to cycle through each row. This is one ...
4
votes
1answer
181 views

Help installing add-on in GRASS, I get an error message

My Grass gives me this error message, Grass_info_error(4816,1):'make' required. Please install 'make' first. This happens when I attempt to fetch an add-on (r.viewshed). What am I doing wrong? and ...
0
votes
0answers
21 views

problem r.walk region GRASS

I'm getting troubles to run r.walk. If I run r.walk in this region: projection: 3 (Latitud - Longitud.) zone: 0 datum: wgs84 ellipsoid: wgs84 north: 33:39:03N south: 29:16:03N ...
0
votes
0answers
52 views

Use python to execute GRASS module v.distance

I have successfully use python script to import a line shapefile and a point shapefile into GRASS, and the following are their attribute table in QGIS, line shapefile point shapefile Now I want ...
0
votes
0answers
228 views

libgdal1 and libgdal1h conflict

I am on Ubuntu 14.04. When I am installing PostGIS-2.1, it's asking for libgdal1 library. But when I am installing libgdal1, it's removing grass and gdal. Can someone please guide me how to install ...
0
votes
0answers
141 views

QGIS GRASS plugin missing!

I just installed QGIS version 2.2.0-Valmiera on my mac with OS X. First I installed all required frameworks. QGIS is running, but the Grass plugin is not existing. In the toolbox the grass tools are ...
0
votes
1answer
26 views

QGIS GRASS plugin: r.composite quality loss

When using the r.composite tool within the GRASS plugin in QGIS, the result raster has a cell size of 150x150 while the input rasters have a cellsize of 30x30. Can this be overcome somehow or is this ...
0
votes
0answers
38 views

Run this module in GRASS 6.4.3 command line in Windows 7 or QGIS Grass Module

I have GRASS 6.4.3 running and working in windows. I would like to use this script (http://grasswiki.osgeo.org/wiki/AVHRR) Scroll down to Import to see the code. I have the correct EPSG set but ...
1
vote
1answer
32 views

GRASS GIS 3D - Inconsistent number of attributes

I am trying to automate my 3D plotting of GRASS GIS 7 results, also to make them more consistent in size and view angles. So for m.nviz.image elevation_map=DEM -a mode=fine resolution_fine=1 ...
1
vote
0answers
118 views

QGIS 2.2.0 GRASS not worked

I use QGIS 2.2.0 on Windows 8 64 bit. I try to install use Standalone installer and OSGeo4W and still get the error And then i start GRASS C:\Program Files (x86)\GRASS 6.4.2>grass64 ╬╪╚┴╩└: ...
1
vote
1answer
43 views

Problems running grass.mapcalc

I am using the GRASS Python Scripting Library on Ubuntu 14.04 with the packages available from the Universe repository. I have the following block of code: try: ...
0
votes
0answers
75 views

Running a batch script in GRASS command line - v.dissolve and v.db problems

I have been writing a number of scripts for automating isochrone production in GRASS just using the command line. I create files with isochrone lines in them and then a buffer around each of the ...
18
votes
5answers
1k views

How to simplify a routable network?

I have a network graph that I need to simplify in the sense of reducing the number of edges. The idea would be to merge nodes that are located close together and remove the connecting short edges. ...
1
vote
2answers
99 views

Convert a mask image to polygon shape file using GRASS

I used image classification technique in GRASS GIS v7 and generated the image mask below in which white area has NULL value and red area contains 1. I am going to clip those red color areas in a ...
6
votes
3answers
2k views

Dissolve or unsplit lines on common attributes in PostGIS or GRASS?

I have a road centerline shapefile that has roads split at every intersection. However, I would like to join LINESTRINGs that have a common set of attributes into a single LINESTRING. So long as the ...
0
votes
1answer
23 views

r.series command in QGIS - timeseries

I am using r.series command in qgis. The command is performing correctly, but when I import input raster files, it creates a list in a random order. Sometimes the order of input rasters is essential ...
1
vote
1answer
471 views

Merge two maps with OR operation in GRASS

I have two vector maps. The two maps cover the same area but are split up into polygons differently (i.e. if you were to imagine one map placed above the other, the lines defining the polygons would ...
0
votes
0answers
81 views

QGIS r.cost / r.drain and errors

I'm trying to find the optimal route of several archaeological sites with Qgis 2.2. I've a DEM and r.walk or r.viewshed executed successfully, but r.cost always fails creating the output, however ...
0
votes
0answers
46 views

time processing

I am computing NDVI for Landsat TM in grass 6.4.3 in raster map calculator, and time processing is many hours and finally tke message is "failed". trying to find a solution I discovered that it ...
6
votes
1answer
666 views

How to perform unsupervised classification of LANDSAT time series using Grass?

I'm using GRASS to perform an unsupervised classification on a time series of LANDSAT images (monthly temporal res, over 30 years), in order to compare land cover change in a particular area. I'm ...
0
votes
1answer
85 views

r.viewshed - Can't find with Grass toolbox

I'm trying to use r.viewshed and have got Grass installed but can't find it anywhere! under toolbox, I click 'Grass commands (152 geoalgorithms) and have a choice of imagery, raster, vector, etc, ...
1
vote
1answer
237 views

How to make GRASS and SAGA tools capable to use in QGIS?

As my title, I installed Qgis, GRASS and GDAL by osGeo4w package, and as I finish the installation, I want to use GRASS tool, I face this problem: But I already installed GRASS and SAGA, how to make ...
2
votes
3answers
440 views

How to batch-process georeferencing of rasters (prelude to animation)?

I have many (10k) raster files, all with identical size and pixel dimensions, which need to be georeferenced. I would like to georeference one of them manually, using either QGIS or GRASS, and then ...
0
votes
0answers
32 views

R equivalent of GRASS r.grow?

What is a good R equivalent of the GRASS function r.grow? The closest I've been able to find is the script suggested by whuber in response to Creating randomly shaped clumps of cells in a raster from ...
0
votes
0answers
46 views

v.buffer angular buffer doesn't take all the polygons into account

I am trying to create an angular buffer around building footprints with the v.buffer command (QGIS 2.2). There is no error message, but the algorithm doesn't take into account all the buildings. This ...
1
vote
1answer
67 views

List the projection & datum of all the files in a folder

In QGIS/GRASS, is it possible to list the projection details of all the shp,tab,dxf files in a folder ? We are having 100 - 150 files in too many folders. We would like to create a table of Proj ...
0
votes
0answers
22 views

Is it possible to compile a grass addon into a commandline app?

As the title says, I'm wondering if it's possible to take the source of a grass add-on and compile it into a commandline app. Or, alternatively, use the add-on in a python program. Basically, I ...
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 ...
0
votes
0answers
57 views

How to make DTM Qgis-grass

Good evening, I need help. Should I create a dtm of an area in the province of Vicenza. It 's the first time I try, I tried the tutorials on the Internet but I could not understand how to do it. Could ...
0
votes
0answers
174 views

GRASS “Argument list too long” with run_command

I have a python script that uses the grass.script.run_command function to read in, process, and export a bunch of raster files. On projects where I have a large number of rasters (>1,000), it fails ...
0
votes
2answers
171 views

Matlab script - how to access from/run in GRASS GIS?

I am currently working on shell script in GRASS GIS and Ubuntu. At some point, I must run a calculation (based on an ascii grid) that I have available as Matlab script and .exe (created from Matlab I ...
0
votes
1answer
122 views

Is it possible to use polygons to create heatmaps?

I hope I can explain my question clearly, so here it goes: I've been fiddling around with heatmaps on QGIS for a few days, but came across a small obstacle on my way. I have a dataset comprised of ...
0
votes
1answer
119 views

import parameters for r.watershed - (watershed basin analysis program) tool from grass using Qgis 2.2

I want to run this tool from Qgis 2.2 but i don't know how to use the PARAMETERS to run this tool. The red frame are the PARAMETERS I don't know. Can someone to tell me what those PARAMETERS are ...
0
votes
1answer
50 views

How to reposition a polygon Shapefile using ground control points and v.rectify?

I'm new to Grass. I would like to reposition a polygon shapefile using ground control points and v.rectify seemed just the perfect tool to do that. The raster from which the shapefile comes from was ...
2
votes
1answer
176 views

georeference and orthorectification of aerial photos

I am trying to process photos taken with a tetracam ADC micro camera placed on a UAV. I have GPS coordinates and mavlink logs providing roll, pitch and yaw of the UAV. I am having a real hard time ...
0
votes
1answer
17 views

GRASS module r.fitpoly

I need to calculate the average daily temperature for each month. As an input I have 5 .asc grids for 6, 9, 12, 15, and 18 GMT for each month of the year. I was wondering if there is a predefined ...
2
votes
1answer
362 views

How to join nodes to network lines ( and not the other points)

I'm trying to do a shortest path analysis on my network. In order to prepare the network and attach polygon centroids to the roads, I used GRASS' V.NET operation=connect. the problem with this ...
1
vote
0answers
97 views

Error “Unable to open data source” - import .shp into GRASS

I'm new to GRASS and GIS in general, so please forgive my ignorance... I have problem with loading Vector Data (.shp) into GRASS I used the following steps 1.1. and 1.2: ...
0
votes
0answers
31 views

External scripting in GRASS libgrass_grass.6.43.dll not found

I need to run interpolation through GRASS through a script such that its requires no user interaction in the process and the interpolation raster output can be used for display in HTML Web Page. To ...
1
vote
1answer
26 views

nr of cells between cells

I want to do the following: I have a set of cells with the value 1, and a set of values with 2. I want to calculate for each cell [2] the distance - ideally number of cells - to the nearest cell 1. ...
0
votes
1answer
17 views

Problems installing r.roughness

I am trying to install r.roughness in GRASS 6.4.3. It starts compiling but at the end I get this error: ERROR: Module did not install properly I cannot identify the problem. Can somebody that has ...
0
votes
2answers
59 views

GRASS GIS using a loop with r.neighbors command

I'd like to do a trend analysis with ndvi data from 1982 til 2005. I am using the r.neighbors command to get first the spatial variance (then I would use r.series method=slope to get the actual trend) ...
1
vote
1answer
171 views

Apply r.neighbours or Neighbourhood analysis (LecoS plugin for QGIS) to 3000 rasters

I need to apply r.neighbours or Neighbourhood analysis (QGIS plugin LecoS (or equivalent) to 3000 rasters and define a neighbourhood of 5 x 5 and calculate the mean. I suppose I need to create a ...
1
vote
0answers
48 views

Extrude polygons with holes in GRASS using v.extrude

I have a shapefile with building footprint polygons. Many of the polygons have holes/inner rings within them (I'm not sure of the correct term in Grass). These import correctly into Grass GIS. I aim ...
3
votes
1answer
2k views

How do I find vector line bearing in QGIS or GRASS?

How can one extract the bearings from a set of lines in a vector file? I'm trying to find the bearings of several straight vector line segments (simplified contour lines, actually) and can't figure ...
1
vote
1answer
45 views

Combining several rasters before r.surf.contour?

I have been trying to generate an elevation model from contour lines using first v.to.rast.attr and then r.surf.contour. Generally, it works pretty well, execpt for one issue. My data contains a lot ...