I've written a new script for easing importing of tiled data from another
projection. It accepts a list of input files that gdalwarp can handle, as
well as a gdalwarp s_srs source projection and produces a single map in the
current database.
Details: it projects the data in with gdalwarp, asking for a geotiff file with
alpha channel and nodata values marked in the alpha channel. It uses mapcalc
to mark nulls in the other channels where alpha is exactly 0. Finally it
patches all the various inputs together and cleans up the temporary maps.
Issues: Doesn't write history. Anyone want to tell me the right way to do
this?
Additionally I have made small changes to r.tileset, including an overlap
option to add extra cells to the right and top sides of the tiles:
Issues: Doesn't write history. Anyone want to tell me the right way to
do this?
r.patch will write it's history (command line), but from a shell script
there isn't a good way (yet). Writing a line to the history should be a
command line option of r.support, but isn't yet.
On Wed, Mar 08, 2006 at 11:03:33PM +1300, Hamish wrote:
> Issues: Doesn't write history. Anyone want to tell me the right way to
> do this?
r.patch will write it's history (command line), but from a shell script
there isn't a good way (yet). Writing a line to the history should be a
command line option of r.support, but isn't yet.
For myself, I have simply added text to the hist file,
something like this