SlideShare una empresa de Scribd logo
1 de 42
Descargar para leer sin conexión
Towards an Area Datatype
for OSM

Jochen
Topf
Fundamental Geometry Types
Point

Linestring

Polygon
Point

Node

Linestring

Way

Polygon

??
Polygon with Holes

1 outer ring, 2 inner rings
Multipolygon

2 outer rings, 2 inner rings
Definition
A polygon
devides
the surface of the planet
into
two regions:
inside - outside
Definition

A polygon is usually described by its border.
The border is a bunch of lines that never intersect.
Border line direction?
Definition

A polygon is usually described by its border.
The border is a bunch of lines that never intersect.
Border line direction?
Polygons in OSM:
There Is More Than One Way
To Do It!
Polygon Type #1:
Closed way
Polygon Type #1:
Closed way

No holes
Depends on tags...
Polygon Type #1:
Closed way

highway=residential

natural=wood

Linestring or polygon or maybe both...
Polygon Type #1:
area=yes

highway=pedestrian

highway=pedestrian
area=yes
Polygon Type #2:
Multipolygon Relation

type=multipolygon
Polygon Type #2:
Multipolygon Relation

type=multipolygon
Can have multiple inner and outer rings.
Polygon Type #3:
Boundary Relation

type=boundary
Polygon Type #3:
Boundary Relation

Role: subarea !

type=boundary
Polygon Type #4:
Coastline

Ways connected end-to-end.
Land always on left, water always on right.
Polygon Type #5:
Riverbank

waterway=riverbank
Polygon Type #5:
Riverbank

waterway=riverbank
Polygon Type #5:
Riverbank

waterway=riverbank
Types of Polygons

#1 Closed Ways
#2 Multipolygon Relation
#3 Boundary Relation
#4 Coastlines
#5 Riverbanks
Problems
Which polygon type to use?
(lakes?, rivers?, boundaries?)
What if several types
are in use at the same time?
Converting from one to another?
Problems with
Multipolygon Relations
Tags on relation + outer ways + inner ways
Broken geometries (Self-intersections, ...)
Inner/outer mixups
Subareas
Broken Multipolygon Relations

About 2% broken, another 2% warnings
Polygons in OSM are...
difficult to understand,
diffcult to edit,
difficult to use.
Some Numbers...
110 million (closed way) polygons
90 million are buildings
72 million have 6 points or less
900,000 area=yes
750,000 natural=coastline (31 million nodes)
260,000 waterway=riverbank
Relations
1,000,000 type=multipolygon
200,000 type=boundary
For together >2 million (multi-)polygons
1,100,000 landuse/natural=*
240,000 boundary=administrative
Largest multipolygon 300,000 points
What are we going to do about it?
A New
Area
Datatype
What Should it Look Like?
Referencing nodes? (Like a way?)
(What about huge areas?)
Referencing ways? (A bit like MP relations?)
(What about small areas?)
Not referencing anything, coordinates inside?
(Like Simple Feature)
Polygons are Problematic...
1. Because there are several ways to accomplish
the same thing.

2. Because they are hard to edit and keep valid.
Polygons are Problematic...
1. Because there are several ways to accomplish
the same thing.
→ One area datatype
2. Because they are hard to edit and keep valid.
Polygons are Problematic...
1. Because there are several ways to accomplish
the same thing.
→ One area datatype
2. Because they are hard to edit and keep valid.
→ Let the computer do the checking
Validation

In the editor

On the server

Partial download

Lightweight!?

Check locally

Check only
changes!
API

Full download of areas not always possible!
Download parts of areas in bbox
+
Upload changes of areas in bbox
I think this is doable!
*Details are left
as an exercise
for the reader.
Migration

1. Add support for new area type
2. Convert some areas automatically
3. Convert rest manually
4. Remove support for old areas
Thanks!
http://wiki.osm.org/wiki/The_Future_of_Areas

Jochen Topf
jochen@topf.org
jochentopf.com

Más contenido relacionado

Más de OSMFstateofthemap

Más de OSMFstateofthemap (11)

How does a Global Navigation Satellite know where it is to tell you where you...
How does a Global Navigation Satellite know where it is to tell you where you...How does a Global Navigation Satellite know where it is to tell you where you...
How does a Global Navigation Satellite know where it is to tell you where you...
 
Presenting the work of OSMF Working Groups - State of the Map 2013
Presenting the work of OSMF Working Groups - State of the Map 2013Presenting the work of OSMF Working Groups - State of the Map 2013
Presenting the work of OSMF Working Groups - State of the Map 2013
 
Disaggregate accessibility planning using OSM data and OpenTripPlanner - Stat...
Disaggregate accessibility planning using OSM data and OpenTripPlanner - Stat...Disaggregate accessibility planning using OSM data and OpenTripPlanner - Stat...
Disaggregate accessibility planning using OSM data and OpenTripPlanner - Stat...
 
The Bronze Age of OpenStreetMap - Ilya zverik - State of the Map 2013
The Bronze Age of OpenStreetMap - Ilya zverik - State of the Map 2013The Bronze Age of OpenStreetMap - Ilya zverik - State of the Map 2013
The Bronze Age of OpenStreetMap - Ilya zverik - State of the Map 2013
 
Martijn van Exel - Collaborate to compete: Regain your Competitive Edge with osm
Martijn van Exel - Collaborate to compete: Regain your Competitive Edge with osmMartijn van Exel - Collaborate to compete: Regain your Competitive Edge with osm
Martijn van Exel - Collaborate to compete: Regain your Competitive Edge with osm
 
OSM2World - Tobias Knerr - State of the Map 2013
OSM2World - Tobias Knerr - State of the Map 2013OSM2World - Tobias Knerr - State of the Map 2013
OSM2World - Tobias Knerr - State of the Map 2013
 
How and why governments should use OpenStreetMap - Pete Lancaster - State of ...
How and why governments should use OpenStreetMap - Pete Lancaster - State of ...How and why governments should use OpenStreetMap - Pete Lancaster - State of ...
How and why governments should use OpenStreetMap - Pete Lancaster - State of ...
 
Open Historical Map: re-using obsolete information - State of the Map 2013
Open Historical Map: re-using obsolete information - State of the Map 2013Open Historical Map: re-using obsolete information - State of the Map 2013
Open Historical Map: re-using obsolete information - State of the Map 2013
 
FixMyBarangay: OSM in Cebu Philippines - Neil Taylor (Integrated Transport Pl...
FixMyBarangay: OSM in Cebu Philippines - Neil Taylor (Integrated Transport Pl...FixMyBarangay: OSM in Cebu Philippines - Neil Taylor (Integrated Transport Pl...
FixMyBarangay: OSM in Cebu Philippines - Neil Taylor (Integrated Transport Pl...
 
OpenStreetMap as base layer in a linked open data distribution platform - Ber...
OpenStreetMap as base layer in a linked open data distribution platform - Ber...OpenStreetMap as base layer in a linked open data distribution platform - Ber...
OpenStreetMap as base layer in a linked open data distribution platform - Ber...
 
Smarter Cities - Rick Robinson, IBM - State of the Map 2013 (SotM 2013 Birmin...
Smarter Cities - Rick Robinson, IBM - State of the Map 2013 (SotM 2013 Birmin...Smarter Cities - Rick Robinson, IBM - State of the Map 2013 (SotM 2013 Birmin...
Smarter Cities - Rick Robinson, IBM - State of the Map 2013 (SotM 2013 Birmin...
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

Towards an area datatype for OSM - State of the Map 2013