GRASS Location Wizard: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(+screenshot)
(rewritten)
Line 1: Line 1:
{{OutDated}}
== Creating a new location in GRASS ==
=== Development of a graphical Wizard to easily create locations ===


==== Background ====
The location wizard enables to create a new location in a few simple steps.
It provides a number of ways to set the map projection: from a geodata file (SHAPE, GeoTIFF etc), using an EPSG code, settting parameters manually, etc.


It is a long standing problem for newcomers that locations can be only created in an ASCII based interface.
Here an example:


==== Idea ====
First screen of the Location wizard which is found in the GRASS GIS Startup window:


Write a graphical Wizard to easily create locations which leads the user through a dialog of:
[[Image:Grass64 location wiz1.png|500px|thumb|center|GRASS Location Wizard: user choices]]


* directory of GRASS database (option to create new directory if needed)
The location wizard also helps you select the appropriate geodetic
* name of location (avoid white spaces in name)
datum and transform parameters for your map projection.:
* name of mapset (default: PERMANENT)
[[Image:Grass64 location wiz2.png|500px|thumb|center|GRASS Location Wizard: choosing the projection]]
* query for (non)projection:
[[Image:Wxgui-location-wizard.png|500px|thumb|center|GRASS Location Wizard: choosing the geodetic datum]]
** xy unreferenced data: rows, cols, xmin, xmax, ymin, ymax, default raster resolution
[[Image:Grass64 location wiz3.png|500px|thumb|center|GRASS Location Wizard: finishing the creation of the new location]]
** lat/long: ellipsoid + geodetic datum (from list or EPSG code), W, N, E, S, default raster resolution
** UTM: ellipsoid + geodetic datum (from list or EPSG code), W, N, E, S, default raster resolution
** Other projections: ellipsoid + geodetic datum + lase easting/northing etc (from list or EPSG code), W, N, E, S, default raster resolution


==== Material ====
You are then brought back to the initial window of GRASS and enter the session with the "Start GRASS" button.


(please use 6.3-CVS-HEAD)
[[Category: Documentation]]
 
[[Category: FAQ]]
* the current GUI startup is in 'lib/init/gis_set.tcl'
[[Category: wxGUI]]
* the EPSG file is browsable through 'lib/init/epsg_option.tcl[.in]'
* the needed parameters for each projection are defined in 'lib/gis/geo_init.c' (the ASCII location dialog follows this file to query the user)
* geodetic datums are here: 'lib/gis/datum*'
 
Python: a new SWIG based interface to GRASS' C functionality is in 'swig/python/'
 
==== Questions ====
* write in TclTk (maybe horrible) or Python (nicer, but extra dependency)?
 
=== Results ===
 
[[Image:Wxgui-location-wizard.png|500px|thumb|center|GRASS Location Wizard]]
 
Old:
* http://les-ejk.cz/tmp/grassstartup.png
* http://les-ejk.cz/tmp/wizard.png
* http://les-ejk.cz/tmp/wizard.dia
* [http://www.nabble.com/wxgrass-intro-screen-and-location-wizard-completed-tf4215952.html#a11994380 integration]
 
[[Category:Development]]

Revision as of 10:03, 17 April 2011

Creating a new location in GRASS

The location wizard enables to create a new location in a few simple steps. It provides a number of ways to set the map projection: from a geodata file (SHAPE, GeoTIFF etc), using an EPSG code, settting parameters manually, etc.

Here an example:

First screen of the Location wizard which is found in the GRASS GIS Startup window:

GRASS Location Wizard: user choices

The location wizard also helps you select the appropriate geodetic datum and transform parameters for your map projection.:

GRASS Location Wizard: choosing the projection
GRASS Location Wizard: choosing the geodetic datum
GRASS Location Wizard: finishing the creation of the new location

You are then brought back to the initial window of GRASS and enter the session with the "Start GRASS" button.