Hello list,

 

I am trying to make specific line pattern with SLD - offsetting triangle
from base line.

 

The result i got is in the following image: http://img42.com/Zvd1q

It looks ok for horizontal segments (green area), but not for others (in
red).

 

After trying to google I found that such patern can't be generated with
default SLD capabilities or geoserver extensions.

 

Also found that point symbols can have a space around to fill the polygon
(http://docs.geoserver.org/latest/en/user/styling/sld-extensions/margins.htm
l).

 

Would it be very hard to implement a space around for mark symbols in
GraficStroke of LineSymbolizer?

The idea of margins is in the following Picture: http://img42.com/ASV61 

 

Maybe such capability (or similar) to achieve such result is aready
available?

 

 

p.s. the SLD I tried with offset:

          <LineSymbolizer
uom="http://www.opengeospatial.org/se/units/metre";>
            <Stroke>
              <sld:CssParameter name="stroke-width">0</sld:CssParameter>
              <sld:CssParameter name="stroke">#000000</sld:CssParameter>
            </Stroke>
          </LineSymbolizer>
          <LineSymbolizer
uom="http://www.opengeospatial.org/se/units/metre";>
            <Stroke>
              <sld:CssParameter name="stroke-width">0.05</sld:CssParameter>
              <sld:CssParameter name="stroke">#000000</sld:CssParameter>
            </Stroke>
          </LineSymbolizer>
          <LineSymbolizer
uom="http://www.opengeospatial.org/se/units/metre";>
            <Geometry>
              <ogc:Function name="offset">
                <ogc:PropertyName>geometry</ogc:PropertyName>
                <ogc:Literal>0</ogc:Literal>
                <ogc:Literal>-0.25</ogc:Literal>
              </ogc:Function>
            </Geometry>
            <Stroke>
              <GraphicStroke>
                <Graphic>
                  <Mark>
                    <WellKnownName>triangle</WellKnownName>
                    <Fill>
                      <CssParameter name="fill">#000000</CssParameter>
                    </Fill>
                    <Stroke>
                      <sld:CssParameter
name="stroke">#000000</sld:CssParameter>
                      <CssParameter name="stroke-width">0.05</CssParameter>
                    </Stroke>
                  </Mark>
                  <Size>0.5</Size>
                  <Rotation>
                    -180
                  </Rotation>
                </Graphic>
              </GraphicStroke>
              <CssParameter name="stroke-dasharray">0 2.25 0.5
0.25</CssParameter>
              <CssParameter name="stroke-dashoffset">0</CssParameter>
            </Stroke>
          </LineSymbolizer>

 

 

Sincerely,

Paul

 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to