Pointsymbolizer
Peter Bruton
peter.bruton at NRCAN.GC.CA
Wed Feb 7 10:25:13 PST 2007
Hello;
I am using MapServer 4.8 and have setup a WMS. I can successfully execute
GetCapabilities, GetMap, and GetStyles requests. The problem I am
experiancing is that I do not get any information back in the
PointSymbolizer when I submit a GetStyles request on a point layer that
users a TrueType font as the source for point symbology. The following is
the results from a GetStyles request on a leyr with two classes.
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengeospatial.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>can_1m_cap</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name>Provincial and territorial</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo><ogc:PropertyName>CAPITAL</ogc:PropertyName><ogc:Literal>2</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
<PointSymbolizer>
</PointSymbolizer>
</Rule>
<Rule>
<Name>National</Name>
<ogc:Filter>
<ogc:PropertyIsEqualTo><ogc:PropertyName>CAPITAL</ogc:PropertyName><ogc:Literal>1</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>
<PointSymbolizer>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
As you can see the PointSymbolizer for both classes in the layer is empty.
Does the SLD specifiction only support "WellKnownName" point types? If that
is the case and I still chose to use other ways (TrueType fonts) to define
point symbology, is there any way to convey to the user the symbol being
used when they execute a GetStyles request?
Thank-you in advance.
Peter
More information about the MapServer-users
mailing list