[GRASSLIST:6635] AW: Re: Import GRASS-Data from a distant Location/Mapset

Marco Lechner marco.lechner at geographie.uni-freiburg.de
Wed Apr 27 04:13:01 EDT 2005


Hi Ian,

thanks for your hint. The problem is that I have to collect all the files in
the different subdirectories that are related to my layer (well it's not
only one file per layer) and put them in all the corresponding
subdirectories in my folder - that's what makes it so pedestrian.

Marco


-----Ursprungliche Nachricht-----
Von: owner-GRASSLIST at baylor.edu [mailto:owner-GRASSLIST at baylor.edu]Im
Auftrag von Ian MacMillan
Gesendet: Mittwoch, 27. April 2005 09:53
An: Marco Lechner
Cc: GRASSLIST at baylor.edu
Betreff: [GRASSLIST:6632] Re: Import GRASS-Data from a distant
Location/Mapset


Marco, I haven't heard of a module for this, but it seems like you
could also just do this through a window manager (windows, mac, etc.),
just navigate to the distant mapset, copy it, and paste it in your
location and mapset, like you would do with any other non-Grass kind of
file.  At the same time, you would be able to see what is in their
directory for a list of raster/vectors/etc.

Not very helpful I guess but good luck nonetheless,
-Ian


On Apr 27, 2005, at 12:41 AM, Marco Lechner wrote:

> Hi list,
>
> I wonder if it is possible to import GRASS-Data into my
> Location/Mapset from
> a Location/Mapset wich is storted somewhere else in the Network?
> I'm using GRASS for a GIS-Lecture and each user has its own
> Spearfish-Location/Mapsets. This is necessary, because the students
> also
> should learn to administrate a whole location.
> If I want to import one of the layers a student produced in his mapset
> I
> have to
>
>> cd PATHtoMAPSETfrom
>> tar cfz temp.tgz [list of relevant layernames - may be with wildcards:
> i.e. ./*/elevation* ./*/landuse.30m ./*/layernameA ...]
>> mv temp.tgz PATHtoMyMAPSET
>> cd PATHtoMyMAPSET
>> tar xzf temp.tgz
>> rm temp.tgz
>
> Is there an easier way - did anyone write a script for this problem?
> The
> easiest way would be to have a module wich
> - asks for the path of the distant Mapset
> - checks, if the locations differ or not
> - lists the available layers (raster, vector, sites, ...)
> - lets you choose the layers
> - copies the chosen layers in my current mapset
>
> -> well, I'm not very knowledgeable about programing such a module:
>
>
> Marco
>
> ---------------------------------
> Marco Lechner
>
> office:
> Department of Physical Geography
> University of Freiburg
> Werderring 4
> D-79085 Freiburg
> Germany
> phone +49 (0)761 / 203-3548
> email marco.lechner at geographie.uni-freiburg.de
>




More information about the grass-user mailing list