displaying layers with two classes
Travis Kirstine GIS Tech
tkirstine at JDBARNES.COM
Thu Aug 4 12:29:24 PDT 2005
I've been tring to display several layer each with two classes but getting
some unexpected results. I want to display each polygon layer with one
class having a solid fill at max extent 1:150000 to 1:20000 then use another
class having a outline only at the min scale range 1:20000 to 1:500. Seems
easy, my layers display correctly at the max scale range(max_range.jpg) but
at the min range the colours are incorrect, the colours are all the same as
the first layer in my mapfile(min_range_bad.jpg). Also if I turn off the
first layer the colour changes to the correct colour(min_range.jpg). I
don't know what I'm doing wrong.
Travis
#{{{{{[[[[[[((((((<<< APARTMENT NEIGHBOURHOODS>>>)))))))]]]]]]]}}}}}}
LAYER
DATA mattamy/apartment_neighbourhoods
NAME "op_niegh"
METADATA
DESCRIPTION "OP Apartment Areas"
END
TYPE POLYGON
STATUS on
MINSCALE 120000
MAXSCALE 501
TEMPLATE void
CLASS
NAME "app_1"
MAXSCALE 120000
MINSCALE 20001
SYMBOL 4
COLOR 255 127 0
SIZE 1
END
CLASS
NAME "app_2"
MAXSCALE 20000
MINSCALE 500
SYMBOL 4
OUTLINECOLOR 255 127 0
SIZE 3
END
END
#{{{{{[[[[[[((((((<<< MIXED USE >>>)))))))]]]]]]]}}}}}}
LAYER
DATA mattamy/mixed_use_area
NAME "op_mix"
METADATA
DESCRIPTION "OP Mixed Use Areas"
END
TYPE POLYGON
STATUS on
MINSCALE 120000
MAXSCALE 501
TEMPLATE void
CLASS #displayes correctly
NAME "mix_1"
MAXSCALE 120000
MINSCALE 20001
SYMBOL 4
COLOR 255 50 50
SIZE 1
END
CLASS #displayes as orange instead of red
NAME "mix_2"
MAXSCALE 20000
MINSCALE 500
SYMBOL 4
OUTLINECOLOR 255 50 50
SIZE 3
END
END
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max_range.JPG
Type: image/jpeg
Size: 162875 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/cb44ffb4/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: min_range.JPG
Type: image/jpeg
Size: 238049 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/cb44ffb4/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: min_range_bad.JPG
Type: image/jpeg
Size: 197738 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050804/cb44ffb4/attachment-0002.jpe>
More information about the MapServer-users
mailing list