Thanks for digging into this Torben - excellent research.
If we collapse to a single set of color names my pull request will be much
similar, and need to be reworked.
During development I Iooked at the ability to do a color --> string
conversion - but the result is not deterministic unless I make a GeoTool
Factory with a sort priority. If this is a desirable quality I could
update the existing ColorConverterFactory in place.
--
Jody Garnett
On 7 February 2017 at 15:57, Torben Barsballe <tbarsba...@boundlessgeo.com>
wrote:
> Hello,
>
> To my knowledge, SLD does not have named colors.
> All SLD color values do use a "<CssParameter />" tag. It would be nice if
> this supported the standard CSS names colors in addition to the currently
> supported hex colors.
> SLD also supports SVG snippets. SVG uses CSS2 color syntax, including
> names.
>
> The YSLD color set appears to be X11 or a variant thereof. From what I can
> see, it has some differences with both X11 and CSS.
> CSS seems to be a better fit for most GeoServer use cases (Web Mapping),
> so I agree that YSLD should be migrated to use the CSS color set. It is
> quite similar to the X11 color set, and more widely known.
>
> To be specific, I think we should be using the *W3C CSS4 Extended Color
> Keywords*, here: https://www.w3.org/TR/css-color-4/#named-colors, or an
> equivalent, well-defined standard. The keyword list is similar in length
> and content to the current 140 colors used by YSLD. Notable differences can
> be seen
>
> As an aside, the X11 color set does not refer to a single, well defined
> color set. The W3C CSS4 Color set is a variant of a certain version of the
> X11 color set, and is a superset of the SVG 1.1 color set. The original
> version of the X11 color set differs from the W3C color set, as noted here
> <https://en.wikipedia.org/wiki/X11_color_names#Clashes_between_web_and_X11_colors_in_the_CSS_color_scheme>
> .
>
>
> Torben
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel