[mapserver-users] Raster does not accept expression values

Gabriel Messner gabmessner at gmail.com
Mon Sep 1 01:23:10 PDT 2008


I have a Float32 raster, which was made with Arcgis Spatial Analyst. When
retrieving it with mapserver using different Class with Expression values,
nothing appears, but with just one Class the raster is shown right in a gray
scale palette.

Any help would be appreciated.

AYER
    NAME "PopulationDensity"
    TYPE RASTER
    DATA 'D:/Raster/PopulationDensity.tif'
    TOLERANCE 0
    TOLERANCEUNITS pixels
    TEMPLATE " "
    METADATA
        "force_imagetype" "gif"
        "RESULT_FIELDS" "x,y,value_list"
        "RESULT_HEADERS" "UTM-X,UTM-Y,Density"
    END
    CLASS
        NAME '0-10'
        EXPRESSION ([pixel] >= 0 AND [pixel] < 10)
        STYLE
            COLOR 0 194 181
        END
    END
    CLASS
        NAME '10-25'
        EXPRESSION ([pixel] >= 10 AND [pixel] < 25)
        STYLE
            COLOR 0 242 36
        END
    END
    CLASS
        NAME '25-50'
        EXPRESSION ([pixel] >= 25 AND [pixel] < 50)
        STYLE
            COLOR 173 255 47
        END
    END
    CLASS
        NAME '50-100'
        EXPRESSION ([pixel] >= 50 AND [pixel] < 100)
        STYLE
            COLOR 234 255 0
        END
    END
    CLASS
        NAME '100-250'
        EXPRESSION ([pixel] >= 100 AND [pixel] < 250)
        STYLE
            COLOR 255 176 0
        END
    END
    CLASS
        NAME '250-500'
        EXPRESSION ([pixel] >= 250 AND [pixel] < 500)
        STYLE
            COLOR 244 127 11
        END
    END
    CLASS
        NAME '500-1000'
        EXPRESSION ([pixel] >= 500 AND [pixel] < 1000)
        STYLE
            COLOR 87 62 37
        END
    END
    CLASS
        NAME '1000-25000'
        EXPRESSION ([pixel] >= 1000 AND [pixel] < 25000)
        STYLE
            COLOR 122 116 135
        END
    END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080901/8fcb6675/attachment.htm>


More information about the MapServer-users mailing list