Thomas,
Can you access the file http://myserver/img/mySymbol.svg simply from a web
browser? If it is indeed on your server, you can put it next to the SLDs in the
same directory and make a relative path to the SVG file.
The <Format> tag is the mime-type. SVG is an XML sibling, so no need for an
additional XML file.
Kind regards,
Edward
Date: Mon, 11 Jan 2016 13:00:07 +0100
From: wilt...@gmail.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Displaying SVG external graphic issue
I'm using Geoserver 2.6.2. I need to use a SVG file as an external
graphic to style a points layer. When I open the WMS layer in QGIS, the
points are not displayed. This is not happening if I use a PNG file.
Here is an extract of my SLD code:
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://myserver/img/mySymbol.svg"/>
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Size>40</Size>
</Graphic>
</PointSymbolizer>
I'm wondering why the image format has to be svg+xml.
Is an additional XML file needed?
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users