Skip to content

Commit 31fc1e7

Browse files
committed
Fix typos
1 parent db0dc50 commit 31fc1e7

20 files changed

+33
-33
lines changed

docker/default.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ resources:
342342
keywords:
343343
- Portugal
344344
- POI
345-
- Point of Interrest
345+
- Point of Interest
346346
- Madeira
347347
- Azores
348348
- OSM

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ case ${entry_cmd} in
7171
test)
7272
for test_py in $(ls tests/test_*.py)
7373
do
74-
# Skip tests requireing backend server or libs installed
74+
# Skip tests requiring backend server or libs installed
7575
case ${test_py} in
7676
tests/test_elasticsearch__provider.py)
7777
;&

docs/source/admin-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Access control
1818
--------------
1919

2020
It should be made clear that authentication and authorization is beyond the responsibility of pygeoapi. This means that
21-
if a pygeoapi user enables the Admin API, they must provide access control explicity via another service.
21+
if a pygeoapi user enables the Admin API, they must provide access control explicitly via another service.
2222

2323
pygeoapi hot reloading in gunicorn
2424
----------------------------------

docs/source/configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ The ``logging`` section provides directives for logging messages which are usefu
8383
logging:
8484
level: ERROR # the logging level (see https://docs.python.org/3/library/logging.html#logging-levels)
8585
logfile: /path/to/pygeoapi.log # the full file path to the logfile
86-
logformat: # example for miliseconds:'[%(asctime)s.%(msecs)03d] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'
87-
dateformat: # example for miliseconds:'%Y-%m-%dT%H:%M:%S'
86+
logformat: # example for milliseconds:'[%(asctime)s.%(msecs)03d] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'
87+
dateformat: # example for milliseconds:'%Y-%m-%dT%H:%M:%S'
8888
8989
.. note::
9090
If ``level`` is defined and ``logfile`` is undefined, logging messages are output to the server's ``stdout``.

docs/source/data-publishing/ogcapi-features.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ Mandatory properties
361361
- example_group_id
362362
363363
On large tables it could be useful to disallow a query on the complete dataset. For this reason it is possible to
364-
configure mandatory properties. When this is activated, the provoder throws an exception when the parameter
364+
configure mandatory properties. When this is activated, the provider throws an exception when the parameter
365365
is not in the query uri.
366366

367367
Extra properties
@@ -408,7 +408,7 @@ Custom SQL Manipulator Plugin
408408
The provider supports a SQL-Manipulator-Plugin class. With this, the SQL statement could be manipulated. This is
409409
useful e.g. for authorization at row level or manipulation of the explain plan with hints.
410410

411-
An example an more informations about that feature you can find in the test class in tests/test_oracle_provider.py.
411+
An example an more information about that feature you can find in the test class in tests/test_oracle_provider.py.
412412

413413
.. _PostgreSQL:
414414

@@ -503,7 +503,7 @@ SQLiteGPKG
503503
^^^^^^^^^^
504504

505505
.. note::
506-
Requries Spatialite installation
506+
Requires Spatialite installation
507507

508508
SQLite file:
509509

docs/source/data-publishing/stac.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Connection examples
4949
pygeometa metadata control files
5050
--------------------------------
5151

52-
pygeoapi's STAC filesystem fuctionality supports `pygeometa`_ MCF files residing
52+
pygeoapi's STAC filesystem functionality supports `pygeometa`_ MCF files residing
5353
in the same directory as data files. If an MCF file is found, it will be used
5454
as part of generating the STAC item metadata (e.g. a file named ``birds.csv``
5555
having an associated ``birds.yml`` file). If no MCF file is found, then

docs/source/language.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Translator guide
176176
Hardcoded strings in pygeoapi templates are translated using the Babel translation system.
177177

178178
By default, pygeoapi stores translation files in the `locale` directory at the root of the
179-
source code repository. This value can be overriden in the pygeoapi configuration with
179+
source code repository. This value can be overridden in the pygeoapi configuration with
180180
the `server.locale_dir` directive.
181181

182182
Translators can follow these steps to prepare their environment for translations.

docs/source/running.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ main Django application urls:
159159
160160
161161
This integration can be seen in the provided example Django project. Refer to the `Django example in the pygeoapi-examples repository`_
162-
for the integration of pygeoapi with an already exising Django application.
162+
for the integration of pygeoapi with an already existing Django application.
163163

164164

165165
.. note::

docs/source/transactions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Access control
1414
^^^^^^^^^^^^^^
1515

1616
It should be made clear that authentication and authorization is beyond the responsibility of pygeoapi. This means that
17-
if a pygeoapi user enables transactions, they must provide access control explicity via another service.
17+
if a pygeoapi user enables transactions, they must provide access control explicitly via another service.
1818

1919
.. _`OGC API - Features - Part 4: Create, Replace, Update and Delete`: https://docs.ogc.org/DRAFTS/20-002.html

pygeoapi/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def write_config(self, config):
136136
config = patch.apply(config)
137137

138138
# write pygeoapi configuration
139-
LOGGER.debug('Writing pygeoapi configutation')
139+
LOGGER.debug('Writing pygeoapi configuration')
140140
yaml_dump(config, self.PYGEOAPI_CONFIG)
141141
LOGGER.debug('Finished writing pygeoapi configuration')
142142

pygeoapi/api/itemtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def get_collection_items(
361361
HTTPStatus.BAD_REQUEST, headers, request.format,
362362
'NoApplicableCode', msg)
363363
elif len(bbox) > 0:
364-
# bbox but no bbox-crs parm: assume bbox is in default CRS
364+
# bbox but no bbox-crs param: assume bbox is in default CRS
365365
bbox_crs = DEFAULT_CRS
366366

367367
# Transform bbox to storageCRS

pygeoapi/api/processes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
726726
paths['/jobs/{jobId}/results'] = {
727727
'get': {
728728
'summary': 'Retrieve job results',
729-
'description': 'Retrive job resiults',
729+
'description': 'Retrieve job results',
730730
'tags': ['jobs'],
731731
'parameters': [
732732
name_in_path,

pygeoapi/process/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def set_job_id(self, job_id: str) -> None:
6060
To be implemented by derived classes where required.
6161
6262
:param job_id: the job_id assigned to the request by the Manager.
63-
The function shuold be called by the Manager upon
63+
The function should be called by the Manager upon
6464
assigning the job_id. The job_id is intended to be used
6565
by derived classes, e.g. to write temporary files where
6666
filenames contains the string job_id.
@@ -80,7 +80,7 @@ def execute(self, data: dict, outputs: Optional[dict] = None
8080
:param outputs: `dict` or `list` to optionally specify the subset of
8181
required outputs - defaults to all outputs.
8282
The value of any key may be an object and include the
83-
property `transmissionMode` - defauts to `value`.
83+
property `transmissionMode` - defaults to `value`.
8484
:returns: tuple of MIME type and process response
8585
(string or bytes, or dict)
8686
"""

pygeoapi/process/manager/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _execute_handler_async(self, p: BaseProcessor, job_id: str,
200200
:param requested_outputs: `dict` specify the subset of required
201201
outputs - defaults to all outputs.
202202
The value of any key may be an object and include the property
203-
`transmissionMode` - defauts to `value`.
203+
`transmissionMode` - defaults to `value`.
204204
Note: 'optional' is for backward compatibility.
205205
:param subscriber: optional `Subscriber` specifying callback URLs
206206
@@ -232,7 +232,7 @@ def _execute_handler_sync(self, p: BaseProcessor, job_id: str,
232232
:param requested_outputs: `dict` specify the subset of required
233233
outputs - defaults to all outputs.
234234
The value of any key may be an object and include the property
235-
`transmissionMode` - defauts to `value`.
235+
`transmissionMode` - defaults to `value`.
236236
Note: 'optional' is for backward compatibility.
237237
:param subscriber: optional `Subscriber` specifying callback URLs
238238
@@ -293,7 +293,7 @@ def _execute_handler_sync(self, p: BaseProcessor, job_id: str,
293293
except Exception as err:
294294
# TODO assess correct exception type and description to help users
295295
# NOTE, the /results endpoint should return the error HTTP status
296-
# for jobs that failed, ths specification says that failing jobs
296+
# for jobs that failed, the specification says that failing jobs
297297
# must still be able to be retrieved with their error message
298298
# intact, and the correct HTTP error status at the /results
299299
# endpoint, even if the /result endpoint correctly returns the
@@ -342,7 +342,7 @@ def execute_process(
342342
:param requested_outputs: `dict` optionally specify the subset of
343343
required outputs - defaults to all outputs.
344344
The value of any key may be an object and include the property
345-
`transmissionMode` - defauts to `value`.
345+
`transmissionMode` - defaults to `value`.
346346
Note: 'optional' is for backward compatibility.
347347
:param subscriber: `Subscriber` optionally specifying callback urls
348348

pygeoapi/provider/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_fields(self):
8787
8888
Example response: {'field1': 'string', 'field2': 'number'}}
8989
90-
:returns: dict of field names and their associated JSON Schema typess
90+
:returns: dict of field names and their associated JSON Schema types
9191
"""
9292

9393
raise NotImplementedError()

pygeoapi/provider/base_mvt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_tiles(self, layer=None, tileset=None,
122122
def get_html_metadata(self, dataset, server_url, layer, tileset,
123123
title, description, keywords, **kwargs):
124124
"""
125-
Gets tile metadata informations in html format
125+
Gets tile metadata information in html format
126126
127127
:param dataset: dataset name
128128
:param server_url: server base url

pygeoapi/provider/oracle.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(self, conn_dic, table, properties=[], context="query"):
127127
self.conn_dict, oracle_pool_min, oracle_pool_max
128128
)
129129
LOGGER.debug(
130-
"Initialized conneciton pool with "
130+
"Initialized connection pool with "
131131
f"{DatabaseConnection.pool.max} connections"
132132
)
133133

@@ -300,7 +300,7 @@ def _get_table_columns(self, schema, table):
300300
Returns an array with all column names and data types
301301
from Oracle table ALL_TAB_COLUMNS.
302302
Lookup for public and private synonyms.
303-
Throws ProviderGenericError when table not exist or accesable.
303+
Throws ProviderGenericError when table not exist or accessible.
304304
"""
305305

306306
sql = """
@@ -728,7 +728,7 @@ def query(
728728
LOGGER.debug(f"target_srid: {target_srid}")
729729

730730
# Build geometry column call
731-
# When a different output CRS is definded, the geometry
731+
# When a different output CRS is defined, the geometry
732732
# geometry column would be transformed.
733733
if skip_geometry:
734734
geom = ""
@@ -920,7 +920,7 @@ def get(self, identifier, crs_transform_spec=None, **kwargs):
920920
LOGGER.debug(f"target_srid: {target_srid}")
921921

922922
# Build geometry column call
923-
# When a different output CRS is definded, the geometry
923+
# When a different output CRS is defined, the geometry
924924
# geometry column would be transformed.
925925
if source_srid != target_srid:
926926
crs_dict = {"target_srid": target_srid}
@@ -1051,7 +1051,7 @@ def create(self, request_data):
10511051
if col.lower() in db.filtered_fields
10521052
]
10531053

1054-
# Flter function to get only properties who are
1054+
# Filter function to get only properties who are
10551055
# in the column list
10561056
def filter_binds(pair):
10571057
return pair[0].lower() in db.filtered_fields
@@ -1148,7 +1148,7 @@ def update(self, identifier, request_data):
11481148
if col.lower() in db.filtered_fields
11491149
]
11501150

1151-
# Flter function to get only properties who are
1151+
# Filter function to get only properties who are
11521152
# in the column list
11531153
def filter_binds(pair):
11541154
return pair[0].lower() in db.filtered_fields

pygeoapi/provider/sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __get_where_clauses(self, properties=[], bbox=[]):
109109
Generarates WHERE conditions to be implemented in query.
110110
Private method mainly associated with query method.
111111
112-
Method returns part of the SQL query, plus tupple to be used
112+
Method returns part of the SQL query, plus tuple to be used
113113
in the sqlite query method
114114
115115
:param properties: list of tuples (name, value)

pygeoapi/provider/xarray_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def gen_covjson(self, metadata, data, fields):
318318
try:
319319
for key, value in self.fields.items():
320320
cj['ranges'][key] = {
321-
'type': 'NdArray',
321+
'type': 'AndArray',
322322
'dataType': value['type'],
323323
'axisNames': [
324324
'y', 'x', self._coverage_properties['time_axis_label']
@@ -362,7 +362,7 @@ def _get_coverage_properties(self):
362362
self.time_field = time_var
363363

364364
# It would be preferable to use CF attributes to get width
365-
# resolution etc but for now a generic approach is used to asess
365+
# resolution etc but for now a generic approach is used to assess
366366
# all of the attributes based on lat lon vars
367367

368368
properties = {

tests/pygeoapi-test-config-ogr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ resources:
225225
keywords:
226226
- Portugal
227227
- POI
228-
- Point of Interrest
228+
- Point of Interest
229229
- Madeira
230230
- Azores
231231
- OSM

0 commit comments

Comments
 (0)