Hi,
What is exactly your goal? Displaying an image in a GIS or just saving
an image to be used as an illustration ?
If the second option is yours, then have a look at spplot() and then
save the image with png(), jpeg(), tiff() or bmp()
HTH
Alex
Dear all,
I'm new to this forum.
I'm desperately looking for help, as I'm stuck with a problem and I can't find
any solution.
I'd like to open a raster map (for example with rgdal it is read as a
SpatialGridDataFrame) and then save it as a gif image with a specific
color palette.
I can't find the way to specify the color, so I can only create greyscale
images.
It sounds simple but nothing seems to work.
I've been trying with:
Kp1P<- readGDAL(mymap)
writeGDAL(Kp1P,"myGIFmap.gif",drivername="gif",col=colmed)
but col is not an option in writeGDAL command
I need to specify this colors:
colmed<-c(rep(rgb(255/255, 204/255, 204/255),10),rep(rgb(255/255,
184/255, 176/255),10),rep(rgb(255/255, 164/255,
176/255),10),rep(rgb(255/255, 144/255, 125/255),10),
rep(rgb(250/255, 125/255, 102/255),10),rep(rgb(247/255, 104/255,
79/255),10),rep(rgb(242/255, 85/255, 61/255),10),rep(rgb(235/255,
65/255, 42/255),10),
rep(rgb(227/255, 40/255, 23/255),10),rep(rgb(219/255, 0/255, 0/255),10))
HELP!
Lorenzo
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo