Git Product home page Git Product logo

Comments (4)

dragons8mycat avatar dragons8mycat commented on June 5, 2024 1

Hi,
I recently had a similar issue and noticed that the labels are set to "metres" rather than pixels (issue 1) and then also they didn't alter by scale. I had a play with the Geoserver "wms_scale_denominator" function which seems to fix the problem for me.
Let me know if you need some help with it (I have an SLD which you can try to see if it solves your problem)

from osmm-topography-layer-stylesheets.

MiquelRS avatar MiquelRS commented on June 5, 2024 1

Hi, thanks @dragon8mycat for your answer. I'll give it a try and let you know. I did more research and found out that by default the SLD TextSymbolizer sets conflictResolution param to "true", thus preventing label overlapping by removing some of them. Have added the parameter <VendorOption name="conflictResolution">false</VendorOption> and by doing this, those labels that failed to draw because of label conflict now are rendered. This should be fine in the case of OSMM because labels have been intentionally designed to not to overlap.
However, the problem doesn't end here because when tiling the WMS, only those labels that fall 100% inside a tile are rendered. Otherwise they aren't. As I mentioned in the first post, this can be partially solved by serving bigger tiles but not ideal solution. There's another SLD parameter <VendorOption name="partials">true</VendorOption> that draws all labels even if they fall partly outside the tile. This makes all labels to draw but they get eventually cut at the tile edge, so what you see is a lot of cut labels in the tile edges.
I'll give it a try to your solution and see if I can make any progress.
Thanks so much.

from osmm-topography-layer-stylesheets.

dragons8mycat avatar dragons8mycat commented on June 5, 2024

Try this:
OSMM_TEXT_NDU.zip

from osmm-topography-layer-stylesheets.

TimJMartin avatar TimJMartin commented on June 5, 2024

Looks like this is now resolved so closing the issue, but if there is anything else let us know

from osmm-topography-layer-stylesheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.