[GRASS-dev] r.in.gdal: restrict extent of imported data set to current region?

Markus Neteler neteler at osgeo.org
Fri Aug 19 00:56:42 PDT 2016


On Thu, Aug 18, 2016 at 7:07 PM, Veronica Andreo <veroandreo at gmail.com> wrote:
> Hello Markus,
>
> Ohh, I would so very much like that -r flag in r.in.gdal
> (https://trac.osgeo.org/grass/ticket/2055)...
>
> For the time being, what about:
>
> r.external
> r.mapcalc
> g.remove
>
> ?

yeah, maybe...

> or passing the xmin, xmax, ymin, ymax to gdal_translate with -projwin and
> then r.in.gdal?

Like this (I just beautified the page):
https://grass.osgeo.org/grass72/manuals/g.region.html#using-g.region-in-a-shell-in-combination-with-gdal

> Dunno how efficient would that be for such a huge dataset, though... I'd
> still prefer the -r in r.in.gdal ;)

me too :)

Markus


More information about the grass-dev mailing list