Files
pygeoapi/tests/data
Mathieu Tachon 1a1d6362c1 fix(automap): fixes naming conflicts for PostgreSQLProvider (#1184)
* fix(automap): fix naming conflicts for PostgreSQLProvider

Automaping classes and relationships from database schema throws an error if a
column name is the same as a relationship name (see
https://docs-sqlalchemy.readthedocs.io/ko/latest/orm/extensions/automap.html#handling-simple-naming-conflicts).

* renaming function name_for_scalar_relationship -> _name_for_scalar_relationship

* test: test that PostgreSQL provider can handle naming conflicts

Re-use data file from https://github.com/geopython/pygeoapi/pull/1185, and make
to new and empty tables that create naming conflicts when queried.

* Change test function post_collection_items -> get_collection_items

* fix path to table
2023-03-31 13:05:31 +02:00
..
2020-01-02 11:22:27 -05:00

Test Data

This directory provides test data to demonstrate functionality.

Sources

ne_110m_lakes.geojson and tiles/ne_110m_lakes

ne_110m_admin_0_countries.sqlite

ne_110m_populated_places_simple.geojson

obs.csv

station_list.csv

poi_portugal.gpkg

hotosm_bdi_waterways.sql.gz

  • source: OpenStreetMap - Humanitarian OpenStreetMap Team (HOT)
  • URL: hotosm_bdi_waterways
  • Waterways of Burundi
  • Date of dataset: Sep 01, 2018
  • Location: Burundi, Africa

CMC_glb_*.grib2

CMIP5_rcp8.5_annual_abs_latlon1x1_PCP_pctl25_P1Y.nc

coads_sst.nc

analysed_sst.nc

open.canada.ca/sample-records.tinydb

dutch_addresses_*

items.geojson