Opened 15 years ago
Closed 15 years ago
#3174 closed defect (fixed)
SCALE_BUCKETS broken for Int16/UInt16 rasters
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 5.6 release |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | raster scaling |
Cc: | bartvde |
Description
Hi Frank,
I've got a strange problem with Mapserver (both 5.2 and 5.6) with GDAL 1.6, I can't get the scale buckets to be applied. I am using the following:
PROCESSING "SCALE=-5838,4225" PROCESSING "SCALE_BUCKETS=50"
but when using shp2img in debug mode I still get 8913 scale buckets:
[bart@hades OGC_UMN_services]$ shp2img -m /data/OGC_UMN_services/machu_bathymetry.map -all_debug 10 -o /tmp/bla msLoadMap(): 0.243s msDrawRasterLayerLow(GEBCO): entering. msDrawGDAL(): src=714,417,4086,2346, dst=0,0,697,400 msDrawGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawRasterGDAL_16BitClassification(GEBCO): scaling to 8913 buckets from range=-5600.5,3312.5. msDrawMap(): Layer 0 (GEBCO), 3.905s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 3.937s msSaveImage() total time: 0.350s msFreeMap(): freeing map at 0x895d308. shp2img total time: 4.538s
The gdalinfo of the tiff is attached.
Do you have any idea what could be causing this and how to improve speed?
TIA.
Best regards, Bart
Note:
See TracTickets
for help on using tickets.
I believe I have corrected this in trunk (r9466) and added a test to the test suite (r9467). This should appear in beta4.
Let me know if the problem persists.