I could make it to show by removing WIDTH 5. Mapserver obviously did not like to see it in that place because the error
from the server was
loadClass(): Unknown identifier. Parsing error near (WIDTH):(line 43)
By reading the documentation I do not quite understand what WIDTH should do with your diagonal-auf2 symbol, but I think
it should do something, or then nothing, but not to lead to loadClass error. Perhaps you have found a bug.
Lähettäjä: mapserver-users [mailto:[hidden email]]
Puolesta Ahmet Temiz Lähetetty: 8. marraskuuta 2016 9:47 Vastaanottaja: mapserver-users <[hidden email]> Aihe: [mapserver-users] confused on styling polygon
I think I am confused on styling polygon.
I normally displayed the map without using symbol. When
I used symbol. Nothing is displayed.
here is the relevant code.
COLOR 0 0 252
What am I doing wrong?
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem Dairesi Başkanlığı-CBS Grubu
Information Systems - GIS Group
Disaster and Emergency Management
According to the STYLE-> WIDTH documentation, for POLYGON
symbols (filled symbols of type vector) WIDTH refers to
the width of the outline of the symbol:
"If used with SYMBOL and OUTLINECOLOR, WIDTH specifies the width of the
symbol outlines. This applies to SYMBOL TYPE vector (polygons), ellipse
The documentation is probably a bit imprecise in not
including the word "filled" for the vector and ellipse types.
If you add OUTLINECOLOR 255 0 0, you will see the outline
of the symbol in red with a width of 5.
Apparently, leaving out OUTLINECOLOR seems to be equivalent
to OUTLINECOLOR 255 255 255, and since your outline is
thicker than the half the width of the symbol, the outline
will erase the blue (0 0 252) interior of the symbol.
If you want to see some of the interior of the symbol
(blue), you will have to reduce the value of WIDTH or
increase the value of SIZE.
On 08. nov. 2016 08:46, Ahmet Temiz wrote:
> I think I am confused on styling polygon.
> I normally displayed the map without using symbol. When
> I used symbol. Nothing is displayed.
> here is the relevant code.
> STATUS OFF
> TYPE POLYGON
> OPACITY 80
> SYMBOL "diagonal-auf2"
> COLOR 0 0 252
> SIZE 10
> WIDTH 5
> NAME "diagonal-auf2"
> TYPE vector
> 0 0.8
> 0.2 1
> 1 0.2
> 0.8 0
> 0 0.8
> FILLED TRUE
> What am I doing wrong?
> Ahmet Temiz
> Jeoloji Müh.
> Afet ve Acil Durum Yönetimi Başkanlığı
> Bilgi İşlem Dairesi Başkanlığı-CBS Grubu
> Ahmet Temiz
> Geological Eng.
> Information Systems - GIS Group
> Disaster and Emergency Management
> of Presidency
> mapserver-users mailing list
> [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users >