• Home
  • About

GIScience News Blog

News of Heidelberg University’s GIScience Research Group.

Feed on
Posts
Comments
« disastermappers heidelberg get-together 2019: 03.Dec 2019
Graduate Celebration 2019 »

Becoming ohsome is simple: Adding support of simple feature types to the ohsome API

Nov 28th, 2019 by Fabian Kowatsch

It’s been a while, since  we have published the last blog post about the awesome ohsome platform, but don’t worry, there’s always something happening of course in the spatial analytics team of HeiGIT. So here we are, back on track with enlarging your imagination on what is possible when using our OpenStreetMap history analytics tool. This blog post presents a recently added feature, namely the integration of simple feature keywords in the filters of the ohsome API. It is now possible to filter directly on point1, line1, polygon1, or other1 features using these respective keywords in the types filter of the API. Let’s look at two examples to get ideas about what we can do with that new feature.

The first example uses types=polygon in combination with keys=building to retrieve all buildings from a specified region, in this case from the old town of Bergamo in Italy for the 1st of October 2019. With the help of this filter, we do not need to know which OSM types we have to use (node vs. way vs. relation), but just get all buildings that are properly mapped with a correct geometry. This means that the result consists of a combination of way and relation features. Using the simple feature filters also results in a decrease in processing time, as we can filter out more complex geometries earlier in our processing chain, which would otherwise be included longer, if you would just use types=way,relation. The following visualization shows the returned data together with an OSM base map and the used bounding box.

The second example gives us actually just the opposite. It returns the incorrectly mapped (or tagged) buildings, this time for a bounding box around Frankfurt, Germany and using the same timestamp. To receive that data we use the types=line,other filter together with keys=building. In this response you can find for example features with the tag building=no, which is explicitly defined as not being a valid tag to define a polygon (further info). Especially this approach, searching for falsely tagged or drawn features, in other words erroneous data, has not really been covered in our analyses thus far. Having this new filtering feature enables you to fire such requests on our API and search for that kind of data in any region in the world.

If you liked this post (and even more so if not), or have any other ideas/comments/etc. please drop us a message at our info(at)heigit.org email address. Don’t forget to stay ohsome!

1 for those of you that are interested on what’s happening under the hood, here’s on what this new filter is based on internally:

  • point is puntal and uses the OSM type node
  • line is lineal and uses way features that are not seen as polygons, e.g.: roundabouts having the tag highway=* are closed ways, but not interpreted as planar features, so they are included here
  • polygon is polygonal and uses way, as well as relation features that are planar (planar := features having an area) and have a corresponding tag, which tells us that this feature has an area, e.g.: building, landuse; for further info see TagInterpreter of the OSHDB or List of polygon features
  • other is a geometry-collection and uses relation, e.g.: turn restrictions

Tags: become-ohsome, heigit, OGC, 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,674 Posts and 0 Comments so far.

  • Meta

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

    • New paper on the automatic characterization of surface activities from 4D point clouds
    • OSHDB Version 1.0 Has Arrived
    • Job Opening for Postdoc / Senior Researcher on OpenStreetMap Road Quality Analysis
    • Geography Awareness Week 14.-19.11.2022
    • Open Data: Multi-platform point clouds and orthophotos of the inland dune in Sandhausen
  • 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

    • 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
  •  

    November 2019
    M T W T F S S
    « Oct   Dec »
     123
    45678910
    11121314151617
    18192021222324
    252627282930  
  • Recent Comments

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

    Free WordPress Themes | Fresh WordPress Themes