Giter Site home page Giter Site logo

zambia-buildings-import's People

Contributors

laurencjay avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zambia-buildings-import's Issues

Create Zambia extract

Creating the extracting for Zambia. Currently I am testing the script (extract-creation-script.js) on Baltimore to see if the script is working properly, it will then be run on the Africa dataset to create the Zambia extract.

QA source dataset

Check source dataset for overlapping polygons. Outline what we'll do if there are overlaps. Post final dataset.

Create Overlay (ST_Overlaps)

Includes two steps:

  1. Translation of the Zambia-extract.geonjson into a Postgresql file and then 2. Overlaying the households dataset with the extract to figure out if there are redundancies that do not need to be included in the import.

Failed upload

So... for some reason my import got messed up. Instead of full polygons, the upload added only the nodes of each building. Resulting in this:

image

My initial uploads were added through 3 different changesets.

Original changeset # nodes added Revert changeset # nodes reverted
#35128454 50001 #35244022 28314
#35133348 1632 #35241511 1632
#35133937 33111 #35253299 33111

For a full list, see my profile page

While I was able to revert a lot of the erroneous nodes using a revert script, I wasn't able to fully revert the first changeset. Running the script a second time on the same changeset doesn't work, resulting in these errors for the non-reverted nodes:

GET http://api.openstreetmap.org/api/0.6/node/3821043733/history... 200 OK (428b)
node 3821043733 was created; deleting
DELETE http://api.openstreetmap.org/api/0.6/node/3821043733... 409 Conflict (60b)
node 3821043733 cannot be deleted: 409 Conflict

@kamicut What's the most elegant way to tackle this? Diff both changesets for the remaining nodes and then batch delete them?

Conduct sample import

Conduct an import of a small amount of the houses data to test the import process

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.