forked from mapbox/osm-bright
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
|
||
## OSM BRIGHT CARTO TEMPLATE CONFIGURATION OPTIONS ############################# | ||
|
||
config = { | ||
"importer": "imposm", # either 'imposm' or 'osm2pgsql' | ||
"postgis": {} | ||
} | ||
|
||
# PostGIS connection setup | ||
# Leave empty for Mapnik defaults. The only required parameter is dbname. | ||
config["postgis"]["host"] = "" | ||
config["postgis"]["port"] = "" | ||
config["postgis"]["dbname"] = "osm" | ||
config["postgis"]["user"] = "" | ||
config["postgis"]["password"] = "" | ||
|
||
# Increase performance if you are only rendering a particular area by | ||
# specifying a bounding box to restrict queries. Format is "XMIN,YMIN,XMAX,YMAX" | ||
# in the same units as the database (probably spherical mercator meters). The | ||
# whole world is "-20037508.34 -20037508.34 20037508.34 20037508.34". | ||
# Leave blank to let Mapnik estimate. | ||
config["postgis"]["extent"] = "-20037508.34 -20037508.34 20037508.34 20037508.34" | ||
|
||
# Land shapefiles required for the style. If you have already downloaded | ||
# these or wish to use different versions, specify their paths here. | ||
# OSM land shapefiles from MapBox are indexed for Mapnik and have blatant | ||
# errors corrected (eg triangles along the 180 E/W line), but are updated | ||
# infrequently. The latest versions can be downloaded from osm.org: | ||
# - http://tile.openstreetmap.org/processed_p.tar.bz2 | ||
# - http://tile.openstreetmap.org/shoreline_300.tar.bz2 | ||
processed_p = "http://tilemill-data.s3.amazonaws.com/osm/coastline-good.zip" | ||
shoreline_300 = "http://tilemill-data.s3.amazonaws.com/osm/shoreline_300.zip" |