Commit Graph

364 Commits

Author SHA1 Message Date
timtuun 0fc8d9502a Initial version of mongo provider (#321) 2020-01-07 07:24:45 -05:00
Tom Kralidis c9abac21d4 CITE fixes and setup (#330)
* add CITE testing setup

* fix item link relations, handle invalid limit/startindex parameters

* ignore all generated OpenAPI files

* update config and steps

* update config
2020-01-06 09:40:33 -05:00
Tom Kralidis 55d6b8f442 refactor JSON LD code and common functions (#327)
* refactor JSON LD code and common functions

* show collection temporal properties only if defined in config, fix processing ref

* fix CLI arg handling
2020-01-05 15:01:43 -05:00
Jorge Samuel Mendes de Jesus 5d59379abb Unnecessary file __geopackage.py
File with previous code that now has been ported into sqlite3
2020-01-05 14:23:37 +01:00
Jorge Samuel Mendes de Jesus 0a46bf5054 Issue 290 (#322)
* property implementation on query method

* dataset with foo_geom as geom

* bbox search on sqlite3

* pytests for limit and property filter

* geopackage and sqlite3

* fix test on ogr_geopackage for new dataset version

* updated doc and removal of bbox cast

* err variable not used

* converstion of f string to .format()
2020-01-02 11:22:27 -05:00
Tim-Hinnerk Heuer f0006c92f0 Issue 310 (#311)
* fix item previous and next links #310

* fix get_next comment #310

* ensure correct formatting for flake8 #310

* change id to id_

* change previous to prev

* fix ref

* Update item.html

Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
2020-01-02 08:50:19 -05:00
Tom Kralidis 09efa01b0b Update README.md 2019-12-24 08:30:29 -05:00
Richard Law 2e6f9abcb0 Json ld docs (#326)
* adds structured data section to configuration documentation

* adds json-ld support button/badge
2019-12-24 07:51:54 -05:00
Tom Kralidis db2185696a update landing page OpenAPI/Swagger labels 2019-12-23 19:51:40 +02:00
Tom Kralidis ac73e95398 abstract ES test loader to accept id field as argument (#324) 2019-12-23 12:33:31 -05:00
Tom Kralidis 1ce7ac8cfb update conformance classes (#323) 2019-12-23 12:09:14 -05:00
Richard Law 17ed14107d Add JSON-LD representations (#246)
* Changes to sample pygeopai-config.yml
- improved terms_of_service and contact.url for SEO
- fixes typo for contact.instructions

* whitespace

* dynamically embed JSON-LD representation in head

* json-led representation for root, collections, and collection

* updates sample configuration with metadata that won't cause JSON-LD validation issues

* adds support for feature-level JSON-LD representations of collections and items

* improves consistency between microdata and JSON-LD root metadata

* valid Dataset spatial; and better use of @id

* role →  instructions

* adds jsonld f param to open api definition

* working with new temporal extent interface

* removes comment

* identify and retain NIR/HTTP IDs rather than construct them with reference to pygeoapi

* don't pop a feature.properties id, to retain JSON-LD reference integrity

* add/update tests for inclusion of json-ld responses

* bug fixes

* fix bug where id was assumed to be string

* better url checking

* renames format variable to avoid reserved word

* removes top-level CRS in obs sample config

* add json-ld textMimeType for serverless

* adds flask-cors dependency to allow cors

* moves json-ld-requesting script to bottom of body

* corrects schema.org url

* fixes urls

* adds pyld dependency

* adds tests for json-ld representations (incomplete)

* more tests

* make pyld a dev requirement only

* linting

* changes from revision

* removes merge artifact
2019-12-19 08:33:42 -05:00
Jorge Samuel Mendes de Jesus f8671cf68f Merge pull request #320 from geopython/bbox-data-types
make bbox inputs floats
2019-12-16 08:56:08 +01:00
Tim-Hinnerk Heuer 44d01b1fe8 add limit examples to viewer - #305 (#308)
* add limit examples to viewer - #305

* simplify ui by using dropdown for limits #305
2019-12-13 16:52:06 -05:00
Tom Kralidis ab4cd3e03e make bbox inputs floats 2019-12-13 16:48:51 -05:00
KoalaGeo 0fadb3c16b Update README.md (#319)
* Update README.md

* Update to docker docs

Update to docker docs
2019-12-12 13:04:48 -05:00
Jorge Samuel Mendes de Jesus b61404d610 Merge pull request #287 from ayan-usgs/bbox-query
support a bbox for the postgres provider
2019-11-10 13:26:18 +01:00
Tom Kralidis 21c6a61912 add feature collection and featutre id to HTML representations (#26) (#296) 2019-11-07 15:16:14 -05:00
Andrew Yan 5672d055dc improve integration of conditions on the where clause 2019-11-04 11:49:32 -06:00
Andrew Yan 0b142f2991 Merge branch 'master' of github.com:geopython/pygeoapi into bbox-query 2019-11-04 08:50:21 -06:00
Mary Bucknell e4a36e7248 Add ability to filter by properties to postgresql provider. (#283)
* The json_serial function needs to be provided in order to dump decimal.Decimal values correctly.

* Added ability to filter on property values

* Added allow_property_filters config parameter.

* Added tests for ability to filter on properties

* Add comment to describe fields attribute

* Fixed PEP8 issues

* Missed a PEP8 lint error

* Added name to authors list

* Consistent string formatting

* Remove config parameter allow_property_filtering

* Revert logging statement
2019-11-02 06:25:29 -04:00
Andrew Yan 5df936d65e http://docs.opengeospatial.org/DRAFTS/17-069r1.html#_parameter_bbox specify that bbox queries should use intersect rather than contains 2019-11-01 09:06:23 -05:00
Tom Kralidis 61b1617d56 expose properties in OpenAPI based on configuration (#289) 2019-10-31 14:13:04 -04:00
Andrew Yan fe4c02a388 Merge branch 'master' of github.com:geopython/pygeoapi into bbox-query 2019-10-28 16:43:33 -05:00
Andrew Yan 080e735d5a do not use numbers when formatting 2019-10-28 15:49:32 -05:00
Jorge Samuel Mendes de Jesus a4d217ada6 Merge pull request #281 from jorgejesus/issue_269
Fixes  #269
2019-10-25 17:25:46 +02:00
Tom Kralidis 933950b099 move OpenAPI endpoint from /api to /openapi (#285) (#286) 2019-10-23 16:24:00 -04:00
Andrew Yan f9685b3b86 cutdown excessively long lines 2019-10-23 14:51:45 -05:00
Andrew Yan 3bd7fc2724 switch spatial operator from intersects to contained-by 2019-10-23 14:03:01 -05:00
Andrew Yan 89d8905c8d support a bbox for the postgres provider 2019-10-23 13:39:22 -05:00
Jorge de Jesus e16ffa6ff5 removal of unnecessary logging 2019-10-22 12:12:17 +02:00
Jorge de Jesus 9598044aae nissing search_path string 2019-10-22 10:44:31 +02:00
Jorge de Jesus a2e11467c1 updated code syntax based on code review 2019-10-22 10:21:49 +02:00
Jorge Samuel Mendes de Jesus 3bd0d280cc Merge pull request #282 from geopython/issue-248-env
implement env variables inside PYGEOAPI_CONFIG file (#248)
2019-10-22 09:26:29 +02:00
Tom Kralidis efc563593b add error handler for not defined environment variables 2019-10-21 09:53:16 -04:00
Tom Kralidis 2328e1d66f implement env variables inside PYGEOAPI_CONFIG file (#248) 2019-10-20 23:20:24 -04:00
Mary Bucknell c8d0f1b512 The json_serial function needs to be provided in order to dump decimal.Decimal values correctly. (#280) 2019-10-20 22:40:27 -04:00
Jorge de Jesus d9d749ad8a implements search paths and user defined geom 2019-10-20 17:14:55 +02:00
Jorge de Jesus 70a87d9945 Merge remote-tracking branch 'upstream/master' 2019-10-20 15:01:47 +02:00
Tom Kralidis 7b8dc69865 rename some functions to align with specification updates (#278) 2019-10-16 21:29:43 -04:00
Tom Kralidis 05ac393aaa update to canonical OAPIF schema locations (#276) 2019-10-16 12:28:58 -04:00
Jorge de Jesus 9ea553891d Merge branch 'master' of https://github.com/jorgejesus/pygeoapi 2019-10-15 16:39:53 +02:00
Mary Bucknell 3cc335ee2c Added serialization for Decimal. The postgres provider converts number field to decimal.Decimal. (#274) 2019-10-14 17:54:52 -04:00
Tom Kralidis 7e9b2c49bf Update sample title (#275)
* update test collection titles

* update test collection titles
2019-10-13 09:19:41 -04:00
Even Rouault 4ff32fdfc5 api: fix paging links (#272)
* api: fix paging links

- Add minimal validation of startindex and limit parameters
- Include limit parameter coming from initial request in next and prevl links
- Only include prev link if startindex > 0
- Only include next link if we got as many features at the limit

Note: there is a broken test for sortby that was unnoticed. I have marked
it as such.

* api: in links returned by /items, include input query parameters
2019-10-08 07:31:33 -04:00
Tom Kralidis 08f50097a4 move conformance section in html (thanks @alexandreleroux) (#268) 2019-10-07 14:41:07 -04:00
Tom Kralidis d12ad13e96 Merge pull request #271 from rouault/fix_bbox 2019-10-05 18:21:03 -04:00
Even Rouault 482f1587c4 api: fix to report an array of bbox in collection description
The latest version of the OAPI-F spec mandates the bbox to be
advertized as an array of bbox.
This commits accept the service configuration to have just
a single bbox or an array of bbox, and adapt accordingly to
generate the collection description.
2019-10-05 17:42:00 +02:00
Even Rouault 3f88575648 Fix service-doc and service-desc inversion, and update media type of openapi+json (#270)
* Landing page: fix inversion of service-doc and service-desc

service-desc should be for the OpenAPI version of /api, and
service-doc for the HTML version

See Abstract Test 40 of http://docs.opengeospatial.org/DRAFTS/17-069r3.html

* Update media type for OpenAPI JSon 3.0
2019-10-05 16:57:30 +02:00
Jorge Samuel Mendes de Jesus 6e504933cf Merge pull request #267 from tomkralidis/issue-266
sanitize bbox parameter (#266)
2019-10-04 08:49:34 +02:00