Coder Social home page Coder Social logo

geopython / pygeoapi-examples Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 3.0 169 KB

Example pygeoapi deployment patterns and configurations

Home Page: https://pygeoapi.io

License: MIT License

Dockerfile 28.09% Shell 56.56% Python 15.35%
api data geospatial ogc ogc-api osgeo pygeoapi

pygeoapi-examples's Introduction

pygeoapi-examples

Example pygeoapi deployment patterns and configurations

pygeoapi-examples's People

Contributors

alpha-beta-soup avatar carlospatinos avatar doublebyte1 avatar francbartoli avatar giphahne avatar gooseops avatar justb4 avatar kalxas avatar kilimannejaro avatar krishnaglodha avatar pascallike avatar pvgenuchten avatar sebzz2k2 avatar shivathapaa avatar tomkralidis avatar webb-ben avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pygeoapi-examples's Issues

On localhost landing page, links should go to correct port

Description
The ES example's localhost landing page links to subpages with the wrong port when the port set in the docker-compose.yml is different from the port in the pygeoapi docker.config.yml.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Set the port in https://github.com/geopython/pygeoapi-examples/blob/main/docker/elastic/docker-compose.yml#L44 to something other than 5000 (I was using 5001).
  2. Run docker-compose up from the elastic directory.
  3. Click on any link when opening localhost:5001 in the browser.

Expected behavior
I think the port should change across all files when set in one top level variable file.

Screenshots/Tracebacks
If applicable, add screenshots to help explain your problem.

Environment

  • OS: Mac
  • Python version: Python 3.12.1
  • pygeoapi version: geopython/pygeoapi:latest
  • pygeoapi-examples version: latest

Additional context
Add any other context about the problem here.

Elastic Docker example should only contain Elastic examples

From #8:

Description
In the elastic docker example, pygeoapi is configured to serve 4 datasets, but only 1 of them is actually using elastic as a backend provider.

Steps to Reproduce
Start the docker-compose file and navigate to the collections page. You will see 4 datasets there.

272300502-5dfdf86b-2b7a-47b4-9d9f-402822c85723

These datasets use different providers: CSV, GeoJSON, SQLiteGPKG. Only one of them uses elastic.

Expected behavior

In this example, we should publish only the dataset that is served using the elastic provider:

272300155-98889862-26a3-4421-9760-9d7c3a6cd263

In order to achieve this, you can edit the pygeoapi configuration file to remove all the datasets that are not published using the elastic provider.

Remove datasets which are not served with elastic, from the elastic docker example

Description
In the elastic docker example, pygeoapi is configured to serve 4 datasets, but only 1 of them is actually using elastic as a backend provider.

Steps to Reproduce
Start the docker-compose file and navigate to the collections page. You will see 4 datasets there.

Screenshot 2023-10-03 at 15 37 50

These datasets use different providers: CSV, GeoJSON, SQLiteGPKG. Only one of them uses elastic.

Expected behavior

In this example, we should publish only the dataset that is served using the elastic provider:

Screenshot 2023-10-03 at 15 36 43

In order to achieve this, you can edit the pygeoapi configuration file to remove all the datasets that are not published using the elastic provider.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.