Commit Graph

1076 Commits

Author SHA1 Message Date
Bert Temme 4e19b77203 Update stac.rst (#1425) 2023-12-13 06:05:47 -05:00
Ricardo Garcia Silva bb2e791471 Prepare code and CI for Python 3.8 (#1399)
* Refactored get_collection_coverage tests

Using pytest's parametrize mark. This makes it easier to isolate test cases in order to fix the errors that are showing up when running under Python3.8

* Refactor tests from test_api.py that were failing under Python 3.8

* Fix flake8 issues

* Add Python 3.8 to the CI matrix

* Replaced pandas usage with numpy for datetime

* Reverted tests back to non-parametrized form

* Dropped Python 3.7 from main github CI workflow

---------

Co-authored-by: Ricardo Garcia Silva <ricardo@kartoza.com>
2023-12-13 05:52:15 -05:00
Jo e7264e89bc Support jsonld for items with null geometry (#1423)
* - added condition to avoid doing operations on the geometry, when the geometry is null (case of records)

* - moving id out of the geometry condition

* - removed commented line

---------

Co-authored-by: doublebyte1 <info@doublebyte.net>
2023-12-10 07:00:18 -05:00
Jo f1a0357478 Fixing pydantic validation issue of tilejson metadata (#1421)
* - on MVTilejson model, set default value on optional fields, so that they are not required.

* - fixed formatting (flake8)

* Update base.py

---------

Co-authored-by: doublebyte1 <info@doublebyte.net>
Co-authored-by: Francesco Bartoli <xbartolone@gmail.com>
2023-12-08 23:36:13 +01:00
Jo 532d4bf25f Merge pull request #1414 from geopython/ogc-compliance-links
update OGC Compliance links in docs
2023-12-07 14:20:52 +00:00
Tom Kralidis 51711d41ab update OGC Compliance links in docs 2023-11-30 13:22:39 -05:00
Tom Kralidis a1b7e70b88 [WIP] add float32 to JSON serialization (#1408)
* add float32 to JSON serialization

* Update util.py
2023-11-20 15:59:33 -05:00
Sarah Jordan 12ff009e6a Update openapi.py (#1404) 2023-11-15 18:03:41 -05:00
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