[mapserver-users] Style a polygon with Horizontal, Vertical,or Diagonal Lines using SLD?

Paul Edwards pjfingers at gmail.com
Thu Feb 2 07:41:35 PST 2012


That's excellent news. I'll be implementing this today. Thanks for your
assistance!!


On Wed, Feb 1, 2012 at 4:18 PM, Arnd Wippermann <arnd.wippermann at web.de>wrote:

> **
> you can define a symbol for the hatch in your mapfile
>
>   SYMBOL
>     NAME "schraffur"
>     TYPE HATCH
>   END
> and use this in your sld
>
> An example how it works:
>
> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServer_SLD_World.asp?mapservLayers=0&SLDsrcIdx=42
>
> Arnd
>  ------------------------------
> *Von:* mapserver-users-bounces at lists.osgeo.org [mailto:
> mapserver-users-bounces at lists.osgeo.org] *Im Auftrag von *Paul Edwards
> *Gesendet:* Dienstag, 31. Januar 2012 20:37
> *An:* mapserver-users at lists.osgeo.org
> *Betreff:* [mapserver-users] Style a polygon with Horizontal, Vertical,or
> Diagonal Lines using SLD?
>
> Hi All!
>
> I'm wondering if anyone has experience styling maps with horizontal,
> vertical, or diagonal lines when using MapServer WMS and a custom provided
> SLD? The documentation states:
>
> http://mapserver.org/ogc/sld.html#named-styles-support
>
> "A Fill can be a solid fill or be a Graphic Fill, which is either a
> well-known Mark symbol (e.g., square, circle, triangle, star, cross, x) or
> an ExternalGraphic element (e.g., gif, png) available through a URL"
>
>
> This pretty clearly states that the way to accomplish my goal is by tiling
> an externally referenced image that has the line oriented the way I want,
> but then we lose the coloring options. GeoServer has some cool SLD
> extensions that are outside the spec (see link below) and I was wondering
> if MapServer had anything similar?
>
>
> http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html#the-shape-symbols
>
> Thanks!
> Paul
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/4a724b10/attachment.htm>


More information about the MapServer-users mailing list