Skip to main content

Themes

osmprj uses osm2pgsql flex Lua styles called themes to control how OSM data is structured in your database. You specify a theme when adding a source with osmprj add --theme <name>.

Available themes

ThemeDescription
shortbreadShortbread vector tile schema
shortbread-genShortbread with generalisation
osmcartoOSM Carto rendering schema
pgosmPgOSM Flex default
pgosm-basicPgOSM Flex basic
pgosm-everythingPgOSM Flex everything
pgosm-minimalPgOSM Flex minimal
genericGeneric basic topics
nwrNode/Way/Relation

Run osmprj themes list to see all themes discovered on your system.

Custom themes

You can add custom theme directories by setting the OSMPRJ_THEME_PATH environment variable:

export OSMPRJ_THEME_PATH="$OSMPRJ_THEME_PATH:/path/to/your/themes"