OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
Adds a command to write out the feature id, tree id, and the URL of all photos for an instance as a CSV. This CSV can then be processed on a developer workstation to export all of the instance photos.
Verify that 3 lines are printed to the console, one for each photo. Verify that the urls in the CSV are accessible and that the plot ids and tree ids in the first and second columns are valid by browsing https://staging.opentreemap.org/photo-export-test/features/{plot-id}/ and checking that the tree ID matches.
Coverage decreased (-0.07%) to 83.796% when pulling 18d5ce0d79a22fb52a261defead624aac15fcd70 on jcw/photo-export into 8dd04f4cdb41c72cd45c7ed9d8eaf2e3b7caa217 on develop.
Overview
Adds a command to write out the feature id, tree id, and the URL of all photos for an instance as a CSV. This CSV can then be processed on a developer workstation to export all of the instance photos.
Connects https://github.com/OpenTreeMap/otm-addons/issues/1557
Testing Instructions
I modified the Jenkins job to deploy this branch to staging.
Setup
photo-export-test
via https://staging.opentreemap.org/createTest
cd /opt/app/core
envdir /etc/otm.d/env opentreemap/manage.py create_photo_csv --instance-url-name photo-export-test