Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pygeoapi/provider/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,20 +274,20 @@
LOGGER.debug("Table: " + table)

if self.context == "query":
#GA Customisation - Multiple columns are returned as we are populating multiple columns in the schema

Check failure on line 277 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L277

[E265] block comment should start with

Check failure on line 277 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L277

[E501] line too long

type_columns = dict(self._get_table_columns(schema, table)[0])
comment_columns = dict(self._get_table_columns(schema, table)[1])
mandatory_columns = dict(self._get_table_columns(schema, table)[2])

#End GA Customisation

Check failure on line 283 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L283

[E265] block comment should start with

# Populate dictionary for columns with column type
# NOTE: we want all columns available here because they are
# used for filtering in the where clause, not only
# the ones that are returned to the client.

#GA Custimisation - Fields now grabs all the columns produced from the altered get_table_columns function

Check failure on line 290 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L290

[E265] block comment should start with

Check failure on line 290 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L290

[E501] line too long
for k, v in type_columns.items():
comment_value = comment_columns[k]
mandatory_value = mandatory_columns[k]
Expand All @@ -296,7 +296,7 @@
"comments": comment_value,
"mandatory": mandatory_value
}
#End GA Customisation

Check failure on line 299 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L299

[E265] block comment should start with

filtered_columns = set(self.fields)
if self.properties:
Expand Down Expand Up @@ -386,7 +386,7 @@
schema = result[0]
table = result[1]

#GA Customisation - Add multiple queries for each column required

Check failure on line 389 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L389

[E265] block comment should start with

# Get table column names and types, excluding geometry
query_type_cols = """
Expand All @@ -411,26 +411,26 @@

query_mandatory_cols = """
SELECT column_name, mandatory
FROM PUB_DATA.PIDUSER_VIEW_SCHEMA_METADATA

Check failure on line 414 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L414

[W291] trailing whitespace
WHERE table_name = UPPER(:table_name)
AND owner = UPPER(:owner)
AND data_type != 'SDO_GEOMETRY'
"""

Check failure on line 418 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L418

[W291] trailing whitespace
with self.conn.cursor() as cur:
#type query

Check failure on line 420 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L420

[E265] block comment should start with
cur.execute(query_type_cols, {"table_name": table, "owner": schema})

Check failure on line 421 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L421

[E501] line too long
type_result = cur.fetchall()
#comment query

Check failure on line 423 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L423

[E265] block comment should start with
cur.execute(query_comment_cols, {"table_name": table, "owner": schema})

Check failure on line 424 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L424

[E501] line too long
comment_result = cur.fetchall()
#mandatory query

Check failure on line 426 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L426

[E265] block comment should start with
cur.execute(query_mandatory_cols, {"table_name": table, "owner": schema})

Check failure on line 427 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L427

[E501] line too long
mandatory_result = cur.fetchall()

return type_result, comment_result, mandatory_result
#End GA Customisation

Check failure on line 431 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L431

[E265] block comment should start with

class OracleProvider(BaseProvider):

Check failure on line 433 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L433

[E302] expected 2 blank lines
def __init__(self, provider_def):
"""
OracleProvider Class constructor
Expand Down Expand Up @@ -938,6 +938,7 @@

:returns: feature id
"""
#GA Customisation - Correction to the SQL logic for retrieving the previous record (DAT-1039)

Check failure on line 941 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L941

[E265] block comment should start with

Check failure on line 941 in pygeoapi/provider/oracle.py

View workflow job for this annotation

GitHub Actions / flake8_py3

pygeoapi/provider/oracle.py#L941

[E501] line too long
sql = f"SELECT * \
FROM ( \
SELECT {self.id_field} AS id \
Expand Down
2 changes: 2 additions & 0 deletions pygeoapi/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<img src="{{ config['server']['url'] }}/static/img/ga_logo_inline.png"
title="{{ config['metadata']['identification']['title'] }}" style="height:60px;vertical-align: middle;" /></a>
<ul class="nav nav-pills">
{#GA Customisation - Remove Email #}
<!--
<li class="nav-item">
<a href="mailto:{{ config['metadata']['contact']['email'] }}" class="nav-link" aria-current="page">Contact</a>
Expand Down Expand Up @@ -99,6 +100,7 @@
</div>
</div>
</main>
{#GA Customisation - Custom Footer #}
<footer style="background:linear-gradient(#082e41, #00718b);color: white; margin-top: auto;display: flex;flex-direction: column;width: 100%;vertical-align: middle;">
<div id="footer-bottom" style="display: flex;flex-direction: column;gap: 16px;width: 100%;max-width: 990px;margin: 0 auto 20px auto;padding: 16px 12px;" >
<div id="footer-bottom-links" style="display: flex; flex-direction: row; gap: 12px;" >
Expand Down
2 changes: 2 additions & 0 deletions pygeoapi/templates/collections/items/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ <h1>{% for l in data['links'] if l.rel == 'collection' %} {{ l['title'] }} {% en
layer.bindPopup(html);
}
});
{# GA Customisation - disableClusteringAtZoom: 9 parameter removed from L.markerClusterGroup. This is to fix issues with overlapping geometric points. (DAT-1053) #}

{% if data['features'][0]['geometry']['type'] == 'Point' %}
var markers = L.markerClusterGroup({
chunkedLoading: true,
Expand Down
1 change: 1 addition & 0 deletions pygeoapi/templates/collections/items/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ <h1>{{ data['id'] }}</h1>

{% block extrafoot %}
<script>
{#GA customisation - coordinates on L.map default to australia instead of Canada #}
var map = L.map('items-map').setView([{{ -25 }}, {{ 135 }}], 3.25);
map.addLayer(new L.TileLayer(
'{{ config['server']['map']['url'] }}', {
Expand Down
1 change: 1 addition & 0 deletions pygeoapi/templates/collections/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/ <a href="{{ data['dataset_path'] }}/schema">{% trans %}Schema{% endtrans %}</a>
{% endblock %}
{% block body %}
{#GA Customisation - Columns and data[properties] altered for the custom schema implementation #}
<section id="collection-schema">
<h1>{{ data['title'] }}</h1>
<p>{{ data['description'] }}</p>
Expand Down
Loading