Re: [Geoserver-users] Uploading SLD ExternalGraphic images via REST API?

2017-01-12 Thread Jody Garnett
Since the time the blog post example was written Alex "fixed" how the styles folder was published to provide a good URL to use for external applications that wish to access an external graphic. The above example is in the "global" styles directory, grass_fill.png is also be available via: -

Re: [Geoserver-users] Uploading SLD ExternalGraphic images via REST API?

2017-01-12 Thread Jody Garnett
Correct so that blog post has the following two examples: - http://localhost:8080/geoserver/rest/resource/styles/grass_fill.png - http://localhost:8080/geoserver/rest/resource/styles/grass_fill.png?operation=metadata=json -- Jody Garnett On 12 January 2017 at 12:15, Jody Garnett

Re: [Geoserver-users] Uploading SLD ExternalGraphic images via REST API?

2017-01-12 Thread Martin Davis
Thanks, Jody. So to be clear, the "path/to/resource" in [1] is relative to the GeoServer data directory? [1] http://docs.geoserver.org/stable/en/user/rest/api/resources.html On Thu, Jan 12, 2017 at 10:15 AM, Jody Garnett wrote: > The resources api was specificly

Re: [Geoserver-users] Uploading SLD ExternalGraphic images via REST API?

2017-01-12 Thread Jody Garnett
The resources api was specificly created to upload and manage images and icons (and the occasional config file). You have the correct documentation link; I was able to produce a couple of GET examples for the geoserver 2.9 release announcement

[Geoserver-users] Uploading SLD ExternalGraphic images via REST API?

2017-01-11 Thread Martin Davis
Can the REST API resources request [1] be used to upload image files for use in SLDs as external graphics? Are there any examples of how to do this? In particular, it's not clear to me from the docs how to specify the location the files should be stored to. [1]