<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<BR> <BR>I am working with <STRONG>ms4w_3.0_beta11</STRONG> and <STRONG>OpenLayers</STRONG> to render maps. The data for the map, exists in PostGIS database. I am trying to apply rotation to symbols using SLD, but it does not seem to work. A part of the mapfile i am using is as follows:<BR> <BR>Symbol<BR>Name 'iftriangle'<BR>Type VECTOR<BR>Filled TRUE<BR>Points<BR>0 0<BR>.5 2<BR>1 0<BR>0 0<BR>END<BR>END <BR> <BR>LAYER<BR> NAME 'Sectors_GSM'<BR> TYPE point <BR> CONNECTIONTYPE POSTGIS<BR> CONNECTION 'host=localhost user=postgres port=5432 dbname=dbname password=pwd'<BR> DATA 'wkb_geometry from tablename USING UNIQUE ogc_fid using SRID=900914' <BR> METADATA<BR> 'wms_title' 'Sectors'<BR> END <BR> <BR> STATUS ON<BR> TRANSPARENCY 100<BR> PROJECTION<BR> "init=EPSG:900913"<BR> END<BR> <BR> CLASSITEM 'antenna_type'<BR> CLASS<BR> NAME 'GSM' <BR> STYLE<BR> SYMBOL 'iftriangle'<BR> SIZE 15<BR> COLOR 51 51 204<BR> ANGLE [orientation]<BR> END<BR> END<BR> END <BR> <BR> <BR>This layer renders correctly. But when i try to apply a filter using SLD, the map renders, but the symbols are not rotated. Here is the SLD file i am using:<BR>
<BR>
<StyledLayerDescriptor version="1.1.0" xmlns="<A href="http://www.opengis.net/sld">http://www.opengis.net/sld</A>" xmlns:se="<A href="http://www.opengis.net/se">http://www.opengis.net/se</A>" <BR>
xmlns:ogc="<A href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A>" xmlns:xlink="<A href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</A>" xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>" <BR>
xsi:schemaLocation="<A href="http://www.opengis.net/sld">http://www.opengis.net/sld</A> <A href="http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd</A>"><BR> <NamedLayer><BR> <se:Name>Sectors</se:Name><BR> <UserStyle><BR> <se:FeatureTypeStyle><BR> <se:Rule><BR> <se:Name>M</se:Name><BR> <ogc:Filter><BR> <ogc:PropertyIsEqualTo><BR> <ogc:PropertyName>antenna_type</ogc:PropertyName><BR> <ogc:Literal>M</ogc:Literal><BR> </ogc:PropertyIsEqualTo><BR> </ogc:Filter><BR> <se:PointSymbolizer><BR> <se:Graphic><BR> <se:Mark><BR> <se:WellKnownName>iftriangle</se:WellKnownName><BR> <se:Fill><BR> <se:CssParameter name="fill">#660033</se:CssParameter><BR> </se:Fill><BR> </se:Mark><BR> <se:Size>15</se:Size><BR> <se:Rotation> <BR> <ogc:PropertyName>orientation</ogc:PropertyName> <BR> </se:Rotation><BR> </se:Graphic><BR> </se:PointSymbolizer><BR> </se:Rule><BR> </se:FeatureTypeStyle><BR> </UserStyle><BR> </NamedLayer><BR></StyledLayerDescriptor><BR>
<BR>
I have also tried the above with SLD version 1.0.0. Nothing seems to work. But if i give <BR> <se:Rotation>45</se:Rotation>, it works. The symbols are rotated by 45 degrees.<BR>
<BR>
I need to get that angle from PostGIS database. Please help me.<BR>
<BR>
Thank you, <BR>Srilakshmi <BR><BR>                                            </body>
</html>