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 |
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. answered 07 Jun '19, 14:30 Frederik Ramm ♦ |