Giter Club home page Giter Club logo

chouquette's Introduction

Chouquette

Usage

Production

docker-compose -f docker-compose.yml up

Backend avaible at: http://localhost:51264
Frontend avaible at: http://localhost:51265
(See docker-compose.yml.)

Development

docker-compose up

# attach to backend:
docker attach chouquette-back # sbt shell: run, test, ...

# attach to frontend:
docker attach chouquette-front # bash: npm run start, test, ...

Coverage

[sbt] clean coverage test
[sbt] coverageReport

Reports are avaible in chouquette/target/scala-2.12/scoverage-report/index.html.

Services

1. Descriptor

GET /requestMe

Request:

{
    int // id of the hike
}

Response:

{
    string // description of the hike
}

2. Extractor

POST /extract

Request:

{
    string // sentence where we want to extract the semantics words
}

Response:

{
    [string] // array contening the semantics words extracted
}

3. Geolocalisator

POST /geolocalise

Request:

{
    [string] // array contening the semantics words extracted
}

Response:

{
    "places": [
        {
            "long": double // longitude of the first place
            "lat": double // latitude of the first place
        },
        {
            "long": double // longitude of the second place
            "lat": double // latitude of the second place
        }
    ]
}

4. UTMZonator

POST /zonator

Request:

[
    {
        "long": double // longitude of the first place
        "lat": double // latitude of the first place
    },
    {
        "long": double // longitude of the second place
        "lat": double // latitude of the second place
    }
] 

Response:

{
    string // string contening the major UTM zone
}

5. S2Recuperator

POST /recupere

By default, the startDateVal is 2016-11-05 and the completionDateValis 2016-11-15.

Request:

{
    [string] // array contening the UTM zone
}

Response:

{
    "urls": [string] // array where the images urls are
}

We can modify startDateVal and completionDateVal with the route /recupereDate.

POST /recupereDate

Request:

{
    "utm": string, // the utm zone
    "startDateVal": string, // the search on peps start from this date
    "completionDateVal": string // the search on peps stop at this date
}

Response:

{
    "urls": [string] // array where the images urls are
}

67. gdal2tiles2hdfs

POST /gdal2tiles2hdfs

Request:

{
    "imageUrl": string, // url to download image from
    "pepsUser": string, // username for PEPS
    "pepsPass": string, // password for PEPS
    "hdfsHost": string, // host for HDFS server
    "hdfsUser": string, // username for HDFS server
    "hdfsPass": string, // password for HDFS server
    "hdfsPath": string, // path where tiles should be saved on HDFS server
}

Downloads imageUrl on local file system, calls gdal2tiles.py on it, scp image and tiles on hdfsUser@hdfsHost (with hdfsPass), then puts it at hdfsPath on HDFS. Returns the route where the status can be checked.

Response:

Status: 202
{
    "status": string // route where the status can be checked
}

GET /status/<jobId>


Todo

  • add options to give to gdal2tiles.py

8.


9.


10.


chouquette's People

Contributors

gurimarukin avatar

Watchers

 avatar

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.