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
2k 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/
4
votes
1answer
274 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 ...
4
votes
2answers
513 views

How to enable GRASS plugin in QGIS 1.8.0 (Linux Mint 13 - 64 bit)?

Every time I enable GRASS plugin in QGIS (Plugins -> Manage Plugins -> GRASS), I got a message: Exception - G_getenv(): Variable GISDBASE not set. I googled and found some information here but don't ...
4
votes
2answers
438 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 ...
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
582 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
1answer
192 views

R gridding and contouring options

I want to make an interactive web mapping application, which will grid and contour user data. My plan is to implement R scripts with Shiny, but the only R package I can find to do this is gstat. And ...
4
votes
1answer
357 views

How to repair and clean contours from high data resolution (lidar)?

I'm unsuccessfully trying to make a bathymetric map with contours extracted from Lidar data at 1 m resolution. The extracted contours have a lot of artifacts like dangles and islands. First I used ...
4
votes
1answer
268 views

Topology problems with QGIS/GRASS

*edited file links below I'm working on several NGO projects at the moment, all of which are reliant on being able to use a district level map with some 490+ features, and I am running into some ...
4
votes
1answer
149 views

Programmatic raster-vector calculation

I currently use GRASS' r.mapcalc to find the difference between vector and raster data using a loop and temporary files and layers. Is it possible to do the core calculation between raster with a ...
4
votes
1answer
1k views

Importing shapefile in grass

I have very simple shapefile, which consists of couple of polygons, and I wanted to snap boundaries automatically. Unfortunately qgis doesn't have such function, but grass has according this answer: ...
4
votes
1answer
3k views

Convert Shapefile to MySql

I have used Grass GIS imported a .shp file; I now want to export this file to MySQL. I understood that MySQL will contain the function of all three the files necessary in a Shape file system (.shp - ...
4
votes
1answer
728 views

Quantum GIS Affine

I have a vector floorplan (DXF) that I've added to a blank project in QGIS using the Dxf2Shp plugin. I've been reading tutorials and StackExchange threads, but I can't seem to find out how to ...
4
votes
1answer
264 views

Multishading: bring them together to one Raster-Image

I made a multi-hillshade with 4 different light-directions and colors and stacked one above the other, each with its own transparency. Now I want to "save" the result in one raster-image. Whats the ...
4
votes
2answers
196 views

Autocorrelated DEM with QGIS or Grass

I was wondering if there is a way to make an Autocorrelated DEM within QGIS or Grass. I am looking to do this with stereo aerial photography. I am able to do this with a number of COTS tools, but I ...
4
votes
1answer
203 views

How can I avoid reprojection gaps when merging DEM rasters?

I have two raster DEMs in same resolution I want to bring together. I was using the merge-function in SAGA, GRASS and QGIS but I always get the following result: What do I need? Where could the ...
4
votes
1answer
76 views

How are r.horizon results aligned?

I used r.horizon to calculate horizon on a raster every 10° without any offset. I have got 36 files now. Is the first file from 0° to 10° (then centered on azimuth=5°) or is it centered on 0°, in ...
4
votes
1answer
361 views

How to divide a polyline by intersecting isochrones

I have two shapefiles, the first representing a path (a polyline with a single category), the second representing isochrons from the same origin (point 0) which intersect the above mentioned path. I ...
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 ...
4
votes
1answer
149 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 ...
4
votes
0answers
149 views

What open source solution would work best for auto extracting features from satellite images? [duplicate]

Possible Duplicate: Feature Extraction - Land cover I have been looking for an open source solution which would allow me to define a region (or collection of images) and extract features ...
3
votes
2answers
238 views

How to determine aerosol model value for i.atcorr in GRASS?

The i.atcorr module in GRASS requires aerosol model data to perform atmospheric correction using the 6S algorithm. It seems like I need a value from one of these parameters to continue: Estimate ...
3
votes
2answers
184 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.
3
votes
3answers
370 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.
3
votes
3answers
153 views

Convert 800 .hdf4 files to Tiff using GRASS/QGIS/SAGA/GDAL/R

I've have MODIS ndvi data (MODIS_Grid_16 days NDVI) from the iberian peninsula, from February of 2000 to August of 2012 (really big data). How do I batch convert about 800 .hdf MODIS files to .tif ? ...
3
votes
1answer
1k 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 ...
3
votes
1answer
193 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 ...
3
votes
2answers
114 views

Creating square buffer in qgis

How can I create a buffer with square ends along a line segment in qgis? I've buffered lines using v.buffer in the GRASS plugin, but the -c option for square ends is not exposed in that interface. ...
3
votes
2answers
116 views

Create network from shapefile without ArcGIS?

I want to perform shortest-path analysis on a network whose edges represent real-world roads and whose nodes are buildings or other locations. I have the shapefile for the area I'm interested in. ...
3
votes
2answers
156 views

How do I tell GRASS where to find Python?

For some reason, when I start GRASS on my Mac it says that it has found Python 2.6.7. However, /usr/bin/python version is 2.7.2 and I can't find a lower version anywhere on my system. Potentially ...
3
votes
2answers
328 views

Using 'gdalwarp' in Python script for Grass

I'm writing a Python script that aims to re-project various LANDSAT tiles into a common projection and then import the tiles into Grass. The script at present is shown below: #!/usr/bin/python ...
3
votes
2answers
1k views

How to calculate LS Factor of Watershed for RUSLE Calculation?

I managed to get subbasins for my catchment (7 km^2) with their areas but I haven't figured out how to get the LS factor (see Revised Universal Soil Loss Equation) from it. I have the vector file ...
3
votes
1answer
71 views

Can two versions of GRASS be installed in a computer and still run independently?

GRASS 6.4.0 is currently installed in my computer. The script that I am trying to run is present in 6.4.1. It is stated in my previous post. If I installed 6.4.1, will my 6.4.0 still run? I don't want ...
3
votes
2answers
801 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] ...
3
votes
2answers
185 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 ...
3
votes
1answer
251 views

Is there a Focal Statistics (spatial analyst) tool in ArcGIS equivalent in QGIS?

I'm attempting to use QGIS v2.0.1 to accomplish the same tasks that I can do using ArcMap v10.1 and I'm running into some trouble finding equivalent tools. In ArcMap I am using the Focal Statistics ...
3
votes
1answer
108 views

GRASS 6.5 or 7.0 - Need Help with Loop Script

I am new to Python and scripting in general. This is also my first time a posting question. My overall goal is to create a script that I can cycle through all the raster maps in a mapset and then ...
3
votes
2answers
86 views

Is there a workaround for GRASS i.maxlik 'class' being a keyword in Python?

I am running i.maxlik in python - attempting to automate a processing chain. I use the command: grass.run_command('i.maxlik', group= group, subgroup=subgroup, class='classification', sigfile = ...
3
votes
3answers
397 views

Topographic correction (for land use classification) with SAGA or GRASS

Is there a module in GRASS or SAGA (or a alternative open program) to do a topographic correction of a landsat image to enhance the land use classification? Thanks! Martin
3
votes
1answer
468 views

Correct ASTER with SRTM or Topographic Map

I have a problem with my DEM again. I decided to use ASTER GDEM2 (for different reasons). ASTER GDEM2 have its problems, I know, and I dont want to discuss that again. I have to use it, because SRTM ...
3
votes
1answer
559 views

Cell calculations; QGIS,GRASS,GDAL,SAGA

I recently asked a question about trying to calculate the slope over distance (manually) using QGIS, but then I came up with another way of solving the problem, but I would have to get some help for ...
3
votes
1answer
374 views

Change raster value for an area based on a class of another raster

I would like to change all raster values in raster A that fall into the locations of category/class 1 of raster B. Here, some more details. I did a calculation on a DEM resulting in different ...
3
votes
2answers
175 views

Can GRASS v.net.iso split between nodes?

Can GRASS's v.net.iso module split networks between nodes on the network, i.e., if I am finding the area within a cost of 400, and there is a line segment with a cost of 800 leaving the center node, ...
3
votes
3answers
633 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
1answer
386 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 ...
3
votes
1answer
351 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 ...
3
votes
2answers
163 views

QGIS GISBASE specify location

I am just a beginner at this QGIS and GRASS and I am using this QGIS 2.0.1 Dufour which throws a error at the startup that "QGIS couldn't find your GRASS installation. Would you like to ...
3
votes
2answers
92 views

Merge two rasters with no data value

I have two rasters: Raster A and B. Raster A has has only values of 0. The white area in Raster B are No Data values. I want to merge them to one raster (Raster C). So basically I want all pixels in ...
3
votes
2answers
199 views

How to set output resolution for gdalwarp to that of source file?

I have a large raster, which I want to re-project and crop for a new location that I'm creating in GRASS. I seem to have gotten the re-projection and cropping right with this call to gdalwarp: ...
3
votes
1answer
119 views

v.dissolve to multipolygon

Using v.dissolve in GRASS, I'd like to get a multipolyon as a result. However, I end up with distinct polygons with the same 'dissolve value.' For example; lets assume I have two polygon features ...