Commit Graph

556 Commits

Author SHA1 Message Date
totycro 53ef83f00a Select correct process on GET /process/PROC_ID (#621)
Before, you would always get the first process in the config.
2021-02-17 08:16:05 -05:00
Tom Kralidis e8ae03c5de update STAC MCF support/dependencies/docs (#618)
* update STAC MCF support/dependencies/docs

* update STAC MCF support/dependencies/docs
2021-02-13 08:28:36 -05:00
paul van genuchten 63f100f5c2 importing stac metadata from mcf-sidecar file (#605)
* redo of grabbing stac from mcf-sidecar file

* suggestions from Tom +
mapviewer should use data[bbox] instead of extent

* flake8 fixes
2021-02-12 21:13:13 -05:00
Tom Kralidis 4b92b7073e Merge pull request #617 from tomkralidis/fix-oapi-refs
update OpenAPI repo names
2021-02-12 15:17:57 -05:00
Tom Kralidis f834b146b8 fix flake8 2021-02-12 14:02:13 -05:00
Tom Kralidis 10f9a6a9fd update OpenAPI repo names 2021-02-12 09:41:49 -05:00
paul van genuchten 0787955337 add docs for ogr provider (#610) 2021-01-27 22:22:02 -05:00
totycro 0aab0c9bd2 Date now handling (#613)
* Drop support for "now" in dategetter

This value already leads to an error in queries, so it's not really
supported at this point anyway.

* Use None instead of ".." for open temporal intervals

See https://github.com/opengeospatial/ogcapi-features/blob/master/core/openapi/schemas/extent.yaml#L86

* Allow empty string in dateranges to mean open interval

See http://docs.opengeospatial.org/is/17-069r3/17-069r3.html#_parameter_datetime
2021-01-27 22:21:09 -05:00
Tom Kralidis e3df2205b0 Merge pull request #606 from christophersbarrett/support-serverless-fixes
Serverless fixes
2021-01-25 09:01:19 -05:00
Francesco Bartoli 919ddd1ef8 Fix missing module (#612) 2021-01-20 01:16:59 +01:00
Tom Kralidis b96028bee7 Update ogcapi-features.rst 2021-01-18 16:46:56 -05:00
Tom Kralidis 3f4ce49939 add featured templates section to docs 2021-01-13 18:37:08 -05:00
Tom Kralidis 7565e95bdf Merge pull request #607 from tomkralidis/add-plugin-to-docs
add Featured plugins section to docs
2021-01-13 07:06:28 -05:00
Tom Kralidis 80d76b2133 update copyright year 2021-01-13 06:48:35 -05:00
Tom Kralidis 40351833f7 add Featured plugins section to docs 2021-01-13 06:47:55 -05:00
christophersbarrett f0f421d6ae Updated readme with new instructions on utilizing serverless IaC to build and deploy, updated pygeo config, updated serverless config so wsgi builds correctly 2021-01-11 15:08:44 -08:00
Tom Kralidis fc6fd9d86f fallback to default HTML template if custom template does not exist (#604)
* fallback to default HTML template if custom template does not exist

* add docs
2021-01-11 15:15:47 -05:00
Tom Kralidis e9079a1b3d fix ES wildcard index configurations (#603) 2021-01-06 14:33:43 -05:00
totycro 497875c3a5 Allow jobs to show parameters in the UI (#601)
* Allow jobs to show parameters in the UI

This is very useful when starting the same job multiple times with
different configurations.

This PR allows to show parameters as arbitrary data since jobs might use
any kind of data.

* Use same method of pretty printing everywhere
2021-01-05 10:32:51 -05:00
Angelos Tzotsos ada70fff6e Merge pull request #598 from kalxas/docker
Review dockerfile (#585)
2021-01-03 21:38:24 +02:00
Angelos Tzotsos 959c89540c Unpin focal image 2021-01-03 21:25:02 +02:00
Angelos Tzotsos 616f1b2993 Added python3-flask-cors package 2021-01-03 21:21:04 +02:00
Angelos Tzotsos 3ccaed04f3 Update Travis to use dev docker build 2021-01-02 14:06:11 +02:00
Angelos Tzotsos 295ce4e239 More dockerfile changes, thanks Just 2021-01-02 13:03:03 +02:00
Tom Kralidis 145d9395a0 restructure HTML templates (#600) 2020-12-30 16:04:16 -05:00
Tom Kralidis 6915efbcad add links, refactor job handling, HTML updates (#599)
* add links, refactor job handling, HTML updates

* fix test

* misc fixes
2020-12-30 09:30:12 -05:00
Angelos Tzotsos a638ef78c5 Moving providers to ADD_DEB_PACKAGES variable 2020-12-30 13:23:32 +02:00
Angelos Tzotsos c0ccfc4176 Drop apt-get upgrade 2020-12-30 12:02:15 +02:00
Angelos Tzotsos bb240de270 Review from Just 2020-12-29 21:37:17 +02:00
Angelos Tzotsos 0be38d3153 Updating dockerfile to use debian packages where available (#585) 2020-12-25 22:44:17 +02:00
Angelos Tzotsos e2ee2f5949 Switch docker image to ubuntu focal with ubuntugis-unstable 2020-12-25 22:03:43 +02:00
Tom Kralidis e481891f7c fix item STAC HTML map 2020-12-23 12:51:24 -05:00
Kevin Ngai 63e4050102 Add bbox leaflet map to collection page (#595)
Co-authored-by: Kevin Ngai <asptken@geomet-dev-03.cmc.ec.gc.ca>
2020-12-23 12:37:03 -05:00
totycro 0ffe1c57d9 Minor improvements and cleanup of process API (#594)
* Move tinydb configuration from base manager to tinydb

* Rename job_result to job

It's actually the job metadata

* Make get_job_result only return the result

The status is part of the metadata which is already returned by get_job

* Detect format from request headers, not response headers

* Default to json output, not html

This is a reasonable default because mostly browsers want html, and they
always request html, whereas dev tools used by api users might not
always request json.

* Don't provide outputs when executing async an job

In this case, we don't have any outputs yet.

* Make connection an optional attribute for managers

instead of only defining it for tinydb
2020-12-23 11:27:58 -05:00
Richard Law 60202129ec implement processing manager (#365)
* add process manager

* process manager updating

* control connectivity from inside manager

* missing method on execute_process function signature

* adds tinydb depenedency for requirements-provider

* adds some processes tests

* process manager under server config, not a process

* additional html rendering for jobs and processes

* fixes typo in docstring

* complete html templating for jobs and processes

* considers timezone when formatting processing start/end datetimes

* expanded locales; locale and tz environment variables

* makes environment TZ a global from pygeoapi/__init__.py

* don't redefine built-in format

* adds placeholder values in process form if given as examples

* placeholder in form handles null example

* changes to process progress update

* updates and changes to processing web UI

* adds python3-distutils dep, and env changes for TZs and locales

* adds tinydb dependency for processes

* Adds libpq-dev and related deps for processing - should eventually be reconciled

* minor margin change

* fix bug in postJob.js that prevented results from displaying

* move process elements around to economise on space

* adds second, complex process

* post data may be bytes

* make external process example

* adds redis process manager (may be moved to third-party plugin eventually)

* reintroduce default async processing; refactoring managers; improving sync/async processing ui

* throw pygeoapi ManagerExecuteError, not redis exception

* adds test for async-execute

* restores original test host

* separates async execute handler function

* adds support for file uploads as processing inputs

* adds endpoint for file download as process output

* naming consistency

* Fix job submission form in case server url is relative (#549)

`new URL()` fails if the first argument isn't a complete url

* Implement job deletion in UI, api and tinydb

* Also allow deletion from job list

The UI could be fancier by reloading the page or just removing the
deleted job right away, but I don't want to start building that now.

* Delete output file when deleting a job

* typo in test case

* move delete button in job view

* remove Dockerfile changes (cf #470)

* removes some docs/source*.rst absent in master

* fixes whitespace

* fixes pip installs

* removes more locale-specific content, cf 70

* fixes duplicate app following merge

* removes redis as default plugin

* removes ENV_TZ, cf #407

* fix typo

* fixes syntax error

* process execution test cleanup

* Fix format detection in execute_process (#589)

Before, html was always selected.

* remove db files in code directories, fix flake8, specific functionality

* remove interactive capabilities in lieu of Swagger

* Add basic openapi documentation for job detail endpoint (#590)

It's somewhat superficial still, e.g. jobId is missing as
proper parameter in the UI.

* Show elapsed time for currently running jobs (#591)

* flake8, jobs workflow

* update docs, DB path in test config

* more code cleanup

* manager workflow cleanup

* add default dummy manager

* update docs

* fix routes

* fixed per comments

* fix per comments

* fix per comments

* fix travis

* simply describe process logic

* simplify describe process logic

Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
Co-authored-by: Jorge de Jesus <jorge.jesus@gmail.com>
Co-authored-by: totycro <bernhard.mallinger@eox.at>
Co-authored-by: Richard Law <richard.law@cartoncloud.com.au>
2020-12-22 06:53:31 -05:00
Richard Law 4678622381 Merge pull request #587 from eurodatacube/fix-dockerfile-pythonh-missing
Add missing build dependencies libpython3-dev and libgdal-dev
2020-12-21 11:54:58 +13:00
Bernhard Mallinger f05c329382 Upgrade libgdal from 2.7 to 2.8
The libgdal27 doesn't seem to be available any more in the current
debian docker image.
2020-12-14 09:51:57 +01:00
Bernhard Mallinger b8eb7577e9 Bump python deps as suggested by @dsusviela
Bumping the gevent version to 20.9.0 and greenlet to 0.4.17

See https://github.com/geopython/pygeoapi/pull/587#issuecomment-742109790
2020-12-14 09:50:53 +01:00
Bernhard Mallinger 10030e9a96 Add missing build dependencies libpython3-dev and libgdal-dev
I'm not sure why these are required now, apparently some update changed
some dependencies.
2020-12-07 10:28:54 +01:00
Just van den Broecke c790158885 #584 fix Dockerfile reinstall python3-gdal after cleanup 2020-12-02 13:04:29 +01:00
Just van den Broecke 90cc97b507 quickfix for #584, pin setuptools to v49.3.1 2020-12-02 11:48:34 +01:00
paul van genuchten f4859d6bd6 google expects plain schema-org url (#576)
* google expects plain schema-org url
https://yoast.com/json-ld/
resolves #574

* Revert "google expects plain schema-org url"

This reverts commit 7f09d4ce3cdd82a538071dec0f50191c7fa01520.

* hack to replace full path for short path, because pyld requires full, search engine expects short
2020-12-01 17:54:49 -05:00
paul van genuchten 8c699a1b4b displays the collection type in list (#579)
* displays the collection type in list

* fix key in link
improve param name
2020-11-28 16:51:41 -05:00
Tom Kralidis 1bbcb91784 Merge pull request #580 from pvgenuchten/increase-item-zoom 2020-11-28 12:40:40 -05:00
Paul 1b32ff1cdb increase max zoom for item zoom
fixes #573

*my smallest PR ever*
2020-11-28 00:01:56 +01:00
Paul Weidner 48d00d67d5 Update example vector provider plugin query arguments. (#578) 2020-11-22 22:17:14 -05:00
Tom Kralidis 21c4d36a40 add distutils to fix pyproj install 2020-11-19 18:15:08 -05:00
Tom Kralidis b69e6f939b add distutils to fix pyproj install 2020-11-19 18:10:25 -05:00
Angelos Tzotsos 9ca7f9b819 back to dev 2020-11-19 17:57:53 +02:00
Angelos Tzotsos 2228e6e7f7 update release version 2020-11-19 17:33:09 +02:00