Skip to content
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

a textsymboliser is used for charactermarkers #21

Open
pvgenuchten opened this issue Oct 8, 2019 · 4 comments
Open

a textsymboliser is used for charactermarkers #21

pvgenuchten opened this issue Oct 8, 2019 · 4 comments
Labels
enhancement New feature or request SLD Issues related to SLD style (GeoServer)

Comments

@pvgenuchten
Copy link
Contributor

pvgenuchten commented Oct 8, 2019

This results in secondary symbol levels not being drawn due to label-collision

In stead use a pointsymboliser:

<PointSymbolizer>
<Graphic>
<Mark>
  <WellKnownName>ttf://Dingbats#0x3A</WellKnownName>
  <Fill><CssParameter name="fill">#1600DB</CssParameter></Fill>
</Mark>
<Opacity>1</Opacity>
<Size>20</Size>
</Graphic>
</PointSymbolizer>

newer versions of geoserver also support se1.1

 <se:PointSymbolizer>
            <se:Graphic>
              <se:Mark>
                <se:OnlineResource xlink:type="simple" xlink:href="ttf://Dingbats"/>
                <se:Format>ttf</se:Format>
                <se:MarkIndex>10733</se:MarkIndex>
                <se:Fill>
                  <se:SvgParameter name="fill">#ff0000</se:SvgParameter>
                </se:Fill>
              </se:Mark>
              <se:Size>29</se:Size>
            </se:Graphic>
          </se:PointSymbolizer>
@pvgenuchten pvgenuchten added enhancement New feature or request SLD Issues related to SLD style (GeoServer) labels Oct 8, 2019
@volaya
Copy link
Contributor

volaya commented Oct 14, 2019

Nice suggestion. I implemented it. However, QGIS support for markers with more than a single character. For that case, I am keeping the text symbolizer

@pvgenuchten
Copy link
Contributor Author

However, QGIS support for markers with more than a single character. For that case, I am keeping the text symbolizer

Do you mean as layers on top of each other? That would give 2 pointsymbolisers, no?

@volaya
Copy link
Contributor

volaya commented Oct 15, 2019

No. I mean that there is a "character" value that is supposed to have a single character, like 'a' or 'b', but not something like 'hello'. QGIS supports long strings for font markers, so in that case I use a text symbolizer, not the point symbolizer

@pvgenuchten
Copy link
Contributor Author

So QGIS facilitates to use pointsymboliser as a label engine, curious. Never seen that on other products. Mind that a conversion from point-symboliser in qgis to label in geoserver will potentially give quite unexpected results, due to label-collision detection in geoserver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SLD Issues related to SLD style (GeoServer)
Projects
None yet
Development

No branches or pull requests

2 participants