Commit Graph

1068 Commits

Author SHA1 Message Date
Sarah Jordan 08fa2b7286 Valid EDR cube queries for data with decreasing coordinates (#1402)
* resolving case when lat dimensions are decreasing

CF conventions state only that a "coordinate variable must have values that are strictly monotonic (increasing or decreasing)." In the case of PRISM, the lat coordinates are decreasing. pygeoapi failed due to the lat dimension being empty with existing implementation; this update addresses the issue.

* remove blank space

* resolving case when lat dimensions are decreasing

CF conventions state only that a "coordinate variable must have values that are strictly monotonic (increasing or decreasing)." In the case of PRISM, the lat coordinates are decreasing. pygeoapi failed due to the lat dimension being empty with existing implementation; this update addresses the issue.

* remove blank space

* test decreasing latitude

The new test will now uncover if you can successfully serve data stored on S3 AND test if you can perform a cube query on data with monotonically decreasing latitude coordinates at the same time.

* flake8 py3 fixes
2023-11-15 18:03:15 -05:00
Tom Kralidis de1a7d93ee add OpenAPI dict to pygeoapi.api.API init (#1398) 2023-11-12 20:07:34 +01:00
Ricardo Garcia Silva f7b0a584e1 Removed datamodel-code-generator from dev requirements (#1370)
* Removed datamodel-code-generator from dev requirements

* Adapted docs to mention datamodel-code-generator not being a direct dependency
2023-11-10 19:08:30 +01:00
Tom Kralidis 2f33ff5d15 update records properties (#1391)
* update records properties

* fix
2023-11-06 21:12:52 +02:00
Tom Kralidis 3130266cbf fix CSWFacade GeoJSON output 2023-11-03 16:19:21 -04:00
Tom Kralidis bfd3cac20a implement CSW facade (#1386) 2023-11-01 19:35:14 -04:00
KingGooseJr 169450f342 commented elastic ports in example docker-compose and added warning a… (#1382)
* commented elastic ports in example docker-compose and added warning about opening ports in production

* commented elastic ports in example docker-compose and added warning about opening ports in production
2023-10-31 05:25:01 -04:00
Shiva Thapa 981acbc57a Correct README based on feedback of issue #1374 (#1380)
* Update README (issue #1374): Add descriptions for configuration files and fix broken links

* Fix README based on feedback #1376 from issue #1374

* Update README title for better clarity.

* Update the README title while addressing the suggestion.
2023-10-31 05:10:44 -04:00
Aontnio Cereicllo ec56484717 Fix placeholder typo (#1381) 2023-10-24 11:39:26 -04:00
Tom Kralidis 6192349f1d update link to Zappa (thanks @maaikelimper) 2023-10-18 08:16:11 -04:00
totycro e51cf6577e Handle ProviderInvalidQueryError for every query() (#1379)
This is necessary for a more consistent error handling,
where providers can raise ProviderInvalidQueryError for any
`query()` call and the API will correspondingly return a code in the 4xx
range with an error message.
2023-10-18 06:55:01 -04:00
Jo 333f025e09 Merge pull request #1378 from carlospatinos/master
Fix #1371
2023-10-17 23:55:02 +02:00
carlospatinos 5f9bc3a753 Merge branch 'geopython:master' into master 2023-10-16 17:49:46 +01:00
Carlos Patino da5427b216 fix #1371 Readme and docker-compose mongo version updated to 7.0.2 and test run and manual verification too 2023-10-16 17:49:15 +01:00
Jo 3be530a2c9 - pin down mongo-express version (#1372)
Co-authored-by: doublebyte1 <info@doublebyte.net>
2023-10-13 18:32:47 +02:00
Jo 58bd482d85 - added credentials for mongo-express web UI (#1373)
Co-authored-by: doublebyte1 <info@doublebyte.net>
2023-10-13 18:31:06 +02:00
Jo 2dbc26ca63 Merge pull request #1369 from sebzz2k2/docs-update-elastic-version
(docs): change docker elastic version and os in readme
2023-10-06 09:54:32 +01:00
Sebin CM dee93fe67c (docs): change docker elastic version and os in readme 2023-10-05 20:07:18 +05:30
Francesco Bartoli 96cf72236a Improve postgres connection options (#1357)
* Add database connection options

* Move under provider options

Add docs for connection options

Fix typo

Use already existing provider options from config json schema

Use already existing provider options from config json schema

* Validate configuration of provider options

* Replace pydantic validation with plain jsonschema
2023-10-02 21:53:07 -04:00
Tom Kralidis 6eb272074b safeguard missing properties during .../items queries using properties= (#1356) 2023-09-29 22:38:02 +02:00
Francesco Bartoli e1ee5fcbc3 Fix pydantic version on requirements-django.txt (#1355) 2023-09-28 15:22:28 -04:00
Seth G 116a8d4328 Fix string representation for WMSFacadeProvider (#1322) 2023-09-27 07:18:40 -04:00
totycro ca7f8fc1f6 Oracle Provider (#1329)
* Added Oracle Provider

* Changed author

* Modified formatting with Black

* Adapt Python Flake8 style

* Adapted line length

* Flake8

* Line length <= 79

* Added Oracle provider into CI/CD

* Changed code style to flake8

* style: tabs to spaces

* style: line length

* style: trailing whitespaces

* Changed dictionary concat to old style

* Fixed skip geometry error.

* Added first set of unit tests

* Deleted whitespaces

* Added Oracle provider documentation

* First version Part 4 (CRUD)

* First version OGC API Feature Part 4 (CRUD)

* Changed style for flake8

* Style: trailing whitespaces

* style: line too long

* style: line too long

* CRUD: Added update

* flake nervt

* CRUD: update + delete

* Added tests + fixed errors

* Updated docs

* Added test_get.. + Error fixing

* Worked reviews in

* Added pull request comments

---------

Co-authored-by: Andreas Kosubek <andreas.kosubek@ama.gv.at>
Co-authored-by: xkosubek <133005275+xkosubek@users.noreply.github.com>
2023-09-27 07:07:23 -04:00
Mathieu Tachon afda00e25e Change parse_raw -> model_validate_json in api.py (#1354) 2023-09-26 10:13:43 +02:00
Mathieu Tachon 39e6ea2223 Refactor code base to make it work with pydantic v2 (#1353)
* Refactor code base to make it work with pydantic v2

* Add typing-extensions to requirements.txt
2023-09-21 00:21:54 +02:00
Sarah Jordan 32cbe3e925 S3 Cloud Storage Access for EDR Provider (#1235)
* read from s3 bucket

* fix formatting for build workflow

* add s3fs to provider requirements

* storage options for fsspec

* Revert "storage options for fsspec"

This reverts commit dcfaceedd78d0f0e0dc3e38610958671c27b06a6.

* Revert "storage options for fsspec"

This reverts commit dcfaceedd78d0f0e0dc3e38610958671c27b06a6.

* delete extraneous code for cloud storage read

* update documentation

* add ci testing

* update test suite config file

* update number of collections

* update test query for s3

* ci testing updates

* read from s3 bucket

* fix formatting for build workflow

* add s3fs to provider requirements

* storage options for fsspec

* Revert "storage options for fsspec"

This reverts commit dcfaceedd78d0f0e0dc3e38610958671c27b06a6.

* Revert "storage options for fsspec"

This reverts commit dcfaceedd78d0f0e0dc3e38610958671c27b06a6.

* delete extraneous code for cloud storage read

* update documentation

* add ci testing

* update test suite config file

* update number of collections

* update test query for s3

* ci testing updates

* documentation updates

* config updates

* flake8

* modify sfs3 version

installing requirements threw an error when specifying 2023.6.0 (only identifies up through 2023.1.0). Had added the sfs3 requirement to deal with issues thrown when the 2023.9.0 release came out.

* updated coverages documentation
2023-09-13 14:12:58 -04:00
Tom Kralidis 8de3ab0800 Update .readthedocs.yaml 2023-09-09 08:28:41 -04:00
Tom Kralidis 65139bc6b4 Update .readthedocs.yaml 2023-09-09 08:28:07 -04:00
Tom Kralidis 82314f828a Update .readthedocs.yaml 2023-09-09 08:23:48 -04:00
Tom Kralidis bfdaa2a072 Update requirements.txt 2023-09-09 08:16:31 -04:00
Tom Kralidis 9aa703ad3f Update .readthedocs.yaml 2023-09-08 22:15:06 -04:00
Tom Kralidis cde0113b75 Update .readthedocs.yaml 2023-09-08 22:05:52 -04:00
Tom Kralidis 0aee92c137 Update .readthedocs.yaml (#1348) 2023-09-08 22:03:14 -04:00
Benjamin Webb 2d3ec88320 Ensure OAProc id == Resource name (#1346) 2023-09-02 22:00:23 -04:00
Benjamin Webb 19d7f53599 Fix CI/CD Tests (#1343)
* Fix erddap provider

* Comment out failing tests

Temp fix for: https://github.com/geopython/pygeoapi/issues/1342
2023-08-30 20:35:04 -04:00
Tom Kralidis 148e4e8eee fix ref 2023-08-29 11:37:07 -04:00
Mathieu Tachon aa42cc6b60 Get bbox query parameter interactively (#1339)
* Update script to allow to get bbox query parameter interactively

* Remove unnecessary line

* Remove '?' prefix for bbox

* Switch back to leaflet version 1.3.1
2023-08-29 07:25:44 -04:00
Tom Kralidis fbd920903d fix ordered properties in ES provider (#1338) 2023-08-24 22:19:50 -04:00
Krishna Lodha cba55630c0 Minorfix/mongo db doc (#1319)
* updated mongoDB

* Updated mongo section
2023-08-18 16:45:32 -04:00
Krishna Lodha db4e8196c6 updated mongo to 6.0.7 (#1318) 2023-08-18 16:45:13 -04:00
Ricardo Garcia Silva 7c5e7cf224 Add pycharm-related rule to .gitignore (#1315)
* Added pycharm-related rule to .gitignore

* added blank line at end of .gitignore

---------

Co-authored-by: Ricardo Garcia Silva <ricardo@kartoza.com>
2023-08-18 16:44:44 -04:00
totycro 42f833485b Fix display of job parameters (#1321)
Here we have JS code which parses the parameters
as json, so they must not be escaped.

I've noticed that right now, quotes are escaped as &#34;
which makes it invalid json and you get a JS error

It's not 100% clear to me what caused this, but probably
a jinja update or this change: 997a83530e

The implementation uses tojson from jinja which already has an
`indent` parameter, but for some reason it didn't indent it,
so this still uses indention in JS.
2023-08-18 16:44:16 -04:00
totycro 3d93c28353 Pagination issue (#1333)
* Fix for Django build, changes to documentation, and dev dependencies updated

* remove example configuration files

* Added readthedocs configuration file

* added section on building the documentation

* renamed docs/requirements-docs.txt to docs/requirements.txt

* renamed requirements file in readthedocs configuration

* Added documentation requirements installation to GitHub build workflow

* fixed pagination next page response

* fixed line too long

* Update get_collection_items test to accomodate last page fix

Note that this feature can't be tested with the CSV provider
because it uses the number of current items as numberMatched,
which doesn't seem correct but is an independent issue.
https://github.com/geopython/pygeoapi/blob/c7c07855e5cfa95b88d6d0d11f5c23111e38da95/pygeoapi/provider/csv_.py#L173

---------

Co-authored-by: Juan Pablo Duque <juan-pablo-duque@hotmail.com>
Co-authored-by: Juan Duque <juanpablo.duque@polimi.it>
2023-08-16 10:34:29 -04:00
Alexander Pilz c7c07855e5 Echo process (#1332)
* Echo process

Added an testbale echo process which supports the pause parameter

* Formatting

Changes to conform to flake8 formatting

* Updated link entry
2023-08-15 10:38:02 -04:00
Benjamin Webb 6981d3b11f Add reference to CGS pygeoapi plugins (#1314) 2023-07-05 14:44:20 -04:00
totycro dda4d121e2 Make sure that PostgreSQLProvider.get_fields returns valid json schem… (#1312)
* Make sure that PostgreSQLProvider.get_fields returns valid json schema types

* Log warnings when postgres provider encounters unknown types

* Update postgresql.py

---------

Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
2023-07-04 07:44:17 -04:00
ǝɹʇʇɐʃǝ◖ xıʃǝɟ fe0d0ed0bc Moved debian directory to salsa.debian.org. (#1296) 2023-07-04 14:05:18 +03:00
Tom Kralidis f88a671315 update main copyright statement (#1303) (#1307) 2023-07-03 18:08:53 +02:00
Tom Kralidis 458223106e ensure collection links are optional (#1292) (#1310) 2023-07-03 10:07:56 -04:00
Tom Kralidis c9b8e7020a add OPTIONS definitions for supported endpoints in OpenAPI (#1305) (#1309)
* add OPTIONS definitions for supported endpoints in OpenAPI (#1305)

* fix
2023-07-03 09:35:36 -04:00