Hello All,
I am trying to use dynamic symbolizers with an attribute from a table. The
attribute in my table is a column of hexidecimal colors (example: "#FFBD00")
called "col_hex".
When I publish this table of points with the style I created, the OpenLayers
preview comes up blank.
This is my SLD (the CQL is on the  CssParameter line). Any help would be
much appreciated.

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
    xsi:schemaLocation="http://www.opengis.net/sldStyledLayerDescriptor.xsd";
    xmlns="http://www.opengis.net/sld";
    xmlns:ogc="http://www.opengis.net/ogc";
    xmlns:xlink="http://www.w3.org/1999/xlink";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <NamedLayer>
    <Name>CRMP points</Name>
    <UserStyle>
      <Title>CRMP station colors</Title>
      <FeatureTypeStyle>
        <Rule>
          <Name>zoom</Name>
          <Title>zoom levels</Title>
          <PointSymbolizer>
            <Graphic>
              <Mark>
                <WellKnownName>circle</WellKnownName>
                <Fill>
                  <CssParameter name="fill">${col_hex}</CssParameter>
                </Fill>
              </Mark>
              <Size>8</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to