Skip to content

Commit

Permalink
update doc and reshape get-shapefiles path fix as in new script versi…
Browse files Browse the repository at this point in the history
…on (PR pending)
  • Loading branch information
nebulon42 committed Jul 5, 2017
1 parent 3aa0fae commit 4c6601b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Docker itself. Otherwise you need to [install Docker Compose manually](https://d
## Importing data

openstreetmap-carto needs a database populated with rendering data to work. You first need a data file to import.
It's probably easiest to grab an PBF of OSM data from [Mapzen](https://mapzen.com/metro-extracts/) or [geofabrik](http://download.geofabrik.de/).
It's probably easiest to grab an PBF of OSM data from [Mapzen](https://mapzen.com/data/metro-extracts/) or [Geofabrik](http://download.geofabrik.de/).
Once you have that file put it into the openstreetmap-carto directory and run `docker-compose up import` in the openstreetmap-carto directory.
This downloads (if not present) and starts the PostgreSQL container and builds (if not present) and starts a container that runs
[osm2pgsql](https://github.com/openstreetmap/osm2pgsql) to import the data.
Expand Down
4 changes: 1 addition & 3 deletions scripts/get-shapefiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ def main():
(indexing shapes is suggested for performance improvement).\n""")

if args.option_force:
path = os.path.dirname(__file__)
if len(path) > 0:
os.chdir(path)
os.chdir(os.path.join(os.path.dirname(__file__)))
else:
os.chdir(os.path.join(os.path.dirname(__file__), '..'))
if not os.path.isfile("project.mml"):
Expand Down

0 comments on commit 4c6601b

Please sign in to comment.