Common Tasks: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(→‎Hardcopy and Graphics Creation: add wxGUI Composer, Inkscape and QGIS, use also full name for GMT, remove the word Presention from title)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<h1> Mini-tutorials showcasing some common GIS taks </h1>
= Mini-tutorials showcasing some common GIS tasks =


== Import/Export and Display ==
== Import/Export and Display ==


* Import and display SRTM elevation data
* Import and display SRTM elevation data
** ''GRASS Newsletter, 3, June 2005.'' - http://grass.itc.it/newsletter/GRASSNews_vol3.pdf
: ''{{cmd|r.in.srtm}}''
** You can also get the SRTM data with a convenient web interface at http://srtm.csi.cgiar.org/. These come in 5 degree blocks and can be downloaded either as geotiff or ascii files.
:* ''[http://grass.osgeo.org/newsletter/GRASSNews_vol3.pdf GRASS Newsletter, 3, June 2005]''.
:* You can also get the SRTM data with a convenient web interface at http://srtm.csi.cgiar.org/. These come in 5 degree blocks and can be downloaded either as Geotiff or Ascii files.


* Import and display VMap0 Digital Chart of the World
* Import and display VMap0 Digital Chart of the World
** ''GRASS Newsletter, 3, June 2005.'' - http://grass.itc.it/newsletter/GRASSNews_vol3.pdf
: ''{{cmd|v.in.ogr}}''
** If your region crosses the boundaries of a VMap0 block you can use the v.append, available in the Grass addons section of this wiki, to combine vectors across the edges. It can take quite a while to work.  
:* ''[http://grass.osgeo.org/newsletter/GRASSNews_vol3.pdf 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
* Import and display ETOPO2 world elevation and bathymetry dataset
** ''Global dataset of bathymetry and topography. GRASS Newsletter, 1:8-11, August 2004.''
: ''{{cmd|r.in.bin}}''
:* ''[http://grass.osgeo.org/newsletter/GRASSNews_vol1.pdf Global dataset of bathymetry and topography. GRASS Newsletter, 1:8-11, August 2004.]''
 
=== General Import / Export ===
* Raster import and export with ''r.in.gdal'' / ''r.out.gdal''
** ''{{cmd|r.in.gdal}}'' misc. tips
** ''{{cmd|r.out.gdal}}'' data types, creation options, new flags
 
* Vector import and export with ''v.in.ogr'' / ''v.out.ogr''
** ''{{cmd|v.in.ogr}}'' misc. tips, shapefile gotchas
** ''{{cmd|v.out.ogr}}'' data types, dsn, new flags
 
* Map [[Export for GpsDrive]] navigation software


== GIS Tasks ==
== GIS Tasks ==
* Map (re-)projection
** {{cmd|r.proj}} and {{cmd|v.proj}} (snippets from manual pages)
** gdal_warp as an alternative for large, complex (re-)projection tasks
** ogr2ogr as an alternative to v.proj


* [[Georeferencing | Georectify a scanned raster image]]
* [[Georeferencing | Georectify a scanned raster image]]
** r.in.gdal into XY location
** {{cmd|r.in.gdal}} into XY location
** GUI georectifier
** {{cmd|gis.m}} GUI georectifier
** i.points + i.rectify (alternate method)
** {{cmd|i.points}} + {{cmd|i.rectify}} (alternate method)


* [[Trace vector contours from a scanned map]]
* [[Trace vector contours from a scanned map]]


* Create a DEM from contour lines and trig points
* Create a DEM from contour lines and trig points
** r.surf.contour
** {{cmd|r.surf.contour}} (see the [[Contour lines to DEM]] wiki page)


* Create a DEM from x,y,z point data
* Create a DEM from x,y,z point data
** v.surf.rst
** {{cmd|v.surf.rst}}
** v.surf.idw
** {{cmd|v.surf.idw}}
** v.surf.bspline
** {{cmd|v.surf.bspline}}
** r.surf.nnbathy
** r.surf.nnbathy (GRASS [[Addons]])


* Create vector contour lines from a raster DEM
* Create vector contour lines from a raster DEM
** r.contour
** {{cmd|r.contour}}


== 3D Visualization ==
== 3D Visualization ==


* Use NVIZ to render a 3D image
* Use NVIZ to render a 3D image
  nviz elevation.dem
  {{cmd|nviz}} elevation.dem


* Use NVIZ to make a fly through movie
* Use NVIZ to make a fly through movie
** see nviz keyframe animation panel help page
** see nviz keyframe animation panel help page
** [[Movies | Encoding Movies]]
** [[Movies | Encoding Movies]]
 
* [[GRASS and Paraview]]
* Use Paraview to render a 3D image
* Use Paraview to render a 3D image
** r.out.vtk, v.out.vtk
** {{cmd|r.out.vtk}}, {{cmd|r3.out.vtk}}, {{cmd|v.out.vtk}}
** [[GRASS and Paraview]]


== Raster operations ==
== Raster operations ==
=== Creation ===
* slope, aspect and surface parameters
** {{cmd|r.slope.aspect}}
** {{cmd|r.param.scale}}


* Create a shaded relief map
* Create a shaded relief map
** r.shaded relief
** {{cmd|r.shaded.relief}}


* drape semi-transparent land use map over shaded relief map
* drape semi-transparent land use map over shaded relief map
** d.his
** {{cmd|d.his}}
 
=== Analysis ===
 
* cost surface analysis
** {{cmd|r.cost}}
** {{cmd|r.drain}} (fun examples)
** {{cmd|r.walk}} (fun examples) [how output is different]


== Vector operations ==
== Vector operations ==


* Disolve interior lines
* Disolve interior lines
** v.dissolve
** {{cmd|v.dissolve}}


== Hardcopy and Presention Graphics Creation ==
== Hardcopy and Graphics Creation ==


* Create a high quality hardcopy plot
* create PostScript with [[Ps.map_scripts | ps.map]] (instructions in file, command line interface)
** Creating PostScript with [[Ps.map_scripts | ps.map]]
* use [[wxGUI Cartographic Composer]] (graphical user interface to ps.map, creates PDF or PostScript)
** export to GMT
* use standard GRASS GIS Map Display (or its command line interface from Python or Bash) and finalize with [https://inkscape.org Inkscape]
* export to GMT ([http://gmt.soest.hawaii.edu/ Generic Mapping Tools])
* export to [http://qgis.org/ QGIS] and use Cartography Composer there




[[Category:Documentation]]
[[Category:Documentation]]
[[Category:FAQ]]
[[Category:FAQ]]

Latest revision as of 03:35, 5 November 2014

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