I am attempting to use the offset function to shift the icons resulting from the output of PointStacker.  When I add this call, the object is never rendered.  There is no error in the log, or any indication of a problem.  I partially resolved this when I discovered the undocumented 'preserveLocation' parameter to PointStacker, but I would still like to have this option.  Any suggestions how what I am doing wrong, or is this a bug?  If I use offset in one of the non-PointStacker features it works as expected.  The SLD I am using is included below.

<?xml version="1.0" encoding="ISO-8859-1"?>
  <StyledLayerDescriptor version="1.0.0"
   xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.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>CameraCluster</Name>
      <UserStyle>
        <Title>Camera Cluster</Title>
        <Abstract>Cameras with clustering</Abstract>
        <FeatureTypeStyle>
          <Transformation>
            <ogc:Function name="vec:PointStacker">
              <ogc:Function name="parameter">
                <ogc:Literal>data</ogc:Literal>
              </ogc:Function>
              <ogc:Function name="parameter">
<ogc:Literal>preserveLocation</ogc:Literal>
                <ogc:Literal>Single</ogc:Literal>
              </ogc:Function>
              <ogc:Function name="parameter">
                <ogc:Literal>cellSize</ogc:Literal>
                <ogc:Literal>32</ogc:Literal>
              </ogc:Function>
              <ogc:Function name="parameter">
                <ogc:Literal>outputBBOX</ogc:Literal>
                <ogc:Function name="env">
               <ogc:Literal>wms_bbox</ogc:Literal>
                </ogc:Function>
              </ogc:Function>
              <ogc:Function name="parameter">
                <ogc:Literal>outputWidth</ogc:Literal>
                <ogc:Function name="env">
               <ogc:Literal>wms_width</ogc:Literal>
                </ogc:Function>
              </ogc:Function>
              <ogc:Function name="parameter">
<ogc:Literal>outputHeight</ogc:Literal>
                <ogc:Function name="env">
<ogc:Literal>wms_height</ogc:Literal>
                </ogc:Function>
              </ogc:Function>
            </ogc:Function>
          </Transformation>
          <Rule>
            <Name>single</Name>
            <Title>Camera</Title>
            <ogc:Filter>
              <ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>count</ogc:PropertyName>
               <ogc:Literal>1</ogc:Literal>
              </ogc:PropertyIsLessThanOrEqualTo>
            </ogc:Filter>
<MinScaleDenominator>32000.0</MinScaleDenominator>
            <PointSymbolizer>
              <Graphic>
                  <ExternalGraphic>
                     <OnlineResource xlink:type="simple" xlink:href="http://our511.com/camera.svg"; />
                     <Format>image/svg+xml</Format>
                  </ExternalGraphic>
                 <Size>16</Size>
              </Graphic>
            </PointSymbolizer>
          </Rule>
          <Rule>
            <Name>multiple</Name>
            <Title>Cameras</Title>
            <ogc:Filter>
              <ogc:PropertyIsGreaterThan>
<ogc:PropertyName>count</ogc:PropertyName>
                <ogc:Literal>1</ogc:Literal>
              </ogc:PropertyIsGreaterThan>
            </ogc:Filter>
<MinScaleDenominator>32000.0</MinScaleDenominator>
            <PointSymbolizer>
               <Geometry>
                 <ogc:Function name="offset">
<ogc:PropertyName>the_geom</ogc:PropertyName>
<ogc:Literal>-0.000005</ogc:Literal>
                   <ogc:Literal>0</ogc:Literal>
                 </ogc:Function>
               </Geometry>

               <Graphic>
                  <ExternalGraphic>
                     <OnlineResource xlink:type="simple" xlink:href="http://our511.com/camera.svg"; />
                     <Format>image/svg+xml</Format>
                  </ExternalGraphic>
                 <Size>24</Size>
               </Graphic>
            </PointSymbolizer>
            <TextSymbolizer>
              <Label>
<ogc:PropertyName>count</ogc:PropertyName>
              </Label>
              <Font>
                <CssParameter name="font-family">Arial</CssParameter>
                <CssParameter name="font-size">12</CssParameter>
                <CssParameter name="font-weight">bold</CssParameter>
              </Font>
              <LabelPlacement>
                <PointPlacement>
                  <Displacement>
                    <DisplacementX>-3</DisplacementX>
                    <DisplacementY>-6</DisplacementY>
                  </Displacement>
                </PointPlacement>
              </LabelPlacement>
              <Halo>
                 <Radius>2</Radius>
                 <Fill>
                   <CssParameter name="fill">#AA0000</CssParameter>
                   <CssParameter name="fill-opacity">0.9</CssParameter>
                 </Fill>
              </Halo>
              <Fill>
                <CssParameter name="fill">#FFFFFF</CssParameter>
                <CssParameter name="fill-opacity">1.0</CssParameter>
              </Fill>
            </TextSymbolizer>
          </Rule>
        </FeatureTypeStyle>
        <FeatureTypeStyle>
          <Rule>
            <Name>single</Name>
            <Title>Camera</Title>
<MaxScaleDenominator>32000.0</MaxScaleDenominator>
            <PointSymbolizer>
               <Graphic>
                  <ExternalGraphic>
                     <OnlineResource xlink:type="simple" xlink:href="http://our511.com/camera.svg"; />
                     <Format>image/svg+xml</Format>
                  </ExternalGraphic>
                 <Size>24</Size>
               </Graphic>
            </PointSymbolizer>
          </Rule>
        </FeatureTypeStyle>
        <FeatureTypeStyle>
          <Rule>
            <Name>single</Name>
            <Title>Camera</Title>
            <PointSymbolizer>
<Graphic>
     <Mark>
       <WellKnownName>circle</WellKnownName>
       <Fill>
         <CssParameter name="fill">#FF0000</CssParameter>
       </Fill>
     </Mark>
     <Size>3</Size>
   </Graphic>
            </PointSymbolizer>
          </Rule>
        </FeatureTypeStyle>
      </UserStyle>
    </NamedLayer>
  </StyledLayerDescriptor>


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to