You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LAYER
NAME "layertext2"
TYPE POLYGON
STATUS OFF
FEATURE
WKT "POLYGON((631215.0 4857617.0, 631415.0 4857617.0, 631415.0 4857817.0, 631215.0 4857817.0, 631215.0 4857617.0))"
ITEMS 'BRUSH(fc:#FF0000);LABEL(f:"Arial",t:"35.4",s:3g,c:#0000FF)'
END #FEATURE
METADATA
"wms_title" "Test2"
"ows_enable_request" "*"
END
PROJECTION
"+init=epsg:25832 +towgs84=0,0,0,0,0,0,0"
END
PROCESSING "ITEMS=field1"
LABELCACHE off
#SYMBOLSCALEDENOM 15000
SIZEUNITS meters
MAXSCALEDENOM 6000000
MINSCALEDENOM 1
STYLEITEM 'field1'
CLASS
name "style1"
MAXSCALEDENOM 6000000
MINSCALEDENOM 1
END #CLASS
END
while set a styleitem that should write a TEXT label and brush a red polygon (followind the feturestyle specs).
Istead it show only the brush.
Seem that the mapserver will recognize only the first command in the styleitem field.
So if the field is
"BRUSH(fc:#FF0000);LABEL(f:"Arial",t:"35.4",s:3g,c:#0000FF)"
it show the brush only.
Instead if the field is
"LABEL(f:"Arial",t:"35.4",s:3g,c:#0000FF);BRUSH(fc:#FF0000)"
it show the label only.
Is this multiple command supported by mapserver ?
The text was updated successfully, but these errors were encountered:
aperi2007
changed the title
styleitem dont' rcognize more than one command
styleitem don't recognize more than one command
Aug 26, 2014
The FEATURE / END use the same char ; of the featurestyle spec to separe the fields.
So the mapserver was correctly use one commad only because the other are in another field.
:)
Hi,
This code:
LAYER NAME "layertext2" TYPE POLYGON STATUS OFF FEATURE WKT "POLYGON((631215.0 4857617.0, 631415.0 4857617.0, 631415.0 4857817.0, 631215.0 4857817.0, 631215.0 4857617.0))" ITEMS 'BRUSH(fc:#FF0000);LABEL(f:"Arial",t:"35.4",s:3g,c:#0000FF)' END #FEATURE METADATA "wms_title" "Test2" "ows_enable_request" "*" END PROJECTION "+init=epsg:25832 +towgs84=0,0,0,0,0,0,0" END PROCESSING "ITEMS=field1" LABELCACHE off #SYMBOLSCALEDENOM 15000 SIZEUNITS meters MAXSCALEDENOM 6000000 MINSCALEDENOM 1 STYLEITEM 'field1' CLASS name "style1" MAXSCALEDENOM 6000000 MINSCALEDENOM 1 END #CLASS ENDwhile set a styleitem that should write a TEXT label and brush a red polygon (followind the feturestyle specs).
Istead it show only the brush.
Seem that the mapserver will recognize only the first command in the styleitem field.
So if the field is
"BRUSH(fc:#FF0000);LABEL(f:"Arial",t:"35.4",s:3g,c:#0000FF)"
it show the brush only.
Instead if the field is
"LABEL(f:"Arial",t:"35.4",s:3g,c:#0000FF);BRUSH(fc:#FF0000)"
it show the label only.
Is this multiple command supported by mapserver ?
The text was updated successfully, but these errors were encountered: