[GRASS-user] Automatic import ?

Martin Landa landa.martin at gmail.com
Sat Jun 19 14:00:02 EDT 2010


Hi,

2010/6/19 stn <stneumann at web.de>:
> is there a way to get grass to import geodata without creating a location
> first? Grass will not start unless the location is already there or is
> created in the GUI.
>
> What I mean is:
> how can I write a script that will create a new location using projection
> and extent from an existing file with geodata and then import that file to
> that location? So that when starting grass the location and the data are
> already there.

start GRASS with some location, using

r.in.gdal location=<newlocation> ...

for raster data or

v.in.ogr location=<newlocation> ...

for vector data

you can create new location based on imported data and import data
into the new location in one command.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-user mailing list