Comments (1)
If I understand it correctly, the tool currently cannot deal with partial diffs. This means that anytime a change involving borders is made, the entire table need to be recalculated. It would be nice (but likely far from trivial) to make the tool so that it can also consume partial (minutely?) diffs.
This would require completely re-architecting the software. Given it takes longer to update a PBF than to generate the boundaries from it. I don't see this an issue.
On the WMF servers, we're looking at this code which is approximately
osmosis --read-replication-interval --write-xml-change
osmium apply-changes --fsync osm-data.osm.pbf changes.osc -o osm-data-new.osm.pbf
mv osm-data-new.osm.pbf osm-data.osm.pbf
osmborder_filter osm-filtered.osm.pbf osm-data.osm.pbf
osmborder -o osmborder_lines.csv osm-filtered.osm.pbf
psql -d ct -Xq <<EOF
DROP TABLE IF EXISTS loading.osmborder_lines;
CREATE TABLE loading.osmborder_lines (
osm_id bigint,
admin_level int,
dividing_line bool,
disputed bool,
maritime bool,
way Geometry(LineString, 3857));
\copy loading.osmborder_lines FROM osmborder_lines.csv
DROP TABLE IF EXISTS public.osmborder_lines;
ALTER TABLE loading.osmborder_lines SET SCHEMA public;
EOF
Important note: The real code does a lot of other important stuff like catching errors, indexes, clustering, transactions, etc.
from osmborder.
Related Issues (10)
- Add another output format HOT 1
- GitHub releases with downloadable data HOT 1
- Question: How long does processing a full planet file usually take? HOT 1
- Remove epsg dead code
- Update help copyright
- Unable to compile - cannot find osmium HOT 1
- Support of disputed_by and claimed_by
- Silently fail in case of no space left on disk HOT 1
- core dump using a pbf from osmconvert
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmborder.