timvt icon indicating copy to clipboard operation
timvt copied to clipboard

Need Documentation on how to read other schema

Open devdattaT opened this issue 2 years ago • 3 comments

I tend to have my geospatial data in tables which are not in public schemas. Looking at the code, it appears that there should be a way of proving schema names to search in, but there is no Documentation on how to do this.

It would be helpful to new users, if this information is recorded in the Readme or Docs.

devdattaT avatar Dec 05 '22 07:12 devdattaT

exactly you can set DB_SCHEMA='["public","geotables"]' environment to select the schemas you want to use

https://github.com/developmentseed/timvt/blob/master/timvt/settings.py#L126

vincentsarago avatar Dec 05 '22 09:12 vincentsarago

Should I create a PR adding this information to the Readme? I can do it in the next few days.

Is there any specific place in Readme, you would like me to add this information ?

devdattaT avatar Dec 05 '22 10:12 devdattaT

@devdattaT that would be great, I think we can create a configuration page in the documentation (which can then be linked in the readme`

  • in /docs/src add a configuration.md
  • in https://github.com/developmentseed/timvt/blob/master/docs/mkdocs.yml#L20-L21 add Configuration: configuration.md

in the configuration.md we could have multiple sections:

  • API settings https://github.com/developmentseed/timvt/blob/master/timvt/settings.py#L45-L63
  • DB settings https://github.com/developmentseed/timvt/blob/master/timvt/settings.py#L102-L127
  • Table settings https://github.com/developmentseed/timvt/blob/master/timvt/settings.py#L22-L42

Feel free to start the PR and we can iterate 🙏

vincentsarago avatar Dec 05 '22 10:12 vincentsarago