Giter Site home page Giter Site logo

Comments (6)

kamicut avatar kamicut commented on June 18, 2024

Yikes, OSM reverts are a tricky business @olafveerman. If the first changeset is just nodes, I think diffing the changesets would be the best way. Do you need help doing this?

from zambia-buildings-import.

olafveerman avatar olafveerman commented on June 18, 2024

Thanks @kamicut
Luckily they are all nodes and created from scratch. It should make the process easier.
I'll do the diffing, but will get back to about the deletion

from zambia-buildings-import.

olafveerman avatar olafveerman commented on June 18, 2024

@kamicut Let's talk about deletion when you get back to the office.

This script generates a list of diffed node id's

from zambia-buildings-import.

olafveerman avatar olafveerman commented on June 18, 2024

It's done. The remaining 21687 nodes were deleted in changeset #35271390.

These were the steps I followed:

  • open a changeset using $ perl changeset.pl create from the OSM revert scripts. This opens a changeset and returns an ID
  • generate a OSM Changefile (osc) with the changeset ID generated in the first step, using this script. The output looks along these lines
<osmChange version="0.6" generator="script">
  <delete>
    <node id="3820975442" changeset="35271390" version="1" visible="false" />
  </delete>
  <delete>
    <node id="3820975443" changeset="35271390" version="1" visible="false" />
  </delete>
  ...
</osmChange>
  • post the OSC file to the OSM upload endpoint using Postman
  • close the original changeset $ perl changeset.pl close 35271390

@laurencjay

from zambia-buildings-import.

laurencjay avatar laurencjay commented on June 18, 2024

Awesome great news. Thanks @olafveerman for fixing all this. I'm going to look over your portion again, and then I"ll run the import.
👍

from zambia-buildings-import.

laurencjay avatar laurencjay commented on June 18, 2024

Closing, refer to #10, this issue has been resolved

from zambia-buildings-import.

Related Issues (9)

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.