Skip to content

Instantly share code, notes, and snippets.

@lukecampbell
Last active January 22, 2016 20:03
Show Gist options
  • Save lukecampbell/c7d6a691a705b270e19f to your computer and use it in GitHub Desktop.
Save lukecampbell/c7d6a691a705b270e19f to your computer and use it in GitHub Desktop.

URL Info

POST /api/series

Content-type: application/json;charset=utf-8
Accept: application/json;charset=utf-8

On error

{
  "error":"ValueError",
  "message":"Unable to read value or something like an error message."
}

Request

{
    "series":[
        "/api/wms?url=http%3A%2F%2Fcoastmap.com%2Fecop%2Fwms.aspx&SERVICE=WMS&REQUEST=GetFeatureInfo&VERSION=1.1.1&LAYERS=NOSERIECUR_CURRENTS&STYLES=&FORMAT=image%2Fpng&TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&WIDTH=1568&HEIGHT=991&SRS=EPSG%3A3857&BBOX=-9473911.033777885%2C4963209.120613061%2C-8994497.99237326%2C5266205.500735503&QUERY_LAYERS=NOSERIECUR_CURRENTS&INFO_FORMAT=text%2Fxml&X=661&Y=505&time=2016-01-18T19%3A00%3A00%2B00%3A00%2F2016-01-25T19%3A00%3A00%2B00%3A00",
        "/api/observations?platform=leorgn&provider=glos&parameter=ysi_blue_green_algae&time=2016-01-18T19%3A00%3A00%2B00%3A00%2F2016-01-25T19%3A00%3A00%2B00%3A00",
        "/api/observations?platform=leorgn&provider=glos&parameter=WaterTemperature&time=2016-01-18T19%3A00%3A00%2B00%3A00%2F2016-01-25T19%3A00%3A00%2B00%3A00"
    ]
}

Response

{
  "type":"Feature",
  "geometry":{
    "coordinates":["..."],
    "type":"Point"
  },
  "properties":{
    "title":"Statistics",
    "data":{
      "rmse": {
        "type":"scalar",
        "value":1.134
      },
      "sme" : {
        "type":"scalar",
        "value":0
      },
      "residuals": {
        "times":[],
        "units":"",
        "values":[[]],
        "type":"timeSeries"
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment