hotosm / osm-fieldwork

Processing field data from ODK to OpenStreetMap format, and other field data collection utils.
GNU Affero General Public License v3.0
16 stars 79 forks source link

Improve Osm-fieldwork wiki page #71

Closed robsavoye closed 1 year ago

robsavoye commented 1 year ago

ODKCOnvert could use a wiki page that has actual content.

mohammadareeb95 commented 1 year ago

Can I work on submitting a PR towards this issue?

mohammadareeb95 commented 1 year ago

ODK Convert Project

ODKConvert is a project that aims to simplify the process of processing data collected using OpenDataKit into OpenStreetMap format. It consists of several utility programs that automate different parts of the data flow. These include creating satellite imagery basemaps and data extracts from OpenStreetMap so they can be used with ODK Collect. It is maintained by the Humanitarian OpenStreetMap Team (HOT) and designed to work with ODK Collect, an Android app for data collection, and ODK Central, a web-based platform for managing and visualizing data.

odkconvert

This program converts the data collected from ODK Collect into the proper OpenStreetMap tagging schema. The conversion is controlled by a YAML file, which makes it easy to modify for other projects. The output is an OSM XML formatted file for JOSM. However, it is important to note that no converted data should ever be uploaded to OSM without first validating the conversion in JOSM. To do high-quality conversion from ODK to OSM, it's best to use the XLSForm library as templates, as everything is designed to work together.

ODKConvert includes the following utilities:

Installation

To install ODKConvert, you can either install it directly from the main branch using the command: pip install git+https://github.com/hotosm/odkconvert.git

Or install the latest version from PyPI using: pip install ODKConvert

Note: installation requires GDAL >3.4 installed on your system.

Usage

Each utility has its own command-line interface, with various options and arguments. You can find detailed instructions on how to use each utility by running it with the -h or --help option.

For example, to extract OSM data within a boundary polygon from Overpass Turbo, run:

./make_data_extract.py --overpass --boundary mycounty.geojson

This will create a GeoJSON file with the extracted data.

To convert a CSV file from ODK Central to OSM XML format, run:

./CSVDump.py -i data.csv > output.osm

This will create an OSM XML file with the converted data.

Contributing

ODKConvert is an open-source project, and contributions are always welcome! If you want to contribute, please read the [contribution guidelines] and [code of conduct] first.

License

ODKConvert is released under the [MIT License]

mohammadareeb95 commented 1 year ago

This is a draft before I open a PR. @robsavoye please let me know what you think, thanks.

robsavoye commented 1 year ago

Actually it's under the AGPLv3 license. The output file isn't created from stdout, CSVDump uses the name of the input file, strips off the .csv, and generates 2 output files, one OSM XML of public data, and the other a GeoJson fie with all the data. Sometimes humanitarian mapping collects public data for OSM, and private data for the mapping project funders.

mohammadareeb95 commented 1 year ago

Is this the right command? ./CSVDump.py -i data.csv This will generate two output files - one OSM XML of public data, and the other a GeoJson fie with all the data.

robsavoye commented 1 year ago

correct.

robsavoye commented 1 year ago

If you push this as a PR, I'll approve it, and it'll populate the wiki.

mohammadareeb95 commented 1 year ago

Okay I'll open a PR.

spwoodcock commented 1 year ago

The Wiki is deployed: https://github.com/hotosm/odkconvert/wiki

As a prerequisite for this task.

robsavoye commented 1 year ago

Right now the wiki is just a list of other docs. It would be nice to have a landing page too.

mohammadareeb95 commented 1 year ago

I am starting to work on it

mohammadareeb95 commented 1 year ago

84 renders Homepage.md as the wiki landing page

robsavoye commented 1 year ago

Right now the landing page for the osm-fieldwork wiki is very boring and somewhat out of date. The top page (Home.md) can be improved by adding a few pictures (I have a bunch), and being more of an introduction doc that explains the project better.