在我的示例中,栅格图层未以正确的颜色显示。当图层放大时,它以正确的颜色显示。请检查我的代码。请告诉我是否应该添加任何内容。我的地图显示在一个矩形框中。如果缩放后的地图完全适合该框,则显示原始颜色。我无法理解这个问题。如果缺少任何东西来解决问题,请通知我是否需要我的示例的任何信息。这对我很有帮助。谢谢你。
花园地图.map:
MAP
NAME GMAP_DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.txt
EXTENT 688649.375 2983133.5 693946.3125 2986990
UNITS METERS
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt
#
# Start of web interface definition
#
WEB
MINSCALE 5000
MAXSCALE 700000
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 150 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 5
STATUS ON
END
LAYER
NAME lissiv
METADATA
"DESCRIPTION" "garden_ms"
END
TYPE RASTER
STATUS ON
DATA lissiv.tif
OFFSITE 0 0 0
PROCESSING "BANDS=1,2,3"
PROCESSING "SCALE=AUTO"
PROCESSING "DITHER=YES"
PROCESSING "LUT=50:90,60:100,70:120"
PROCESSING "NODATA=22"
END
END#mapfile