Common Tasks: Difference between revisions
Jump to navigation
Jump to search
⚠️Wenzeslaus (talk | contribs) (→Hardcopy and Graphics Creation: add wxGUI Composer, Inkscape and QGIS, use also full name for GMT, remove the word Presention from title) |
|||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
= 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 | ||
: ''{{cmd|r.in.srtm}}'' | |||
:* ''[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 | ||
: ''{{cmd|v.in.ogr}}'' | |||
:* ''[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 | ||
: ''{{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 | == Hardcopy and Graphics Creation == | ||
* | * create PostScript with [[Ps.map_scripts | ps.map]] (instructions in file, command line interface) | ||
* 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
- 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
- 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
General Import / Export
- Raster import and export with r.in.gdal / r.out.gdal
- r.in.gdal misc. tips
- r.out.gdal data types, creation options, new flags
- Vector import and export with v.in.ogr / v.out.ogr
- Map Export for GpsDrive navigation software
GIS Tasks
- Map (re-)projection
- Create a DEM from contour lines and trig points
- r.surf.contour (see the Contour lines to DEM wiki page)
- Create a DEM from x,y,z point data
- v.surf.rst
- v.surf.idw
- v.surf.bspline
- r.surf.nnbathy (GRASS Addons)
- Create vector contour lines from a raster DEM
3D Visualization
- Use NVIZ to render a 3D image
nviz elevation.dem
- Use NVIZ to make a fly through movie
- see nviz keyframe animation panel help page
- Encoding Movies
- GRASS and Paraview
- Use Paraview to render a 3D image
Raster operations
Creation
- slope, aspect and surface parameters
- Create a shaded relief map
- drape semi-transparent land use map over shaded relief map
Analysis
Vector operations
- Disolve interior lines
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