Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing QGIS projects stored in a Postgres database #5

Closed
JakobMiksch opened this issue Mar 1, 2024 · 2 comments · Fixed by #15
Closed

Accessing QGIS projects stored in a Postgres database #5

JakobMiksch opened this issue Mar 1, 2024 · 2 comments · Fixed by #15

Comments

@JakobMiksch
Copy link
Contributor

QGIS Projects are often stored in a PostGIS database. That's why it would be great if QSA could access them as well.
a possible config file could look like:

qgisserver:
    url: "http://qgisserver/ogc/"
    projects: "postgresql://username:password@host:port/dbname"  # PostgresSQL connection string

The table where the QGIS projects live must be called qgis_projects and can exist in multiple schemas. This means to reference a QGIS project one must provide the name of the project and also its schema.

The current way to call a project would not work anymore:

  • current way to call a project: [GET] /api/projects/<project_name>/layers
  • possible ways for project in different Postgres schemas:
    • via query param: [GET] /api/projects/<project_name>/layers?schema=<schema_name> (default should be public)
    • add a new param in the URL: [GET] /api/<schema_name>/projects/<project_name>/layers but this would interfere with the current way of the API ...
@pblottiere
Copy link
Owner

Hello @JakobMiksch,

FYI this feature has been funded and is currently in development.

@JakobMiksch
Copy link
Contributor Author

Great, I am ready to test if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants