• Home
  • About

GIScience News Blog

News of Heidelberg University’s GIScience Research Group.

Feed on
Posts
Comments
« STAP19 Compact Course and Workshop in April - Registration Open
Call for Abstracts for PhD Colloquium on Deep Learning in Photogrammetry, Remote Sensing and Geospatial Information Processing »

How to become ohsome part 2: Comparing different regions based on their attributive completeness of OSM data

Jan 18th, 2019 by Fabian Kowatsch

Welcome back to the second part of the blog series how to become ohsome. If you have not read the first part yet, better go and check it out now. It explains how you can create an ohsome visualization of the historical development of the OSM data from a city of your choice.

This second part shows how to use historical OSM data from the ohsome API to compare different regions based on their attribute completeness. We will look at streets (every way with a highway key) and compute the ratio of streets having the tag surface=* divided by all streets. This will give us an insight on the attributive completeness for the tag surface=*. The response will be visualized in diagrams to be easily understandable and interpretable. Two main steps are necessary to achieve that:

1) Get the OSM data using the ohsome API

Using a lately implemented feature, the csv data extraction, we send a request to the ohsome API with the following parameters:

bpolys = geojson // spatial parameter using a GeoJSON FeatureCollection containing data from Bamberg, Karlsruhe and Köln (you find a link to the data below)

time = 2008-01-01/2018-01-01/P1Y  // temporal parameter using the format startTimestamp/endTimestamp/intervalSize

types = way

keys = highway

types2 = way

keys2 = highway,surface

format = csv

By accessing the /length/ratio/groupBy/boundary resource, we get the absolute values plus the ratios grouped by the given boundary information, in this case: The administrative boundaries of the cities Bamberg, Karlsruhe and Köln.

We store the parameters in a text file and use cURL to send an HTTP Post request to the API. The response gets stored in a simple csv file. Here you can find the used parameters, the curl command, as well as the returned response.

2) Load response into Excel and create diagrams

Once we have the csv data, it only needs to be imported into some spreadsheet software like e.g. Excel. As the data is already in an adequate form to produce diagrams, we can do that directly by marking the respective columns and just creating them.

The first two diagrams show the length of OSM ways in meters tagged with the key highway (1) and those with the keys highway and surface (2).

(1)

(2)

When we compare these two charts, we can see that the level of saturation of the curves (when there is no more significant incline) is reached at different points in time, or not at all. This effect occurs when not many edits of a certain tag are performed (but there is still overall mapping activity in that region, as explained in Neis et al. 2011, 2012, Barron et al. 2013), e.g. when most streets of a region most likely have already been mapped. Karlsruhe and Köln though have not reached their level of saturation yet when looking at the second diagram, in contrary to Bamberg, in spite of their active mapping community.

This situation is also reflected in the last diagram (3) showing the ratio between these graphs for every region.

(3)

Here we clearly see that the ratio is highest for Bamberg. At the beginning of 2018, about 75% of the mapped streets in Bamberg had the surface tag. What is also visible here (like in diagram 2) is the positive trend of the other two graphs. More and more streets in Karlsruhe and Köln get the information about its surface added to them. This implies that the attributive completeness when looking at the tag surface=* is increasing for these cities. What we cannot say here though is if the added tags comply to defined standards. This topic was tackled in two other recently published posts, also dealing with the spatial version of compliance.

This blog post showed you how you can extract historical OSM data, visualize it and make simple statements about its quality and trend. You can also check out one of our dashboards, another easy to use component built on top of the ohsome framework. To contact us, just write us an email to info@heigit.org. Keep tuned for the next blog of the ohsome series, which is already in the pipeline and will take a look at varying mapping behaviors for different regions.

Tags: become-ohsome, Big Spatial Data, heigit, ohsome, ohsome example, oshdb, OSM, OSM History Analytics

Posted in OSM, Services, Software

Comments are closed.

  • About

    GIScience News Blog
    News of Heidelberg University’s GIScience Research Group.
    There are 1,679 Posts and 0 Comments so far.

  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Recent Posts

    • High Resolution Data Insights from OpenStreetMap Element Vectorisation
    • Data publication: Point clouds of snow-on and snow-off forest site
    • Job Offer: Deep Learning Engineer (m/f/d, up to 100%)
    • GIScience Postdoc/Senior Researcher Opportunity for OpenStreetMap Road Quality Analysis
    • Assessing road criticality and loss of healthcare accessibility during floods: the case of Cyclone Idai, Mozambique 2019
  • Tags

    3D 3DGEO Big Spatial Data CAP4Access Citizen Science Conference crisis mapping Crowdsourcing data quality deep learning disaster DisasterMapping GeoNet.MRN GIScience heigit HOT humanitarian humanitarian mapping Humanitarian OpenStreetMap team intrinsic quality analysis landuse laser scanning Lidar machine-learning Mapathon MapSwipe MissingMaps Missing Maps ohsome ohsome example Open data openrouteservice OpenStreetMap OSM OSM History Analytics Public Health Quality quality analysis remote sensing routing social media spatial analysis Teaching VGI Workshop
  • Archives

    • February 2023
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • August 2014
    • July 2014
    • June 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • November 2013
    • October 2013
    • September 2013
    • August 2013
    • July 2013
    • June 2013
    • May 2013
    • April 2013
  •  

    January 2019
    M T W T F S S
    « Dec   Feb »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Recent Comments

    GIScience News Blog CC by-nc-sa Some Rights Reserved.

    Free WordPress Themes | Fresh WordPress Themes