Coder Social home page Coder Social logo

geotagx-project-template's People

Contributors

othieno avatar spmohanty avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

geotagx-project-template's Issues

move configuration file from JSON to YAML

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"

Generate platform-agnostic HTML files.

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.

Add button to rotate photo

UN-ASIGN photos are often upside down or sideways, Jeremy thought he could add a button to rotate them

Refactor task.csv

task.csv needs to be refactored to include just id, source_uri,image_url`

Automated tutorial creation

@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"

Fix location search function in geotagging questions.

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.

Project Name and Developers Documentation

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.
๐Ÿ˜„

Geotagging applications need fixing

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

Geotagging improvements

Add the following

  • help button with instructions (see commits 14bcdd3 and 36c537a).
  • tour for when people first open a geotagging application
  • default country to be zoomed to when geotagging question opened, defined in project template (see commit 83c3391).
  • search location box (see issue #8).
  • add satellite and aerial imagery layer (see commit cbe2b50).

feedback from mozilla on improvements

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

build.py does not recognize non-ascii characters

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.

Style Simple MCQs

The checkboxes in the simple mcq questions need to be styled, so that they go well with the general theme.

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.