Commit Graph

58 Commits

Author SHA1 Message Date
Richard Fairhurst 98246b389b Remove errant old boundaries code (fixes #545) (#549) 2023-10-05 10:58:33 +01:00
Nakaner 3c6197e17e OpenMapTiles implementation: Add missing attributes, use correct classes/subclasses (#543)
* Use different OSM tags as source for subclass in special cases

For tourism=information, amenity=place_of_worship and leisure=pitch,
class should contain information/place_of_worship/pitch and subclass
should contain the value of a special OSM tag
(information/religion/sport).

* Add attribute layer, level and indoor to poi layer
2023-10-05 10:58:05 +01:00
Richard Fairhurst 528aa25dec Support type=boundary relations as native multipolygons (#508) 2023-07-23 08:57:39 +01:00
Daniel Schep ff7f0b73a9 Add bike/foot/horse/mtb fields (#490)
Adding `bicycle`, `foot`, `horse`, & `mtb_scale` fields per: https://openmaptiles.org/schema/#bicycle
2023-04-20 12:58:14 +01:00
Daniel Schep a5d7def9f4 Add surface data to transportation layer (#476)
Adding paved/unpaved values like OMT: https://openmaptiles.org/schema/#surface
2023-03-12 21:02:49 +00:00
Daniel Schep 30c9e5fd54 Align path & track transportation classes with OMT (#474) 2023-03-12 17:04:06 +00:00
Daniel Schep e0773da49b Update use of access to align with OMT (#475)
OpenMapTiles adds `access=no` when `access=no|private` instead of omiting the line: https://openmaptiles.org/schema/#access

this pr does the same
2023-03-12 17:03:42 +00:00
Leonard Ehrenfried 9c570ed12f Remove unused variable 'poiKeys' (#366) 2022-02-15 12:16:07 +00:00
Richard Fairhurst 965f6ae349 (Non-multipolygon) relation support (#360) 2022-01-08 10:12:08 +00:00
Leonard Ehrenfried 765e4b40e8 Process highway=pedestrian (#362) 2022-01-08 10:11:37 +00:00
Leonard Ehrenfried 111ac085cc Add 'disputed' property to all boundaries (#356) 2022-01-03 12:29:12 +00:00
Richard Fairhurst 98e16ea477 Configurable variables for different languages (#340) 2021-10-07 15:28:34 +01:00
systemed bfe1bb93c1 Use key rather than value for POI class 2021-10-07 15:12:24 +01:00
Richard Fairhurst e22489b33d Add all POI keys to the node_keys list (#338) 2021-10-06 12:40:58 +01:00
Michael Reichert ca0fd702c3 Add z_order sorting support (#283)
* Add support for a z_order field and sort output objects by z_order

PostGIS import tools like Osm2pgsql and Imposm can write a z_order field
to the database table in order to allow map styles to render features
ordered by road class and vertical layer. Tilemaker now gets a Lua
callback to set the z_order for an OSM object (default 0) and will sort
the vectortile features by z_order. z_order is also taken into account
for combining of features. z_order values are limited to 1-byte unsigned
integer.

* Document new ZOrder callback function

* Drop unnecessary variable

* Implement z_order sorting for the OpenMapTiles example config

This commit also adapts the minimum zoom levels to the lastest version.
2021-08-23 13:37:24 +01:00
Keitaroh Kobayashi 083c639ef6 Add render_height and render_min_height to buildings for 3d rendering (#263) 2021-07-09 09:49:15 +01:00
systemed 82dee926e2 Write piers 2021-05-23 20:18:53 +01:00
QuentinC 9afb9f1a01 Add ferry routes to output tiles (#232)
Co-authored-by: root <root@tileserver.spatio.lan>
2021-04-30 20:47:49 +01:00
Richard Fairhurst a73723702b Refactor shapefile spatial queries (#228) 2021-04-26 14:48:19 +01:00
Richard Fairhurst 1d0638851a Don't render private roads/paths 2021-04-08 15:35:45 +01:00
systemed 6b111cc217 Shapefile attribute enhancements 2021-04-07 20:42:19 +01:00
systemed 7af51a84b7 Ignore USFS National Forest monster polygons 2021-03-22 11:22:34 +00:00
Richard Fairhurst 40834a06a5 Config changes to enable low-zoom tiles 2021-03-22 09:48:57 +00:00
Richard Fairhurst 9a1a0b46c9 Fix _link roads 2021-03-08 20:50:51 +00:00
Richard Fairhurst 30faa56b38 Skip Lake Saimaa (too complex and dupe geometries) 2021-02-21 11:40:14 +00:00
Leonard Ehrenfried ca4dc9e5af Exclude more basins 2020-09-10 11:42:28 +02:00
systemed cf9fff4018 Improve POI handling 2020-09-09 14:33:33 +01:00
systemed 6ad3d3fb5f Use population when determining place zoom level 2020-09-09 10:24:26 +01:00
Leonard Ehrenfried 448fef5c9f Improve name handling for water bodies 2020-09-08 10:56:58 +02:00
Leonard Ehrenfried de0bbb47e2 Fix up labels for lakes and rivers 2020-09-04 14:20:57 +02:00
Hsieh Chin Fan 6950b20b89 Refine OpenMapTiles config with building
1. Exclude small buildings from z13
2. Change SetMinZoomByArea(), now it affects to z14

Though 'building' layer, landcover' layer and 'water' layer in
OpenMapTiles filter lower zoom levels by area with "a little different"
rules, but I thinks it is fine to apply SetMinZoomByArea() on all of
them.

- landuse
  all                  -> z14
  area>power(ZRES11,2) -> z13
  area>power(ZRES10,2) -> z12
  ⋮
  area>power(ZRES6,2)  -> z7
  area>power(ZRES6,2)  -> z6

- building
  all                  -> z14
  area>power(ZRES12,2) -> z13

- water
  all                  -> z12 z13 z14
  area>power(ZRES10,2) -> z11
  area>power(ZRES9,2)  -> z10
  ⋮
  area>power(ZRES5,2)  -> z6
2020-07-25 01:01:19 +08:00
Hsieh Chin Fan 8c5035aa39 Fix potential error on illegal 'ele' value 2020-07-06 01:02:03 +08:00
Hsieh Chin Fan e2fac1f386 Refine layer mountain_peak
- Add class, which is necessary in some style like openmaptiles-topo
- Include natural=volcano into mountain_peak
- Floor elevation as Interger, or some terrible thing would happen...
2020-07-05 22:06:37 +08:00
Hsieh Chin Fan e64a1589b3 Set all features in mountain_peak as rank=1
Nearly all the styles from klokan(openmaptiles-topo,
maptiler-terrain-gl-style, maptiler-topographique) only render
mountain_peak feature with rank=1. Which means, if we set them as 5,
none of then would not be rendered.

Though setting all features with rank=1 makes some non-important
peaks also got rendered on those styles, it is better than nothing.

ref:
- What is rank in layer mountain_peak? How to calculate it when
  generating tiles?
  https://github.com/openmaptiles/openmaptiles/issues/687

- How a style render mountain_peak noramlly
  https://github.com/openmaptiles/maptiler-terrain-gl-style/blob/6c480e82af32f4df2ce49d85f59e625ef94337f4/style.json#L715
2020-07-05 21:38:36 +08:00
systemed 2aacdd03ac Add intermittent= to OMT waterway processing 2020-06-23 20:51:32 +01:00
Leonard Ehrenfried b8c6aaea6d Turn Lua variables into Sets 2020-06-22 21:02:45 +02:00
systemed 9be5023a2c Write placenames depending on zoom 2020-06-19 10:15:27 +01:00
meromisi 18afa800da fix constructions 2020-06-10 13:38:02 +02:00
Beck-berry 9c9d4d8237 display appropriate constructions 2020-06-10 11:29:18 +02:00
systemed ea8afbc9ba Filter landcover by area too 2020-05-25 14:20:39 +01:00
systemed 080f94d471 Add :MinZoom(z) for per-feature zoom control 2020-05-25 11:53:29 +01:00
typebrook 6fe2cfc625 Update config for OpenMapTiles
Filter small water body in lower zoom level(<12)

- Add variables ZRES[N] into lua script
- Add layers for each zoom levels to write to water layers

refs:
- definition of ZRES[N]
  https://github.com/openmaptiles/postgis-vt-util/blob/master/src/ZRes.sql
- How OpenMapTiles filters water body by area in lower zoom level
  https://github.com/openmaptiles/openmaptiles/blob/v3.11/layers/water/mapping.yaml#L4-L37
  https://github.com/openmaptiles/openmaptiles/blob/v3.11/layers/water/water.sql#L176-L191
2020-05-25 01:20:02 +08:00
typebrook b0992cbc08 Improve config for openmaptiles
Refactor water and waterway layers

- Explicitly only include linestrings into waterway, and polygons into
  water
- Include other mappings into waterway with OSM tag 'waterway'
- Include other mappings into water with OSM tags 'leisure', 'landuse' and 'waterway'

ref:
- https://github.com/openmaptiles/openmaptiles/blob/v3.11/layers/waterway/mapping.yaml
- https://github.com/openmaptiles/openmaptiles/blob/v3.11/layers/water/mapping.yaml
2020-05-24 21:51:05 +08:00
systemed d6da798d49 Support water polygons in OpenMapTiles style 2020-05-22 12:53:46 +01:00
Leonard Ehrenfried 08c7806c6b Finetune tile generation for openmaptiles 2020-05-18 22:26:56 +02:00
Alexander Semenov 2ecba23718 Update config for openmaptiles
- fix processing of unknown aerodrome class
2020-05-07 01:47:03 +03:00
typebrook f8d1a78d90 Update config for openmaptiles
Add aerodrome_label layer
2020-04-28 22:13:47 +08:00
typebrook 9b8540b929 Improve configuration for openmaptiles
Make layers of water* more consistent with openmaptiles v3.11

Of course it is not one-to-one mapping, openmaptiles uses area to filter
out small water-body in lower zoom levels, but we cannot.

waterway:
- Removed from z8
- Only include waterway=river with name in z9-z11
  Also, do simplification below z12

water:
- Removed from z8
- Do simplification below z12

water_name:
- Removed from z8
- Put waterway=dock, natural=water, natural=bay or landuse=reservoir
  into z12 and above(originally only appears in z14)
2020-02-24 12:40:09 +08:00
typebrook 2af39ded82 Improve configuration for openmaptiles
Make layers of transportation more consistent with openmaptiles v3.11

transportation:
- Only include highway=motorway, trunk, primary in z8
- Only include highway=secondary, above and *_link in z9-z10
- Only include highway=tertiary, above and *_link in z11-z12

transportation_name:
- Only include highway=motorway, trunk in z8-z11
- Put other features(which are not in z14) in z12-z13
2020-02-22 23:51:07 +08:00
systemed a748b9ef96 Update OpenMapTiles-compatible processing 2019-10-23 18:32:16 +01:00