Hi there,
thank you for your fast answer.
Yes, the SE specification states that Rotation expects a number. The
angle attribute in my PostGIS has the type 'real' so its supposed to be
a number.
So I have the following questions:
- does the data type of the attribute cause the problem or
- does the expression <ogc:PropertyName>...</ogc:PropertyName> cause the
problem because MapServer doesn't support the access on a table
regarding Rotation and only works with a fix value in general?
Somewhere I have found a deprecated method for getting access on an
attribute (which didn't use PropertyName), I also tried this and it
didn't work. By the way, I'm using MapServer 5.4.
Before I condemn MapServer for not supporting the attribute binding for
Rotation: How could I check up if there's probably a type cast from a
'real' attribute of the PostGIS table to a 'string' attribute? Which
other data type could I try rather than 'real'?
Is there a way to track the exact request from MapServer to PostGIS and
back again?
Is there anyone who tried rotating via SLD/SE in combination with
attribute binding and not just via a fix value?
Bye
Alex
P.S. Thank you for opening the ticket on the TTF issue
Yewondwossen Assefa wrote:
Alexander Reichelt wrote:
Hi list,
I've got some issues with the MapServer and SLD/SE 1.1.0:
1. I can't rotate my labels. They are displaying the string value I'm
reading out of a PostGIS table correctly. But the real value standing
for an angle they doesn't seem to use. My TextSymbolizer looks like
this:
<se:TextSymbolizer>
<se:Label>content</se:Label>
<se:Font>
<se:SvgParameter name="font-family">arialbold</se:SvgParameter>
<se:SvgParameter name="font-size">10.00</se:SvgParameter>
</se:Font>
<se:LabelPlacement>
<se:PointPlacement>
<se:AnchorPoint>
<se:AnchorPointX>0.5</se:AnchorPointX>
<se:AnchorPointY>0.5</se:AnchorPointY>
</se:AnchorPoint>
<se:Rotation>
<ogc:PropertyName>angle</ogc:PropertyName>
</se:Rotation>
</se:PointPlacement>
</se:LabelPlacement>
<se:Fill>
<se:SvgParameter name="fill">#000000</se:SvgParameter>
</se:Fill>
</se:TextSymbolizer>
When I type in a fix value like 220.5 then it works and all labes are
displayed with this angle. The curious thing is, when I exchanged the
content item with the angle item then the angle item was displayed,
so the MapServer does have access to the angle item. Is it possible
that there's a typecast which casts the real value of the angle into
a string? How can I check this? I've tried to change the XML elements
but nothing helped me so far.
Rotation is defined as a number in the SLD specs and that is what is
currently expected when parsing the SLD in MapServer.
Using attributes from your data for the rotation/angle parameter (or
for that matter for all parameters that have attribute binding
capabilities in Mapserver), could possibly be supported (at least in
cases where the the value in the sld is a string and the expected
value is numeric). You can possibly enter an enhancement bug on this
and start a discussion in that bug.
2. MapServer doesn't support TrueType symbols for PointSymbolizers,
is this correct? The website states that MapServer supports
Well-known names. I've tried to point on a .ttf file and use
MarkIndex to get out a symbol but I had no success.
That is correct, only Well-known symbols as well as well as gif/png
symbols are supported. I have entered a enhancement bug on it [1]
[1]: http://trac.osgeo.org/mapserver/ticket/3084
best regards
Thank you in advance
Alex
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users