Skip to content

Commit

Permalink
Fix typos (geopython#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
vprivat-ads authored Jul 2, 2024
1 parent db0dc50 commit cbab803
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion docker/default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ resources:
keywords:
- Portugal
- POI
- Point of Interrest
- Point of Interest
- Madeira
- Azores
- OSM
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;&
Expand Down
2 changes: 1 addition & 1 deletion docs/source/admin-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/source/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/data-publishing/ogcapi-features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -503,7 +503,7 @@ SQLiteGPKG
^^^^^^^^^^

.. note::
Requries Spatialite installation
Requires Spatialite installation

SQLite file:

Expand Down
2 changes: 1 addition & 1 deletion docs/source/data-publishing/stac.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/source/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/transactions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pygeoapi/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def write_config(self, config):
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')

Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/api/itemtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/api/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pygeoapi/process/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def set_job_id(self, job_id: str) -> None:
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.
Expand All @@ -80,7 +80,7 @@ def execute(self, data: dict, outputs: Optional[dict] = None
: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)
"""
Expand Down
8 changes: 4 additions & 4 deletions pygeoapi/process/manager/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _execute_handler_async(self, p: BaseProcessor, job_id: str,
: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
Expand Down Expand Up @@ -232,7 +232,7 @@ def _execute_handler_sync(self, p: BaseProcessor, job_id: str,
: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
Expand Down Expand Up @@ -293,7 +293,7 @@ def _execute_handler_sync(self, p: BaseProcessor, job_id: str,
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
Expand Down Expand Up @@ -342,7 +342,7 @@ def execute_process(
: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
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/provider/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_fields(self):
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()
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/provider/base_mvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_tiles(self, layer=None, tileset=None,
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
Expand Down
12 changes: 6 additions & 6 deletions pygeoapi/provider/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(self, conn_dic, table, properties=[], context="query"):
self.conn_dict, oracle_pool_min, oracle_pool_max
)
LOGGER.debug(
"Initialized conneciton pool with "
"Initialized connection pool with "
f"{DatabaseConnection.pool.max} connections"
)

Expand Down Expand Up @@ -300,7 +300,7 @@ def _get_table_columns(self, schema, table):
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 = """
Expand Down Expand Up @@ -728,7 +728,7 @@ def query(
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 = ""
Expand Down Expand Up @@ -920,7 +920,7 @@ def get(self, identifier, crs_transform_spec=None, **kwargs):
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}
Expand Down Expand Up @@ -1051,7 +1051,7 @@ def create(self, request_data):
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
Expand Down Expand Up @@ -1148,7 +1148,7 @@ def update(self, identifier, request_data):
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
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/provider/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __get_where_clauses(self, properties=[], bbox=[]):
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)
Expand Down
2 changes: 1 addition & 1 deletion pygeoapi/provider/xarray_.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def _get_coverage_properties(self):
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 = {
Expand Down
2 changes: 1 addition & 1 deletion tests/pygeoapi-test-config-ogr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ resources:
keywords:
- Portugal
- POI
- Point of Interrest
- Point of Interest
- Madeira
- Azores
- OSM
Expand Down

0 comments on commit cbab803

Please sign in to comment.