Hi list,

i would like to create an sld for lines with an symbol (flag) at the 
start/endpoint of the line.
So I tried this but it's rendered the center of the graphic extent at the 
start/endpoint:

<Rule>
  <Name>rule1</Name>
    <Title>darkgrey Line</Title>
      <Abstract>A solid blue line with a 2 pixel width</Abstract>
        <LineSymbolizer>
          <Stroke>
            <CssParameter name="stroke">#989050</CssParameter>
            <CssParameter name="stroke-width">2</CssParameter>
        </Stroke>
      </LineSymbolizer>
      <PointSymbolizer>
        <Geometry>
          <ogc:Function name="startPoint">
           <ogc:PropertyName>CGEOM</ogc:PropertyName>
         </ogc:Function>
      </Geometry>
     <Graphic>
        <ExternalGraphic>
          <OnlineResource xlink:type="simple" xlink:href="flag30.svg" />
          <Format>image/svg+xml</Format>
       </ExternalGraphic>
        <Size>20</Size>
     </Graphic>
</PointSymbolizer>
<PointSymbolizer>
   <Geometry>
     <ogc:Function name="endPoint">
       <ogc:PropertyName>CGEOM</ogc:PropertyName>
     </ogc:Function>
   </Geometry>
   <Graphic>
     <ExternalGraphic>
           <OnlineResource xlink:type="simple" xlink:href="flag30.svg" />
           <Format>image/svg+xml</Format>
    </ExternalGraphic>
      <Size>20</Size>
   </Graphic>
</PointSymbolizer>
   </Rule>


Under the documentation [1] I've found the positioning can manipulated by an 
invisible rectangle with the desired relative position for the symbols. Some 
searches were not successful
Can someone help?

[1] 
http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html


Thanks!
Stephan
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to