osm2pgsql-dev / osm2pgsql-themepark Goto Github PK
View Code? Open in Web Editor NEWA framework for creating osm2pgsql flex configurations
Home Page: https://osm2pgsql.org/themepark
License: Apache License 2.0
A framework for creating osm2pgsql flex configurations
Home Page: https://osm2pgsql.org/themepark
License: Apache License 2.0
Shortbread 1.0 defines a streets_polygons_labels
. This is missing from the current implementation.
When I uncommented the themepark:plugin('tilekiln'):write_config('tk')
line from shortbread_v1_gen and ran LUA_PATH="./osm2pgsql-themepark/lua/?.lua;;" osm2pgsql -d flex -O flex -S ./osm2pgsql-themepark/config/shortbread_gen.lua osm-data.pbf
I got an error:
2024-01-19 17:00:55 ERROR: Error loading lua config: ./osm2pgsql-themepark/lua/themepark/plugins/tilekiln.lua:73: Could open 'tk/ocean.10-14.sql.jinja2': tk/ocean.10-14.sql.jinja2: No such file or directory.
Upon examination I found that the issue was the tk
directory did not exist, and it went away when I pre-created it.
Setup:
$ osm2pgsql --version
2023-12-13 22:46:26 osm2pgsql version 1.10.0 (1.10.0)
Build: RelWithDebInfo
Compiled using the following library versions:
Libosmium 2.20.0
Proj [API 6] 9.1.1
Lua 5.3.6
Themepark commit: a789b0e
Import settings
shortbread=# select * from osm2pgsql_properties;
property | value
-----------------------------+---------------------------------------------------------
attributes | false
db_format | 1
flat_node_file | /home/pnorman/nodes.bin
import_timestamp | 2023-12-04T01:00:01Z
output | flex
prefix | planet_osm
style | /home/pnorman/osm2pgsql-themepark/config/shortbread.lua
updatable | true
version | 1.10.0
current_timestamp | 2023-12-05T12:26:08Z
replication_base_url | https://planet.openstreetmap.org/replication/minute
replication_sequence_number | 5862920
replication_timestamp | 2023-12-05T12:26:08Z
(13 rows)
On my initial run of osm2pgsql-replication update -d shortbread
I got an error in stage 2 processing. This happened on the second time it called osm2pgsql, not the first time.
ERROR: Failed to execute Lua function 'osm2pgsql.process_way': [string "/home/pnorman/osm2pgsql-themepark/lua/../them..."]:44: attempt to index a nil value (local 'info')
stack traceback:
[string "/home/pnorman/osm2pgsql-themepark/lua/../them..."]:44: in local 'func'
/home/pnorman/osm2pgsql-themepark/lua/themepark.lua:460: in function </home/pnorman/osm2pgsql-themepark/lua/themepark.lua:456>.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.