GRASS 6 Tutorial: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
 
(42 intermediate revisions by the same user not shown)
Line 19: Line 19:
virtually every tool in the GRASS library.
virtually every tool in the GRASS library.


If you are new to GRASS GIS and plan to use the command line inteface and/or Linux, it is recommended that you read the [http://www.linux.org/lessons/ Introductory Material] for Linux.
If you are new to GRASS GIS and plan to use the command line inteface and/or within a Linux environment, it is recommended that you read the [http://www.linux.org/lessons/ Introductory Material] for Linux. Also, if you have been using other GIS packages, you may find the [[GRASS_Help#Migration_from_other_GIS_Software|Migration tips]] useful reading.


===Getting started - how to migrate to the new GRASS version===
This tutorial is designed to give you hands-on experience with GRASS GIS. We start by showing you how to view and query raster and vector data and continue by explaining how to import and process raster and vector data.
===[http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Getting_Started Getting started]===


If you have already installed GRASS GIS on your system, you can continue to the next section. Otherwise, please consult the [[http://grasswiki.osgeo.org/wiki/Installation_Guide Installation Guide]], which covers all of the main operating systems. If you want to compile GRASS GIS from source, you should follow these [[http://grasswiki.osgeo.org/wiki/Compile_and_Install Instructions]].
===[http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Displaying_spatial_data Displaying Spatial Data]===


If you have been using other GIS packages, you may find the [[GRASS_Help#Migration_from_other_GIS_Software|Migration tips]] useful.
==Using GRASS with raster data==


To launch GRASS GIS, simply type 'grass64' on the command line. 
===Overview===
* [[Grass Six Tutorial Getting Started]]


==Raster data management==
This section of the tutorial is intended to provide new users with an introduction to raster data management in GRASS GIS. As with other parts of the GRASS 6 tutorial, the examples are largely based on the GRASS 5.7 tutorial as well as the GRASS GIS presentation at Geostat-2012. The aim is to present the reader with introductory information on handling raster data within GRASS GIS. It is worth mentioning that the raster management hasn't changed significantly from previous versions of GRASS (e.g. versions 4 or 5), therefore older tutorials and books on the GRASS raster modules should also work.


* [http://grass.osgeo.org/wiki/GRASS_6_Tutorial/Raster_data_management Working with raster data in GRASS]
===[http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Raster_data_management Raster Data Management]===
* The raster management works as it did in previous GRASS versions.
: Tutorials and books written for GRASS 4 and 5 should for the most part still work.
* [http://grass.ibiblio.org/grass63/manuals/html63_user/rasterintro.html Raster data processing introduction] from the main help manual.


==Vector data management==
==Using GRASS with vector data==
[http://grass.osgeo.org/wiki/GRASS_6_Tutorial/Vector_data_management Working with vector data in GRASS]


===Importing Vector data===
===Overview===
[http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_data_management#Importing_Vector_data Vector Data Import]
The native GRASS vector format provides provides vector topology with n:m mapping of geometry features to attributes. In addition, vector layers are supported with a variety of database management systems (DBMS) supported as back-ends that include: SQLite, PostgreSQL + PostGIS, MySQL, ODBC (, DBF). The vector geometry types supported in GRASS includes: points, centroids, lines, boundaries, areas (boundaries + centroids), face (3d areas), kernels and volumes.  


The examples that follow in this section on vector data management are based on the datasets available [http://data.neteler.org/geostat2012/north_carolina here]


'''Below are from the GRASS-5.7 Tutorial -- but are being updated...'''
===[http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_data_management Vector Data Management]===
===Vector network analysis examples===
 
===[http://grasswiki.osgeo.org/wiki/GRASS_6_Tutorial/Vector_spatial_analysis Vector Spatial Analysis]===
 
===Vector network analysis examples [from GRASS 5.7 tutorial]===


* New Spearfish examples: [http://grass.osgeo.org/grass63/manuals/html63_user/v.net.html v.net], [http://grass.osgeo.org/grass63/manuals/html63_user/v.net.iso.html v.net.iso], [http://grass.osgeo.org/grass63/manuals/html63_user/v.net.path.html v.net.path] etc.
* New Spearfish examples: [http://grass.osgeo.org/grass63/manuals/html63_user/v.net.html v.net], [http://grass.osgeo.org/grass63/manuals/html63_user/v.net.iso.html v.net.iso], [http://grass.osgeo.org/grass63/manuals/html63_user/v.net.path.html v.net.path] etc.
* Old tutorial: http://grass.osgeo.org/grass57/tutorial/network.html
* Old tutorial: http://grass.osgeo.org/grass57/tutorial/network.html
<!--- dmci: This is commented out as it has been updated in vector data management, tho' useful for reference to go back to check that everything has been incorporated.
===Basic usage examples  [from GRASS 5.7 tutorial]===
http://grass.osgeo.org/grass57/tutorial/ex_basic.html
--->
===[http://grass.osgeo.org/grass57/tutorial/ex_complex.html Complex usage examples  [from GRASS 5.7 tutorial]]===


===Vector overlay/clipping examples===
===[http://grass.osgeo.org/grass57/tutorial/usa_demo.html Examples from US National Atlas  [from GRASS 5.7 tutorial]]===
http://grass.osgeo.org/grass57/tutorial/vectoroverlay.html


==Usage examples==
==Using GRASS with R==


''The following await porting from the GRASS 5.7 tutorial''
===GRASS and R kriging interpolation===


===Basic usage examples===
===Mini How to interpolate using kriging with GRASS and R===
http://grass.osgeo.org/grass57/tutorial/ex_basic.html
 
[[How to interpolate point value using kriging method with R and GRASS 6]]
 
==Using GRASS with GMT==


===Complex usage examples===
* [http://169.237.35.250/~dylan/grass_user_group/ GRASS-GMT Examples]
http://grass.osgeo.org/grass57/tutorial/ex_complex.html


===Examples from US National Atlas===
==Additional Information==
http://grass.osgeo.org/grass57/tutorial/usa_demo.html


===FAQ (Frequently Asked Questions)===
===FAQ (Frequently Asked Questions)===
* [[Faq|GRASS Wiki FAQ]]
* [[Faq|GRASS Wiki FAQ]]


* [[Grass Six Tutorial Faq]]
* [[Grass Six Tutorial Faq]]


==Troubleshooting==
* [http://grasswiki.osgeo.org/wiki/GRASS_Help Help and Troubleshooting]
http://grass.osgeo.org/grass57/tutorial/troubleshooting.html


* Grass Six Tutorial Troubleshooting
=== References ===


==Links of interest==
* GRASS [http://grass.osgeo.org/gdp/tutorials.php books and tutorials]
<!--- dmci: link not working * GRASS 6 Tutorial at [http://www.gdf-hannover.de/literature GDF]
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation--->
* GRASS [http://www.geostat-course.org/Topic_NetelerMetz_2012 GEOSTAT 2012] course


* GRASS-GMT Examples: http://169.237.35.250/~dylan/grass_user_group/
==Further reading==
===GRASS and R kriging interpolation===
====Mini How to interpolate using kriging with GRASS and R====
[[How to interpolate point value using kriging method with R and GRASS 6]]
==== References ====
* GRASS [http://grass.osgeo.org/gdp/tutorials.php books and tutorials]
* GRASS 6 Tutorial: http://www.gdf-hannover.de/literature
* Translation Portal for GRASS 6 Tutorial http://www.gdf-hannover.de/translation


[[Category: Documentation]]
[[Category: Documentation]]
[[Category: Tutorial]]
[[Category: Tutorial]]

Latest revision as of 08:29, 30 July 2013

GRASS GIS version 6.4 is fully operational and stable version that can be used for production use. This tutorial will familiarize you with the improved functionality and will focus on raster and vector data management as well some basic spatial data analysis.

This tutorial is intended for GRASS GIS users who want to migrate from a previous release to the new GRASS Version. If you are a beginner, please also consider additional books or tutorials as well as consulting the Introductory Material.


Disclaimer: In case the examples described here do not work properly, you are kindly invited to send us further examples and/or code bugfixes/enhancements. Enjoy the WIKI!

NOTE: This tutorial is under construction and is incorporating sections of the previous GRASS 5.7 tutorial.

Introduction

New developments in GRASS GIS have made major improvements to the vector architecture. The most significant change includes a new 2- and 3-dimensional vector library that manages vector attributes in standard database management systems (DBMS), providing a fully relational database for vector attribute management, while preserving the flexibility of traditional GRASS topological tools. GRASS now also incorporates true 3-dimensional voxels in the NVIZ visualization environment as well as numerous enhancements to virtually every tool in the GRASS library.

If you are new to GRASS GIS and plan to use the command line inteface and/or within a Linux environment, it is recommended that you read the Introductory Material for Linux. Also, if you have been using other GIS packages, you may find the Migration tips useful reading.

This tutorial is designed to give you hands-on experience with GRASS GIS. We start by showing you how to view and query raster and vector data and continue by explaining how to import and process raster and vector data.

Getting started

Displaying Spatial Data

Using GRASS with raster data

Overview

This section of the tutorial is intended to provide new users with an introduction to raster data management in GRASS GIS. As with other parts of the GRASS 6 tutorial, the examples are largely based on the GRASS 5.7 tutorial as well as the GRASS GIS presentation at Geostat-2012. The aim is to present the reader with introductory information on handling raster data within GRASS GIS. It is worth mentioning that the raster management hasn't changed significantly from previous versions of GRASS (e.g. versions 4 or 5), therefore older tutorials and books on the GRASS raster modules should also work.

Raster Data Management

Using GRASS with vector data

Overview

The native GRASS vector format provides provides vector topology with n:m mapping of geometry features to attributes. In addition, vector layers are supported with a variety of database management systems (DBMS) supported as back-ends that include: SQLite, PostgreSQL + PostGIS, MySQL, ODBC (, DBF). The vector geometry types supported in GRASS includes: points, centroids, lines, boundaries, areas (boundaries + centroids), face (3d areas), kernels and volumes.

The examples that follow in this section on vector data management are based on the datasets available here

Vector Data Management

Vector Spatial Analysis

Vector network analysis examples [from GRASS 5.7 tutorial]

Complex usage examples [from GRASS 5.7 tutorial]

Examples from US National Atlas [from GRASS 5.7 tutorial]

Using GRASS with R

GRASS and R kriging interpolation

Mini How to interpolate using kriging with GRASS and R

How to interpolate point value using kriging method with R and GRASS 6

Using GRASS with GMT

Additional Information

FAQ (Frequently Asked Questions)

References