Agg and resampling
Rob McCulley
RMcCulley at COUNTY24.COM
Thu Aug 30 12:18:33 PDT 2007
Hi All,
Agg doesn't seem to be able to use resampling in tiled raster layers.
This is my raster layer:
LAYER # Aerials_2003
NAME Aerials_2003
GROUP RemoteSensing
TILEINDEX "Aerials_2003.shp"
TILEITEM "location"
STATUS DEFAULT
TYPE RASTER
PROCESSING "RESAMPLE=BILINEAR"
OPACITY 70
MAXSCALEDENOM 75000
DEBUG ON
END
and this is my output format:
OUTPUTFORMAT
NAME "AGG_JPEG"
DRIVER "AGG/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
FORMATOPTION QUALITY=80
END
Then the raster layer does not draw. There are no errors at all, but no
raster layer. If I comment the PROCESSING line out, then the raster
layer appears. If I leave the PROCESSING line in, and change the output
format to GD/JPEG, then the raster layer appears.
The output of shp2img with debug level set to 2 with the PROCESSING line
and agg output is:
msDrawRasterLayerLow(Aerials_2003): entering.
msResampleGDALToMap in effect: cellsize = 1.000000
msDrawGDAL(Aerials_2003): using RAW_WINDOW=6244 2998 914 913
msDrawGDAL(): red,green,blue,alpha bands = 1,0,0,0
msDrawMap(): Layer 0 (Aerials_2003), 0.172s
msDrawMap(): Layer 1 (ParcelLines), 0.016s
msDrawMap(): Layer 2 (CadastralLabelsParcel), 0.015s
msDrawMap(): Layer 6 (Pipes), 0.016s
msDrawMap(): Layer 7 (Abandoned_Pipes), 0.015s
msDrawMap(): Layer 8 (New_Pipes), 0.000s
msDrawMap(): Layer 9 (ForeignPipelines), 0.016s
msDrawMap(): Layer 10 (TapStations), 0.016s
msDrawMap(): Layer 11 (RegStations), 0.015s
msDrawMap(): Layer 12 (Wells), 0.016s
msDrawMap(): Layer 13 (Major-Water), 0.016s
msDrawMap(): Layer 14 (Minor-Water), 0.015s
msDrawMap(): Drawing Label Cache, 0.016s
msDrawMap() total time: 0.344s
It appears to be resampling the image, but the raster layer doesn't
appear.
Is this a bug, or am I missing a setting somewhere?
Thanks,
Rob McCulley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070830/3f1daf78/attachment.htm>
More information about the MapServer-users
mailing list