[Qgis-user] QGIS server and pg_service.conf

Carlos López PSIG carlos.lopez at psig.es
Thu Sep 6 04:03:10 PDT 2018


Hi,
You should to define environment variables to use pg_service.conf in server
too.
Of course, the service should to use tha same name.

Test without define connection to database using "service", therefore write
host/port/databse/user& password to confirm that the connection it's ok.

luck,

Best regards,

* <http://psig.es>*
*PSIG*
Implementació, gestió i formació SIG

*Carlos López Quintanilla*

www.psig.es
carlos.lopez at psig.es
+34 699.680.261

Nota legal: Este mensaje y cualquier archivo adjunto está destinado
únicamente a la
persona a quien se dirige y es confidencial. Si usted ha recibido este
mensaje por
error, por favor, comuníqueselo al remitente y bórrelo inmediatamente. La
utilización ,
revelación y/o reproducción del mensaje puede constituir un delito.

Protección de Datos: Le informamos que sus datos de contacto electrónico se
hallan
incorporados a un fichero titularidad de CARLOS LÓPEZ QUINTANILLA, al
objeto de
envío de información, respuesta a consultas y contactos genéricos.
Puede ejercer los derechos de acceso, rectificación, cancelación y
oposición que
establece la LOPD en cualquier momento, mediante escrito, acompañado de
copia de
documento oficial que le identifique, dirigido a CARLOS LÓPEZ QUINTANILLA
CL. P
arellada, 8 E2 de Corbera de Llobregat, 08757-Barcelona.

También podrá oponerse a nuestros envíos de comunicaciones comerciales
(Art.21.2
de la LSSI) a través de la siguiente dirección de correo electrónico:
admin at psig.es



El jue., 6 sept. 2018 a las 12:37, Thomas Schüttenberg (<thomas at qgis.de>)
escribió:

> Hi there!
>
> I wonder if/how the QGIS server (2.18) is able to use PostgeSQL service
> connection files [1].
>
> I have a project file with postgis layers, that are connected via the
> service parameter (instead of hostname/port...). These are defined in
> pg_service.conf and work.
>
> When I serve this project with QGIS server 2.18 as wms, connecting the wms
> (in QGIS desktop) works, but it does not contain any layers.
>
> A WMS made from the same project and datasource but with full database
> credentials works als usual.
>
> Thanks for any hint, maybe I just miss something.
>
> Cheers
> Thomas
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180906/73c2fae8/attachment.html>


More information about the Qgis-user mailing list