lutraconsulting / qgis-discovery-plugin

Provides search / gazetteer functionality in QGIS using PostGIS-based data
http://www.lutraconsulting.co.uk/products/discovery/
GNU General Public License v2.0
15 stars 16 forks source link

Add postgresql service support #70

Closed obrix closed 4 years ago

obrix commented 4 years ago

Hello,

We are trying to integrate this plugin into one of our project that use a postgresql service file pgservice. Unfortunately the service configuration was not read from the qgis connection settings.

This pull request add the service support if provided in a qgis postgresql database connection. Also do not set host db and port if the values are empty string, it would overload correct values that could be provided in the service.

If you have a better way to handle the possible conflict between what is provided in the connection settings and what might be provided by the service I am all ears but this should provide basic service support.