This commit is contained in:
Vincent Privat
2024-07-02 08:28:13 +02:00
committed by GitHub
parent db0dc5053d
commit cbab803c0d
20 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ resources:
keywords:
- Portugal
- POI
- Point of Interrest
- Point of Interest
- Madeira
- Azores
- OSM
+1 -1
View File
@@ -71,7 +71,7 @@ case ${entry_cmd} in
test)
for test_py in $(ls tests/test_*.py)
do
# Skip tests requireing backend server or libs installed
# Skip tests requiring backend server or libs installed
case ${test_py} in
tests/test_elasticsearch__provider.py)
;&
+1 -1
View File
@@ -18,7 +18,7 @@ Access control
--------------
It should be made clear that authentication and authorization is beyond the responsibility of pygeoapi. This means that
if a pygeoapi user enables the Admin API, they must provide access control explicity via another service.
if a pygeoapi user enables the Admin API, they must provide access control explicitly via another service.
pygeoapi hot reloading in gunicorn
----------------------------------
+2 -2
View File
@@ -83,8 +83,8 @@ The ``logging`` section provides directives for logging messages which are usefu
logging:
level: ERROR # the logging level (see https://docs.python.org/3/library/logging.html#logging-levels)
logfile: /path/to/pygeoapi.log # the full file path to the logfile
logformat: # example for miliseconds:'[%(asctime)s.%(msecs)03d] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'
dateformat: # example for miliseconds:'%Y-%m-%dT%H:%M:%S'
logformat: # example for milliseconds:'[%(asctime)s.%(msecs)03d] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'
dateformat: # example for milliseconds:'%Y-%m-%dT%H:%M:%S'
.. note::
If ``level`` is defined and ``logfile`` is undefined, logging messages are output to the server's ``stdout``.
@@ -361,7 +361,7 @@ Mandatory properties
- example_group_id
On large tables it could be useful to disallow a query on the complete dataset. For this reason it is possible to
configure mandatory properties. When this is activated, the provoder throws an exception when the parameter
configure mandatory properties. When this is activated, the provider throws an exception when the parameter
is not in the query uri.
Extra properties
@@ -408,7 +408,7 @@ Custom SQL Manipulator Plugin
The provider supports a SQL-Manipulator-Plugin class. With this, the SQL statement could be manipulated. This is
useful e.g. for authorization at row level or manipulation of the explain plan with hints.
An example an more informations about that feature you can find in the test class in tests/test_oracle_provider.py.
An example an more information about that feature you can find in the test class in tests/test_oracle_provider.py.
.. _PostgreSQL:
@@ -503,7 +503,7 @@ SQLiteGPKG
^^^^^^^^^^
.. note::
Requries Spatialite installation
Requires Spatialite installation
SQLite file:
+1 -1
View File
@@ -49,7 +49,7 @@ Connection examples
pygeometa metadata control files
--------------------------------
pygeoapi's STAC filesystem fuctionality supports `pygeometa`_ MCF files residing
pygeoapi's STAC filesystem functionality supports `pygeometa`_ MCF files residing
in the same directory as data files. If an MCF file is found, it will be used
as part of generating the STAC item metadata (e.g. a file named ``birds.csv``
having an associated ``birds.yml`` file). If no MCF file is found, then
+1 -1
View File
@@ -176,7 +176,7 @@ Translator guide
Hardcoded strings in pygeoapi templates are translated using the Babel translation system.
By default, pygeoapi stores translation files in the `locale` directory at the root of the
source code repository. This value can be overriden in the pygeoapi configuration with
source code repository. This value can be overridden in the pygeoapi configuration with
the `server.locale_dir` directive.
Translators can follow these steps to prepare their environment for translations.
+1 -1
View File
@@ -159,7 +159,7 @@ main Django application urls:
This integration can be seen in the provided example Django project. Refer to the `Django example in the pygeoapi-examples repository`_
for the integration of pygeoapi with an already exising Django application.
for the integration of pygeoapi with an already existing Django application.
.. note::
+1 -1
View File
@@ -14,6 +14,6 @@ Access control
^^^^^^^^^^^^^^
It should be made clear that authentication and authorization is beyond the responsibility of pygeoapi. This means that
if a pygeoapi user enables transactions, they must provide access control explicity via another service.
if a pygeoapi user enables transactions, they must provide access control explicitly via another service.
.. _`OGC API - Features - Part 4: Create, Replace, Update and Delete`: https://docs.ogc.org/DRAFTS/20-002.html
+1 -1
View File
@@ -136,7 +136,7 @@ class Admin(API):
config = patch.apply(config)
# write pygeoapi configuration
LOGGER.debug('Writing pygeoapi configutation')
LOGGER.debug('Writing pygeoapi configuration')
yaml_dump(config, self.PYGEOAPI_CONFIG)
LOGGER.debug('Finished writing pygeoapi configuration')
+1 -1
View File
@@ -361,7 +361,7 @@ def get_collection_items(
HTTPStatus.BAD_REQUEST, headers, request.format,
'NoApplicableCode', msg)
elif len(bbox) > 0:
# bbox but no bbox-crs parm: assume bbox is in default CRS
# bbox but no bbox-crs param: assume bbox is in default CRS
bbox_crs = DEFAULT_CRS
# Transform bbox to storageCRS
+1 -1
View File
@@ -726,7 +726,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
paths['/jobs/{jobId}/results'] = {
'get': {
'summary': 'Retrieve job results',
'description': 'Retrive job resiults',
'description': 'Retrieve job results',
'tags': ['jobs'],
'parameters': [
name_in_path,
+2 -2
View File
@@ -60,7 +60,7 @@ class BaseProcessor:
To be implemented by derived classes where required.
:param job_id: the job_id assigned to the request by the Manager.
The function shuold be called by the Manager upon
The function should be called by the Manager upon
assigning the job_id. The job_id is intended to be used
by derived classes, e.g. to write temporary files where
filenames contains the string job_id.
@@ -80,7 +80,7 @@ class BaseProcessor:
:param outputs: `dict` or `list` to optionally specify the subset of
required outputs - defaults to all outputs.
The value of any key may be an object and include the
property `transmissionMode` - defauts to `value`.
property `transmissionMode` - defaults to `value`.
:returns: tuple of MIME type and process response
(string or bytes, or dict)
"""
+4 -4
View File
@@ -200,7 +200,7 @@ class BaseManager:
:param requested_outputs: `dict` specify the subset of required
outputs - defaults to all outputs.
The value of any key may be an object and include the property
`transmissionMode` - defauts to `value`.
`transmissionMode` - defaults to `value`.
Note: 'optional' is for backward compatibility.
:param subscriber: optional `Subscriber` specifying callback URLs
@@ -232,7 +232,7 @@ class BaseManager:
:param requested_outputs: `dict` specify the subset of required
outputs - defaults to all outputs.
The value of any key may be an object and include the property
`transmissionMode` - defauts to `value`.
`transmissionMode` - defaults to `value`.
Note: 'optional' is for backward compatibility.
:param subscriber: optional `Subscriber` specifying callback URLs
@@ -293,7 +293,7 @@ class BaseManager:
except Exception as err:
# TODO assess correct exception type and description to help users
# NOTE, the /results endpoint should return the error HTTP status
# for jobs that failed, ths specification says that failing jobs
# for jobs that failed, the specification says that failing jobs
# must still be able to be retrieved with their error message
# intact, and the correct HTTP error status at the /results
# endpoint, even if the /result endpoint correctly returns the
@@ -342,7 +342,7 @@ class BaseManager:
:param requested_outputs: `dict` optionally specify the subset of
required outputs - defaults to all outputs.
The value of any key may be an object and include the property
`transmissionMode` - defauts to `value`.
`transmissionMode` - defaults to `value`.
Note: 'optional' is for backward compatibility.
:param subscriber: `Subscriber` optionally specifying callback urls
+1 -1
View File
@@ -87,7 +87,7 @@ class BaseProvider:
Example response: {'field1': 'string', 'field2': 'number'}}
:returns: dict of field names and their associated JSON Schema typess
:returns: dict of field names and their associated JSON Schema types
"""
raise NotImplementedError()
+1 -1
View File
@@ -122,7 +122,7 @@ class BaseMVTProvider(BaseTileProvider):
def get_html_metadata(self, dataset, server_url, layer, tileset,
title, description, keywords, **kwargs):
"""
Gets tile metadata informations in html format
Gets tile metadata information in html format
:param dataset: dataset name
:param server_url: server base url
+6 -6
View File
@@ -127,7 +127,7 @@ class DatabaseConnection:
self.conn_dict, oracle_pool_min, oracle_pool_max
)
LOGGER.debug(
"Initialized conneciton pool with "
"Initialized connection pool with "
f"{DatabaseConnection.pool.max} connections"
)
@@ -300,7 +300,7 @@ class DatabaseConnection:
Returns an array with all column names and data types
from Oracle table ALL_TAB_COLUMNS.
Lookup for public and private synonyms.
Throws ProviderGenericError when table not exist or accesable.
Throws ProviderGenericError when table not exist or accessible.
"""
sql = """
@@ -728,7 +728,7 @@ class OracleProvider(BaseProvider):
LOGGER.debug(f"target_srid: {target_srid}")
# Build geometry column call
# When a different output CRS is definded, the geometry
# When a different output CRS is defined, the geometry
# geometry column would be transformed.
if skip_geometry:
geom = ""
@@ -920,7 +920,7 @@ class OracleProvider(BaseProvider):
LOGGER.debug(f"target_srid: {target_srid}")
# Build geometry column call
# When a different output CRS is definded, the geometry
# When a different output CRS is defined, the geometry
# geometry column would be transformed.
if source_srid != target_srid:
crs_dict = {"target_srid": target_srid}
@@ -1051,7 +1051,7 @@ class OracleProvider(BaseProvider):
if col.lower() in db.filtered_fields
]
# Flter function to get only properties who are
# Filter function to get only properties who are
# in the column list
def filter_binds(pair):
return pair[0].lower() in db.filtered_fields
@@ -1148,7 +1148,7 @@ class OracleProvider(BaseProvider):
if col.lower() in db.filtered_fields
]
# Flter function to get only properties who are
# Filter function to get only properties who are
# in the column list
def filter_binds(pair):
return pair[0].lower() in db.filtered_fields
+1 -1
View File
@@ -109,7 +109,7 @@ class SQLiteGPKGProvider(BaseProvider):
Generarates WHERE conditions to be implemented in query.
Private method mainly associated with query method.
Method returns part of the SQL query, plus tupple to be used
Method returns part of the SQL query, plus tuple to be used
in the sqlite query method
:param properties: list of tuples (name, value)
+1 -1
View File
@@ -362,7 +362,7 @@ class XarrayProvider(BaseProvider):
self.time_field = time_var
# It would be preferable to use CF attributes to get width
# resolution etc but for now a generic approach is used to asess
# resolution etc but for now a generic approach is used to assess
# all of the attributes based on lat lon vars
properties = {
+1 -1
View File
@@ -225,7 +225,7 @@ resources:
keywords:
- Portugal
- POI
- Point of Interrest
- Point of Interest
- Madeira
- Azores
- OSM