[GRASS5] New bash scripts for vector and raster processing

Sören Gebbert soerengebbert at gmx.de
Mon Mar 6 19:25:14 EST 2006


Hi Cedric,

On Monday 06 March 2006 08:08, Cedric Shock wrote:
> Hello,
> 
> I have written two scripts that are related to vector and raster maps.
> 
> The second script produces tilings for relating one projection to raster 
> regions in another. This is useful when requesting data from WMS servers and 
> in other network data operations. The script only produces descriptions 
> (bounding box in source, rows, and columns) of the tiles, and only for those 
> tiles overlapping the current region. It uses the current region as the 
> bounds and desired resolution for the requested data.
> 
> r.tileset sourceproj="+init=epsg:4326"
> 
> http://www.shockfamily.net/cedric/grass/r.tileset

Many thanks for your work! This script is absolutely great for tiling support in r.in.onearth.
I have updated r.in.onearth, it uses your script for tile calculation now.
A tile support prototype of the script is available here (r.tileset must be in your path),
its good for testing r.tileset ;)

http://www-pool.math.tu-berlin.de/~soeren/grass/modules/r.in.onearth

But i'm not sure if i use r.tileset correctly within r.in.onearth? The tiles i produce dont fit the region correctly.
Take a  look at these screenshots:

http://www-pool.math.tu-berlin.de/~soeren/grass/modules/screenshots/r.in.onearth.tiles_1.png
http://www-pool.math.tu-berlin.de/~soeren/grass/modules/screenshots/r.in.onearth.tiles_2.png
http://www-pool.math.tu-berlin.de/~soeren/grass/modules/screenshots/r.in.onearth.tiles_3.png

This data was generated within the default spearfish60 region with different maxrows and maxcols settings:

samples:
g.region -d
r.in.onearth -l tmband=Red output=Test1 maxrows=200 maxcols=300
r.in.onearth -l tmband=Red output=Test2 maxrows=150 maxcols=300
r.in.onearth -l tmband=Red output=Test3 maxrows=1100 maxcols=110

If only one tile is calculated by r.tileset, the bounding box is correct. :)
Can you give me a hint?

Best regards
Soeren aka huhabla

> 
> --Cedric Shock
> 
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
> 
> 




More information about the grass-dev mailing list