pon., 18 sty 2021 o 19:16 Andrea Aime <[email protected]>
napisał(a):

> Hi Piotr,
> see my notes inline below.
>
> On Fri, Jan 15, 2021 at 10:03 PM Piotr Bieńkowski <[email protected]>
> wrote:
>
>> mark: url(sign.svg);
>> mark-mime: 'image/svg+xml';
>> This generates server-local xlink:href, so it won't go.
>>
>
> You mean in the generated SLD?
>
>
>> It would perfect when mark: url(sign.svg)
>> was transformed into xlink:href="http://mygeo.domain.com/styles/sign.svg";
>> and of course this file must be served by geoserver.
>>
>
> You can already point to whatever http address you want, just deploy the
> images/svgs
> on a static HTTP server. But GeoServer won't do that translation for you.
>
>
>> Or is it possible to put css like base64 data?
>> e.g. mark: url(data:image/svg+xml;base64,<BASE64_ENCODED_FILE>)
>>
>
> No, this is not possible at the moment, CSS translates to SLD 1.0, while
> embedded images
> are only supported by SLD 1.1
>
> Best regards
> Andrea
>
>
Hello Andrea,

thank you for your response.
Yes, I meant xref attribute in generated SLD.

In the meantime, I've learned that my idea was not achievable in the way I
planned (at least not that easy ;) ).
The idea is to use Geoserver's style editor to design styles that can be
used "as-is" by OpenLayers frontend application on vector layers.

Thank you for the hint about static HTTP server.

Regards,
Piotr
_______________________________________________
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

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to