Skip to content

Commit

Permalink
Merge pull request #3014 from matkoniecz/createdb
Browse files Browse the repository at this point in the history
be more helpful in installation docs - add database creation command
  • Loading branch information
kocio-pl authored Jan 12, 2018
2 parents 6decda2 + bdb7fa7 commit 2684376
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ This document describes how to manually configure your system for running openst
## OpenStreetMap data
You need OpenStreetMap data loaded into a PostGIS database (see below for [dependencies](#dependencies)). These stylesheets expect a database generated with osm2pgsql using the pgsql backend (table names of `planet_osm_point`, etc), the default database name (`gis`), and the [lua transforms](https://github.com/openstreetmap/osm2pgsql/blob/master/docs/lua.md) documented in the instructions below.

Start by setting up your database to have PostGIS and hstore with
Start by creating a database

```
sudo -u postgres createuser -s $USER
createdb gis
```

Enable PostGIS and hstore extensions with

```
psql -d gis -c 'CREATE EXTENSION postgis; CREATE EXTENSION hstore;'
Expand Down

0 comments on commit 2684376

Please sign in to comment.