Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styleitem don't recognize more than one command #4979

Closed
aperi2007 opened this issue Aug 26, 2014 · 1 comment
Closed

styleitem don't recognize more than one command #4979

aperi2007 opened this issue Aug 26, 2014 · 1 comment

Comments

@aperi2007
Copy link

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
  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 ?

@aperi2007 aperi2007 changed the title styleitem dont' rcognize more than one command styleitem don't recognize more than one command Aug 26, 2014
@aperi2007
Copy link
Author

Thx to Even , I found my stupid error.

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.
:)

Close and sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant