I would like to be able to take a raster and reduce it's size for faster loading when I'm displaying the map for wide regions. I thought that by resampling I could reduce the resolution and hence the number of pixels, but the file I created is exactly the same size as the original. Can anyone confirm that resampling is the way to reduce the raster size? If so, can you tell me how to do it? If not, is there a way to accomplish what I want?
Regards,
Michael
Michael Rensing wrote:
I would like to be able to take a raster and reduce it's size for faster
loading when I'm displaying the map for wide regions. I thought that by
resampling I could reduce the resolution and hence the number of pixels,
but the file I created is exactly the same size as the original. Can
anyone confirm that resampling is the way to reduce the raster size?
Resampling will reduce the size, but it may not have much effect upon
performance.
Almost all raster commands automatically resample their input maps to
the resolution of the current region. In most cases, the resolution of
the current region is more important than the actual resolution of the
maps.
If so, can you tell me how to do it?
g.region res=...
r.resample in=oldmap out=newmap
--
Glynn Clements <glynn@gclements.plus.com>