In this recipe, you will import OpenStreetMap (OSM) data to PostGIS using the
You will first download a sample dataset from the OSM website, and then you will import it using the
You will add the imported layers in a GIS Desktop software and generate a view to get subdatasets, using the
hstore PostgreSQL additional module to extract features based on their tags.
We need the following in place before we can proceed with the steps required for the recipe:
osm2pgsql. If you are using Windows, follow the instructions available at http://wiki.openstreetmap.org/wiki/Osm2pgsql. If you are on Linux, you can install it from the preceding website ...