aistairc / pygeoapi-mf-api

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
1 stars 1 forks source link

Table creation from the program #4

Open ogi-ts-shimizu opened 6 days ago

ogi-ts-shimizu commented 6 days ago

Is your feature request related to a problem? Please describe. The sql files were stored in the following folder

main yml

Since these SQL files were only called within main.yml, I'm wondering if mf-api requires a similar process. Currently, it's unclear how to auto create tables from program, so the documentation instructs users to create them by executing commands. table create

You mentioned that I should refer to “records” in the web conference, I did not know specifically which part of the process.

Describe alternatives you've considered Could you please provide instructions on the process and necessary modifications for the relevant parts? I will then implement the changes accordingly.

TaehoonK commented 1 day ago

Looking at the code in pygeoapi, there are two ways to create a table. 1) by specifying it in config.yaml 2) Using a backup file in the DB (but only for testing)

However, I believe that method 1) only works when creating a single table. We need to create multiple tables in our case, so we will have to use the SQL file like 2) for now.

I've asked Tom, the project's maintainer, about this. If I get an answer, I'll share it with you.