Coder Social home page Coder Social logo

Comments (7)

tomkralidis avatar tomkralidis commented on August 17, 2024 1
  1. same request, so works
  2. returns The requested URL was rejected. Please consult with your administrator.. I am guessing there is something before pygeoapi that is returning this error (likely the ../ in the URL)
  3. returns Configured times should be RFC3339 error

from pygeoapi.

KoalaGeo avatar KoalaGeo commented on August 17, 2024

We've been doing datetime filters using CQL like:

  1. https://ogcapi.bgs.ac.uk/collections/sensor-water-level-sta/items?f=json&limit=5&sortby=-resulttime&properties=resulttime,result,location_name
  2. https://ogcapi.bgs.ac.uk/collections/sensor-water-level-sta/items?f=json&limit=5&filter=resulttime%20BEFORE%202024-04-06T22:30:00Z&sortby=-resulttime&properties=resulttime,result,location_name
  3. https://ogcapi.bgs.ac.uk/collections/sensor-water-level-sta/items?f=json&limit=5&filter=resulttime%20AFTER%202024-04-07T22:30:00Z&sortby=-resulttime&properties=resulttime,result,location_name

from pygeoapi.

tomkralidis avatar tomkralidis commented on August 17, 2024

The equivalent queries using the datetime parameter would be:

  1. https://ogcapi.bgs.ac.uk/collections/sensor-water-level-sta/items?f=json&limit=5&sortby=-resulttime&properties=resulttime,result,location_name (same)
  2. https://ogcapi.bgs.ac.uk/collections/sensor-water-level-sta/items?f=json&limit=5&datetime=../2024-04-06T22:30:00Z&sortby=-resulttime&properties=resulttime,result,location_name
  3. https://ogcapi.bgs.ac.uk/collections/sensor-water-level-sta/items?f=json&limit=5&datetime=2024-04-07T22:30:00Z/..&sortby=-resulttime&properties=resulttime,result,location_name

from pygeoapi.

KoalaGeo avatar KoalaGeo commented on August 17, 2024

Ah i see....

{
"code":"InvalidParameterValue",
"description":"Configured times should be RFC3339"
}

from pygeoapi.

KoalaGeo avatar KoalaGeo commented on August 17, 2024
  1. Is allowed through now (pedantic F5....) now same error as 3.

from pygeoapi.

tomkralidis avatar tomkralidis commented on August 17, 2024

FYI @david-i-berry has a fix and will test/issue a PR in the next few days (thanks Dave).

from pygeoapi.

webb-ben avatar webb-ben commented on August 17, 2024

Related to #1607

from pygeoapi.

Related Issues (20)

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.