Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 829 Bytes

README.md

File metadata and controls

53 lines (39 loc) · 829 Bytes

POSM Simple

A simple CartoCSS style for POSM.

Installation

npm install
make .env

On macOS (with Homebrew):

brew bundle

Importing Data

This currently uses a Delaware extract from Geofabrik, mainly for its size.

createdb simple
psql -d simple -c "create extension postgis"
psql -d simple -c "create extension hstore"

osm2pgsql \
  --unlogged \
  --number-processes 4 \
  -v \
  -c \
  -d simple \
  -H localhost \
  --hstore-all \
  --hstore-add-index \
  -x \
  delaware-20151208.osm.pbf

Once data has been imported, necessary disk space can be reduced by running:

make smaller

This will truncate source archives, preventing them from being re-downloaded when checking for the existence of database tables.

Rendering

npm start