[GRASS-user] editing rasters
Nikos Alexandris
nikos.alexandris at felis.uni-freiburg.de
Mon Aug 4 16:46:03 EDT 2008
On Mon, 2008-08-04 at 22:51 +0200, Moritz Lennert wrote:
> On 04/08/08 22:19, Nikos Alexandris wrote:
> > On Mon, 2008-08-04 at 16:57 -0300, Juan Manuel Barreneche wrote:
> >> Hello users!
> >>
> >> Is there a easier way to edit rasters than d.rast.edit or r.digit?
> >>
> >> i'm thinking of tools like those you find in common image editing
> >> programs like photoshop or gimp (brush, eraser, zoom in, zoom out,
> >> etc...); maybe even export a map and edit it with those programs?
> >>
> >> thank you very much,
> >>
> >> Juan
> >
> > 1. export your map with r.out.gdal as a geotiff. Be careful with what kind of data you have, how many categories (Byte, Int16, etc.)
> >
> > 2. Open with GIMP and edit BUT DO NOT resize the image, rotate, crop or
> > similar.
> >
> > 3. Save as Tiff with other name than the original GeoTiff
> >
> > # For steps 4,5 look at [1]
> > 4. Export with listgeo the geo-metadata from the original GeoTiff
> >
> > 5. Apply the geo-metadata to the Tiff file with geotifcp
>
> IIUC, you can also do this with gdal_translate (e.g. with the -mo flag,
> and the projection setting options).
>
> Moritz
Maybe this is even better. I suspect that some geo-tags are lost (?).
Not sure but I've seen some time ago a few error messages while using
listgeo/geotifcp. I will post back if I face a problem (again).
Greetings, Nikos
More information about the grass-user
mailing list