Skip to content

Commit

Permalink
Merge pull request #181 from ksonda/master
Browse files Browse the repository at this point in the history
update reference feature pygeoapi contribution to reflect new CI/CD
  • Loading branch information
dblodgett-usgs authored Apr 12, 2023
2 parents 86d2043 + bd91f18 commit 418232f
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions pygeoapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,41 @@ Data hosted by the server can be found [Hydroshare](https://www.hydroshare.org/r

Four pieces of information are required for a new contribution:
1. spatial feature geometry and attributes in the [Hydroshare resource](https://www.hydroshare.org/resource/3295a17b4cc24d34bd6a5c5aaf753c50/)
1. an ADD of the URL for (1) in the [Dockerfile](Dockerfile). If you change the Hydroshare resource but not the config, please add a comment to the Dockerfile indicating the date of the last update
1. a pygeoapi resource configuration in [pygeoapi.config.yml](pygeoapi.config.yml)
1. PIDs registered with the `geoconnex.us` pid server for the features
1. a pygeoapi resource configuration in [pygeoapi.config.yml](pygeoapi.config.yml). Any time you update your pygeoapi config for a reference collection contributiom or jsut the file in the hydroshare resource, please add a comment indicating the date of the udpate to trigger an update to the reference features database. eg.

```
dams: #updated 2023-04-11
type: collection
title: Reference Dams
description: US Reference Dams
keywords:
- Dams
linked-data:
context:
- schema: https://schema.org/
name: schema:name
description: schema:description
provider:
"@id": schema:provider
"@type": schema:url
subjectOf:
"@id": schema:subjectOf
"@type": schema:url
```

Note that in the configuration, the `providers` configuration entry should specify in `table` the same string as the name of the GeoPackage in Hydroshare, minus `.gpkg`. For example, the configuration for collection ref/pws, which is `ref_pws.gpkg` in Hydroshare, would include the provider configuration block:

```
providers:
- type: feature
name: PostgreSQL
data: *provider-data
id_field: pwsid
table: ref_pws
uri_field: uri
geom_field: geom
```
3. PIDs registered with the `geoconnex.us` pid server for the features


### Spatial Features
Expand Down

0 comments on commit 418232f

Please sign in to comment.