NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi, is anyone here familiar with using the vector tiles supplied from MapZen? I am currently having an issue with the layering of the geometry, there seems to be a lack of documentation on this matter, or none that I can find, so as an example if I layer ocean geometry behind land geometry then river mouths and other details along coastal regions are not visible, but if I layer ocean in front of land I get pretty much the same effect, the ocean overlaps some of the coastal detail again in different areas, where the other none visible details are now visible. Also i'm not sure if I am handling MultiPolygon groups correctly, for multi-polygon groups I am creating a bunch of separate polygons from the lists, should they be stitched together in some way? it could be possible that if I am not handling polygons correctly this is giving me bugs, ill attach a couple of images to better illustrate what is happening and it may make it easier to outline the bugs. this is what it looks like with ocean behind: http://imgur.com/3ggXvGF and this is what it looks like with ocean in front: http://imgur.com/57t0rt4

also its worth noting that this is implemented with opengl using vbo's, I know there is no issue with the data upload to the graphics card as I have been using this opengl code base for plenty of other things, the only issue that side could be with the coordinate generation.

Edit: Ok after looking into the issue further I believe it is an issue with the way i am treating multi-polygons, after doing some research on them it seems that multi-polygon lists are complex polygons, i.e polygons with holes in them, with this in mind I can think of a pretty simple way to render the polygons with holes using the stencil buffer inside opengl, where i use all the sub polys, i.e the holes as my stencils, I have made a quick attempt at doing this but the stencil shapes that I am getting don't make sense for the layer they are on and the associated polygon that they are holes for, does anyone know the definitive way to decode the multi-polygon lists?

asked 12 Jan '16, 12:24

Jikoriko's gravatar image

Jikoriko
11113
accept rate: 0%

edited 12 Jan '16, 18:20

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×287
×45
×5

question asked: 12 Jan '16, 12:24

question was seen: 1,746 times

last updated: 12 Jan '16, 18:20

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum