[GRASS-user] Automatic import ?
stn
stneumann at web.de
Sun Jun 20 19:33:44 EDT 2010
2010/6/20 Martin Landa <landa.martin at gmail.com>
> Hi,
>
> 2010/6/20 stn <stneumann at web.de>:
> > Except for something strange. As said before the idea was to
> import+create
> > location by a script. So I made a linux shell-script that does this:
> >
> > echo "v.in.ogr dsn=mydata.shp location=import output='mydata'
> > min_area=0.0001 snap=-1" | grass -text "$GISDATEN/tmplocation/PERMANENT"
>
> try to set up script as batch job, see [1].
>
Hi Martin,
thanks you for the info.
Unfortunately that changed nothing.
The script was executed as expected but afterwards only part of the data has
been imported.
Script looks like this now:
echo "v.in.ogr dsn=/home/user/grassdata/BRD_Kreise.shp location=import
output='BRD_Kreise_shp' min_area=0.0001 snap=-1" > "$HOME/x.grass"
export GRASS_BATCH_JOB="$HOME/x.grass"
grass -text "$GISDATEN/tmplocation/PERMANENT"
THX
stn
>
> Martin
>
> [1] http://grass.osgeo.org/wiki/GRASS_and_Shell#GRASS_Batch_jobs
>
> --
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa<http://gama.fsv.cvut.cz/%7Elanda>
>
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100621/c79c5877/attachment.html
More information about the grass-user
mailing list