<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body style="direction: ltr;" bgcolor="#ffffff" text="#000000">
Markus Neteler wrote:
<blockquote
cite="mid:86782b610904291459w4cadde2eida6798273413a2a0@mail.gmail.com"
type="cite">
<pre wrap="">On Wed, Apr 29, 2009 at 10:32 PM, Tim Michelsen
<a class="moz-txt-link-rfc2396E" href="mailto:timmichelsen@gmx-topmail.de"><timmichelsen@gmx-topmail.de></a> wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">My current idea is to play with the bounding box (extend) definitions when
defining the projection of the location and then import-/reimport.
</pre>
</blockquote>
<pre wrap="">IS there a option in GRASS to shift a raster by a vector (x, y)?
</pre>
</blockquote>
<pre wrap=""><!---->
Sure: use r.region with relative coordinates:
# North Carolina data set example
g.region rast=facility
g.copy rast=facility,myfacility
r.region map=myfacility n=n+100 e=e+100 w=w+100 s=s+100
d.mon x0
d.rast facility
d.rast -o myfacility
... and you see that the myfacility map is shifted by 100m.
</pre>
</blockquote>
So r.region actually does a kind of affine transformation? I don't
remember seeing this documented anywhere (the manual says "...manage
the boundaries...") , and I must say it's confusing and unexpected that
a module called r.region (similar to g.region) shifts/changes the data,
rather than just defining the region and resolution. <br>
-- <br>
Micha<br>
<blockquote
cite="mid:86782b610904291459w4cadde2eida6798273413a2a0@mail.gmail.com"
type="cite"><br>
<pre wrap="">
Markus
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
</body>
</html>