[GRASS-user] Automatic import ?

stn stneumann at web.de
Mon Jun 21 06:14:09 EDT 2010


2010/6/21 Martin Landa <landa.martin at gmail.com>

> Hi,
>
> 2010/6/21 stn <stneumann at web.de>:
>
> [...]
>
> > 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"
>
> $ cat "$HOME/x.grass"
> #!/bin/sh
> v.in.ogr dsn=/home/user/grassdata/BRD_Kreise.shp location=import
> output='BRD_Kreise_shp' min_area=0.0001 snap=-1
>
> $ chmod +x $HOME/x.grass
>
> Helps?
>
> > export GRASS_BATCH_JOB="$HOME/x.grass"
> > grass -text "$GISDATEN/tmplocation/PERMANENT"
>


Hi Martin,

sorry, still same as before. Only part of the polygons are imported.

This is the newest complete shell-script:


#!/bin/bash
GISDATEN="$HOME/grassdata"
OUTPUT="mydata"
rm -r "$GISDATEN/import"
echo "#!/bin/sh
v.in.ogr dsn=$1 location=import output='$OUTPUT' min_area=0.0001 snap=-1
" > "$HOME/x.grass"
export GRASS_BATCH_JOB="$HOME/x.grass"
chmod +x "$HOME/x.grass"
grass -text "$GISDATEN/tmplocation/PERMANENT"




>
> Martin
>
> --
> 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/68e3e3f4/attachment-0001.html


More information about the grass-user mailing list