A simple CartoCSS style for POSM, highlighting HDM features.
CartoCSS Makefile Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img
scripts
.gitignore
.nvmrc
Brewfile
LICENSE
Makefile
README.md
bg.mss
hdm.mss
label.mss
package.json
poi_classic.mss
project.yml
road.mss
vars.mss

README.md

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