Jody Garnett ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZTNmYjg4ZTdjOTgxNGYyMGEzZTkwNzkyMDEyMTdhMDIiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-11023?atlOrigin=eyJpIjoiZTNmYjg4ZTdjOTgxNGYyMGEzZTkwNzkyMDEyMTdhMDIiLCJwIjoiaiJ9
 ) GEOS-11023 ( 
https://osgeo-org.atlassian.net/browse/GEOS-11023?atlOrigin=eyJpIjoiZTNmYjg4ZTdjOTgxNGYyMGEzZTkwNzkyMDEyMTdhMDIiLCJwIjoiaiJ9
 ) GetMap SLD param to external service style document does respect external 
graphic relative paths ( 
https://osgeo-org.atlassian.net/browse/GEOS-11023?atlOrigin=eyJpIjoiZTNmYjg4ZTdjOTgxNGYyMGEzZTkwNzkyMDEyMTdhMDIiLCJwIjoiaiJ9
 )

Issue Type: Bug Assignee: Unassigned Components: styling, WMS Created: 
12/Jun/23 7:53 AM Priority: Low Reporter: Jody Garnett ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3
 )

This bug report reflects functionality that is not behaving as expected, 
probably due to not being implemented rather than a failure in the code as 
written.

When using GeoServer GetMap SLD parameter to work with an external SLD any 
external graphic references should be relative to the location of the external 
document.

This can be observed using GeoServer to reference a style hosted by another 
GeoServer:

* https://remote.service.net/geoserver/styles/grass_poly.sld
This document can be accessed and reviewed in a browser and includes a 
reference to:
<ExternalGraphic>
 <OnlineResource xlink:type="simple" xlink:href="grass_fill.png"/>
 <Format>image/png</Format>
</ExternalGraphic>

* https://remote.service.net/geoserver/styles/grass_fill.png
This icon can be accessed and reviewed in the browser

However when using this document as a SLD reference in another GeoServer 
parsing the document fails:
java.net.MalformedURLException: no protocol: grass_fill.png

* In html parsing terms the document base url should be 
https://remote.service.net/geoserver/styles allowing the location of the 
relative external graphic reference to be maintained.
* In the extreme case a folder of icons may be setup along side a library of 
styles resulting in relative paths to be resolved against the SLD document base 
location.
https:/styles.remote.net/icons/grass_fill.png
https:/styles.remote.net/ariculture/grass_poly.png

( 
https://osgeo-org.atlassian.net/browse/GEOS-11023#add-comment?atlOrigin=eyJpIjoiZTNmYjg4ZTdjOTgxNGYyMGEzZTkwNzkyMDEyMTdhMDIiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-11023#add-comment?atlOrigin=eyJpIjoiZTNmYjg4ZTdjOTgxNGYyMGEzZTkwNzkyMDEyMTdhMDIiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- 
sha1:956085d )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to