GithubHelp home page GithubHelp logo

Polygon clipping issues about vector-tile-server HOT 3 OPEN

artemp avatar artemp commented on August 19, 2024
Polygon clipping issues

from vector-tile-server.

Comments (3)

artemp avatar artemp commented on August 19, 2024

@hjanetzek - great, thanks, I'll have a look. Do you have a screenshot with broken polygons ?

from vector-tile-server.

hjanetzek avatar hjanetzek commented on August 19, 2024

most of these wrong points were not visible because the 'stencil buffer method' for polygon drawing can cope it.
one can see it with buidling outlines for example[1] and when using triangulation on the clipped output duplicate nodes and coincident lines which go back and forth cause trouble[2].

e.g. tile: 17/68736/42655 the building at top center
http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-12-35-52.png
the point at position 6 is not on the building:
tags: [0]
indx: [10]
1029 1360
2265 0
2687 0
1431 1387
1713 1643
3263 0
4096 0
3673 0
1777 2016
1029 1360

[1]http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-13-30-47.png
[2]http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-13-31-02.png

Clipper produces
tags: [0]
indx: [8]
2265 0
2687 0
1431 1387
1713 1643
3263 0
3673 0
1777 2016
1029 1360

[1]http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-14-13-33.png
[2] http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-14-15-03.png

another one where clipping fill the tile with water (behind residential)
http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-12-24-52.png
http://city.informatik.uni-bremen.de/~jeff/screenshots/Screenshot_2013-01-14-12-49-03.png

I had a few more really results that I cannot find atm where complex landuse polygons should result in one tile filling quad but were made of 9 points.

from vector-tile-server.

hjanetzek avatar hjanetzek commented on August 19, 2024

btw. the problem with drawing all objects for one layer (by tag) in one go via stencil buffer is that overallping parts will cancel each other out.. just in case that you see it and wonder whats goind on.

from vector-tile-server.

Related Issues (4)

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.