Hi there,
I want to automate the configuration of my geoserver instances via the REST
interface.
When posting Styles which contain links to external graphics, I need to prefix
relative filenames with "file:" in order to get them through the REST interface.
(see GEOS-4785 and others)
As a result, the graphics files won't be found anymore and I don't get my
symbols rendered onto my maps. If I change the style via the geoserver Web
interface, removing the "file:" prefix, the symbols reappear - but then the sld
file won't pass the REST Interface.
When putting an absolute path behind the file: prefix, it works again. But I'd
really like to avoid absolute paths inside my SLD files.
Working (absolute path):
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="file:C:/someabsolutepath/file.svg"/>
<sld:Format>image/svg+xml</sld:Format>
</sld:OnlineResource>
Passing through REST interface, but not showing (relative path):
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="file:relative_path/file.svg"/>
<sld:Format>image/svg+xml</sld:Format>
</sld:OnlineResource>
Working inside Geoserver, but not passing through REST interface (omitting
file: prefix):
<sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="relative_path/file.svg"/>
<sld:Format>image/svg+xml</sld:Format>
</sld:OnlineResource>
Is this "file" prefix with relative paths working for someone? Could it be a
windows/linux issue or did I misconfigure something?
I am running Geoserver 2.1.4 as delivered within a Jetty container on a windows
7 environment, current Oracle 6 JVM.
Best regards,
Sebastian Schmidt
SWM - Besser leben mit M.
Informations- und Prozesstechnik
Anwendungen Technische Geschäftsfelder
Telefon: 089/23 61-44 78
schmidt.sebasti...@swm.de
www.swm.de
SWM Services GmbH, Emmy-Noether-Straße 2, 80992 München; Geschäftsführer Dr.
Kurt Mühlhäuser, Herbert König, Reinhard Büttner, Stephan Schwarz, Dr. Florian
Bieberbach; Sitz München; Registergericht München HRB 126 674;
Aufsichtsratsvorsitzender Oberbürgermeister Christian Ude
Der Inhalt dieser E-Mail oder eventueller Anhänge ist ausschließlich für den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass
jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe
des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
mit dem Absender der E-Mail in Verbindung zu setzen.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users