[GRASS-user] Re: make a raster index in GRASS

Jamie Adams jaadfoo at gmail.com
Wed Jul 16 15:19:42 EDT 2008


Thanks for the tip.  I ended up using FWTools on linux w/ Grass support and
gdaltindex worked fine.

-Jamie

On Wed, Jul 16, 2008 at 6:07 AM, G. Allegri <giohappy at gmail.com> wrote:

> In case you have compiled gdal with grass support you could access
> grass rasters directly from gdaltindex, pointing to the cellhd files.
>
> 2008/7/16 Ivan Shmakov <ivan at theory.asu.ru>:
> >>>>>> Jamie Adams <jaadfoo at gmail.com> writes:
> >
> >  > Hello all, I'd like to generate a raster index polygon file, just
> >  > like gdaltindex does, but using GRASS rasters as input.  Is there a
> >  > command I'm overlooking?
> >
> >        It may depend on the goal, but v.in.region(1) may be of some
> >        use.
> >
> >  > If not, any ideas on how to do this?
> >
> >        Iterating over the set of rasters can be implemented using
> >        g.mlist(1) and the standard Shell `while' and `read' commands,
> >        like:
> >
> > $ g.mlist type=rast pattern=2008-\*-foo \
> >      | while read r ; do \
> >            : ... do something... ; \
> >        done
> >
> >        And the vectors can be concatenated using v.patch(1), like:
> >
> >   v.in.region output=tmp_vector
> >   v.patch  -a output=resulting_vector input=tmp_vector
> >
> > _______________________________________________
> > grass-user mailing list
> > grass-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080716/0cbc1163/attachment.html


More information about the grass-user mailing list