diff --git a/docker/default.config.yml b/docker/default.config.yml index 2ac3eba..bc20d7b 100644 --- a/docker/default.config.yml +++ b/docker/default.config.yml @@ -342,7 +342,7 @@ resources: keywords: - Portugal - POI - - Point of Interrest + - Point of Interest - Madeira - Azores - OSM diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index b81bed8..28f0592 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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) ;& diff --git a/docs/source/admin-api.rst b/docs/source/admin-api.rst index 9a4efca..346df0a 100644 --- a/docs/source/admin-api.rst +++ b/docs/source/admin-api.rst @@ -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 ---------------------------------- diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index b11cfdd..0c81b71 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -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``. diff --git a/docs/source/data-publishing/ogcapi-features.rst b/docs/source/data-publishing/ogcapi-features.rst index 4d87ab1..a8e2c9a 100644 --- a/docs/source/data-publishing/ogcapi-features.rst +++ b/docs/source/data-publishing/ogcapi-features.rst @@ -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: diff --git a/docs/source/data-publishing/stac.rst b/docs/source/data-publishing/stac.rst index 0fad719..45cd2c2 100644 --- a/docs/source/data-publishing/stac.rst +++ b/docs/source/data-publishing/stac.rst @@ -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 diff --git a/docs/source/language.rst b/docs/source/language.rst index 3aa3f45..594f8ce 100644 --- a/docs/source/language.rst +++ b/docs/source/language.rst @@ -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. diff --git a/docs/source/running.rst b/docs/source/running.rst index 8637c35..d84cd90 100644 --- a/docs/source/running.rst +++ b/docs/source/running.rst @@ -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:: diff --git a/docs/source/transactions.rst b/docs/source/transactions.rst index ac846d0..4c63271 100644 --- a/docs/source/transactions.rst +++ b/docs/source/transactions.rst @@ -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 diff --git a/pygeoapi/admin.py b/pygeoapi/admin.py index 2154144..dee3a10 100644 --- a/pygeoapi/admin.py +++ b/pygeoapi/admin.py @@ -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') diff --git a/pygeoapi/api/itemtypes.py b/pygeoapi/api/itemtypes.py index 466583f..33cb517 100644 --- a/pygeoapi/api/itemtypes.py +++ b/pygeoapi/api/itemtypes.py @@ -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 diff --git a/pygeoapi/api/processes.py b/pygeoapi/api/processes.py index 4fbb298..8ba7599 100644 --- a/pygeoapi/api/processes.py +++ b/pygeoapi/api/processes.py @@ -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, diff --git a/pygeoapi/process/base.py b/pygeoapi/process/base.py index f225beb..87c05a3 100644 --- a/pygeoapi/process/base.py +++ b/pygeoapi/process/base.py @@ -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) """ diff --git a/pygeoapi/process/manager/base.py b/pygeoapi/process/manager/base.py index c39007d..548883b 100644 --- a/pygeoapi/process/manager/base.py +++ b/pygeoapi/process/manager/base.py @@ -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 diff --git a/pygeoapi/provider/base.py b/pygeoapi/provider/base.py index 6bdc7a2..39dcc2a 100644 --- a/pygeoapi/provider/base.py +++ b/pygeoapi/provider/base.py @@ -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() diff --git a/pygeoapi/provider/base_mvt.py b/pygeoapi/provider/base_mvt.py index 23ef01c..5851c49 100644 --- a/pygeoapi/provider/base_mvt.py +++ b/pygeoapi/provider/base_mvt.py @@ -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 diff --git a/pygeoapi/provider/oracle.py b/pygeoapi/provider/oracle.py index 640a0a9..16ce2ce 100644 --- a/pygeoapi/provider/oracle.py +++ b/pygeoapi/provider/oracle.py @@ -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 diff --git a/pygeoapi/provider/sqlite.py b/pygeoapi/provider/sqlite.py index d7ae81d..bb046ac 100644 --- a/pygeoapi/provider/sqlite.py +++ b/pygeoapi/provider/sqlite.py @@ -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) diff --git a/pygeoapi/provider/xarray_.py b/pygeoapi/provider/xarray_.py index f177be7..9a82dae 100644 --- a/pygeoapi/provider/xarray_.py +++ b/pygeoapi/provider/xarray_.py @@ -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 = { diff --git a/tests/pygeoapi-test-config-ogr.yml b/tests/pygeoapi-test-config-ogr.yml index 6eb960a..703e0a7 100644 --- a/tests/pygeoapi-test-config-ogr.yml +++ b/tests/pygeoapi-test-config-ogr.yml @@ -225,7 +225,7 @@ resources: keywords: - Portugal - POI - - Point of Interrest + - Point of Interest - Madeira - Azores - OSM