{"id":19881408,"url":"https://github.com/giscience/pybossa-mapswipe-2","last_synced_at":"2026-03-05T17:11:08.269Z","repository":{"id":100136467,"uuid":"143444720","full_name":"GIScience/pybossa-mapswipe-2","owner":"GIScience","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-03T15:41:07.000Z","size":13609,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-11T18:12:50.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GIScience.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-03T15:36:02.000Z","updated_at":"2023-12-04T12:02:21.000Z","dependencies_parsed_at":"2023-05-12T12:15:09.554Z","dependency_job_id":null,"html_url":"https://github.com/GIScience/pybossa-mapswipe-2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fpybossa-mapswipe-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fpybossa-mapswipe-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fpybossa-mapswipe-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GIScience%2Fpybossa-mapswipe-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GIScience","download_url":"https://codeload.github.com/GIScience/pybossa-mapswipe-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309106,"owners_count":19941725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T17:14:08.410Z","updated_at":"2026-03-05T17:11:08.218Z","avatar_url":"https://github.com/GIScience.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pybossa Prototype for MapSwipe 2.0\nThere is a [prototype project](https://pybossa.geog.uni-heidelberg.de/project/mapswipe_2_0/) in our pybossa instance. We will use this to test a building by building validation workflow.\n\nIt could look like this:\n\n![](img/screenshot.PNG)\n\n\n## Building Footprint Pre-Processing\nA pre-processing step might be needed if the building dataset was generated automatically from satellite imagery. This pre-processing might include simplifying the geometries and making building polygons rectangular. There is already a [great document](https://docs.google.com/document/d/1DEGJYlR-92idDsaP7qICxXUcpC0PZ7ldP48fEmZgxPY/edit?usp=sharing) with information to consider during pre-processing.\n\n* **[0.1 - Building Geometry Pre-Processing](0.1_building_geometry_pre_processing.ipynb)**: Simplify geometry and generate rectangular polygons, filter buildings already mapped in OSM.\n\n\n[More information](https://www.dropbox.com/s/wtggt6jcv0w5pze/DigitalGlobe%20Building%20Footprints%20Technical%20Specification.pdf?dl=0) on the [Digital Globe Building Footprint Dataset](https://www.dropbox.com/s/zkh1gmw2i25u186/1104-tanzania-4326-20180403.zip?dl=0) can be found here. Furthermore, we set up a [Web Feature Service](http://mapswipe.heigit.org:8080/geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.MapPreviewPage?1) where data can be downloaded for a bounding box. For example like this:\n\n```bash\nhttp://mapswipe.heigit.org:8080/geoserver/ms_layers/ows?service=WFS\u0026version=1.0.0\u0026request=GetFeature\u0026typeName=ms_layers:tanzania_buildings_dg\u0026maxFeatures=50\u0026outputFormat=application%2Fjson\n```\n\n\n## Create Validation Tasks for Pybossa\nTo create tasks we need a polygon (e.g. for buildings) dataset (e.g. in GeoJSON format). Each polygon will represent a single crowdsourcing task. In pybossa a task has several default attributes and an \"info\" which is added for each task. The info attributes contains the information on the polygons such as geometry and an ID. A task object looks like this:\n\n```json\n{\n\"n_answer\": 3,\n\"quorum\": 0,\n\"calibration\": 0,\n\"created\": \"2016-08-29T08:13:55.291284\",\n\"state\": \"ongoing\",\n\"project_id\": 8,\n\"id\": 18348,\n\"priority_0\": 0,\n\"info\": {\n  \"id\": 123425435,\n  \"wkt_geom\": \"...\"\n  }\n}\n```\n\n* **[1.1 - Create Task Presenter](1.1_create_task_presenter.ipynb)**: Create the html to visualize the mapping tasks.\n* **[1.2 - Create Pybossa Tasks](1.2_create_pybossa_tasks.ipynb)**: Create tasks in Pybossa using a Geojson file containing polyongs (e.g. buildings).\n\n\n## Get User Classifications and Aggregate Results\nAfter a task was mapped by a sufficient number of volunteers (e.g. 3-5) the individual results will be aggregated (e.g. by considering the majority vote). If volunteers agree that a building is correct, this building could be directly uploaded to OSM.\n* **[2.1 - Get User Classifications](2.1_get_user_classifications.ipynb)**: Download individual user classifications from pybossa\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiscience%2Fpybossa-mapswipe-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiscience%2Fpybossa-mapswipe-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiscience%2Fpybossa-mapswipe-2/lists"}