displaying layers with two classes
Bart van den Eijnden
BEN at SYNCERA-ITSOLUTIONS.NL
Thu Aug 4 23:28:35 PDT 2005
Looks like Mapserver is running out of colors in 8 bit mode, can you try and use 24 bit mode?
Change your outputformat to:
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
EXTENSION PNG
IMAGEMODE RGBA
TRANSPARENT ON
END
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Travis Kirstine GIS Tech <tkirstine at JDBARNES.COM> 08/04/05 21:31 PM >>>
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
More information about the MapServer-users
mailing list