[GRASS-user] Help: Converting a raster map between locations (from wgs84 lat / long to UTM)

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Wed Oct 22 13:26:07 EDT 2008


On Wed, 2008-10-22 at 17:44 +0100, Corrado wrote:
> Dear friends,
> 
> I am trying to convert a GTOPO30 DEM (raster) map (for UK) from lat / long wgs 
> 84 to UTM for UK.
> 
> I am running into rserious problems. I am using the procedure as described in 
> the book open source gis a grass gis approach"
> 
> 1) in the WGS84 lat long location (ukll) I resize the map using d.zoom
> 2) I save the new region as well as the new sub-raster (for scotland)
> 3) I open grass in the UTM location
> 4) I try to import using 
> 
> r.proj in=gtopo30_cs out=gtopo30_cs_utm location=ukll mapset=PERMANENT 
> method=cubic --o
> 
> All I can get is: ERROR: Input map is outside current region
>  
> What am I doing wrong? I have tried so many different alternative solution.
> 
> Best,

Hi Corrado.

You need to check the extent of the map you want to reproject in the
initial location/mapset (check with g.region -p) and then set those (or
bigger?) in your target location/mapset (with g.region e= s= w= n= ).

Then re-"r.proj" and it should go.

Cheers, Nikos

P.S. If you are interested why it's not "automatic" you can read more in
this "trac ticket" http://trac.osgeo.org/grass/ticket/328



More information about the grass-user mailing list