Commit Graph

30 Commits

Author SHA1 Message Date
Richard Fairhurst 70f89d64ba Output slow geometry generation and allow user interrupt (#378) 2022-02-17 10:45:51 +00:00
Richard Fairhurst 965f6ae349 (Non-multipolygon) relation support (#360) 2022-01-08 10:12:08 +00:00
Richard Fairhurst a8ee8a96cc Revert "Use artificial IDs for OutputObject after 1st use (#357)" (#359)
This reverts commit 962ad86bfa.
2022-01-05 00:22:16 +00:00
Richard Fairhurst 962ad86bfa Use artificial IDs for OutputObject after 1st use (#357) 2022-01-03 13:05:37 +00:00
Wouter van Kleunen 3f8b4e2f60 Handle nan condition in lua (#329) 2021-09-27 17:35:17 +01:00
Richard Fairhurst b45219ff91 Use real relation IDs rather than --newWayID (#318) 2021-09-13 22:42:44 +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
Richard Fairhurst aa1398ff51 Tidy logging 2021-07-02 14:45:50 +01:00
Wouter van Kleunen 3b11dff4bb Perform dissolve on self-intersecting polygons (#249) 2021-06-22 11:37:36 +01:00
Wouter van Kleunen 631864ab5a Parallel loading of osm.pbf file (#243)
* Parallel reading

* Fix win build

* Simplifier correctly init nodes

* Use generator to open input file(s)

* Bit more consistent naming of osm_store files

* Make number of locks in attribute store function of number of threads

* Small optimization, don't use virtual method calls

* Restore nodeListPolygon correct

* Don't drop self intersecting polygons
2021-06-06 13:02:41 +01:00
Wouter van Kleunen 0f2c6057b7 Non self-intersecting simplify (#239) 2021-05-21 20:56:29 +01:00
Richard Fairhurst ead23531c4 Add :Centroid method to get lat/lon from Lua (#230) 2021-04-26 18:47:10 +01:00
Richard Fairhurst a73723702b Refactor shapefile spatial queries (#228) 2021-04-26 14:48:19 +01:00
systemed 6b111cc217 Shapefile attribute enhancements 2021-04-07 20:42:19 +01:00
Richard Fairhurst 4399349e78 Optionally set minzoom to write attributes (#219) 2021-04-05 20:06:20 +01:00
Wouter van Kleunen ad015fe879 Tilemaker CI for windows, macos and linux with boost 2021-03-20 07:56:28 +00:00
Wouter van Kleunen d9d4989d55 Allow generation of pbf index file 2021-03-12 14:07:13 +00:00
systemed 005f3d7913 Make nodeVec available to Lua way_function 2021-03-06 17:02:09 +00:00
Wouter van Kleunen 0fb2c00589 Allow tilemake to run in compact (32bit) nodeid mode 2021-03-04 08:46:01 +00:00
Wouter van Kleunen 43dc1a2259 Attribute store sets of attributes 2021-02-26 14:45:16 +00:00
Wouter van Kleunen 664cd22571 Allow initialization of store to prevent rehashing and small optimizations 2021-02-23 16:49:17 +00:00
Wouter van Kleunen 6e7ab9f77d Store generated geometries in mmap 2021-02-20 09:09:19 +00:00
Wouter van Kleunen a006a319d0 Small cleanup and configurable storage filename 2021-02-14 16:16:01 +00:00
systemed 04b93a92ca Use shared key/value dict across OutputObjects 2020-06-28 17:06:39 +01:00
systemed 080f94d471 Add :MinZoom(z) for per-feature zoom control 2020-05-25 11:53:29 +01:00
systemed eaf21aa673 Remove scale functions now we return metres anyway 2020-05-23 19:32:22 +01:00
systemed 6e713f542b Consistently use 1TBS
[whitespace only, no code changes]
2020-05-23 12:19:56 +01:00
systemed f02c8cf1a1 Better diagnostics for invalid multipolygons 2020-01-29 11:03:31 +00:00
systemed 06ccc8d043 Rewrite shapefile tags from Lua 2019-03-06 12:11:49 +00:00
Tim Sheerman-Chase 5f4307101a Rename OSMObject to OsmLuaProcessing, start on doxygen documentation 2018-06-11 12:42:00 +01:00