Thanks Rahkonen


Well I have tried to do that earlier, the thing it keeps giving me same
error:

*Parsing failed for ExternalGraphic: java.lang.IllegalArgumentException:
URI is not absolute*



Although when I use http://server-name:8080/geo GEOSERVER_DATA_DIR/styles /...
it validates OK, but the link gives nothing



Best regards,



*Deeb N. Haddad |System Support Engineer*

International Relief & Development (Regional Office)

22 Sumaya Bent Al Hasan St | PO Box 852795 | Amman 11185 Jordan

T:  962 6 5857756 | F: 962 6 5857751 |
M:  +962790218658

www.ird.org



*From:* Rahkonen Jukka (Tike) [mailto:[email protected]]
*Sent:* Wednesday, October 01, 2014 11:19 AM
*To:* Deeb Haddad; [email protected]
*Subject:* Re: [Geoserver-users] Question: Graphic symbology in
GeoServer/External Graphics



Hi,



- Read the documentation
http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html.




- Open the shipped style “burg.sld” from data_dir/styles. It shows how
image “burg.svg” is used as external graphics

<ExternalGraphic>

<OnlineResource xlink:type="simple" xlink:href="burg02.svg" />

<Format>image/svg+xml</Format>

</ExternalGraphic>



- Place your symbol “cluster.png” into data_dir/styles and edit the
“burg.sld” file to have

<ExternalGraphic>

<OnlineResource xlink:type="simple" xlink:href="place.png" />

<Format>image/png</Format>

</ExternalGraphic>



- Test it. Works for me, though I tested with image “symbol.jpg” and format
“image/jpeg”. Perhaps you have just spent 3 days for neglecting what the
manual page tells: “If the path of the symbol file is relative, the file is
looked for under $GEOSERVER_DATA_DIR/styles”?



-Jukka Rahkonen-





Deeb Haddad wrote:



Hi,



I am a JAVA programmer, we are using Geoserver for our system mapping.



What I am asking about, that I need to insert resource link icons, relative
folder on our servers, and when tried to update the Styles for layers it
gives me an error.



*The XML code is: <se:OnlineResource xlink:type="simple"
xlink:href="icons/cluster.png"/>*



*And the Error is:* *Parsing failed for ExternalGraphic:
java.lang.IllegalArgumentException: URI is not absolute*



If please could help or guide me to another way as spent three days trying
to figure this out.



Best regards,



*Deeb N. Haddad |System Support Engineer*

International Relief & Development (Regional Office)

22 Sumaya Bent Al Hasan St | PO Box 852795 | Amman 11185 Jordan

T:  962 6 5857756 | F: 962 6 5857751 |
M:  +962790218658

www.ird.org
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to