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

Hello OpenStreetMap users,

I am working with a simulation program and would like to add all supermarkets in a city as GIS nodes on my map. I read I can get all coordinates for supermarkets using openstreetmap. However, when I click on export it exports all points and nodes from a selected area. This area can only be a certain part of the city, otherwise it would be too big and it is impossible to download. Looks like the only option I would have it to find every supermarket by hand, download coordinates for all buildings in the area and then select the ones I want by hand. Is that really the only option I have or is there any easier way how to select just the buildings I need and download an osm file with just the information I need?

Any help would be appreciated :) KR

asked 07 Jun '19, 14:13

barborapetrovic's gravatar image

barborapetrovic
11112
accept rate: 0%


A frequently used tool for partical extracts from OSM is "Overpass Turbo" and you will find many examples for data extraction with it here, or on the OSM wiki. Some objects like supermarkets will sometimes be mapped as a point and sometimes as a polygon, in which case you might want to retrieve the centre of the polygon; Overpass can do that too.

A more flexible approach is loading the OSM data for the region of interest into a PostGIS database on your local machine, then you can make even more complex queries, but it requires setting up the database whereas Overpass is already available.

permanent link

answered 07 Jun '19, 14:30

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Your answer
toggle preview

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:

×315

question asked: 07 Jun '19, 14:13

question was seen: 1,670 times

last updated: 07 Jun '19, 14:30

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