I am not sure if you can do that (perhaps via the rest api?). Ut would be a
good feature request.
One thing to keep in mind is that the styles folders are special in that
they are published via a URL (this is how the relative links to icons and
fonts are expected to function if an external server is accessing the
style).
* geoserver/styles/foo.sld (can reference icons in the global styles folder)
* geoserver/styles/workspace/bar.sld (can reference icons in the workspace
styles folder and the global styles folder)
I think with those publication restrictions in mind we should stick with
using the styles folders as provided. I would be concerned from a security
standpoint if styles could be located anywhere in the file system.
--
Jody Garnett
On 8 February 2017 at 08:44, Hemin Tofiq <heminto...@gmail.com> wrote:
> Hi,
>
> When I create a style in GeoServer, a stylename.xml and a stylename.sld
> file will be created, stylename.xml points to stylename.sld, my question is
> whether it is possible to locate the *.sld file at another location? or in
> other words; Can I specify another directory for styles?
>
> I far as I can see the stylename.sld must be located at the same directory
> as stylename.xml
>
> I am trying to auto-generate these SLD files outside the GeoServer data
> directory.
>
>
> Best regards,
> Hemin Tofiq
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users