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

6
votes
2answers
564 views

Calling GRASS functions from external Python

I have GRASS 6.4.3svn installed in my machine running Windows 7. Also in my machine i installed Python 2.7.3 for Windows.Now i need to call GRASS libraries from Python and not within the Python shell ...
6
votes
1answer
3k views

How to create a point along a line given distance

I have been given a non-spatial database which contains the names of lines which I have a shapefile for. The database also has names of points and the distance of each point from the origin along the ...
6
votes
1answer
814 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 ...
6
votes
2answers
1k views

How to compile QGIS with GRASS on Ubuntu?

I am on Ubuntu building qgis with grass plugin. I have build grass code separately and used --prefix to provide the path GRASS_PREFIX is /usr/local/grass-6.4.2 and GRASS_INCLUDE_DIR is ...
6
votes
1answer
344 views

How to increase mask buffer and then offset it using r.mapcalc in GRASS?

I'm in the process of learning on how to remove clouds and cloud-shadows from Landsat images using GRASS. So far I was able to remove a lot of clouds from those images using i.landsat.acca, but it ...
6
votes
2answers
505 views

Why don't GRASS tools work in SEXTANTE? (QGIS, MacOS)

I've got both SEXTANTE and GRASS installed on my platform. GRASS-SEXTANTE report an error when I'm trying to create the Modeller, however, other tools (R) work fine in SEXTANTE. Do these tools have ...
6
votes
1answer
363 views

Generalize large polygon-file

I have a large polygone file with landuse information (6 classes). Its vectorised from a raster classification so the polygons are all angular. Any of my tries to generalize with v.generalize (sneaks, ...
6
votes
1answer
550 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 ...
6
votes
3answers
394 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 ...
5
votes
6answers
595 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 ...
5
votes
2answers
1k views

How to compare two DEMs and show their difference?

I want to compare my DEMs (ASTER GDEM2 and SRTM4.1). I know, that the GDEM has some extreme "holes" with totaly wrong elevations (I found 3 of them in my working area). Now I need to know, if there ...
5
votes
2answers
666 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 ...
5
votes
2answers
1k 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 ...
5
votes
5answers
2k views

How to calculate distances in a point sequence?

I'm looking for help calculating the distance between a sequence of points that are in a single Shapefile in QGIS. Below is what my data look like and a blank distance column I've added to show how ...
5
votes
1answer
1k views

Create filled contour map with GRASS

Background I'm trying to make contour/isoline/isochrone maps to show what areas are within walking distance to schools for my pet project to help with the Safe Routes to School program. I followed ...
5
votes
1answer
240 views

How to create a heatmap using values?

How do I create a 'heatmap' in QGIS based on the values of the different points? I did do this once before with rainfall, but can't remember how!
5
votes
2answers
677 views

How to batch import GDAL supported raster files into GRASS?

I am trying to import some GDAL supported raster files into a binary raster map layer using the r.in.gdal module from QGis Grass tool. As I have multiple files to import, I would like to batch import ...
5
votes
2answers
868 views

How to color-balance false-composites of pan-sharpened Landsat images in GRASS?

Whenever I try to pan-sharpen composites of some Landsat images in GRASS using i.pansharpen, i.fusion.brovey or the IHS sharpening method, the output will have some or all of the following ...
5
votes
2answers
2k views

How to smooth large vector polygons from Raster

I have a landuse classification raster file (6 classes) of a large area. But I need it in vector polygons so I vectorised it. No problem so far, but the result is - of course - that every pixel is ...
5
votes
2answers
116 views

filling up a depression to create new surface

A collegue here has a problem I cannot help with. She has the surface (as raster) of a landslide release area (from AFTER the slide) and wants to calculate the calculate the theoretical/approximate ...
5
votes
1answer
2k views

How to do Kernel density analysis in QGIS 1.7?

Do someone have some suggestion? We would like to tray Kernel Density analysis as we did with ArcGis using QGIS?
5
votes
2answers
175 views

Vectorize cell boundaries in GRASS

I need to vectorize the cell boundaries of a raster map and I have forgotten how to do this. For instance, if I have a raster map of a region that is just map=1 with a cell size of 500m, I would ...
5
votes
2answers
1k views

Quickly create contour polygons from cost points using OSS for web app

This is related to a previous question I've asked: Create filled contour map with GRASS I've created a point layer using OpenStreetMap data and pgRouting's driving_distance() function, where the ...
5
votes
4answers
3k views

Dissolve ploygons in QGIS or Grass to new polygons of defined population sizes

I have a shapefile with 3800 polygons representing the smallest administrative areas in Ireland. Many of these, in rural areas, have tiny populations, under 100 people. In urban areas, all would have ...
5
votes
2answers
159 views

Creating contours for specific elevations

Input data: 1. an SRTM raster. 2. Point file of peaks. -Attributes contain ID, x, y, z and the elevation at which the peak is completely isolated from a neighboring peak. The output I want is a ...
5
votes
4answers
2k views

New QGIS install can't find GISBASE

At QGIS startup I get the message: "QGIS couldn't find your GRASS installation. Would you like to specify path (GISBASE) to your GRASS installation?" (Windows 7) No amount of rooting around the ...
5
votes
1answer
139 views

What are the advantages and disadvantages importing vs linking data in GRASS?

I'm fairly new to GRASS, and only recently discovered the r.external and v.external functions. I'm used to working with R and QGIS where all the data is "external". Typically I keep vector data in ...
5
votes
2answers
370 views

Is it possible to use the Goode Homolosine projection in QGIS?

Is it possible to use the Goode Homolosine projection in QGIS? Both QGIS and GRASS seem to have trouble with the interruptions, squashing the higher latitudes together. I tried +proj=goode ...
5
votes
1answer
120 views

Would it be possible to construct a stand-alone grass.script python package?

I would like to migrate dependency on ArcPy to grass.script without requiring the full installation of Grass. Would it be technically possible to have a portable directory containing grass.script and ...
5
votes
1answer
240 views

Need to remove small areas, but only if they do not have adjoining boundary

I'm generalizing some lat/lon data in grass64 and as a precursor to the generalization, I am removing small areas from the data using 'v.clean'. The following command is working well: $ v.clean ...
5
votes
1answer
570 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 ...
5
votes
1answer
408 views

How to call GRASS modules in pyQGIS?

I wish to use a Grass module (v.to.db) in QGis, without the grass toolbox. I tried with the Python console, but to no avail : Using Sextante plugin but obviously it didn't know all the grass ...
5
votes
1answer
386 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 ...
5
votes
2answers
272 views

Can I split up v.in.ogr into multiple v.clean commands?

I'm trying to load a large set of polygons into GRASS with "v.in.ogr" and am running out of memory at the "Break Boundaries" stage. I'm wondering if I can break into steps all of the different things ...
4
votes
5answers
783 views

Elevation correction ASTER GDEM2 (+10m)

My ASTER GDEM2 has a average elevation error of -10m for my area. (I testet it using 90 defferential GPS reference points and compared it with old Topo25, SRTM, and GoogleMaps). I would like to ...
4
votes
3answers
315 views

How to install GRASS on Linux Mint?

I'm trying to figure out an error in GRASS network analysis, for several days now. I started to suspect that it has something to do with my OS, namely Windows 7. Hence I installed Linux-Mint 14 ...
4
votes
5answers
980 views

How to generalize and vectorize a LandUseClassification raster file?

I want to vectorize that rasterfile with its 6 landuse classes. The classification is very noisy and have to be generalized before. The result should be a polygone vector file. I use SAGA, (GRASS) ...
4
votes
3answers
8k views

Converting a .jpg map into a shapefile

I have a .jpg map of a set of U.S. counties that were affected by a tornado. The map shades where the tornado passed through, resulting in some counties only partially experiencing the tornado. I ...
4
votes
2answers
949 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 ...
4
votes
3answers
2k views

How do you open/display and extract NetCDF files info?

I am working with NetCDF files using R & Matlab and I would like to know if the GIS community is using them. I know that ArcGIS can open & display, however most of the times the results are ...
4
votes
1answer
757 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 ...
4
votes
3answers
721 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?
4
votes
5answers
590 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.
4
votes
1answer
118 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?
4
votes
3answers
380 views

query raster cell values by point

I have a binary raster (0s and 1s) that I need to query given a set of point coordinates. This is easy enough to do with gdal (gdallocationinfo), but where it get's complicated is that I also need to ...
4
votes
2answers
903 views

How do I split polygons into line segments?

How can I split my polygon file into "segements"? The lines should be broken up like this picture shows:
4
votes
4answers
758 views

How to automatically plot intermediate contours with QGIS, GRASS GIS or SAGA GIS?

I'm mapping a steep mountain range. My main contour interval is 50 m and my intermediate contour interval is 10 m. In steep areas, the interval of 10 m is too small, so I need to leave ...
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 XP machine. Unfortunately, when I go to Plugins>Manage Plugins I cannot find the Grass plugin. When I browse ...
4
votes
1answer
245 views

Is it possible to use GRASS GIS in Python stand alone scripts?

I am trying to find a least cost path script for Python. I came across r.drain from GRASS GIS. Is it possible to use GRASS GIS in a Python stand alone script? If so where can I download the bindings?
4
votes
2answers
203 views

How to do a looping to Interpolate a huge Rainfall Time-series in GRASS GIS or R

In GRASS GIS I have access to a table in PostgreSQL Database with this structure: Table Name: rainfall_time_series Columns: id | year | month | day | value_mm | x | y | gauge_code Setting g.region ...