[GRASSLIST:560] set up grass location

Hello :slight_smile:

Is there any way to set up a new grass location (with all those fields : coordinate system, etc) without using the terminal ?
I mean, is there (and if there is, what is it) any structure where grass keeps this info so that I can enter it ? I know it uses environment variables, but I don’t know
what to do for the fields like coordinate system, datum, etc

Help please :slight_smile:

Thanks.

On Tue, 4 Apr 2006 11:32:31 +0100
"Ana Soares" <tiobrothercamarada@gmail.com> wrote:

Hello :slight_smile:

Is there any way to set up a new grass location (with all those
fields : coordinate system, etc) without using the terminal ?

For 6.x, using EPSG codes if Grass is started GUI mode.

Another option is to setup a quick'n'dirty XY location and use g.proj
to modify the projection, eg. by PROJ.4 syntax or a file with WKT
projection definition (RTM for details).

I mean, is there (and if there is, what is it) any structure where
grass keeps this info so that I can enter it ? I know it uses
environment variables, but I don't know
what to do for the fields like coordinate system, datum, etc

Grass depends on PROJ.4 for projections handling.

Read cs2cs man to learn how to get the names it uses.

Check epsg and esri files in the directory where your PROJ.4 is
installed for some complete cordinate systems strings.

Proj.4 naming is 90% compatible with Grass, but:

PROJ.4 Grass
latlong ll
krass krassovsky

Propably more like these, but only these I know.

Also, PROJ.4 needs uppercase ellipsoids names, while Grass tolerates
both lower and uppercase.

Then check projections, ellipse.table and datum.table in the
dir where_your_grass_lives/etc/. Seems they are not complete, but will
give you some further insight.

It's all a bit mess but that's the way it is for now, due to legacy
reasons.

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

If you have a dataset the is already in the projection you need, you
can import it with r.in.gdal/v.in.ogr with the "location=xxx"
parameter. This will automatically create location xxx according to
the datasets extents and projection info.

matt

On 4/4/06, Ana Soares <tiobrothercamarada@gmail.com> wrote:

Hello :slight_smile:

Is there any way to set up a new grass location (with all those fields :
coordinate system, etc) without using the terminal ?
I mean, is there (and if there is, what is it) any structure where grass
keeps this info so that I can enter it ? I know it uses environment
variables, but I don't know
what to do for the fields like coordinate system, datum, etc

Help please :slight_smile:

Thanks.

--
Matt Perry
perrygeo@gmail.com
http://www.perrygeo.net

Hi,
I just thought of sharing this with you.

In the ~/grass-6.0.1/lib/init directory(prior to compilation of GRASS), the programs mke_loc.c , set_data.c can be edited to create location and mapset, automatically everytime u start a GRASS session for the first time and to avoid inputting the values at the command prompt
to set the geographic region. One can set the all the values internally. Also the PROJ_INFO and PROJ_UNITS files can be
created within the programs. Later using g.setproj the proj info could be changed.
I did the above procedure because i wanted GRASS to start with the geographic region being set since we all use the same coordinate
system(lat/lon) and ellipsoid WGS84.

Nagesh

Maciek Sieczka wrote:

On Tue, 4 Apr 2006 11:32:31 +0100
"Ana Soares" <tiobrothercamarada@gmail.com> wrote:

Hello :slight_smile:

Is there any way to set up a new grass location (with all those
fields : coordinate system, etc) without using the terminal ?
   
For 6.x, using EPSG codes if Grass is started GUI mode.

Another option is to setup a quick'n'dirty XY location and use g.proj
to modify the projection, eg. by PROJ.4 syntax or a file with WKT
projection definition (RTM for details).

I mean, is there (and if there is, what is it) any structure where
grass keeps this info so that I can enter it ? I know it uses
environment variables, but I don't know
what to do for the fields like coordinate system, datum, etc
   
Grass depends on PROJ.4 for projections handling.

Read cs2cs man to learn how to get the names it uses.

Check epsg and esri files in the directory where your PROJ.4 is
installed for some complete cordinate systems strings.

Proj.4 naming is 90% compatible with Grass, but:

PROJ.4 Grass
latlong ll
krass krassovsky

Propably more like these, but only these I know.

Also, PROJ.4 needs uppercase ellipsoids names, while Grass tolerates
both lower and uppercase.

Then check projections, ellipse.table and datum.table in the
dir where_your_grass_lives/etc/. Seems they are not complete, but will
give you some further insight.

It's all a bit mess but that's the way it is for now, due to legacy
reasons.

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

Hi!

Thanks very much for the suggestion!
I ended up doing that yesterday!
But thank you so much!

2006/4/6, Nagesh Bhatkar <bnagesh@nio.org>:

Hi,
I just thought of sharing this with you.

In the ~/grass-6.0.1/lib/init directory(prior to compilation of GRASS),
the programs mke_loc.c , set_data.c can be edited to create location
and mapset, automatically everytime u start a GRASS session for the
first time and to avoid inputting the values at the command prompt
to set the geographic region. One can set the all the values internally.
Also the PROJ_INFO and PROJ_UNITS files can be
created within the programs. Later using g.setproj the proj info could
be changed.
I did the above procedure because i wanted GRASS to start with the
geographic region being set since we all use the same coordinate
system(lat/lon) and ellipsoid WGS84.

Nagesh

Maciek Sieczka wrote:

On Tue, 4 Apr 2006 11:32:31 +0100
“Ana Soares” <tiobrothercamarada@gmail.com > wrote:

Hello :slight_smile:

Is there any way to set up a new grass location (with all those
fields : coordinate system, etc) without using the terminal ?

For 6.x, using EPSG codes if Grass is started GUI mode.

Another option is to setup a quick’n’dirty XY location and use g.proj
to modify the projection, eg. by PROJ.4 syntax or a file with WKT
projection definition (RTM for details).

I mean, is there (and if there is, what is it) any structure where
grass keeps this info so that I can enter it ? I know it uses
environment variables, but I don’t know
what to do for the fields like coordinate system, datum, etc

Grass depends on PROJ.4 for projections handling.

Read cs2cs man to learn how to get the names it uses.

Check epsg and esri files in the directory where your PROJ.4 is
installed for some complete cordinate systems strings.

Proj.4 naming is 90% compatible with Grass, but:

PROJ.4 Grass
latlong ll
krass krassovsky

Propably more like these, but only these I know.

Also, PROJ.4 needs uppercase ellipsoids names, while Grass tolerates
both lower and uppercase.

Then check projections, ellipse.table and datum.table in the
dir where_your_grass_lives/etc/. Seems they are not complete, but will
give you some further insight.

It’s all a bit mess but that’s the way it is for now, due to legacy
reasons.

Maciek


W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/