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

New to OSM: Can U.S. shopping centers be exported as a shapefile and if so, how? Thanks!

asked 06 Sep '23, 14:50

charris801's gravatar image

charris801
11112
accept rate: 0%


If your question is: "Is there a web site where I can click a few buttons and out comes a shapefile with all US shopping centers" then the answer is no. But if you're willing to invest more time then it is possible.

The closest you'll get to "a web site where..." is the "Overpass Turbo" service (example: http://overpass-turbo.eu/s/1zTh) but this requires that you do some research as to which OSM tags you want (malls? supermarkets?), also Overpass Turbo will only output GeoJSON (not shape files but converters exist), and might refuse to run on an area as large as the US - you might have to run it in batches.

A more robust method is downloading a raw OSM data file that contains data for the US (e.g. from download.geofabrik.de), then run the "osmium" command line program (requires Linux) to filter out the objects of interest (requires the same research about what exactly you want that I mentioned in #1) and then convert them to GeoJSON.

Alternatively you can import the OSM data into a PostGIS database with osm2pgsql (both PostGIS and osm2pgsql are available on Windows but running on Linux is easier), and then use the standard PostGIS tool "pgsql2shp" to create a shape file based on a SQL query formulated to return all shopping centers.

permanent link

answered 06 Sep '23, 23:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Great - thank you very much!

(07 Sep '23, 13:44) charris801

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:

×87
×2

question asked: 06 Sep '23, 14:50

question was seen: 848 times

last updated: 07 Sep '23, 18:14

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