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

0
votes
1answer
145 views

how to loop grass command in python and put variable in output file

anyone, first day Grass programming with python scripting; first prob; simple I want to reclass the same raster several times; and save the file with the value loop variable at the end ... can not ...
0
votes
1answer
85 views

How to estimate distance from points to line feature with v.distance?

I'm trying to use the v.distance module in GRASS 6.4.3 to estimate the distance from a series of point features (animal tracking locations) to the nearest point along a line feature (a coastline). I ...
3
votes
0answers
177 views

How to create a topologically correct dataset in PostGIS (with GRASS)?

I have shapefiles which I have loaded in postgis and now i am trying to use geometric function in postgis like ST_intersect and they fail because the data is not topological correct. I have tried to ...
2
votes
2answers
519 views

r.mapcalculator and python again

I've been trying to write a script creating binary maps: a=raw_input ("enter a threshold") b=float(a) grass.run_command('r.mapcalculator', formula="**'base_map'>=b**", outfile='map'+str(a), ...
3
votes
2answers
307 views

run r.stats as a quiet module in GRASS-Python script

Has anyone else used r.stats as a quiet module in a GRASS-python script? As part of my program I'm using: grass.run_command("r.stats", flags='l', input=<file>, output=<*.csv file>, ...
0
votes
0answers
40 views

GRASS - Creating an Attribute Based on Driving Distance

Is it possible to calculate the driving distance for each node of one layer (fire stations) to each node of another (address points)? After doing so, I need to sort all of the distances from shortest ...
0
votes
2answers
71 views

How to align directions of connected lines?

I have a vector line made of different pieces of lines with different directions. I merged the lines to one. But this merged line still have different direction in its "invisible" parts. I want to ...
0
votes
0answers
113 views

Grass won't import shapefiles

I have a problem involving the import vector data command, specifically importing shape files. I installed QGIS on a pc at work and there I could import shape files into GRASS GIS 6.4.3RC2 (which is ...
1
vote
1answer
74 views

Grass7 - r.regression.multi and new raster

I am on the learning curve with Grass7. I managed to make r.regression.multi work, but there is one thing that would be of high interest for me: it is possible to create a new raster showing the ...
0
votes
0answers
57 views

Why don't libgrass.so.1.8.0 and libqgissqlantconnection.so.1.8.0 load?

I have compiled Qgis 1.8 at Ubuntu 12.10, but some phyton plugins does'nt work, like sextante. Trying to solve this problem, some files don't have been load. They are: libgrass.so.1.8.0 and ...
1
vote
1answer
516 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
0answers
86 views

GRASS v.overlay.or Error when trying to split a polygon with a line

I am using the Grass plugin in QGIS for Windows (1.8.0). I am trying to split a polygon with a line feature. I am using the v.overlay.or function within the QGIS Grass plugin. I have the line layer ...
1
vote
2answers
106 views

contour lines from point shape attribute

I have a point shape file and one of the attribute refers to the altitude. Is is possible to obtain a contour lines shape file in GRASS?
0
votes
0answers
160 views

SEXTANTE “could not load layer:…”

When I try to do a GRASS command via SEXTANTE in Qgis I always get the error: "Could not load layer:...." check log file Does not matter wether it should be saved in temp or another folder. I found ...
0
votes
2answers
427 views

Grass 7 / ArcGIS 9.3 - tiff to raster

Again a Grass 7 question. I have the output of a modelling run as matlab file, which I can export as tiff and load as geotiff. OK - now can I extract the data/convert this tiff into a raster proper? ...
14
votes
2answers
3k views

What's the relation between QGIS and GRASS?

I have been working with GIS and remote sensing in an university and professional environment some ten years ago (ArcInfo etc), so I have some experience even though somewhat outdated Right now I am ...
4
votes
1answer
356 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 ...
2
votes
3answers
330 views

How to clean layers from non topological databases?

I'm doing my internship in a consulting office which is switching from MapInfo to QGIS/GRASS 1.8.0. I posted here a few days ago about the way to clean a polyline from a Lidar data with v.clean. ...
0
votes
2answers
139 views

GRASS: populating attribute table with specific values

I have a vector map that includes 100 points. These points were created using v.extract to randomly sample a larger map of 10k points. As such, the 'cat' values range from 1 to more than 10k. What ...
0
votes
2answers
657 views

How to resolve missing Python module (importlib) for GRASS/Sextante?

I have installed the nightly build of QGIS 1.9 from Larry's Dakota Cartography site, and have downloaded the latest Frameworks from William's Kyng Chaos site. However, I am unable to install the ...
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 ...
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 ...
7
votes
4answers
763 views

Calculate polygon field based on neigboring polygon attribute

I have a vector shape with many different sized polygons each possessing an own class name (for instance "houses", "houses with offices", etc ...) I want to assign a new field to each polygon ...
3
votes
1answer
140 views

How to get started with GRASS shell?

I'm a beginner in programming but i have to work with GRASS at work, and do it quickly. I'm completely lost with all the variety of tutorials that are existing and to me, don't look the same...and ...
1
vote
1answer
44 views

GRASS: shift point locations in a random direction

I have a vector map that contains 100 points. For each point, I would like to shift it 250 units in a random location. It's easy enough to shift all points in a specified direction using v.edit ...
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 ...
8
votes
3answers
610 views

Howto setup and use a remote GIS workstation (QGIS,GRASS,PostGIS)?

I'm using QGIS (and sometimes GRASS and PostGIS) on my 2009 MacBookPro for my thesis project. I was wondering (during an endless batch generalizing in QGIS) if I can set up a server so I can work from ...
0
votes
1answer
32 views

GRASS GIS: red square around node topology information?

I've been using GRASS since 2005, but I cannot find an explanation to the square boxes that appear around the nodes of a lines layers, when I display topological informations on the map. I thought ...
0
votes
0answers
188 views

HELP! Starting up GRASS - Error messages.

I am just trying to start using GRASS, but am having problems setting up. This is the error message I get: WELCOME TO GRASS Version 6.4.2 2012 1) Have at your side all ...
0
votes
1answer
59 views

Full Easting and Northing coordinates values cannot be encoded in GRASS r.water.outlet in SEXTANTE-QGIS

The Easting or Northing coordinate parameter accepts only 5 digits. The Easting and Northing values for my outlet are 6 and 7 digits long (integer). How can they be encoded in r.water.outlet? Can ...
2
votes
1answer
804 views

How to reclassify a float raster?

I have three rasters which represent distance (in metres) from certain things (bus stops, parks, libraries). I would like to reclassify these rasters so that they get integer values based on the ...
3
votes
1answer
97 views

Wrong direction in r.watershed slope length calculation?

Or have I completely misunderstood something now? As a programmer I took it for granted that the row number would change if I traversed the map up and down in the program along the North-South axis ...
0
votes
2answers
160 views

Handling MODIS NoData cells with gdalwarp

I'm using the gdalwarp tool to convert MODIS .hdf into GeoTiff files. I want to set the value of the nodata cells so that when I import the .tif image into Grass there is no black edge. I'm using the ...
0
votes
1answer
303 views

import grass.script as grass under windows 7

OS: Windows 7 64bit GIS: QGIS 1.8 (qgis.org/downloads/QGIS-OSGeo4W-1.8.0-2-Setup.exe) I have created a plugin for QGIS, with the QGIS plugin builder. Now i would like to import grass.script into ...
2
votes
1answer
96 views

Help with GRASS V.Net.Path

GRASS has extensive and brilliant documentation, but I still have a bit of trouble using v.net.path. in the example for shortest path, it says: " #Shortest path: ID as first number, then cat1 and ...
1
vote
0answers
258 views

GRASS Plugin to QGIS error

I am installing QGIS and GRASS as part of an FOSS GIS class I'll be teaching this summer. I used the OsGeo4W installer. This installer has always worked flawlessly for me except on the machines at the ...
3
votes
1answer
566 views

How to split line at a specified distance and getting coordinates of start and end points of each line segment?

I tried v.split in GRASS: and my notebook ran a lot of time but showed this error:bad allocation, then I click "OK", and got nothing. Are there other ways to split lines?and I hope to get 2 new ...
0
votes
1answer
66 views

Grass 7 - where is r.regression.multi hiding?

I compiled Grass 7 on Ubuntu and all works fine - except, I cannot find r.regression.multi. I installed it, yet it is nowhere to be found in the drop-down menus; r.regression.line is there and works, ...
7
votes
1answer
292 views

Can I use GRASS algorithms in Sextante under ArcGIS?

Sextante for ArcGIS comes with SAGA modules. I know that I can use GRASS algorithms in Sextante under gvSIG. But how can I use GRASS algorithms in Sextante under ArcGIS? I tried to look for any ...
2
votes
0answers
77 views

How to create the fuel models & live fuel moisture rasters for Wildfire simulation?

Has anybody done wildfire modelling in GRASS? Where could I obtain / how do I create the fuel models and live fuel moisture rasters to determine rate of spread (r.ros)?
1
vote
1answer
172 views

v.dissolve renames the attribute table column and does not produce a dbf

When I run v.dissolve on my vector... v.dissolve --o input=pass2@mapset1 layer=1 column=fttcp output=pass3 The dissolving appears to work but the column name in the attribute table has changed from ...
1
vote
1answer
117 views

How to remove terracing from Civil3D GeoTIFF export?

I've received a GeoTIFF DEM that was exported from Civil3D and at every contour there is a distinct terrace created when I process an aspect or slope in QGIS with the GRASS plugins. I've looked ...
0
votes
3answers
470 views

How to rasterize a vector map?

I am looking for a way to create a raster grid from a vector map. I have a map consisting of shapefiles which I want to export as a raster with UTM coordinates. I was thinking of something using the ...
4
votes
3answers
336 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 ...
0
votes
0answers
154 views

Help in GRASS/QGIS/Python

I have Idea about ArcGIS, and a bit of QGIS and zero programming knowledge, which I am trying for thesedays. I saw GRASS GIS and have started working with shapefiles, which are not being loaded... :( ...
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 ...
1
vote
1answer
156 views

Data management in GRASS from command line?

I'm trying to import a large set of raster files into GRASS. The GUI import tool works fine for a handful of files, but it appears to require that I click the "Layer id" checkbox for each individual ...
0
votes
1answer
33 views

Why is this GRASS script (from GRASS WiKi) causing an error?

I'm trying to run a script from the GRASS WiKi to create a simple map using ps.map. I'm confused because it's generating an error that the output was not set, when it appears to me that it is set at ...
1
vote
1answer
286 views

How to invert polygons (or other options for exterior styling)?

I have a shapefile containing many polygons that I want to use to mask a raster. I have tried gdalwarp -cutline <shapefile> -crop_to_cutline -srcnodata -9999 -dstnodata -9999 ...
3
votes
1answer
80 views

V.kernel not working correctly in grass-6.4.2

I am using grass-6.4.2 for generation of heat maps of crime data. For testing purpose, I created a vector layer from my places shapefile which is a point data.The places shapefile contains more than ...