Wykres commitów

86 Commity (194b2fbb701c4739ad0c58e1d4fe72728e4e0cf9)

Autor SHA1 Wiadomość Data
David Zhao a4671b84f0
Expose COPY_CONCURRENCY to users (#972)
Allow users to override how the number of threads used when generating map vector tiles.
2020-09-01 14:46:53 +03:00
Frédéric Rodrigo 10efc29280
Make tileset def openmaptiles.yaml a variable (#968)
Move the hard coded `openmaptiles.yaml` from Makefile to a variable. Allows use other tileset definition.
A step forward easy alternative layer definition.
2020-08-27 12:43:09 -04:00
zstadler 751551f910
Add `$OMT_HOST` support to `make start-postserve` (#956)
Resolve https://github.com/openmaptiles/openmaptiles/issues/955
2020-07-28 18:28:04 +02:00
Yuri Astrakhan 447a8380e0
Fix incorrect Imposm config updates (#922)
* Current code incorrectly passes `IMPOSM_CONFIG_FILE` to the `generate-tiles` image, but should pass it to the tools.
* add a test to ensure imposm config exists
* add a test to ensure area is set during updates
2020-06-09 10:00:10 -04:00
Yuri Astrakhan 491bb10bd7
Expose MAX_PARALLEL_PSQL to users (#927)
Allow users to override how many import-sql files are loaded in parallel at the same time.

This change should be a noop
2020-06-09 09:53:02 -04:00
Yuri Astrakhan 1486b7e0cb
Rework download area support (#908)
Closes #904
* Make all data-related targets like `download*`, `import-osm`, `import-borders`, and `generate-tiles` into `area`-aware -- making it possible for multiple data files to coexist inside the `./data` dir.
* Add `make download area=... [url=...]` command to automatically download any kind of area by checking Geofabrik, BBBike, and OSM.fr, optionally from a custom URL. Supports `area=planet` too.
* Do not re-download area with `make download-*` if it already exists.
* Automatically rename `<area>-latest.osm.pbf` into `<area>.osm.pbf`
* If `area=...` parameter is not given to `make`, see if there is exactly one `*.osm.pbf` file, and if so, use `*` as the `area`.
* Configure many variables in the .env file, overriding the defaults in tools
* If `<area>.osm.pbf` exists, but `<area>.dc-config.pbf` is missing, generate it using `download-osm make-dc` command.

Also:
* closes #614
* closes #647
* partially addresses #261
2020-06-03 15:37:45 -04:00
Yuri Astrakhan dbf130deb0
Allow custom ports for postserve/tileserver (#887)
* `make start-postserve PPORT=8000`
* `make start-tileserver TPORT=9000`

Note that both ports need to be the same on host and inside the docker container because the services include a URL to the tiles as part of their manifest.
2020-05-26 15:19:52 -04:00
Yuri Astrakhan a82397940a
Hide Mapnik warnings once available (5.1) (#884)
Uses the patch by @zstadler to filter out irrelevant Mapnik warnings.
This will be ignored until tools v5.1 is used.
2020-05-24 16:04:05 -04:00
Yuri Astrakhan e12f09ae57
Generate multiple parallelizable SQL files (#839)
Generate multiple SQL files to be imported in parallel.
The files will respect the cross-layer dependencies,
so they can be all ingested at the same time.
2020-05-18 14:26:51 -04:00
Yuri Astrakhan 0cae7b9fd6
Upgrade to tools v5 - rm import-osm, new downloader... (#785)
Update to tools v5. See https://github.com/openmaptiles/openmaptiles-tools/releases/tag/v5.0.0 for the list of all changes. Other OMT-repo specific changes:

* removes `import-osm` docker usage, replacing it with `openmaptiles-tools`
* quickstart builds faster because it uses postgres with preloaded water, natural earth, and lake centerlines tables.

### Makefile targets
* `tools-dev` will open a shell in a docker to experiment and debug (instead of `import-sql-dev` and `import-osm-dev`)
* separated `start-maputnik` from `start-postserve`
* renamed `clean-docker` into `db-destroy` to make it more explicit
* cleaner `db-start`, `db-stop`, `db-destroy` targets
* `db-start-preloaded` is the same as `db-start`, except that it uses `postgis-preloaded` -- an image with preloaded water, natural-earth, and lake centerline data
* `db-start` will not recreate the container if it already exists -- this way if it was started as preloaded, it will not be rebuilt.
* better output messages

### Quickstart
* uses `postgis-preloaded` image by default to make quickstart quicker.  To start with a clean db, pass 2 parameters to quickstart, e.g. `./quickstart.sh albania empty`
2020-05-05 11:53:09 -04:00
Yuri Astrakhan 21053e4a5f
Makefile target cleanup, minor improvements (#821)
* allow postgres image to be overwritten with an env var
* allow DIFF_MODE var to be overwritten with an env var
* add /mapping and /cache dirs into tools image
* make `build-sql` target explicit rather than relying on a filename
* `tools-dev` will open a shell in a docker to experiment and debug (instead of `import-sql-dev` and `import-osm-dev`)
* separated `start-maputnik` from `start-postserve`
* renamed `clean-docker` into `db-destroy` to make it more explicit
* cleaner `db-start`, `db-stop`, `db-destroy` targets
* better output messages
2020-04-22 11:15:20 -04:00
Yuri Astrakhan 2ca55abb7d
Use new import-data image (#818)
This is a partial migration of https://github.com/openmaptiles/openmaptiles/pull/785

* Use `import-data` instead of `import-lakelines`, `import-water`, and `import-natural-earth`
* Upgrade docker-compose.yml to version 2.3 (allows some extra env var usage in yaml file itself)
* Remove `openmaptiles-tools:latest` usage -- no longer needed, can use current version 4.1
* `db-start` does not do a container recreation in case docker-compose.yml definition has changed.
* a few minor cleanups in quickstart.sh
2020-04-22 02:48:57 -04:00
Yuri Astrakhan 490acf9beb
Use tools v4 with on-the-fly boundary generation (#750)
* Switch OMT to use the new tools v4.0.0
* borders are dynamically generated from the PBF file instead of downloading a prepared CSV file
* all tools are executed as current user instead of root, thus files are easier to modify/delete if needed
* all data is stored in the local file system instead of docker volumes (Docker currently has a limitation of non-root operation for internal volumes). This also makes it easier to examine and test it.
* New `init-dirs` make target creates all the needed dirs - `build, data, cache`
* `make clean` deletes the whole `build` dir instead of individual files.
* `clean-docker` for backward compatibility deletes `cache` dirs (it used to be a volume)
* all `psql` calls are now done with `ON_ERROR_STOP=1`
* got rid of `pgclimb-*` targets -- same results can be done with `psql` (`pgclimb-list-views` & `pgclimb-list-tables` renamed to `list-views` and `list-tables`)
2020-03-06 13:15:54 -05:00
Yuri Astrakhan 9f4d48cf25
Remove unused import-sql image (#738)
import-sql image is not used anywhere in OMT, deleting.
2020-01-24 14:40:03 -05:00
Yuri Astrakhan 3449cecb22
Migrate to new Wikidata importer (#735)
* Use _resolve_wikidata in layer mapping.yaml

Mark all tables that should not be populated with the Wikidata
international labels with a special OMT-specific flag.

This should be ok to merge even before the new tools version
is used because imposm seems to ignore anything it doesn't understand.

The next tools version will remove it when generating imposm mapping file.

* Migrate to new Wikidata importer

Uses latest tools to populate the wd_names table
during the quickstart.  This can be merged already,
or we can wait for the next tools version.
2020-01-22 16:16:38 -05:00
Yuri Astrakhan 132747d9b5
Use unified tools version 3.1.0 for all images (#707)
* Use unified tools version for all images
* do not start postserve as part of quickstart, but added a help message how to start it
* wait for SQL start with pgwait
2019-12-12 12:40:31 -05:00
Yuri Astrakhan 8876e3a4d8
Clean up quickstart and makefile (#726)
Other than the change from `exit 404` to `exit 1`,
all other changes are noops - just cleaning things up
so that various linting tools don't complain.
2019-12-11 09:26:25 -05:00
Eva Jelinkova e1613f23ef
Merge pull request #664 from OsmHackTW/import-sql-1.0
Upgrade import-sql from 0.8 to 1.0
2019-10-31 17:48:00 +01:00
pathmapper d91933273b
Update import-water version 2019-10-30 17:45:21 +01:00
typebrook 7393d88a03 Upgrade import-sql to 1.0
- Do not fail if there are no matching sql files in dir

- Fixed missing table for optional wikidata import.
2019-09-01 15:43:28 +08:00
Eva Jelinkova c42943dc0c
Update import-water version 2019-08-14 11:41:11 +02:00
Eva J f09a2edd12 import-water 1.0, update osmdata URL 2019-05-20 11:58:34 +02:00
pathmapper c28540b1c9
Update version openmaptiles-tools 2019-01-17 10:02:06 +01:00
typebrook 028cb5cbf6 Update older import-osm docker image 2018-12-22 14:05:19 +00:00
jirik 00d88a103c Revert back to NE 4.0.0
See https://github.com/openmaptiles/openmaptiles/issues/365#issuecomment-442823991
2018-11-30 15:32:26 +01:00
jirik 9c088abd3d Use NE v4.1.0 2018-11-12 12:37:15 +01:00
jirik 001ea0846f Use import-sql v0.8 2018-11-12 10:39:00 +01:00
ImreSamu 61314fc289 remove osm2vectortiles/mapbox-studio from project 2018-11-05 16:41:23 +01:00
MartinMikita 8bac80cd09 Updated openmaptiles-tools and fixed version in yaml. 2018-07-27 15:31:57 +02:00
MartinMikita d62a0eaccd Updated openmaptiles-tools to 0.9. Fixed missing BBOX, MIN_ZOOM, MAX_ZOOM variables. 2018-07-27 11:04:08 +02:00
Martin Mikita c11a4cd998
Update import-osmborder 2017-11-24 17:27:57 +01:00
jirik 1244c8dacd Update import-water 2017-11-20 19:17:13 +01:00
antoine-de 62581302a5 update docker compose 2017-11-17 13:55:02 +01:00
jirik 741be6d921 Import additional names from Wikidata 2017-11-16 09:03:41 +01:00
Jiri Kozel 1a324aaf22
Do not load all tags, use later imposm3 (#356)
Fix #266 #267
2017-11-10 15:25:23 +01:00
stirringhalo 21bbe37125 Use postserve 0.2 (#292) 2017-06-24 18:17:51 -04:00
stirringhalo 13bde63512 Use later images (#289)
Since all based on Postgis 2.9, saves time on Travis as same base and smaller downloads.
2017-06-24 18:11:34 -04:00
Jiri Kozel 51bc8fad35 Multilinguality (#279)
Improve multilinguality: names in 57 languages, name:latin, name:nonlatin, name_int. Fixes #211 #252 #80.

See #279 for more info.
2017-06-12 17:53:47 +02:00
jirik 8ff5d10e8b Use openmaptiles-tools:0.5 and docker-compose to run it 2017-06-06 19:46:50 +02:00
stirringhalo 255a4250b9 Add support for PBF tiles generated directly from postgres (#240)
* Add postserve

* Set postserve version
2017-05-10 18:35:01 -04:00
stirringhalo 05e1658926 osm_ocean_polygon_gen4 (#207)
*  osm_ocean_polygon_gen4

* Fix etl doc

* Move to later import-water version
2017-04-13 18:08:57 -04:00
MartinMikita 62526dd267 Fixed typo in import-water docker repository - increase version to 0.3.1 2017-03-21 18:42:02 +01:00
MartinMikita 2c9e27a695 Updated versions of docker images in docker-compose:
- import-osm:0.4
 - import-water:0.3
 - generate-vectortiles:0.1.1
Use same version of import-osm in update-osm and import-osm-diff containers.
2017-03-21 16:56:33 +01:00
stirringhalo 9566478919 Switch to networks 2017-02-01 16:34:17 -05:00
Lukas Martinelli a865d6c970 Merge branch 'master' into imposm3_filter_reject_require 2017-01-18 15:39:40 +01:00
Lukas Martinelli 99eacd496f Use import-osm:0.3 2017-01-18 15:06:44 +01:00
Lukas Martinelli 2ec80a60ae Do not mount import to import-osmborder 2017-01-18 13:39:33 +01:00
Lukas Martinelli 8a99e49df7 Fix version of import-osmborder 2017-01-16 20:54:14 +01:00
Lukas Martinelli 8874140207 Use boundaries from osmborder 2017-01-16 20:11:35 +01:00
Lukas Martinelli 28c025f60a Add import OSM diff command 2017-01-16 10:01:36 +01:00