advertisement

JGrass Workshop: Introduction to JGrass

60 %
40 %
advertisement
Information about JGrass Workshop: Introduction to JGrass
Technology

Published on October 13, 2008

Author: moovida

Source: slideshare.net

Description

JGrass workshop at FOSS4G2008, first part. Introduction to JGrass.
advertisement

GETTING STARTED WITH JGRASS & GIS Silvia Franceschi Andrea Antonello FOSS4G WORKSHOP 2008-10-03

INSTALLATION JGrass is a Java based Free and Open Source GIS. It is multiplatfom: windows linux macOSX You can download JGrass for free at: www.jgrass.org Two types of installation branded JGrass version udig plugin

JGrass is a Java based Free and Open Source GIS. It is multiplatfom:

windows

linux

macOSX

You can download JGrass for free at:

www.jgrass.org

Two types of installation

branded JGrass version

udig plugin

JGRASS BRANDED VERSION INSTALLATION The complete branded version of JGrass is released only for special events or specific projects JGrass_foss4g Installation is easy, simply double click on the executable and follow the NNNI (next-next-next-installation) instructions. The complete branded version of JGrass for the Windows OS contains also the GRASS executables needed by JGrass to run GRASS commands.

INSTALLATION AS A uDig PLUGIN JGrass as a plugin can be installed only after uDig installation. download uDig at http://udig.refractions.net/download/ install uDig following the instruction in the Walk through select from the menu Help -> Find and Install...

JGrass as a plugin can be installed only after uDig installation.

download uDig at http://udig.refractions.net/download/

install uDig following the instruction in the Walk through

select from the menu Help -> Find and Install...

INSTALLATION AS A uDig PLUGIN Select to install new functionalities and go on with the wizard. Select JGrass as the new functionality to install.

INSTALLATION AS A uDig PLUGIN

INSTALLATION AS A uDig PLUGIN

INSTALLATION AS A uDig PLUGIN

INSTALLATION AS A uDig PLUGIN

INSTALLATION AS A uDig PLUGIN

INSTALLATION AS A uDig PLUGIN Installation of JGrass plugin in uDig adds three new menus to the menu bar: HortonMachine JGrass GRASS

Installation of JGrass plugin in uDig adds three new menus to the menu bar:

HortonMachine

JGrass

GRASS

INSTALLATION AS A uDig PLUGIN Installation of JGrass plugin in uDig adds three new menus to the menu bar: HortonMachine JGrass GRASS And two new icons in the toolbar opening the scripting editor active region definition

Installation of JGrass plugin in uDig adds three new menus to the menu bar:

HortonMachine

JGrass

GRASS

And two new icons in the toolbar

opening the scripting editor

active region definition

GUI DESCRIPTION PROJECT VIEW

GUI DESCRIPTION LAYERS VIEW

GUI DESCRIPTION MAP VIEW

GUI DESCRIPTION CATALOG AND ATTRIBUTE TABLE

DATA VISUALIZATION In JGrass-uDig it is possible to visualize georeferenced RASTER and VECTOR data. Vector data are completely supported by uDig itself. More info about this tools are available from the uDig website: http://udig.refractions.net/confluence/display/EN/Walkthrough+1 http://udig.refractions.net/confluence/display/EN/Walkthrough+2 For raster data there are some functionalities of uDig (essentially display images) and some others introduced by JGrass.

CREATION OF A NEW PROJECT The creation of a new project in uDig is automatic when importing a new layer, in any case we suggest to create a new project ad hoc for the data you are importing to keep all the information coherent and ordered.

CREATION OF A NEW PROJECT name of the new project

CREATION OF A NEW PROJECT path in which to save the project

OVERVIEW FOR DATA VISUALIZATION uDig and JGrass work following the idea of Drag&Drop: every kind of data can be visualized simply drag the file into the program. It is possible to drag the file from the Explore of the operating system to one of these view: Catalog: the layer will be added to the catalog but not visualized Map: the layer will be directly visualized and added on top of the visualized layers Layers: the new layer is added exactly in the point the user drop it Project: the layer is added to the opened project

uDig and JGrass work following the idea of Drag&Drop: every kind of data can be visualized simply drag the file into the program.

It is possible to drag the file from the Explore of the operating system to one of these view:

Catalog: the layer will be added to the catalog but not visualized

Map: the layer will be directly visualized and added on top of the visualized layers

Layers: the new layer is added exactly in the point the user drop it

Project: the layer is added to the opened project

OVERVIEW OF VECTOR DATA VISUALIZATION Shapefile visualization refers to the .shp file of the shapefile files bundle (shx, prj, dbf). select a shapefile in the operating system's Explorer and drag it to the Catalog of JGrass right-click the item in the catalog and select in the pop-up menu the entry: “add to new map” alternatively you can also just drag & drop the entry onto the map

Shapefile visualization refers to the .shp file of the shapefile files bundle (shx, prj, dbf).

select a shapefile in the operating system's Explorer and drag it to the Catalog of JGrass

right-click the item in the catalog and select in the pop-up menu the entry: “add to new map”

alternatively you can also just drag & drop the entry onto the map

INSTALLATION AS A uDig PLUGIN In the same way as JGrass it is possible to install also Axios extension as a uDig plugin. Axios tools add some CAD capabilities to the basis GIS software. It consists in some tools for editing and management of vector data (shapefile). These new capabilities are: spatial operations: buffer, clip, dissolve, intersect and spatial join editing tools: arc, merge, modes for create geometry, split and trim

In the same way as JGrass it is possible to install also Axios extension as a uDig plugin.

Axios tools add some CAD capabilities to the basis GIS software. It consists in some tools for editing and management of vector data (shapefile).

These new capabilities are:

spatial operations: buffer, clip, dissolve, intersect and spatial join

editing tools: arc, merge, modes for create geometry, split and trim

OVERVIEW FOR VECTOR DATA

OVERVIEW FOR VECTOR DATA

OVERVIEW FOR VECTOR DATA

OVERVIEW FOR VECTOR DATA

OVERVIEW FOR VECTOR DATA

move layer on top and below other layers editing of visualization style highlight of the selected layer in the map zoom to the extend of the selected layer OVERVIEW FOR VECTOR DATA

move layer on top and below other layers

editing of visualization style

highlight of the selected layer in the map

zoom to the extend of the selected layer

feature selection tools information tools feature layer editing tools OVERVIEW FOR VECTOR DATA

feature selection tools

information tools

feature layer editing tools

map navigation tools zooming e panning OVERVIEW FOR VECTOR DATA

map navigation tools

zooming e panning

Image based raster data (as TIFF, JPG) can be visualized in JGrass-Udig the same way as explained for vector data before. Anyway, this type of data is not editable inside of the application, but only usable as base cartography. OVERVIEW OF RASTER DATA

OVERVIEW OF RASTER DATA

JGRASS: RASTER DATA ANALYSIS In JGrass raster data targetted for raster analysis have to be organised following a particular logic, which can be summarized in the following schema: DATABASE: a working folder on the hard disk of the pc inside which all the data handled by JGrass are kept LOCATION: a folder inside the DATABASE folder inside which the information of the projection is held MAPSET: again a folder inside a LOCATION folder, it represents the main working environment inside which the maps are really held

In JGrass raster data targetted for raster analysis have to be organised following a particular logic, which can be summarized in the following schema:

DATABASE: a working folder on the hard disk of the pc inside which all the data handled by JGrass are kept

LOCATION: a folder inside the DATABASE folder inside which the information of the projection is held

MAPSET: again a folder inside a LOCATION folder, it represents the main working environment inside which the maps are really held

JGRASS: RASTER DATA ANALYSIS

The data structure of Jgrass data is completely tranparent to the user and handled by the application. The user only has to define the folder that is ment to represent the DATABASE and the name of the LOCATIONS AND MAPSETS as they are created. The creation of a new location occurrs through the menu: File -> New -> Other JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

Path to the JGrass DATABASE JGRASS: RASTER DATA ANALYSIS

Name of the new LOCATION to create JGRASS: RASTER DATA ANALYSIS

Selection of the Coordinate Reference System JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

Definition of the new MAPSET Click here to add a new mapset JGRASS: RASTER DATA ANALYSIS

Drag and drop the file with extention “*.jgrass” that was created inside the new LOCATION into the Catalog of JGrass JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

Data types that are directly importable into JGrass JGRASS: RASTER DATA ANALYSIS

Reset does a refresh on the list of maps available inside the Mapset visible in the Catalog JGRASS: RASTER DATA ANALYSIS

To visualize the data of the MAPSET it is recommended to create a new Map, in order to properly handle the projection information. Currently JGrass rasters do not support on-the-fly reprojection, so the Map projection has to be the proper one. This does not apply for example to vector data, which are reprojected quickly. We are currently working on on-the-fly reprojection support in JGrass. Right-click on the name of the map and select from the pop-up menu the option “ Add to new map ”. JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

A very important concept for doing raster analysis is that of the Active Region or Working Region. The Active Region represents the portion of territory inside which all the calculations occur, i.e. the region on which the GRASS-JGrass algorithms will work. To visualize the Active Region just drag it onto the Map View taking it from: Catalog -> Map Graphics -> Active Region Graphic JGRASS: RASTER DATA ANALYSIS

A very important concept for doing raster analysis is that of the Active Region or Working Region. The Active Region represents the portion of territory inside which all the calculations occur, i.e. the region on which the GRASS-JGrass algorithms will work. To visualize the Active Region just drag it onto the Map View taking it from: Catalog -> Map Graphics -> Active Region Graphic JGRASS: RASTER DATA ANALYSIS

Since in the Catalog more than one LOCATION can be visualized and for a single LOCATION more than one MAPSET can be available, it is necessary to select the MAPSET on which the application is supposed to work (it is the MAPSET that holds the information of the Active Region). JGRASS: RASTER DATA ANALYSIS

The Active Region is visualized with its defaut settings, which is a a white area inside a green layer. All the analyses that are done with JGrass-GRASS commands are applied only to the Active Region and with the resolution of the Active Region. This means that if you do not have data inside the white area or if all the data are covered by the green region, they will not be used by the algorithms JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

The Active Region can be modified and configured in two different ways: once, the Active Region layer has been selected, through the style layer configuration button, placed on the top of the layer view through the Active Region icon placed in the main toolbar: In this case the user is able to quickly change the boundaries of the Active Region, but for example not the resolution. JGRASS: RASTER DATA ANALYSIS

The Active Region can be modified and configured in two different ways:

once, the Active Region layer has been selected, through the style layer configuration button, placed on the top of the layer view

through the Active Region icon placed in the main toolbar: In this case the user is able to quickly change the boundaries of the Active Region, but for example not the resolution.

JGRASS: RASTER DATA ANALYSIS

JGRASS: RASTER DATA ANALYSIS

Click on the apply button twice!!!! JGRASS: RASTER DATA ANALYSIS

JGRASS: SETTING THE WORKING ENVIRONMENT For the proper execution of commands, JGrass needs the definition of two important settings: The working MAPSET: that is the MAPSET that contains the data that will be analyzed (-> the Active Region that will be used by the commands is the one hold by the chosen MAPSET ) the path to the GRASS commands: this information is not mandatory if you plan to use only JGrass commands, but is necessary to be able to use GRASS commands. For this foss4g windows version we bundled GRASS in the installation folder of the application, so that is the path that has to be supplied. In any other case, as for example for linux or macos systems, that path represents the installation folder of GRASS on the pc.

For the proper execution of commands, JGrass needs the definition of two important settings:

The working MAPSET: that is the MAPSET that contains the data that will be analyzed (-> the Active Region that will be used by the commands is the one hold by the chosen MAPSET )

the path to the GRASS commands: this information is not mandatory if you plan to use only JGrass commands, but is necessary to be able to use GRASS commands. For this foss4g windows version we bundled GRASS in the installation folder of the application, so that is the path that has to be supplied. In any other case, as for example for linux or macos systems, that path represents the installation folder of GRASS on the pc.

JGRASS: SETTING THE WORKING ENVIRONMENT

JGRASS: GENERAL COMMANDS

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

waurisa2010 Open Source Tools for Spatial Analysis 2010 3

Open Source Tools for Spatial Analysis ... karsten@terragis.net 206 905 1711. Workshop ... http://jgrass.wiki.dev.fsc.bz.it/jgrass Udig JGrass Introduction
Read more

Tutorials - jgrass - Selected presentations and tutorials ...

To get started with JGrass, ... Introduction to JGrass. To have an overview on JGrass and the related frameworks, have a look at the following posters:
Read more

The proposal of the final integration of JGrass into uDig.

The proposal of the final integration of JGrass ... Introduction. It is since the joining of the uDig community that we wanted to slowly migrate all of ...
Read more

Modeling short wave solar radiation using the JGrass ...

Abstract Introduction Conclusions References Tables Figures J I J I Back Close Full Screen / Esc ... DEC-MOD’s by using the JGrass-NewAge Kriging ...
Read more

Introduction to the Spatial Toolbox — uDig 1.3.2 User Guide

Introduction to the Spatial Toolbox. Before you Start. Download the Spearfish example data. ... Create a “jgrass” folder in your home directory.
Read more

JGrass an Open Source system for hydro-geomorphic analysis ...

JGrass, an Open Source System for hydro-geomorphic analysis, ... INTRODUCTION Since the efforts of late eighties (Bras et al., 1986, Band 1986, ...
Read more

JGrasstools by moovida - GitHub Pages

JGrasstools uDig's geospatial ... This library contains all geoprocessing power that is behind JGrass and that can be kept at library level. Introduction.
Read more

The informatics of the hydrological modelling system ...

modelling system JGrass-NewAge G.Formettaa, ... Brutsaer t, W. Hydrology: an introduction. Cambridge Univ Pr, 2005. Burrough, P., R. McDonnell, ...
Read more