geotagx / geotagx-project-template Goto Github PK
View Code? Open in Web Editor NEWA generic template and builder for GeoTag-X projects
License: GNU Affero General Public License v3.0
A generic template and builder for GeoTag-X projects
License: GNU Affero General Public License v3.0
Hi,
Even if we developers are more comfortable with JSON files, most people who will use the project (atleast in its current CLI form) freak out when they see so much code-like stuff. I was wondering if we should move the JSON configuration file to YAML. Both JSON and YAML are easily interchangeable programatically, and the project configuration file will just be more readable. For example, the sample project.json
in YAML looks like (converted using : http://jsontoyaml.com/
) :
---
name: "GeoTag-X Sample Project"
short_name: "sample"
description: "A sample GeoTag-X project."
why: "This is a simple project that highlights GeoTag-X's features."
questions:
-
id: 1
title: "Can you see any water in the photo?"
type: "binary"
answer:
saved_as: "isWaterVisible"
branch:
-
yes: 2
-
no: "finish"
-
id: 2
title: "What color is the water?"
type: "single_choice"
answer:
saved_as: "waterColor"
choices:
-
Red: "Red"
-
AquaBlue: "Aqua Blue"
-
Green: "Green"
-
Orange: "Orange"
-
Other: "Other"
-
id: 3
title: "Can you see small pools of water?"
type: "binary"
answer:
saved_as: "smallPoolsOfWaterVisible"
branch:
-
no: 5
-
id: 4
title: "Are these small pools of water near human shelters or a settlement?"
type: "binary"
answer:
saved_as: "smallPoolsOfWaterNearShelters"
branch: 8
-
id: 5
title: "Can you see a large body of water?"
type: "binary"
answer:
saved_as: "largeBodyOfWaterVisible"
branch:
-
no: 7
-
id: 6
title: "Can you see any signs of fast moving water?"
type: "multiple_choice"
answer:
saved_as: "signsOfFastMovingWater"
choices:
-
Peaks: "White peaks in the water"
-
Rough: "Rough water surface"
-
Swirling: "Water swirling around objects"
-
id: 7
title: "Can you see any of the following flood protection measures?"
type: "multiple_choice"
answer:
saved_as: "floodProtectionVisible"
choices:
-
Sandbags: "Sandbags"
-
Barriers: "Makeshift barriers"
-
Embankments: "Embankments"
-
Other: "Other"
-
id: 8
title: "Can you see any sources of drinking water?"
type: "binary"
answer:
saved_as: "sourcesOfDrinkingWaterVisible"
branch:
-
no: 11
-
id: 9
title: "Which sources of drinking water can you see?"
type: "multiple_choice"
answer:
saved_as: "sourcesOfDrinkingWater"
choices:
-
Pipes: "Water pipes and access taps"
-
Tankers: "Water tankers"
-
id: 10
title: "Have they been affected by the flood waters?"
type: "binary"
answer:
saved_as: "sourcesOfDrinkingWaterAffected"
-
id: 11
title: "Which animals do you see?"
type: "illustrated_multiple_choice"
answer:
saved_as: "animalsVisible"
choices:
-
label: "Cattle"
value: "Cattle"
illustration:
image: "http://www.interservicos.com/media/uploads/3n.png"
source:
name: "Interservicos"
url: "http://www.interservicos.com/index.php/en/projectos/detail/306/"
more_examples: "https://www.google.com/#q=cattle+africa"
-
label: "Camel"
value: "Camel"
illustration:
image: "http://www.animalcorner.co.uk/wildlife/camels/graphics/cameldrom.jpg"
source:
name: "Animal Corner"
url: "http://www.animalcorner.co.uk/wildlife/camels/camel_dromedary.html"
more_examples: "https://www.google.com/#q=camel"
-
label: "Horse"
value: "Horse"
illustration:
image: "http://40.media.tumblr.com/cf2d20197662f0a7f92bab14eb172f5e/tumblr_muk62bEGmk1r34z06o1_1280.jpg"
source:
name: "Our Africa Blog"
url: "http://www.ourafricablog.com/post/63820121729/nomadamsterdam-somali-horses-having-fun-at"
more_examples: "https://www.google.com/#q=horse"
-
label: "Sheep"
value: "Sheep"
illustration:
image: "http://media-cache-ec0.pinimg.com/236x/cd/44/16/cd44162bd06893707689624f33314daf.jpg"
source:
name: "colouredsheep.org.nz"
url: "http://www.colouredsheep.org.nz/"
more_examples: "https://www.google.com/#q=sheep+africa"
-
label: "Donkey"
value: "Donkey"
illustration:
image: "http://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Innocence_%283426318415%29.jpg/301px-Innocence_%283426318415%29.jpg"
source:
name: "Innocence"
url: "http://www.flickr.com/photos/adavey/3426318415/"
more_examples: "https://www.google.com/#q=donkey"
-
label: "Goat"
value: "Goat"
illustration:
image: "http://capda.org.au/wp-content/uploads/2013/10/DSC09840-960x640.jpg"
source:
name: "CAPDA"
url: "http://capda.org.au/goat-and-chicken-raising-projects/"
more_examples: "https://www.google.com/#q=goat"
-
label: "Oxen"
value: "Oxen"
illustration:
image: "http://markwatkinson.zenfolio.com/img/s3/v40/p357350409-3.jpg"
source:
name: "Mark W. Atkinson"
url: "http://markwatkinson.zenfolio.com/p709151464/h154CBC09#h154cbc09"
more_examples: "https://www.google.com/#q=ox"
-
id: 12
title: "Can you geo-localize the photo?"
type: "geotagging"
answer:
saved_as: "geolocation"
"@elliec : this is a bit confusing, can you remove it from the first question?"
Reference : https://github.com/spMohanty/geotagx-theme/issues/26
For instance, generate template.index.html
and tutorial.index.html
files that contain a project and its tutorial, respectively, which can directly be opened and run in a web browser without having to be uploaded to a GeoTag-X or PyBossa server.
This would also remove the requirement of having to install a GeoTag-X/PyBossa server to test one's projects.
UN-ASIGN photos are often upside down or sideways, Jeremy thought he could add a button to rotate them
task.csv
needs to be refactored to include just id
, source_uri,
image_url`
"@elliec : in testproject2 the illustrated multiple choice question doesnt work, i cant select anything"
@elliec : "Automate the creation of an application's tutorial should be possible as all of the questions and help etc are already there in the application
ideally in the end a volunteer would have the possibility of doing more than one photo as a tutorial and then would be presented with a "test my knowledge" type of question after they have completed a certain number of tasks"
"@elliec : Lets remove the spam question from the applications for now? i dont think we will get any spam at the moment because the plugin isnt working, and maybe there is a better way of doing it.
What do you think?"
Reference : https://github.com/spMohanty/geotagx-theme/issues/25
The search functionality works (albeit purposely hidden) however it seems the coordinates returned by OpenStreetMap Nominatim are in a projection that is not compatible with ours.
Also add instructions on how to use the geotagging feature.
The project name should be geotagx-project-template
going by the convention we follow in the rest of the repositories in the geotagx organization page.
And some developers documentation for people who want to contribute to this repository would be really nice.
๐
see map review use case example
While the two buttons have different uses, users had a difficult time choosing between "I don't know" and "It's not clear".
This is an issue for users that do not have access to a scrollwheel.
Results only save coordinates of a point, rather than the geometry of the area select by the volunteer. I guess this is the centre point of the circle. Even if it just collected the radius as well that would be better.
preferably the area selected would not be a circle but a polygon defined by the user
Can we add a way in the task presenter of showing people how many of the tasks in a particular project they have completed? eg for winter shelter there is 81 tasks, a volunteer would be told something like "you have completed 10 of 81 tasks"
Add the following
For instance, a project that does not have a geotagging question does not need the geotagx-ol.js
, geotagx-ol.css
, vendor/ol.js
, or vendor/ol.css
files.
Solving this should improve page response (see geotagx/geotagx-theme#47).
Tried out the Winter Shelter project - comments:
Tutorial is good, though would be good to have more than one tutorial image available
Website seems to be grinding to a halt as all three of us at the Edinburgh site are trying to use it at the same time
"@elliec : The help is missing from within the application"
We discovered that build.py does not recognize non-ascii characters. We had some 'ร' in our help files and when we ran build.py it told us ''ascii' codec can't decode byte 0x92 in position 2798: ordinal not in range(128)'. We removed the character and then re-encoded in ANSI and it worked fine. I don't think this is documented and might be important, it would be great if it was fixed.
The checkboxes in the simple mcq questions need to be styled, so that they go well with the general theme.
In case of large images, the user might get confused and think that the page is somehow broken. So showing progress of image load will help in those cases.
http://usablica.github.io/progress.js/ can be used to show image load progress
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.