[mapserver-dev] Re: RFC 61: some questions
roman
romat2 at gmail.com
Mon Nov 1 12:37:29 EDT 2010
Frank Warmerdam wrote:
>
> roman wrote:
>> First, thanks for this useful addition, it greatly simplifies data
>> preparation for MapServer. I am testing it and I have some questions.
>>
>> 1) Line pattern does not seem to work, e.g. PEN(c:#FF0000,w:2px,p:"3px
>> 5px"). Is it already implemented?
>
> Roman,
>
> My experience is that MapServer does not honour pen patterns from OGR.
> I looked at adding this a month or two ago but was intimidated by the
> complexity.
>
Frank,
I thought that OGR pattern would map to MapServer PATTERN.
But it does not have to be necessarily OGR style. MapServer feature
representation is also OK (although OGR representation is much shorter).
Documentation says that in version 6.0 PATTERN was moved from SYMBOL
definitions to STYLE definitions but I am not sure if it is already
implemented. I tried it (with MapServer style representation as feature
attribute and also in classic way in LAYER definition, i.e. without
STYLEITEM "Style") and could not get it to work. Is there any example how to
create simple dashed line in layer STYLE definition?
Line width and line pattern are two basic ways to style lines and without
pattern it would not be complete.
>> 2) Labels - OGR style specification allows to reference to other
>> attribute
>> value, e.g. LABEL(c:#FFFFFF,f:"Arial",s:1.5g,p:2,t:{TextValue}). With
>> MapServer I was successful only with literal text, e.g.
>> LABEL(c:#FFFFFF,f:"Arial",s:1.5g,p:2,t:"text"). Should referencing work
>> in
>> MapServer? In my case, TextValue is used for other purposes so
>> referencing
>> it would avoid redundancy.
>
> Referencing is not implemented in mapserver, and I don't believe any
> existing
> OGR drivers actually returned text values pulled by reference.
>
I know and I don't expect it. I would prepare Style and TextValue attributes
(columns) with my own script.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/RFC-61-some-questions-tp5693346p5694286.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.
More information about the mapserver-dev
mailing list