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

create occurrence views #17

Open
andersfi opened this issue May 30, 2017 · 2 comments
Open

create occurrence views #17

andersfi opened this issue May 30, 2017 · 2 comments
Assignees

Comments

@andersfi
Copy link
Contributor

Need to create occurrence views that aggregate occurrences across events and datasets in order to display species distribution maps etc. Examples: nofa.view_occurrence_all for all species, and nofa.view_occurrence_pike for one species. It would be extremely convenient to generate views for species by looping through the species in the occurrence table in order to avoid manually updating a number of views when wanting to change some info.

@ninsbl
Copy link
Contributor

ninsbl commented Jun 2, 2017

See: https://github.com/NINAnor/invafish/blob/master/QGIS_plugin/Create_NOFAVisualisation_views.sh

Might have to be adjusted a little bit, not sure...

However, keep in mind that once tables and columns are used in a view, the possibilities to modify them will be limited (e.g. you cannot drop a column that is used in a view, without dropping the view in advance (or DROP CASCADE)....

@JakobMiksch
Copy link

There are already some views created:
image
Can we close this?

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

No branches or pull requests

4 participants