Hello Kris,

First of all, what version of GeoServer are you using? There have been a
number of changes recently that could affect the behaviour you are seeing.
Notably, GeoServer 2.12 includes a rewrite of the REST API that may be
affecting this behaviour.

One thing you could try is setting the "Accept" header of your to
"application/vnd.geoserver.ysld+yaml".

Also, double-check that the YSLD extension is installed. One easy way to do
this is to try creating a new style and verifying that YSLD shows up in the
list of supported formats.

As a final note, while SLD -> YSLD conversion is supported, SLD -> CSS is
not (YSLD supports two-way conversion, but CSS can only be converted to
SLD, not the other way around).


Torben

On Thu, Nov 2, 2017 at 8:20 AM, Kris Johnson <krist...@d.umn.edu> wrote:

> Hello,
>
> I am attempting to convert an SLD style to a YSLD style following the
> instructions here: http://docs.geoserver.org/stable/en/user/styling/
> workshop/ysld/done.html
>
> However, when I replace the .sld file extension with .yaml the page
> redirects back to the appearance of when the style is loaded with the .html
> extension.
>
> I'll attach the logfile, but here's the main error that I'm seeing in the
> logs:
>
>> Failed to lookup template FedLands_NPS_FWS.ftl
>> java.io.FileNotFoundException: Template FedLands_NPS_FWS.ftl not found.
>
>
>
>
> --
> Kris Johnson
> Natural Resources Research Institute
> 5013 Miller Trunk Highway, Duluth, MN 55811
> p: 218.788.2767 <(218)%20788-2767>
> www.nrri.umn.edu
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
> userlist-guidelines.html
>
> 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

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to