Just a quick question. Is there a fast and relyable way to find out,
if a directory is a GRASS database directory?
I expect the PERMANENT mapset directory to actually be created
once a directory serves as a GRASS database. Is this true for all
cases?
Thanks,
Bernhard
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
Hi Bernhard,
The PERMANENT directory isn't automatically created each time
with a new mapset. Not sure what you mean about finding out is
a directory is a GRASS dbase directory tho'? I have a script I use to
locate directories that looks for WIND files. Is that what you mean?
Bruce
Bernhard Reiter wrote:
Just a quick question. Is there a fast and relyable way to find out,
if a directory is a GRASS database directory?
I expect the PERMANENT mapset directory to actually be created
once a directory serves as a GRASS database. Is this true for all
cases?
Thanks,
Bernhard
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
------------------------------------------------------------------------
Part 1.2Type: application/pgp-signature
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
Hi Bruce,
if I have any directory, how can I decide if it is a GRASS database.
Especially if it contains raster data?
There must be something that all grass database directories have in
common. If it is that WIND file, it would be sufficient for
identification.
So are there WIND files in all grass database directories?
Bernhard
On Wed, Feb 07, 2001 at 12:03:29PM -0600, B. Byars wrote:
The PERMANENT directory isn't automatically created each time
with a new mapset. Not sure what you mean about finding out is
a directory is a GRASS dbase directory tho'? I have a script I use to
locate directories that looks for WIND files. Is that what you mean?
Bruce
Bernhard Reiter wrote:
> Just a quick question. Is there a fast and relyable way to find out,
> if a directory is a GRASS database directory?
> I expect the PERMANENT mapset directory to actually be created
> once a directory serves as a GRASS database. Is this true for all
> cases?
>
> Thanks,
> Bernhard
>
> --
> Professional Service around Free Software (intevation.net)
> The FreeGIS Project (freegis.org)
> Association for a Free Informational Infrastructure (ffii.org)
> FSF Europe (fsfeurope.org)
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
On Wed, Feb 07, 2001 at 07:11:56PM +0100, Bernhard Reiter wrote:
Hi Bruce,
if I have any directory, how can I decide if it is a GRASS database.
Especially if it contains raster data?
Hi Bernhard,
you can check
src/tcltkgrass/script/gis_set.tcl
how Justin does the test.
There must be something that all grass database directories have in
common. If it is that WIND file, it would be sufficient for
identification.
So are there WIND files in all grass database directories?
Ususally there *is* a PERMANENT directory containing a file DEFAULT_WIND
This would be a nice test.
Hope this helps
Markus
On Wed, Feb 07, 2001 at 12:03:29PM -0600, B. Byars wrote:
> The PERMANENT directory isn't automatically created each time
> with a new mapset. Not sure what you mean about finding out is
> a directory is a GRASS dbase directory tho'? I have a script I use to
> locate directories that looks for WIND files. Is that what you mean?
>
> Bruce
>
>
> Bernhard Reiter wrote:
>
> > Just a quick question. Is there a fast and relyable way to find out,
> > if a directory is a GRASS database directory?
> > I expect the PERMANENT mapset directory to actually be created
> > once a directory serves as a GRASS database. Is this true for all
> > cases?
> >
> > Thanks,
> > Bernhard
> >
> > --
> > Professional Service around Free Software (intevation.net)
> > The FreeGIS Project (freegis.org)
> > Association for a Free Informational Infrastructure (ffii.org)
> > FSF Europe (fsfeurope.org)
> >
> > ------------------------------------------------------------------------
> > Part 1.2Type: application/pgp-signature
>
>
> ----------------------------------------
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo@geog.uni-hannover.de with
> subject 'unsubscribe grass5'
>
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
--
Markus Neteler * University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494 Fax: -3984
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
Hi Bernhard,
Sorry for the slow response (our university ISP is having more problems -sigh-)
but yes, the WIND file is common to all GRASS database directories. Are you
thinking of a script to find the WIND files to identify the GRASS data directories?
I've got something that we could modify for this if that's what you're thinking.
Let
me know and we'll go from there.
Bruce
Bernhard Reiter wrote:
Hi Bruce,
if I have any directory, how can I decide if it is a GRASS database.
Especially if it contains raster data?
There must be something that all grass database directories have in
common. If it is that WIND file, it would be sufficient for
identification.
So are there WIND files in all grass database directories?
Bernhard
On Wed, Feb 07, 2001 at 12:03:29PM -0600, B. Byars wrote:
> The PERMANENT directory isn't automatically created each time
> with a new mapset. Not sure what you mean about finding out is
> a directory is a GRASS dbase directory tho'? I have a script I use to
> locate directories that looks for WIND files. Is that what you mean?
>
> Bruce
>
>
> Bernhard Reiter wrote:
>
> > Just a quick question. Is there a fast and relyable way to find out,
> > if a directory is a GRASS database directory?
> > I expect the PERMANENT mapset directory to actually be created
> > once a directory serves as a GRASS database. Is this true for all
> > cases?
> >
> > Thanks,
> > Bernhard
> >
> > --
> > Professional Service around Free Software (intevation.net)
> > The FreeGIS Project (freegis.org)
> > Association for a Free Informational Infrastructure (ffii.org)
> > FSF Europe (fsfeurope.org)
> >
> > ------------------------------------------------------------------------
> > Part 1.2Type: application/pgp-signature
>
>
> ----------------------------------------
> If you want to unsubscribe from GRASS Development Team mailing list write to:
> minordomo@geog.uni-hannover.de with
> subject 'unsubscribe grass5'
>
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
------------------------------------------------------------------------
Part 1.2Type: application/pgp-signature
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
On Thu, Feb 08, 2001 at 09:27:18AM -0600, B. Byars wrote:
Sorry for the slow response (our university ISP is having more
problems -sigh-) but yes, the WIND file is common to all GRASS
database directories. Are you thinking of a script to find the
WIND files to identify the GRASS data directories?
Yes, I will probably build this functionality into the
grassbrowse python script of the ossim bridge.
I've got something that we could modify for this if that's what
you're thinking. Let me know and we'll go from there.
If you already have some script, it would be great if you are
willing to share it. Mail it to me or make it overwise available.
Thanks
Bernhard
Bernhard Reiter wrote:
> Hi Bruce,
>
> if I have any directory, how can I decide if it is a GRASS database.
> Especially if it contains raster data?
>
> There must be something that all grass database directories have in
> common. If it is that WIND file, it would be sufficient for
> identification.
>
> So are there WIND files in all grass database directories?
> Bernhard
>
> On Wed, Feb 07, 2001 at 12:03:29PM -0600, B. Byars wrote:
> > The PERMANENT directory isn't automatically created each time
> > with a new mapset. Not sure what you mean about finding out is
> > a directory is a GRASS dbase directory tho'? I have a script I use to
> > locate directories that looks for WIND files. Is that what you mean?
> >
> > Bruce
> >
> >
> > Bernhard Reiter wrote:
> >
> > > Just a quick question. Is there a fast and relyable way to find out,
> > > if a directory is a GRASS database directory?
> > > I expect the PERMANENT mapset directory to actually be created
> > > once a directory serves as a GRASS database. Is this true for all
> > > cases?
> > >
> > > Thanks,
> > > Bernhard
> > >
> > > --
> > > Professional Service around Free Software (intevation.net)
> > > The FreeGIS Project (freegis.org)
> > > Association for a Free Informational Infrastructure (ffii.org)
> > > FSF Europe (fsfeurope.org)
> > >
> > > ------------------------------------------------------------------------
> > > Part 1.2Type: application/pgp-signature
> >
> >
> > ----------------------------------------
> > If you want to unsubscribe from GRASS Development Team mailing list write to:
> > minordomo@geog.uni-hannover.de with
> > subject 'unsubscribe grass5'
> >
>
> --
> Professional Service around Free Software (intevation.net)
> The FreeGIS Project (freegis.org)
> Association for a Free Informational Infrastructure (ffii.org)
> FSF Europe (fsfeurope.org)
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
If you already have some script, it would be great if you are
willing to share it. Mail it to me or make it overwise available.
Hi Bernhard,
I'll email you my scripts in just a bit. Do look at Justin's
scripts in tcltk as Markus suggests as well.
Take care, my friend,
Bruce
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'
Hi Bernhard
"B. Byars" wrote:
> If you already have some script, it would be great if you are
> willing to share it. Mail it to me or make it overwise available.
Hi Bernhard,
I'll email you my scripts in just a bit. Do look at Justin's
scripts in tcltk as Markus suggests as well.
What I do in the startup script is check if PERMANENT is a mapset of the
given location. As Bruce stated, there is no real guarantee that
PERMANENT will be a mapset in all locations, but I have also seen
mapsets without a WIND file as well. In short, to the best of my
knowledge, there is no way to guarantee a particular directory belongs
to Grass. The reason I picked the check for PERMANENT was because some
Grass modules will report an error if a location does not contain a
PERMANENT mapset. At least I remember getting that error a few times in
the past.
However, I plan to change this in the new initialization code I am
working on. I not only plan to add a check for a PERMANENT mapset in the
current location when you start Grass, I also plan to put in a Create
Location feature that will always create a PERMANENT mapset as part of
the creation process. Thus, checking for a PERMANENT mapset will be a
reliable way to test for Grass databases starting with Grass 5.1 (I
hope).
If you're interested in looking at the code it is in
src/tcltkgrass/main/gis_set.tcl in the procedure CheckLocation around
line 220.
Hope this helps.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'