Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to OpenMapTiles V3_13 #46

Merged
merged 319 commits into from
Jan 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
319 commits
Select commit Hold shift + click to select a range
c35cc59
Profiling tests: Large test data and wikidata caching (#855)
nyurik May 6, 2020
864eba5
Update README.md (#854)
nyurik May 6, 2020
d9fb768
Github Actions: Debug bbox test params (#857)
nyurik May 6, 2020
11566f8
adding more data in zoom 7 and 8 (#617)
eva-j May 7, 2020
9f9facc
Remove support of relation type=associatedStreet, few valuable data, …
frodrigo May 7, 2020
632a33e
attempt to reset hardware before each test (#859)
nyurik May 7, 2020
dd3cb07
Improve GH action update-pr log messages (#860)
nyurik May 7, 2020
12542eb
Unified naming convention for make targets (#862)
zstadler May 9, 2020
63e1502
Fix Typo (#868)
zstadler May 14, 2020
e10aa33
Update Makefile (#869)
zstadler May 15, 2020
aea7d73
quickstart support for osmfr and bbike areas (#861)
zstadler May 15, 2020
dcee493
Simplify update_gbr_route_members() (#870)
frodrigo May 15, 2020
d8095e8
Update Readme.md - start-db command (#872)
eva-j May 15, 2020
e12f09a
Generate multiple parallelizable SQL files (#839)
nyurik May 18, 2020
0d6cc6b
Properly init dirs, docs (#879)
nyurik May 20, 2020
be75e76
wait longer for preloaded image (#881)
nyurik May 20, 2020
97216c5
Replace materialized view of water by tables with diff update (#853)
frodrigo May 20, 2020
bac0f25
Remove parallel safe on layer_building for now (#882)
nyurik May 20, 2020
6a41245
Generate getmvt() func with build-sql (#880)
nyurik May 20, 2020
f5d34b5
Mapping leisure=swimming_pool as water (#878)
jpbede May 22, 2020
e808590
Add landuse=basin as water (#876)
frodrigo May 22, 2020
2622c5b
Update route member tagging support of Trans-Canada Highway (#864)
frodrigo May 22, 2020
04ae4a6
Upgrade to tools v5.1 (#883)
nyurik May 24, 2020
a823979
Hide Mapnik warnings once available (5.1) (#884)
nyurik May 24, 2020
d0ff8be
Use CleanNumeric in buildings layer (#858)
nyurik May 24, 2020
19673b5
Print generated metadata during quickstart (#894)
nyurik May 26, 2020
cec49b2
Save DB schema during test run (#891)
nyurik May 26, 2020
6feefb4
Use osm_id as feature id for building layer (#827)
frodrigo May 26, 2020
b2ab969
Update steps for 'Using your own OSM data' (#889)
TomPohys May 26, 2020
495e8bd
Align update.sql file naming to other layers (#897)
frodrigo May 26, 2020
dbf130d
Allow custom ports for postserve/tileserver (#887)
nyurik May 26, 2020
28af9c0
Add BORDERS_CLEANUP param to .env (#886)
nyurik May 26, 2020
99c6be7
Add "shop=car_parts" (#874)
jpbede May 27, 2020
c6fff87
remove automatic osmfr choice (#902)
AdamGolota May 27, 2020
907fc58
Use tools v5.2 (#903)
nyurik Jun 1, 2020
1a31b92
Minor fix import-borders file param (#905)
nyurik Jun 1, 2020
546f26e
MVT: use gzip and generate for v3.0 (#906)
nyurik Jun 1, 2020
fca53ef
Minor makefile/quickstart cleanup (#907)
nyurik Jun 1, 2020
1486b7e
Rework download area support (#908)
nyurik Jun 3, 2020
1a9f613
New generate-dc-config target, rm QUICKSTART_MIN/MAX_ZOOM (#915)
nyurik Jun 4, 2020
805d95d
Fix import-borders if runs multiple times (#916)
nyurik Jun 5, 2020
6457419
NOOP: Format all layer's SQL code (#917)
nyurik Jun 8, 2020
60a3e1e
Fix Makefile duplicate runs (#923)
nyurik Jun 8, 2020
0b1511d
NOOP water - Move updating sql into separate file (#920)
nyurik Jun 8, 2020
ffd237d
Fix `clean-unnecessary-docker` make target (#921)
zstadler Jun 8, 2020
5e65ac8
Add area-base filtering for park names in lower zoom levels (#911)
zstadler Jun 9, 2020
491bb10
Expose MAX_PARALLEL_PSQL to users (#927)
nyurik Jun 9, 2020
447a838
Fix incorrect Imposm config updates (#922)
nyurik Jun 9, 2020
f889853
aerodrome_label: Remove unused function parameter (#919)
nyurik Jun 11, 2020
8f31655
Change GitHub Actions to dedicated server (#929)
TomPohys Jun 12, 2020
ad8bd41
Do not wait for integrity test (#934)
nyurik Jun 14, 2020
2b95d1c
Fix & optimize incorrect function declarations (#918)
nyurik Jun 17, 2020
6ac544f
Make update_osm_peak_point use incremental update #814 (#896)
frodrigo Jun 17, 2020
c86f4a5
Build aggregation on zoom level 13 (#936)
TomPohys Jun 18, 2020
dd1b2d3
More fail safe incremental update on water_lakeline and water_point (…
frodrigo Jul 21, 2020
098f2d1
Fix peak doc (#941)
frodrigo Jul 21, 2020
13aaa40
Fix More fail safe incremental update on water_lakeline and water_poi…
frodrigo Jul 22, 2020
9bb1779
Remove alignment of AS in SQL and few others (#932)
frodrigo Jul 22, 2020
8978463
Rephrase `area` detection messages (#954)
zstadler Jul 28, 2020
751551f
Add `$OMT_HOST` support to `make start-postserve` (#956)
zstadler Jul 28, 2020
6a512af
Special cache handling for Docker Toolbox on Windows (#957)
zstadler Aug 3, 2020
232379b
Do insensitive case compare using lower() and not ILIKE (#961)
frodrigo Aug 6, 2020
1daacf3
Use line buffering by `awk` in `make import-sql` (#962)
zstadler Aug 10, 2020
10efc29
Make tileset def openmaptiles.yaml a variable (#968)
frodrigo Aug 27, 2020
bb2a432
Make more simple incremental update (#944)
frodrigo Aug 28, 2020
82616ea
Make update_city_point use incremental update #814 (#951)
frodrigo Aug 30, 2020
04d1b66
Incremental update marine point (#952)
frodrigo Aug 30, 2020
4807cce
adding hi(hindi),ta(tamil) and te(telugu) language (#973)
naveenmtp Sep 1, 2020
a4671b8
Expose COPY_CONCURRENCY to users (#972)
bravetheheat Sep 1, 2020
194b2fb
Add state labels at low zoom levels (#969)
jsanz Sep 2, 2020
de95843
Allow setting TILESET_FILE by shell or Makefile (#975)
zstadler Sep 2, 2020
1356d72
adding disputed_name to NE sources (#976)
eva-j Sep 3, 2020
bd444c0
Show more state borders at low zoom levels (#979)
jsanz Sep 10, 2020
7b2df3b
write how to generate dc-config (#982)
smellman Sep 14, 2020
df56b75
Clean update_route_member.sql (#981)
frodrigo Sep 14, 2020
c82c706
Clean output of `list-views` and `list-table` (#985)
zstadler Sep 14, 2020
fb7c1ef
Update Makefile (#984)
zstadler Sep 15, 2020
1685eac
#766 remove housenumbers inside polygon and same number (#983)
smellman Sep 16, 2020
550b1f8
Replace materialized view osm_transportation_name_network by a table …
frodrigo Sep 18, 2020
5c640da
Move where condition from osm_transportation_name_linestring to mater…
frodrigo Sep 21, 2020
45f5b53
Stitch `transportation_name` by all language tags (#989)
zstadler Sep 21, 2020
f7d7a0c
Housenumbers - diff update, multipolygons (#990)
eva-j Sep 21, 2020
0245b21
NOOP: Minor Makefile clean up (#994)
swiss-knight Sep 22, 2020
d8b5e8e
openmaptiles-tools: consider MIN_ZOOM/MAX_ZOOM env (#992)
zstadler Sep 23, 2020
47cdfc2
Move where condition from osm_transportation_name_linestring to mater…
frodrigo Sep 23, 2020
8bb77b6
Diff update osm transportation name network linestring (#996)
frodrigo Sep 28, 2020
c8f919e
Better update of osm_important_waterway_linestring, use frist and las…
frodrigo Sep 28, 2020
424c4ee
Remove workaround for quickstart.sh (#998)
zstadler Sep 28, 2020
a3ce04f
Add landuse=salt_pond as water (#1000)
frodrigo Sep 29, 2020
883a997
Remove large unused index osm_highway_linestring_highway_idx (#1002)
frodrigo Sep 30, 2020
e8bf4aa
Update makefile for hierarchical area names (#1009)
zstadler Oct 1, 2020
36b7533
Add timers to trigger function (#1006)
frodrigo Oct 8, 2020
3d21523
aerialway class for the transportation layer (#1011)
eva-j Oct 12, 2020
7a7e932
adding ST_IsValid to housnumber geometry (#1015)
eva-j Oct 12, 2020
cfc243e
Add protocol to postserve --serve paramter (#1007)
frodrigo Oct 12, 2020
88c13f7
Korean and Japanese Latin (#1026)
TomPohys Oct 13, 2020
7216593
add ST_IsValid where ST_PointOnSurface (#1025)
TomPohys Oct 13, 2020
b7429ce
union ocean regular squares into complex polygon (#1021)
TomPohys Oct 14, 2020
341c4df
Brunnel changes in transportation and transportation_name layers (#1027)
eva-j Oct 14, 2020
09b68ed
Allow `BBOX` to be set in `.env` file (#1013)
zstadler Oct 15, 2020
72af346
Add gates to airports (#1029)
TomPohys Oct 19, 2020
97ffabc
Use 5.3 - new bbox value (#1012)
nyurik Oct 26, 2020
8ba2e18
Revert "Housenumbers - diff update, multipolygons (#990)" (#1032)
eva-j Nov 4, 2020
a36db48
Revert "#766 remove housenumbers inside polygon and same number (#983…
eva-j Nov 4, 2020
0dc8c32
Rename generic layer.sql to actual_layer_name .sql (#1034)
lazaa32 Nov 9, 2020
4a1b0af
reworked landcover layer (#1035)
TomPohys Nov 11, 2020
0aa6648
adding brunnel into z<9 (#1038)
eva-j Nov 11, 2020
d180988
Move "qa" tools from OMT to OMT-T (#1031)
TomPohys Nov 12, 2020
3ef3645
add state name to national borders (#1039)
TomPohys Nov 12, 2020
0776cd3
README - Rename target for bbox-file by new tool 5.3 (#1040)
TomPohys Nov 13, 2020
da689f9
Fix landcover generalization. (#1042)
lazaa32 Nov 24, 2020
24b9328
Remove unused generalization from waterway (#1043)
TomPohys Nov 24, 2020
0c6fe2d
Building aggregation fix (#1044)
TomPohys Nov 24, 2020
77f5d76
Refactor schema, one _gen_z view per zoom. (#1045)
lazaa32 Nov 26, 2020
01d53a2
Fix detected area filename (#1049)
korzhyk Dec 7, 2020
924558d
Enable pgquery (#1048)
smellman Dec 8, 2020
b2b8716
Update links in readme (#1050)
daliborjanak Dec 8, 2020
512b343
Bugfix update_aerodrome_label_point() (#1051)
lazaa32 Dec 8, 2020
5772e61
Bugfix in osm_landcover_gen_z10. (#1054)
lazaa32 Dec 14, 2020
485eb68
Release 3.12 prerequisite (#1056)
TomPohys Dec 16, 2020
2aa9630
add forgotten 'garages' landuse to the docs (#1059)
Dec 29, 2020
4610439
Bugfix landcover osm (#1061)
lazaa32 Jan 8, 2021
077ec78
typo and spelling fixes in the output (#1060)
tilmanb Jan 10, 2021
4b26c63
Upgrade version to 3.12.1 (#1062)
lazaa32 Jan 14, 2021
c4c3089
Update openmaptiles.yaml - set center to 0,0,1 (#1063)
lazaa32 Jan 14, 2021
295688e
Add place=quarter to city subdivisions (#1065)
jdhoek Jan 18, 2021
d69ae01
Mount /export dir in docker-compose.yaml (#1071)
lazaa32 Feb 5, 2021
50d569d
Remove useless indices on osm_transportation_merge_linestring_genX (#…
frodrigo Mar 5, 2021
bf9e6a1
osm_route_member bugfix (#1088)
TomPohys Mar 16, 2021
fadc4a3
Explicit mention for using `iso_a2` attribute. (#1073)
TomPohys Mar 16, 2021
2943e9d
Avoid grep errors in `clean-unnecessary-docker` (#1089)
zstadler Mar 16, 2021
d5480d2
Update naming convention for networks (#1093)
remyleone Mar 30, 2021
1f6eb7b
Improve logging - show BBOX if exists (#1096)
nyurik Mar 30, 2021
231a1d1
update docker-compose version (#1091)
remyleone Apr 9, 2021
f4a1a25
Water - add ogc_fid for NE sources, edit etldoc (#1098)
eva-j Apr 12, 2021
76d5d75
Fix own OSM instructions (#1101)
jvolker Apr 20, 2021
68ec5c7
Update makefile to catch WSL folder error (#1108)
zstadler Apr 30, 2021
d0ebdde
Fix transportation road segments disconnection (#1109)
TomPohys Apr 30, 2021
ae94985
Workflow updates - bump vers, print perfcache info (#1111)
nyurik Apr 30, 2021
da88949
WSL folder recommend (#1110)
TomPohys May 26, 2021
8d91cb3
Improve "make help" output (#1121)
ZeLonewolf Jun 9, 2021
79c2ec9
Add new layer to serve highway=motorway_junction nodes (#1119)
ZeLonewolf Jun 28, 2021
3b8248a
Switch from amenity=embassy to office=diplomatic #1084 (#1085)
frodrigo Jun 28, 2021
9600cec
Add notice into README about import-osm (#1118)
TomPohys Jun 28, 2021
a0847b8
Update osm_poi_point only on change (#1129)
frodrigo Jun 29, 2021
3f70b87
nulling subclass when not present (#1132)
ZeLonewolf Jun 30, 2021
1b0b1fd
Compute separate concurrency_index on osm_route_member (#1135)
ZeLonewolf Jul 2, 2021
c8377d3
include route relation ref in existence check (#1139)
ZeLonewolf Jul 5, 2021
4eb2404
Simplify Trans-Canada Highway logic (#1143)
ZeLonewolf Jul 6, 2021
a851f2c
Review index on osm_waterway_linestring on osm_important_waterway_lin…
frodrigo Jul 9, 2021
197ea39
Remove unused osm_id column (#1147)
ZeLonewolf Jul 13, 2021
3c15679
Update brunnel aggregation to avoid splitting highways (#1141)
ZeLonewolf Jul 13, 2021
b011b27
Implement concurrent highway routes (#1152)
ZeLonewolf Jul 26, 2021
951aa90
Fix SQL failures in transportation_name update code (#1154)
ZeLonewolf Jul 26, 2021
9e4be3e
Remove unused network type params (#1155)
ZeLonewolf Jul 26, 2021
08bb2a0
Add network to transport layer (#1158)
ZeLonewolf Aug 4, 2021
893d1df
Update descritopn of the water layer's class (#1166)
zstadler Aug 10, 2021
09078f6
Remove useless WHERE clauses from the transportation layer (#1168)
ZeLonewolf Aug 10, 2021
f78d42e
Remove unused osm_transportation_merge_linestring table (#1171)
ZeLonewolf Aug 11, 2021
fdb9ae5
Transportation generalization table optimization and cleanup (#1172)
ZeLonewolf Aug 13, 2021
45d825e
Implement private road tagging (#1174)
ZeLonewolf Aug 14, 2021
d186856
Add support for cemetery tagged as grave_yard (#1175)
ZeLonewolf Aug 18, 2021
e37076c
Add spring water bodies (#1167)
zstadler Aug 18, 2021
7ca751e
Add toll tagging (#1177)
ZeLonewolf Aug 19, 2021
36bd917
Implement feature IDs in aerodrome_label and mountain_peak (#1176)
ZeLonewolf Aug 19, 2021
6ef1386
Fix negative feature IDs (#1185)
ZeLonewolf Aug 20, 2021
a93b708
Implement shipway labels (#1179)
ZeLonewolf Aug 23, 2021
aee838e
Change zoom level for NE states/provinces (#1184)
ZeLonewolf Aug 23, 2021
7e9a681
Add international airports at z8-9 (#1187)
ZeLonewolf Aug 23, 2021
b88bd6a
Add locksmith shop (#1188)
ZeLonewolf Aug 23, 2021
1cea73c
Use st-asmvt pg tilegen in quickstart (#1193)
nyurik Aug 26, 2021
4525ce6
Convert CI to use workflow triggers (#1189)
ZeLonewolf Aug 27, 2021
1fb7841
Fix name of PR comment donor (#1196)
ZeLonewolf Aug 27, 2021
f15ecbf
Update README.md tilegen target (#1199)
nyurik Aug 28, 2021
0e17d53
Implement park rendering at z4-5 (#1160)
ZeLonewolf Sep 1, 2021
d427d58
Water layer river mapping bug fixes (#1182)
ZeLonewolf Sep 1, 2021
3818979
Suppress service roads at certain zooms (#1192)
ZeLonewolf Sep 1, 2021
910db7f
Remove area checks in Makefile for `import-borders` & `generate-tiles…
Falke-Design Sep 1, 2021
f947cbf
Add enhanced mountain features (#1202)
ZeLonewolf Sep 1, 2021
d205f4a
Fix Ctrl+C when generating tiles (#1205)
nyurik Sep 1, 2021
87a37da
Fix #1151 check if bc command is available (#1201)
Falke-Design Sep 1, 2021
bf68366
Add workflow to readme (#1203)
Falke-Design Sep 8, 2021
5e37a81
Update devdocs (#1223)
ZeLonewolf Sep 11, 2021
d19aa5b
Makefile: Replace static DB properties with the variables (#1222)
Falke-Design Sep 17, 2021
849aca8
Refactor z12-14 transportation filter logic (#1207)
ZeLonewolf Sep 20, 2021
e8a3bc1
Remove landuse=park from landcover (#1208)
ZeLonewolf Sep 20, 2021
d49f524
Removed useless NULLIF calls (#1214)
kukulich Sep 20, 2021
5b0c289
Integrity check to generate zoom 14 tiles (#1231)
zstadler Sep 20, 2021
8b6e69e
BUGFIX: Ignore duplicate route concurrencies (#1233)
ZeLonewolf Sep 20, 2021
6f0ab57
Print error of `import-sql` at the end of the output (#1237)
Falke-Design Sep 21, 2021
88389f2
BUGFIX: Route concurrency data is wiped after route member updates (#…
ZeLonewolf Sep 21, 2021
bfdbd82
Fix typo in transportation update (#1247)
ZeLonewolf Sep 24, 2021
b4b8979
Replace osmborder with imposm/SQL (#1213)
ZeLonewolf Sep 29, 2021
718e79a
Fix park polygon update SQL (#1248)
ZeLonewolf Sep 29, 2021
ed65036
Restore `make psql` acceptance of SQL from stdin (#1250)
zstadler Sep 29, 2021
596f44a
Integrity check for DIFF mode (#1245)
zstadler Sep 29, 2021
8ec986e
Expose `make all` errors (#1254)
zstadler Oct 6, 2021
91c6d3b
Update ETL docs on landcover layer (#1258)
ZeLonewolf Oct 7, 2021
4d6945b
Simplify landcover layer generalisation SQL (#1255)
flother Oct 8, 2021
aaa6804
Remove unneeded toll code (#1262)
ZeLonewolf Oct 13, 2021
5fb15d5
Re-create cache dir after destroying (#1263)
nyurik Oct 13, 2021
ac577fe
Remove mention of now-gone `make import-borders` (#1259)
flother Oct 14, 2021
f744f9c
Upgrade to omt-tools v6, Imposm 0.11.1 and migrate SQL (#1246)
ZeLonewolf Oct 14, 2021
829f28d
Fix logic error in transportation layer filter (#1270)
ZeLonewolf Oct 19, 2021
ce94fec
Add boundaries `import-data` info to Readme (#1215)
Falke-Design Oct 19, 2021
9e74fb6
Fix park layer ETL diagram (#1278)
ZeLonewolf Oct 25, 2021
15eb755
Update LICENSE.md
klokan Oct 26, 2021
5833e8c
Suppress rendering of underground buildings (#1241)
ZeLonewolf Oct 28, 2021
be37f3a
Framework for SQL-based unit tests for import and updates (#1249)
ZeLonewolf Oct 28, 2021
cded423
Remove unnecessary ramp tagging (#1266)
ZeLonewolf Oct 28, 2021
a0d9159
Allow oneway=-1,1 only (#1267)
ZeLonewolf Oct 28, 2021
6caab9f
Update QUICKSTART.md (#1282)
nnhubbard Oct 29, 2021
c7e7fae
Add support for Bus Rapid Transit (highway=busway) (#1271)
ZeLonewolf Nov 1, 2021
79f8db0
Fix blank names (#1268)
ZeLonewolf Nov 1, 2021
dffb9c6
Document updates testing process (#1284)
ZeLonewolf Nov 1, 2021
5b2e434
`transportation_name` update to consider `tags` (#1289)
zstadler Nov 4, 2021
ebeafc6
Add requires.tables to <layer>.yaml (#1236)
Falke-Design Nov 5, 2021
1be4404
Update etl diagram for poi layer (#1297)
zstadler Nov 10, 2021
26cfe69
Waterway zoomlevel 6 - 8 corresponding with water (#1291)
eva-j Nov 10, 2021
d7ea453
Add highway tests (#1294)
ZeLonewolf Nov 11, 2021
93d57a8
adding customary_ft for peaks in US (#1298)
eva-j Nov 15, 2021
7f531c1
Update "Verifying that updates still work" (#1290)
zstadler Nov 16, 2021
75d8c80
Selective rendering of tracks and paths at z12-13 (#1190)
ZeLonewolf Nov 18, 2021
054d3a7
add province, increase scalerank + labelrank (#1306)
eva-j Nov 18, 2021
cdff735
Remove blank name tags (#1307)
ZeLonewolf Nov 18, 2021
0cff344
Implement non-blocking refresh (#1308)
ZeLonewolf Nov 24, 2021
ec74480
BUGFIX: Fix name-based way fragmentation in transportation_name (#1295)
ZeLonewolf Nov 25, 2021
7f23fea
Add expressway tagging to the transportation layer (#1313)
ZeLonewolf Nov 26, 2021
2073962
Implement aerialway labels (#1309)
ns476 Nov 26, 2021
4eb8feb
Use tools v6.1, improve .env docs (#1281)
nyurik Nov 26, 2021
edaf917
Update openmaptiles.yaml (#1315)
TomPohys Nov 26, 2021
7838221
Update Quickstart.md with proper make list commands (#1316)
codydaig Nov 27, 2021
44ae837
Remove `STRICT` statement (#1320)
TomPohys Dec 7, 2021
a747d98
Update TESTING.md (#1325)
TomPohys Dec 7, 2021
73dcd23
Run get_basic_name after osml10n_street_abbrev_* (#1326)
TomPohys Dec 8, 2021
7d08e5b
Remove FILTER_MAPNIK_OUTPUT (#1327)
TomPohys Dec 8, 2021
2e04f83
Fix paths and tracks in transportation layer z12 and z13 (#1334)
lazaa32 Jan 5, 2022
3a74ad1
merge with OMT v3_12
sdrll Dec 6, 2022
8ebbfb9
remove lite generation, compute area for each landcover polygon and r…
sdrll Dec 8, 2022
846b4a1
fix script
sdrll Dec 8, 2022
929d6e8
fix landcover sql script
sdrll Dec 8, 2022
94ff836
fix comma
sdrll Dec 8, 2022
a017683
remove lite transportation layer
sdrll Dec 8, 2022
36fd599
fix etl doc
sdrll Dec 13, 2022
32ac8f5
Update to OMT v3.13
sdrll Dec 13, 2022
20962a3
add init-dirs
sdrll Dec 13, 2022
6c4b908
add init-dirs
sdrll Dec 13, 2022
9259115
update makefile
sdrll Dec 13, 2022
e69a27b
update etl doc
sdrll Dec 13, 2022
e25aabd
update docker images + remove import-border form openmaptiles-tools
sdrll Dec 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 51 additions & 10 deletions .env
Original file line number Diff line number Diff line change
@@ -1,13 +1,54 @@
POSTGRES_DB=openmaptiles
POSTGRES_USER=openmaptiles
POSTGRES_PASSWORD=openmaptiles
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
QUICKSTART_MIN_ZOOM=0
QUICKSTART_MAX_ZOOM=7
DIFF_MODE=false
TOOLS_VERSION=3.1.0
# This file defines default environment variables for all images

# Layers definition and meta data
TILESET_FILE=openmaptiles.yaml

# Use 3-part patch version to ignore patch updates, e.g. 5.0.0
TOOLS_VERSION=6.1

# Make sure these values are in sync with the ones in .env-postgres file
PGDATABASE=openmaptiles
PGUSER=openmaptiles
PGPASSWORD=openmaptiles
PGHOST=postgres
PGPORT=5432

# BBOX may get overwritten by the computed bbox of the specific area:
# make generate-bbox-file
# By default, the Makefile will use the content of data/$(area).bbox file if it exists.
BBOX=-180.0,-85.0511,180.0,85.0511

# Which zooms to generate with make generate-tiles-pg
MIN_ZOOM=0
MAX_ZOOM=14
MAX_ZOOM=7

# `MID_ZOOM` setting only works with `make generate-tiles-pg` command. Make sure MID_ZOOM < MAX_ZOOM.
# See https://github.com/openmaptiles/openmaptiles-tools/pull/383
# MID_ZOOM=11

# Use true (case sensitive) to allow data updates
DIFF_MODE=false

# Some area data like openstreetmap.fr can contain invalid references
# that must be cleaned up before using it for borders -- set it to true.
BORDERS_CLEANUP=false

# The current setup assumes this file is placed inside the data/ dir
MBTILES_FILE=tiles.mbtiles
# This is the current repl_config.json location, pre-configured in the tools Dockerfile
# Makefile and quickstart replace it with the dynamically generated one, but we keep it here in case some other method is used to run.
IMPOSM_CONFIG_FILE=/usr/src/app/config/repl_config.json

# import-borders temp files - set them here to defaults, and override in the Makefile based on the area
BORDERS_CLEANUP_FILE=data/borders/cleanup.pbf
BORDERS_PBF_FILE=data/borders/filtered.pbf
BORDERS_CSV_FILE=data/borders/lines.csv

# Number of parallel processes to use when importing sql files
MAX_PARALLEL_PSQL=5

# Number of parallel threads to use when generating vector map tiles
COPY_CONCURRENCY=10

# Variables for generate tiles using tilelive-pgquery
PGHOSTS_LIST=
8 changes: 8 additions & 0 deletions .env-postgres
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file defines environment variables for the PostgreSQL image.
# The main docker PostgreSQL image requires these vars rather than
# the standard PG* ones that all PostgreSQL tools use.

# Make sure these values are in sync with the ones in .env file
POSTGRES_DB=openmaptiles
POSTGRES_USER=openmaptiles
POSTGRES_PASSWORD=openmaptiles
62 changes: 62 additions & 0 deletions .github/workflows/build-test-data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/usr/bin/env bash
set -euo pipefail

#
# Download several areas, combine them into a single file, and print --bbox params needed to run test-perf
#

# List of Geofabrik areas
TEST_AREAS=(equatorial-guinea liechtenstein district-of-columbia greater-london)

: "${DATA_DIR:=/tileset/data/test}"
: "${DATA_FILE_SUFFIX:=-latest.osm.pbf}"
: "${RESULT_FILE:=test${DATA_FILE_SUFFIX}}"

mkdir -p "$DATA_DIR"
cd "$DATA_DIR"


echo -e $"\n=========== downloading areas" "${TEST_AREAS[@]}" "==========================="
for area in "${TEST_AREAS[@]}"; do
file="${area}${DATA_FILE_SUFFIX}"
if [ -f "$file" ]; then
echo "File $file already exists, skipping download"
else
download-osm geofabrik "${area}" -- -d "$DATA_DIR"
if [ ! -f "$file" ]; then
echo "Unexpected error while downloading $file, aborting"
exit 1
fi
fi
done


echo -e $"\n=========== Merging" "${TEST_AREAS[@]}" "into ${RESULT_FILE} ====="
rm -f "${RESULT_FILE}"
OSMOSIS_ARG="--read-pbf ${TEST_AREAS[0]}${DATA_FILE_SUFFIX} $(printf " --read-pbf %s${DATA_FILE_SUFFIX} --merge" "${TEST_AREAS[@]:1}")"
# shellcheck disable=SC2086
( set -x; osmosis ${OSMOSIS_ARG} --write-pbf "${RESULT_FILE}" )


echo -e $"\n=========== Computing test BBOXes ======================="
echo -e $"\n File ${RESULT_FILE} ($(du -b "$RESULT_FILE" | cut -f1)) has been generated with these test areas:\n"
for area in "${TEST_AREAS[@]}"; do
file="${area}${DATA_FILE_SUFFIX}"
STATS=$(osmconvert --out-statistics "$file" )
LON_MIN=$( echo "$STATS" | grep "lon min:" | cut -d":" -f 2 | awk '{gsub(/^ +| +$/,"")} {print $0}' )
LON_MAX=$( echo "$STATS" | grep "lon max:" | cut -d":" -f 2 | awk '{gsub(/^ +| +$/,"")} {print $0}' )
LAT_MIN=$( echo "$STATS" | grep "lat min:" | cut -d":" -f 2 | awk '{gsub(/^ +| +$/,"")} {print $0}' )
LAT_MAX=$( echo "$STATS" | grep "lat max:" | cut -d":" -f 2 | awk '{gsub(/^ +| +$/,"")} {print $0}' )
BBOX="${LON_MIN},${LAT_MIN},${LON_MAX},${LAT_MAX}"
FILE_SIZE="$(du -b "$file" | cut -f1)"

cat <<EOF | (PYTHONPATH=/usr/src/app python)
from openmaptiles.perfutils import TestCase
tc = TestCase('${area}', 'a', bbox='${BBOX}')
info = f"# {tc.id} {tc.size():,} tiles at z14, \
{$FILE_SIZE/1024/1024:,.1f}MB, {$FILE_SIZE/tc.size():,.1f} bytes/tile \
[{tc.start[0]}/{tc.start[1]}]x[{tc.before[0] - 1}/{tc.before[1] - 1}]"
print(f" --bbox {tc.bbox:46} {info}")
EOF
done
echo ""
71 changes: 71 additions & 0 deletions .github/workflows/integrity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Workflow to run basic integrity checks on OMT`s new Pull Requests and commits pushed into OMT repo

name: OpenMapTiles Integrity CI

on:
push:
branches: [ master, master-tools ]
pull_request:

jobs:

integrity_test:
name: Run integrity test
runs-on: ubuntu-latest
steps:

- name: Checkout the changes
uses: actions/checkout@v2

- name: Run quickstart for a small area
env:
area: monaco
QUIET: 1
run: |
echo MIN_ZOOM=0 >> .env
echo MAX_ZOOM=14 >> .env
./quickstart.sh $area

- name: Save quickstart.log
uses: actions/upload-artifact@v2
with:
name: quickstart.log
path: quickstart.log

- name: Test etldoc images
run: |
export TEST_MODE=yes
make generate-devdoc

- name: Run quickstart and update in DIFF mode
env:
area: europe/monaco
QUIET: 1
run: |
echo MIN_ZOOM=0 >> .env
echo MAX_ZOOM=14 >> .env
echo DIFF_MODE=true >> .env
# Cleanup
rm -fr data build cache
# Create data/$area.repl.json
make download-geofabrik area=$area
# Download 2+ month old data
export old_date=$(date --date="$(date +%Y-%m-15) -2 month" +'%y%m01')
echo Downloading $old_date extract of $area
docker-compose run --rm --user=$(id -u):$(id -g) openmaptiles-tools sh -c "wget -O data/$area.osm.pbf http://download.geofabrik.de/$area-$old_date.osm.pbf"
# Initial import and tile generation
./quickstart.sh $area
sleep 2
echo Downloading updates
# Loop to recover from potential "ERROR 429: Too Many Requests"
docker-compose run --rm --user=$(id -u):$(id -g) openmaptiles-tools sh -c "
while ! osmupdate --keep-tempfiles --base-url=$(sed -n 's/ *\"replication_url\": //p' data/$area.repl.json) data/$area.osm.pbf data/changes.osc.gz ; do
sleep 2;
echo Sleeping...;
sleep 630;
done"
echo Downloading updates completed
echo Importing updates
make import-diff
echo Generating new tiles
make generate-tiles-pg
Loading