Skip to content

Commit

Permalink
- added support for reading data from an S3 bucket with IAM
Browse files Browse the repository at this point in the history
  • Loading branch information
doublebyte1 committed Jul 18, 2022
1 parent daae0ac commit 25fdbbe
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ services:
container_name: pygeoapi_es
entrypoint:
- /es-entrypoint.sh
environment:
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
env_file:
- .env # path to your .env file
volumes:
- ./pygeoapi/docker.config.local.yml:/pygeoapi/local.config.yml
- ./pygeoapi/es-entrypoint.sh:/es-entrypoint.sh
Expand Down Expand Up @@ -137,7 +142,7 @@ services:
expose:
- 8080
environment:
DB_BACKEND: POSTGRES
DB_BACKEND: POSTGRESser/msu

This comment has been minimized.

Copy link
@PascalLike

PascalLike Jul 20, 2022

Member

Small typo

HOST: postgis
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB}
Expand Down
33 changes: 33 additions & 0 deletions pygeoapi/docker.config.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,36 @@ resources:
id_field: fid
time_field: datetime

sawcer:
type: collection
title: Shops and Products
description: SEARCH & FIND & SHARE where to get ingredients in local shops
keywords:
- cases
links:
- type: text/html
rel: canonical
title: information
href: https://www.sawcer.com/
hreflang: en-US
extents:
spatial:
bbox: [-180, -90, 180, 90]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: 2011-11-11
end: null # or empty
providers:
- type: feature
name: OGR
data:
source_type: GeoJSON
# TODO: edit this to read data from a bucket /vsis3/emotional-cities/data/[BUCKET NAME]/[FILE NAME]
source: /vsis3/emotional-cities/data/utartu/shops.geojson
gdal_ogr_options:
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
#AWS_SESSION_TOKEN:
id_field: field_1
layer: shops

2 changes: 2 additions & 0 deletions pygeoapi/docker.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,5 @@ resources:
data: http://elastic_search:9200/masked_metadata
id_field: fid
time_field: datetime


0 comments on commit 25fdbbe

Please sign in to comment.