-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why transform WellKnownName property to lowercase? #277
Comments
Maybe we should modify the |
Me neither.
This should be the first thing to do. Changes should then also be applied to the other parsers as well. |
Ok, I guess I can help with that. Also, now that I think of it, the geostyler format does restrict the well known name property to a list of accepted ones, so this also implicitly discourages the use of other formats: Maybe this should be structured differently, with a list of "default" well known names provided but not mandatory? |
If we want to support the fonts we have to switch to type Theres a proposal though: microsoft/TypeScript#6579 |
Last thing: if we remove the |
Yes. But it might be a breaking change to the |
Also it looks like it will break many things in the https://github.com/geostyler/geostyler components which use the uppercased well known names like
See #278 for a proposed modification of the SLD parser which keeps backwards compatibility. |
I think this is fixed with geostyler/geostyler-style#143 |
Unfortunately, this issue cannot be closed yet, as this also affects other parser, e.g. |
geostyler/geostyler-style#171 transforms the representation of |
Question
When doing some experiments with mark symbolizers using font glyphs instead of standard shapes, I realized the WellKnownName property of the symbolizer was modified to lowercase here:
geostyler-sld-parser/src/SldStyleParser.ts
Line 1702 in e19a1e9
This looks like it is necessary because the Geostyler format expects shapes to be named
Circle
,Cross
etc. and the SLD standard works withcircle
,cross
etc.Unfortunately, this results in a very strong constraint where no upper case character can be used in well known names at all, which makes it impossible to use font glyphs like so:
<WellKnownName>ttf://Webdings#0x0064</WellKnownName>
.Without the upper case, the previous example will not render correctly in GeoServer.
Would it be possible to consider making the logic more fine-grained, and for example only make the first character lowercase? or have an association of well known names such as
Circle
->circle
etc?If this modification receives approval, I will create a Pull Request in that sense.
Note that this is linked to the issue on the OL parser here: geostyler/geostyler-openlayers-parser#230
Thanks a lot!
The text was updated successfully, but these errors were encountered: