Git Product home page Git Product logo

Comments (1)

pnorman avatar pnorman commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.