Comments (2)
Hi Till -- the inner ring information is encoded in the vector tiles, but the confusion probably arises from how this data is stored natively in OSM. "Proper" GIS polygons have a concept of multiple rings in a single polygon (not multipolygon!), where the first ring is the outer ring, and subsequent rings are inner rings which are "cut out" of the outer one. A multipolygon is a separate concept, for spatially disjoint polygons (each of which can have its own outer and inner rings).
Since OSM only has single-ring "ways", they have no native way of encoding multi-ring polygons, hence they use what they call "multipolygon" relations to encode this information. When this data is imported into postgis with osm2pgsql, those OSM multipolygon relations get converted into multi-ring polygons, or true multipolygons where they do not overlap. Some info in the docs here.
In these vector tiles, those features are exposed as GeoJSON polygons (which can have multiple rings, as in the building example you give) and disjoint multipolygons. You can see that building rendering correctly with inner courtyards here: http://tangrams.github.io/tangram/#mapzen,52.49877546805041,13.397671580314638,17
Hope that helps! I'm going to close this issue but feel free to follow up with any clarifications or issues here. Thanks.
from vector-datasource.
Oh boy. Thanks very much for the explanation. I forgot about them. (It just seems so unsemantic.)
Anyway, glad to hear. Then it's simply a bug in my GeoJSON parser.
from vector-datasource.
Related Issues (20)
- Consider applying grid thinning to more places zooms
- Remove road properties at zoom 14 and 15 HOT 1
- Excessive road names at zoom 15 HOT 1
- Landuse layer min_zooms too detailed and prevents merging
- Geometry shifts substantially between NE and OSM in boundaries layer
- French regions and province boundary lines show too early HOT 1
- Upgrade to NE v5.1.0 HOT 1
- Add top-level-countries DBF from Natural Earth HOT 5
- Add kind_detail for country places HOT 2
- Always x-check country labels against Natural Earth HOT 2
- Add TLC POV from Natural Earth HOT 1
- Export label x and y values from TLC and ISO country tables HOT 1
- Switch to NE for country labels
- High zoom kind=unrecognized country label bug HOT 1
- Road simplification
- For buildings, add root_id = id HOT 1
- Python 3 support
- Rename `disputed_relation_overpass_query.txt` to `disputed_relation_overpass_query.overpassql` HOT 6
- Add to Taginfo Projects
- Problem with min_zoom in Earth layer in v1.9.0 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vector-datasource.