Common Tasks

From GRASS-Wiki
Jump to: navigation, search

Mini-tutorials showcasing some common GIS tasks

Import/Export and Display

  • Import and display SRTM elevation data
r.in.srtm
  • Import and display VMap0 Digital Chart of the World
v.in.ogr
  • GRASS Newsletter, 3, June 2005.
  • If your region crosses the boundaries of a VMap0 block you can use the v.append command, available in the Grass Addons section of this wiki, to combine vectors across the edges. It can take quite a while to complete.
  • Import and display ETOPO2 world elevation and bathymetry dataset
r.in.bin

General Import / Export

  • Raster import and export with r.in.gdal / r.out.gdal
  • Vector import and export with v.in.ogr / v.out.ogr

GIS Tasks

  • Map (re-)projection
    • r.proj and v.proj (snippets from manual pages)
    • gdal_warp as an alternative for large, complex (re-)projection tasks
    • ogr2ogr as an alternative to v.proj
  • Create vector contour lines from a raster DEM

3D Visualization

  • Use NVIZ to render a 3D image
nviz elevation.dem

Raster operations

Creation

  • drape semi-transparent land use map over shaded relief map

Analysis

  • cost surface analysis

Vector operations

Hardcopy and Graphics Creation

  • create PostScript with ps.map (instructions in file, command line interface)
  • use wxGUI Cartographic Composer (graphical user interface to ps.map, creates PDF or PostScript)
  • use standard GRASS GIS Map Display (or its command line interface from Python or Bash) and finalize with Inkscape
  • export to GMT (Generic Mapping Tools)
  • export to QGIS and use Cartography Composer there