[gdal-dev] Correct sintax for multicommand in FeatureStyle specification

Andrea Peri aperi2007 at gmail.com
Sat Aug 30 05:41:44 PDT 2014


Hi,
I'm try to undestand the FeatureStyle specification.

To do this I'm using the mapserver that seem to work with it.


Actually I have a dubt about the usage of more than one command.

Infact a single command could be as example:

'LABEL(f:"Arial",t:"Blah Blah Blah",s:3g,c:#0000FF)'

That command mean "print a label with text "Blah Blah Blah" . Color
Blu font Arial and size 3 ground-unit.

Infact using it with mapserver work and effectively the map has that result.

Also if I try this other command:

'BRUSH(fc:#FF0000)'

this mean : fill the polygon with a full red.

Also this work with mapserver.

Now I need to understand if and how is possible to have more than one command.

Reading the specs ,
I guess the right sintax should be this:

'BRUSH(fc:#FF0000);LABEL(f:"Arial",t:"Blah Blah Blah",s:3g,c:#0000FF)'

Where the two command are separate by a ; char.

Unfortunately this string dont seem work with mapserver.

I try also the opposite string:

"LABEL(f:"Arial",t:"Blah Blah Blah",s:3g,c:#0000FF);BRUSH(fc:#FF0000)"

BUt still not seem work.
Always is showed only the first command only.

This could effectively tobe an issue of mapserver.
But I'm not really sure that this is the correct string for multi
command using the featurestyle spec.

So I like to have any hint on this.

If the sintax I'm using is correct and if there is some software or
authoring that support it.

Thx,

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the gdal-dev mailing list