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

Question: what is the role of the "edition" table in the "pgrouting_demo" schema? #48

Open
gioman opened this issue Feb 13, 2024 · 3 comments

Comments

@gioman
Copy link

gioman commented Feb 13, 2024

As part of the installation/configuration it is created also a "pgrouting_demo" schema, with a "edition" table in it.

This table is part of the sample projects here

https://demo.lizmap.com/lizmap/index.php/view/media/getMedia?repository=modules&project=pgrouting&path=/media/pgrouting.zip

and here

https://github.com/3liz/lizmap-pgrouting-module/tree/master/tests/lizmap/instances/pgrouting

anyway is unclear its function, as I can't see any mention in docs, and also I can't see any change in the table content when/after using lizmap/pgrouting.

Bonus question 1: what is the function of the JS file in media/js/pgrouting? is it mandatory? why its content is different here

https://demo.lizmap.com/lizmap/index.php/view/media/getMedia?repository=modules&project=pgrouting&path=/media/pgrouting.zip

and here

https://github.com/3liz/lizmap-pgrouting-module/tree/master/tests/lizmap/instances/pgrouting/media/js/pgrouting

?

Bonus question 2: what is the function of the "qgis_plugin" table also created inside the "pg_routing" schema?

@Gustry
Copy link
Member

Gustry commented Feb 13, 2024

The edition table is for dev purpose I would say, it's to show the "copy geometry" feature. In LWC core, we can "paste" the geometry. I could be for a demo, but it's very specific and hidden.
It shouldn't be presented like that I guess in the docs.

Bonus question 1

The JS in the demo ZIP is just to open the PGRouting panel, so it's easier for a demo, the page is ready with PGRouting enabled.

The JS in the tests folder is for testing purpose, not needed.

Bonus question 2:

The table qgis_plugin is used in many modules we have, for instance PgMetadata. But indeed, this can be safely removed for now from PgRoutring module because there isn't any QGIS plugin associated for now with this module.

@gioman
Copy link
Author

gioman commented Feb 13, 2024

Thanks!

@gioman gioman closed this as completed Feb 13, 2024
@Gustry
Copy link
Member

Gustry commented Feb 13, 2024

I will keep this ticket open as a reminder, not sure when.
Linked to #47 as well

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

No branches or pull requests

2 participants