Commit Graph

1088 Commits

Author SHA1 Message Date
Ricardo Garcia Silva b78d28bcfd Modified starlette test client initialization to not receive a base URL (#1447) 2023-12-20 11:07:28 -05:00
Tom Kralidis 07b40a4305 add notes on using RFC1738 URLs for ES connections (#1413) (#1441)
* add notes on using RFC1738 URLs for ES connections (#1413)

* add CQL info to record providers
2023-12-19 06:42:53 -05:00
Jo cc20d1e62a Merge pull request #1431 from geopython/edr-collections
provide EDR metadata and links also for collections endpoint
2023-12-18 09:20:53 +00:00
Tom Kralidis be940be5d1 fix EDR parameter names (#1433) 2023-12-16 08:17:58 -05:00
Tom Kralidis 0a24d58a27 fix 2023-12-16 08:17:58 -05:00
Tom Kralidis 7866529301 provide EDR metadata and links also for collections endpoint 2023-12-16 08:17:58 -05:00
xkosubek f5b6505b67 Fixes and adjustments for the Oracle provider (#1410)
* Added support for table synonyms

* Added new parameters to query and manipulator call

* Changed error types

* Mount volumes to oracle container

* workflow part 2

* workflow part 3

* workflow part 4

* Changed file permissions to 777

* Deleted folder

* Recreated folder

* Changed to official Oracle Docker-Image

* Added Chown user

* back to gvenzl/oracle-xe:latest

* Tried docker-entrypoint-startdb.d

* Added addnab/docker-run-action@v3

* Added port and deamon mode

* next try

* added job.container.network

* next try

* + docker ps

* next try

* using docker run

* next try

* next try

* Changed len of array to 11

* Use sdo_util.from_geojsonfor create and update

* Flake8 changes

* Fixed error with views

* Added crs_transform_spec support

* Without default_crs

* Updated documentation for Oracle Provider

* changes for flake8

* Added crs_transform_spec support to get function

* review changes

* Added configurable SDO operator
2023-12-16 07:21:25 -05:00
Bernhard Mallinger d25d0cfa65 Use same format handling in collection coverage as elsewhere (#1412)
This now fixes the issue that the `Accept` header wasn't considered for
format selection.

This adds netcdf as a known mime type in order to be able to test this,
but also for actual clients to use.

Note that if we want to allow other mime types such as `application/x-grib2`,
we also have to add them to `FORMAT_TYPES`.

Fixes #1390
2023-12-16 07:20:09 -05:00
Ricardo Garcia Silva e11cac67ac Upgrade ci to use ubuntu 22 04 (#1427)
* 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

* Add Python 3.8 to the CI matrix

* Reverted tests back to non-parametrized form

* Dropped Python 3.7 from main github CI workflow

* replaced ubuntu 20.04 with ubuntu 22.04 in CI workflow files

---------

Co-authored-by: Ricardo Garcia Silva <ricardo@kartoza.com>
2023-12-16 07:19:29 -05:00
Ricardo Garcia Silva 2de1b895e4 Fixed openapi fixture usage in tests (#1429) 2023-12-16 07:18:11 -05:00
Bernhard Mallinger 1fc18653e8 Handle missing 'example' in describe_processes (#1430)
Fixes #1424
2023-12-16 07:17:44 -05:00
Sarah Jordan c2b06c9052 fix coords for non-cube query (#1432) 2023-12-16 04:23:46 -05:00
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