Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-11-07 Thread Jakob Miksch via QGIS-User
Meanwhile this npm package also supports WFS 1.0.0 and WFS 1.1.0

https://github.com/GastonZalba/ol-wfs-capabilities


Gesendet von Outlook für iOS<https://aka.ms/o0ukef>
Jakob Miksch
Consultant

+49 170 9036956
siticom.online




Von: QGIS-User  im Auftrag von Jakob Miksch 
via QGIS-User 
Gesendet: Tuesday, October 31, 2023 12:07:09 PM
An: Aguilar Bolivar, Rosa (UT-ITC) ; Jorge Gustavo Rocha 
; qgis-user@lists.osgeo.org 
Betreff: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript


SECURITY WARNING: This email is from an external source - be careful of 
attachments and links. Please report suspicious emails to s...@siticom.de




Thanks for the hints. I will try those!



Jakob Miksch
Consultant

+49 170 9036956
siticom.online



From: QGIS-User  On Behalf Of Aguilar 
Bolivar, Rosa (UT-ITC) via QGIS-User
Sent: Tuesday, October 31, 2023 6:16 AM
To: Jorge Gustavo Rocha ; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript






SECURITY WARNING: This email is from an external source - be careful of 
attachments and links. Please report suspicious emails to 
s...@siticom.de<mailto:s...@siticom.de>




Hi,

I have used a simple DOMParser

const xmlParser = new DOMParser();

const xmlText = xmlParser.parseFromString(XmlCapText, 'text/xml');



Cheers,



Rosa

-

Dr. Rosa Aguilar

University of Twente

Faculty of Geoinformation Science and Earth Observation

Connect with me on 
LinkedIn<https://www.linkedin.com/in/rosamaguilar/?locale=en_US>

https://rosaguilar.github.io<https://rosaguilar.github.io/>

-

The essential is invisible to the eye. Saint-Exupéry



From: QGIS-User 
mailto:qgis-user-boun...@lists.osgeo.org>> 
On Behalf Of Jorge Gustavo Rocha via QGIS-User
Sent: Monday, October 30, 2023 8:36 PM
To: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript



Hi Jakob,

You can try jsonix. I use something like:

var Jsonix = require('jsonix').Jsonix;
var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_0_0 = require('ogc-schemas').OWS_1_0_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var WFS_1_0_0 = require('ogc-schemas').WFS_1_0_0;
var WFS_1_1_0 = require('ogc-schemas').WFS_1_1_0;
var WFS_2_0 = require('ogc-schemas').WFS_2_0;
var Filter_1_0_0 = require('ogc-schemas').Filter_1_0_0;
var Filter_1_1_0 = require('ogc-schemas').Filter_1_1_0;
var Filter_2_0 = require('ogc-schemas').Filter_2_0;
var GML_1_0_0 = require('ogc-schemas').GML_1_0_0;
var GML_2_1_2 = require('ogc-schemas').GML_2_1_2;
var GML_3_1_1 = require('ogc-schemas').GML_3_1_1;
var GML_3_2_0 = require('ogc-schemas').GML_3_2_0;
var GML_3_2_1 = require('ogc-schemas').GML_3_2_1;
var SMIL_2_0 = require('ogc-schemas').SMIL_2_0;
var SMIL_2_0_Language = require('ogc-schemas').SMIL_2_0_Language;
var CSW_2_0_2 = require('ogc-schemas').CSW_2_0_2;
var DC_1_1 = require('ogc-schemas').DC_1_1;
var DCT = require('ogc-schemas').DCT;
var XMLSchema = require('./mappings/XMLSchema').XMLSchema;

var context = new Jsonix.Context([
  XLink_1_0,
  OWS_1_0_0,
  OWS_1_1_0,
  WFS_1_0_0,
  WFS_1_1_0,
  WFS_2_0,
  Filter_1_0_0,
  Filter_1_1_0,
  Filter_2_0,
  GML_1_0_0,
  GML_2_1_2,
  GML_3_1_1,
  GML_3_2_0,
  GML_3_2_1,
  SMIL_2_0,
  SMIL_2_0_Language,
  CSW_2_0_2,
  DC_1_1,
  DCT,
  XMLSchema
]);
var unmarshaller = context.createUnmarshaller();

Later, you can transform WFS response to JSON, like:

const response = responseBuffer.toString('utf8');
var result = unmarshaller.unmarshalString(response);

Not so easy, but it works.

Regards,

Jorge Gustavo

On 30/10/23 14:11, Jakob Miksch via QGIS-User wrote:

Dear QGIS Server people,



I have a QGIS Server running. I would like to access the WFS Capabilities with 
JavaScript, more specifically I would like to know which WFS layers are 
published by QGIS Server. Unfortunately, QGIS Server only supports WFS 1.0.0 
and 1.1.0. But the only parser for WFS capabilities I have found only support 
WFS 2.0.0 ( https://github.com/GastonZalba/ol-wfs-capabilities ).



Does anyone have a hint how to parse the WFS Capabilities from QGIS Server with 
JavaScript?

best regards,
Jakob




 [cid:image001.png@01DA0BF2.C55B0A00]


Jakob Miksch
Consultant

+49 170 9036956
siticom.online



siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589






___

QGIS-User mailing list

QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>

List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: https://

Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-31 Thread Jakob Miksch via QGIS-User
Thanks for the hints. I will try those!

Jakob Miksch
Consultant

+49 170 9036956
siticom.online


From: QGIS-User  On Behalf Of Aguilar 
Bolivar, Rosa (UT-ITC) via QGIS-User
Sent: Tuesday, October 31, 2023 6:16 AM
To: Jorge Gustavo Rocha ; qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript



SECURITY WARNING: This email is from an external source - be careful of 
attachments and links. Please report suspicious emails to 
s...@siticom.de<mailto:s...@siticom.de>



Hi,
I have used a simple DOMParser
const xmlParser = new DOMParser();
const xmlText = xmlParser.parseFromString(XmlCapText, 'text/xml');

Cheers,

Rosa
-
Dr. Rosa Aguilar
University of Twente
Faculty of Geoinformation Science and Earth Observation
Connect with me on 
LinkedIn<https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
https://rosaguilar.github.io<https://rosaguilar.github.io/>
-
The essential is invisible to the eye. Saint-Exupéry

From: QGIS-User 
mailto:qgis-user-boun...@lists.osgeo.org>> 
On Behalf Of Jorge Gustavo Rocha via QGIS-User
Sent: Monday, October 30, 2023 8:36 PM
To: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript


Hi Jakob,

You can try jsonix. I use something like:

var Jsonix = require('jsonix').Jsonix;
var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_0_0 = require('ogc-schemas').OWS_1_0_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var WFS_1_0_0 = require('ogc-schemas').WFS_1_0_0;
var WFS_1_1_0 = require('ogc-schemas').WFS_1_1_0;
var WFS_2_0 = require('ogc-schemas').WFS_2_0;
var Filter_1_0_0 = require('ogc-schemas').Filter_1_0_0;
var Filter_1_1_0 = require('ogc-schemas').Filter_1_1_0;
var Filter_2_0 = require('ogc-schemas').Filter_2_0;
var GML_1_0_0 = require('ogc-schemas').GML_1_0_0;
var GML_2_1_2 = require('ogc-schemas').GML_2_1_2;
var GML_3_1_1 = require('ogc-schemas').GML_3_1_1;
var GML_3_2_0 = require('ogc-schemas').GML_3_2_0;
var GML_3_2_1 = require('ogc-schemas').GML_3_2_1;
var SMIL_2_0 = require('ogc-schemas').SMIL_2_0;
var SMIL_2_0_Language = require('ogc-schemas').SMIL_2_0_Language;
var CSW_2_0_2 = require('ogc-schemas').CSW_2_0_2;
var DC_1_1 = require('ogc-schemas').DC_1_1;
var DCT = require('ogc-schemas').DCT;
var XMLSchema = require('./mappings/XMLSchema').XMLSchema;

var context = new Jsonix.Context([
  XLink_1_0,
  OWS_1_0_0,
  OWS_1_1_0,
  WFS_1_0_0,
  WFS_1_1_0,
  WFS_2_0,
  Filter_1_0_0,
  Filter_1_1_0,
  Filter_2_0,
  GML_1_0_0,
  GML_2_1_2,
  GML_3_1_1,
  GML_3_2_0,
  GML_3_2_1,
  SMIL_2_0,
  SMIL_2_0_Language,
  CSW_2_0_2,
  DC_1_1,
  DCT,
  XMLSchema
]);
var unmarshaller = context.createUnmarshaller();

Later, you can transform WFS response to JSON, like:

const response = responseBuffer.toString('utf8');
var result = unmarshaller.unmarshalString(response);

Not so easy, but it works.

Regards,

Jorge Gustavo
On 30/10/23 14:11, Jakob Miksch via QGIS-User wrote:
Dear QGIS Server people,

I have a QGIS Server running. I would like to access the WFS Capabilities with 
JavaScript, more specifically I would like to know which WFS layers are 
published by QGIS Server. Unfortunately, QGIS Server only supports WFS 1.0.0 
and 1.1.0. But the only parser for WFS capabilities I have found only support 
WFS 2.0.0 ( https://github.com/GastonZalba/ol-wfs-capabilities ).

Does anyone have a hint how to parse the WFS Capabilities from QGIS Server with 
JavaScript?

best regards,
Jakob


 [cid:image001.png@01DA0BF2.C55B0A00]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online


siticom GmbH * Werner-von-Siemens-Straße 2-6 * 76646 Bruchsal * Deutschland
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589





___

QGIS-User mailing list

QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>

List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-31 Thread Jakob Miksch via QGIS-User
Good idea, but I cannot use OAF in my setup, because of this Issue: 
https://github.com/qgis/QGIS/issues/53367

Jakob Miksch
Consultant

+49 170 9036956
siticom.online


From: Alessandro Pasotti 
Sent: Tuesday, October 31, 2023 7:45 AM
To: Jakob Miksch 
Cc: qgis-user 
Subject: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript



SECURITY WARNING: This email is from an external source - be careful of 
attachments and links. Please report suspicious emails to 
s...@siticom.de<mailto:s...@siticom.de>



Why don't try OAPIF (aka WFS 3)? You get JSON directly.

Il lun 30 ott 2023, 15:13 Jakob Miksch via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> ha scritto:
Dear QGIS Server people,

I have a QGIS Server running. I would like to access the WFS Capabilities with 
JavaScript, more specifically I would like to know which WFS layers are 
published by QGIS Server. Unfortunately, QGIS Server only supports WFS 1.0.0 
and 1.1.0. But the only parser for WFS capabilities I have found only support 
WFS 2.0.0 ( https://github.com/GastonZalba/ol-wfs-capabilities ).

Does anyone have a hint how to parse the WFS Capabilities from QGIS Server with 
JavaScript?

best regards,
Jakob


 [cid:image001.png@01DA0BF2.66E53720]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online


siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589



___
QGIS-User mailing list
QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-31 Thread Alessandro Pasotti via QGIS-User
Why don't try OAPIF (aka WFS 3)? You get JSON directly.

Il lun 30 ott 2023, 15:13 Jakob Miksch via QGIS-User <
qgis-user@lists.osgeo.org> ha scritto:

> Dear QGIS Server people,
>
>
>
> I have a QGIS Server running. I would like to access the WFS Capabilities
> with JavaScript, more specifically I would like to know which WFS layers
> are published by QGIS Server. Unfortunately, QGIS Server only supports WFS
> 1.0.0 and 1.1.0. But the only parser for WFS capabilities I have found only
> support WFS 2.0.0 ( https://github.com/GastonZalba/ol-wfs-capabilities ).
>
>
>
>
> Does anyone have a hint how to parse the WFS Capabilities from QGIS Server
> with JavaScript?
>
> best regards,
> Jakob
>
>
>
>
>
>
> Jakob Miksch
> Consultant
>
> +49 170 9036956
> siticom.online
>
>
>
> siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland
> Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
> Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
> Umsatzsteuer-ID Nr.: DE 197 925 589
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-30 Thread Aguilar Bolivar, Rosa (UT-ITC) via QGIS-User
Hi,
I have used a simple DOMParser
const xmlParser = new DOMParser();
const xmlText = xmlParser.parseFromString(XmlCapText, 'text/xml');

Cheers,

Rosa
-
Dr. Rosa Aguilar
University of Twente
Faculty of Geoinformation Science and Earth Observation
Connect with me on 
LinkedIn<https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
https://rosaguilar.github.io<https://rosaguilar.github.io/>
-
The essential is invisible to the eye. Saint-Exupéry

From: QGIS-User  On Behalf Of Jorge Gustavo 
Rocha via QGIS-User
Sent: Monday, October 30, 2023 8:36 PM
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript


Hi Jakob,

You can try jsonix. I use something like:

var Jsonix = require('jsonix').Jsonix;
var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_0_0 = require('ogc-schemas').OWS_1_0_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var WFS_1_0_0 = require('ogc-schemas').WFS_1_0_0;
var WFS_1_1_0 = require('ogc-schemas').WFS_1_1_0;
var WFS_2_0 = require('ogc-schemas').WFS_2_0;
var Filter_1_0_0 = require('ogc-schemas').Filter_1_0_0;
var Filter_1_1_0 = require('ogc-schemas').Filter_1_1_0;
var Filter_2_0 = require('ogc-schemas').Filter_2_0;
var GML_1_0_0 = require('ogc-schemas').GML_1_0_0;
var GML_2_1_2 = require('ogc-schemas').GML_2_1_2;
var GML_3_1_1 = require('ogc-schemas').GML_3_1_1;
var GML_3_2_0 = require('ogc-schemas').GML_3_2_0;
var GML_3_2_1 = require('ogc-schemas').GML_3_2_1;
var SMIL_2_0 = require('ogc-schemas').SMIL_2_0;
var SMIL_2_0_Language = require('ogc-schemas').SMIL_2_0_Language;
var CSW_2_0_2 = require('ogc-schemas').CSW_2_0_2;
var DC_1_1 = require('ogc-schemas').DC_1_1;
var DCT = require('ogc-schemas').DCT;
var XMLSchema = require('./mappings/XMLSchema').XMLSchema;

var context = new Jsonix.Context([
  XLink_1_0,
  OWS_1_0_0,
  OWS_1_1_0,
  WFS_1_0_0,
  WFS_1_1_0,
  WFS_2_0,
  Filter_1_0_0,
  Filter_1_1_0,
  Filter_2_0,
  GML_1_0_0,
  GML_2_1_2,
  GML_3_1_1,
  GML_3_2_0,
  GML_3_2_1,
  SMIL_2_0,
  SMIL_2_0_Language,
  CSW_2_0_2,
  DC_1_1,
  DCT,
  XMLSchema
]);
var unmarshaller = context.createUnmarshaller();

Later, you can transform WFS response to JSON, like:

const response = responseBuffer.toString('utf8');
var result = unmarshaller.unmarshalString(response);

Not so easy, but it works.

Regards,

Jorge Gustavo
On 30/10/23 14:11, Jakob Miksch via QGIS-User wrote:
Dear QGIS Server people,

I have a QGIS Server running. I would like to access the WFS Capabilities with 
JavaScript, more specifically I would like to know which WFS layers are 
published by QGIS Server. Unfortunately, QGIS Server only supports WFS 1.0.0 
and 1.1.0. But the only parser for WFS capabilities I have found only support 
WFS 2.0.0 ( https://github.com/GastonZalba/ol-wfs-capabilities ).

Does anyone have a hint how to parse the WFS Capabilities from QGIS Server with 
JavaScript?

best regards,
Jakob


 [cid:image001.png@01DA0BC1.B74420E0]
Jakob Miksch
Consultant

+49 170 9036956
siticom.online
siticom GmbH * Werner-von-Siemens-Straße 2-6 * 76646 Bruchsal * Deutschland
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589





___

QGIS-User mailing list

QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>

List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-30 Thread Jorge Gustavo Rocha via QGIS-User

Hi Jakob,

You can try jsonix. I use something like:

var Jsonix = require('jsonix').Jsonix;
var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_0_0 = require('ogc-schemas').OWS_1_0_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var WFS_1_0_0 = require('ogc-schemas').WFS_1_0_0;
var WFS_1_1_0 = require('ogc-schemas').WFS_1_1_0;
var WFS_2_0 = require('ogc-schemas').WFS_2_0;
var Filter_1_0_0 = require('ogc-schemas').Filter_1_0_0;
var Filter_1_1_0 = require('ogc-schemas').Filter_1_1_0;
var Filter_2_0 = require('ogc-schemas').Filter_2_0;
var GML_1_0_0 = require('ogc-schemas').GML_1_0_0;
var GML_2_1_2 = require('ogc-schemas').GML_2_1_2;
var GML_3_1_1 = require('ogc-schemas').GML_3_1_1;
var GML_3_2_0 = require('ogc-schemas').GML_3_2_0;
var GML_3_2_1 = require('ogc-schemas').GML_3_2_1;
var SMIL_2_0 = require('ogc-schemas').SMIL_2_0;
var SMIL_2_0_Language = require('ogc-schemas').SMIL_2_0_Language;
var CSW_2_0_2 = require('ogc-schemas').CSW_2_0_2;
var DC_1_1 = require('ogc-schemas').DC_1_1;
var DCT = require('ogc-schemas').DCT;
var XMLSchema = require('./mappings/XMLSchema').XMLSchema;

var context = new Jsonix.Context([
  XLink_1_0,
  OWS_1_0_0,
  OWS_1_1_0,
  WFS_1_0_0,
  WFS_1_1_0,
  WFS_2_0,
  Filter_1_0_0,
  Filter_1_1_0,
  Filter_2_0,
  GML_1_0_0,
  GML_2_1_2,
  GML_3_1_1,
  GML_3_2_0,
  GML_3_2_1,
  SMIL_2_0,
  SMIL_2_0_Language,
  CSW_2_0_2,
  DC_1_1,
  DCT,
  XMLSchema
]);
var unmarshaller = context.createUnmarshaller();

Later, you can transform WFS response to JSON, like:

    const response = responseBuffer.toString('utf8');
    var result = unmarshaller.unmarshalString(response);

Not so easy, but it works.

Regards,

Jorge Gustavo

On 30/10/23 14:11, Jakob Miksch via QGIS-User wrote:


Dear QGIS Server people,

I have a QGIS Server running. I would like to access the WFS 
Capabilities with JavaScript, more specifically I would like to know 
which WFS layers are published by QGIS Server. Unfortunately, QGIS 
Server only supports WFS 1.0.0 and 1.1.0. But the only parser for WFS 
capabilities I have found only support WFS 2.0.0 ( 
https://github.com/GastonZalba/ol-wfs-capabilities ).


Does anyone have a hint how to parse the WFS Capabilities from QGIS 
Server with JavaScript?


best regards,
Jakob





Jakob Miksch
Consultant

+49 170 9036956
siticom.online



	siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • 
Deutschland

Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589



___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server: Parsing WFS capabilites with JavaScript

2023-10-30 Thread Jakob Miksch via QGIS-User
Dear QGIS Server people,

I have a QGIS Server running. I would like to access the WFS Capabilities with 
JavaScript, more specifically I would like to know which WFS layers are 
published by QGIS Server. Unfortunately, QGIS Server only supports WFS 1.0.0 
and 1.1.0. But the only parser for WFS capabilities I have found only support 
WFS 2.0.0 ( https://github.com/GastonZalba/ol-wfs-capabilities ).

Does anyone have a hint how to parse the WFS Capabilities from QGIS Server with 
JavaScript?

best regards,
Jakob


 
[cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online



siticom GmbH * Werner-von-Siemens-Stra?e 2-6 * 76646 Bruchsal * 
Deutschland
Gesch?ftsf?hrer: J?rgen Hatzipantelis, Stefan H?ltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - GetLegendGraphics request confusion

2023-10-17 Thread Jakob Miksch via QGIS-User
Hi,
thanks for your responses. I was relying on the LTR docs before.
I also noticed that GetLegendGraphic also accepts the parameter LAYER 
(singular) and not only LAYERS (plural), but this was not documented. I opened 
a PR for this: server: add "LAYER" to allowed parameters for GetLegendGraphic 
by JakobMiksch · Pull Request #8561 · qgis/QGIS-Documentation 
(github.com)<https://github.com/qgis/QGIS-Documentation/pull/8561/files>

The usage of LAYERS (plural) in QGIS Server also confused me, since GeoServer, 
MapServer and so on use the parameter LAYER (singular).

Best regards,
Jakob

Jakob Miksch
Consultant

+49 170 9036956
siticom.online


Von: Etienne Trimaille 
Gesendet: Dienstag, 17. Oktober 2023 10:07
An: Alessandro Pasotti 
Cc: Jakob Miksch ; qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] QGIS Server - GetLegendGraphics request confusion



SECURITY WARNING: This email is from an external source - be careful of 
attachments and links. Please report suspicious emails to 
s...@siticom.de<mailto:s...@siticom.de>



Hi,
The documentation was updated a few months ago to follow the OGC specifications.
https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#getlegendgraphics
versus
https://docs.qgis.org/testing/en/docs/server_manual/services/wms.html#getlegendgraphic


Le mar. 17 oct. 2023 à 09:27, Alessandro Pasotti via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> a écrit :
Hi,

QGIS server actually accepts both requests:

else if ( QSTR_COMPARE( req, "GetLegendGraphic" ) || QSTR_COMPARE( req, 
"GetLegendGraphics" ) )


On Mon, Oct 16, 2023 at 6:20 PM Jakob Miksch via QGIS-User 
mailto:qgis-user@lists.osgeo.org>> wrote:
Hi everyone!

I have a QGIS Server running. Requesting the legend of a layer works fine as 
explained in the docs: 3.2. Web Map Service (WMS) — QGIS Documentation 
documentation<https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#getlegendgraphics>
However, I noticed that in QGIS Server the request must be called 
“GetLegendGraphics” with a trailing “s”, whereas GeoServer (GetLegendGraphic — 
GeoServer 2.25.x User 
Manual<https://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/index.html>),
 MapServer (WMS Server — MapServer 8.0.1 
documentation<https://mapserver.org/de/ogc/wms_server.html#getlegendgraphic-request>),
 deegree and OpenLayers (OpenLayers v8.1.0 API - Class: 
ImageWMS<https://openlayers.org/en/latest/apidoc/module-ol_source_ImageWMS-ImageWMS.html#getLegendUrl>)
 expect the request to be called “GetLegendGraphic” WITHOUT the trailing “s”.

Is there a reason why QGIS Server provides legends differently compared to 
other established geospatial software?

Best regards,
Jakob

 [cid:image001.png@01DA0128.558637B0]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online


siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589



___
QGIS-User mailing list
QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


--
Alessandro Pasotti
QCooperative:  www.qcooperative.net<https://www.qcooperative.net>
ItOpen:   www.itopen.it<http://www.itopen.it>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - GetLegendGraphics request confusion

2023-10-17 Thread Etienne Trimaille via QGIS-User
Hi,
The documentation was updated a few months ago to follow the OGC
specifications.
https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#getlegendgraphics
versus
https://docs.qgis.org/testing/en/docs/server_manual/services/wms.html#getlegendgraphic


Le mar. 17 oct. 2023 à 09:27, Alessandro Pasotti via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> Hi,
>
> QGIS server actually accepts both requests:
>
> else if ( QSTR_COMPARE( req, "GetLegendGraphic" ) || QSTR_COMPARE( req,
> "GetLegendGraphics" ) )
>
>
> On Mon, Oct 16, 2023 at 6:20 PM Jakob Miksch via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> Hi everyone!
>>
>>
>>
>> I have a QGIS Server running. Requesting the legend of a layer works fine
>> as explained in the docs: 3.2. Web Map Service (WMS) — QGIS
>> Documentation documentation
>> 
>>
>> However, I noticed that in QGIS Server the request must be called
>> “GetLegendGraphics” with a trailing “s”, whereas GeoServer (GetLegendGraphic
>> — GeoServer 2.25.x User Manual
>> ),
>> MapServer (WMS Server — MapServer 8.0.1 documentation
>> ),
>> deegree and OpenLayers (OpenLayers v8.1.0 API - Class: ImageWMS
>> )
>> expect the request to be called “GetLegendGraphic” WITHOUT the trailing
>> “s”.
>>
>>
>>
>> Is there a reason why QGIS Server provides legends differently compared
>> to other established geospatial software?
>>
>> Best regards,
>>
>> Jakob
>>
>>
>>
>>
>> Jakob Miksch
>> Consultant
>>
>> +49 170 9036956
>> siticom.online
>>
>>
>>
>> siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal •
>> Deutschland
>> Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
>> Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
>> Umsatzsteuer-ID Nr.: DE 197 925 589
>>
>>
>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> --
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - GetLegendGraphics request confusion

2023-10-17 Thread Alessandro Pasotti via QGIS-User
Hi,

QGIS server actually accepts both requests:

else if ( QSTR_COMPARE( req, "GetLegendGraphic" ) || QSTR_COMPARE( req,
"GetLegendGraphics" ) )


On Mon, Oct 16, 2023 at 6:20 PM Jakob Miksch via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hi everyone!
>
>
>
> I have a QGIS Server running. Requesting the legend of a layer works fine
> as explained in the docs: 3.2. Web Map Service (WMS) — QGIS Documentation
> documentation
> 
>
> However, I noticed that in QGIS Server the request must be called
> “GetLegendGraphics” with a trailing “s”, whereas GeoServer (GetLegendGraphic
> — GeoServer 2.25.x User Manual
> ),
> MapServer (WMS Server — MapServer 8.0.1 documentation
> ),
> deegree and OpenLayers (OpenLayers v8.1.0 API - Class: ImageWMS
> )
> expect the request to be called “GetLegendGraphic” WITHOUT the trailing
> “s”.
>
>
>
> Is there a reason why QGIS Server provides legends differently compared to
> other established geospatial software?
>
> Best regards,
>
> Jakob
>
>
>
>
> Jakob Miksch
> Consultant
>
> +49 170 9036956
> siticom.online
>
>
>
> siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland
> Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
> Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
> Umsatzsteuer-ID Nr.: DE 197 925 589
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server - GetLegendGraphics request confusion

2023-10-16 Thread Jakob Miksch via QGIS-User
Hi everyone!

I have a QGIS Server running. Requesting the legend of a layer works fine as 
explained in the docs: 3.2. Web Map Service (WMS) - QGIS Documentation 
documentation
However, I noticed that in QGIS Server the request must be called 
"GetLegendGraphics" with a trailing "s", whereas GeoServer (GetLegendGraphic - 
GeoServer 2.25.x User 
Manual),
 MapServer (WMS Server - MapServer 8.0.1 
documentation),
 deegree and OpenLayers (OpenLayers v8.1.0 API - Class: 
ImageWMS)
 expect the request to be called "GetLegendGraphic" WITHOUT the trailing "s".

Is there a reason why QGIS Server provides legends differently compared to 
other established geospatial software?

Best regards,
Jakob

 
[cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online



siticom GmbH * Werner-von-Siemens-Stra?e 2-6 * 76646 Bruchsal * 
Deutschland
Gesch?ftsf?hrer: J?rgen Hatzipantelis, Stefan H?ltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server: programmatic configuration

2023-07-17 Thread Alessandro Pasotti via QGIS-User
On Mon, Jul 17, 2023 at 3:03 PM Jakob Miksch via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hello everyone,
>
>
>
> To my knowledge it is only possible to change a QGIS server project via
> the QGIS desktop GUI. However, I would like to dynamically add or remove
> layers in a QGIS server project.
>
>
>
> Is there or has there been any approach to accomplish this?
>
> My spontaneous idea is to use pyQGIS to edit the QGIS server project
> directly without using the GUI, but maybe other approaches exist. I would
> be grateful for any experiences, ideas or hints.
>
>
>
> Thanks, and best regards,
>
> Jakob
>

Hi,

you can change a project in memory on each request using server plugins:
https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/server.html,
the project is accessible via QgsProject.instance().

If you want a permanent change to the project you need to rewrite the
project XML on the storage.

Kind regards





>
>
>
> Jakob Miksch
> Consultant
>
> +49 170 9036956
> siticom.online
>
>
>
> siticom GmbH • Werner-von-Siemens-Straße 2-6 • 76646 Bruchsal • Deutschland
> Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
> Sitz der Gesellschaft: Weiterstadt • Amtsgericht Darmstadt • HRB 9276
> Umsatzsteuer-ID Nr.: DE 197 925 589
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server: programmatic configuration

2023-07-17 Thread Jakob Miksch via QGIS-User
Hello everyone,

To my knowledge it is only possible to change a QGIS server project via the 
QGIS desktop GUI. However, I would like to dynamically add or remove layers in 
a QGIS server project.

Is there or has there been any approach to accomplish this?

My spontaneous idea is to use pyQGIS to edit the QGIS server project directly 
without using the GUI, but maybe other approaches exist. I would be grateful 
for any experiences, ideas or hints.

Thanks, and best regards,
Jakob

 
[cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online



siticom GmbH * Werner-von-Siemens-Stra?e 2-6 * 76646 Bruchsal * 
Deutschland
Gesch?ftsf?hrer: J?rgen Hatzipantelis, Stefan H?ltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS-server: strange slowness if outside extent

2023-05-22 Thread Richard Duivenvoorde via QGIS-User

Mmm, looks to have something to do with the GPKG format.
If I create shp and use it, there is no slowness...

First thought that it has something to do with the read/write 
permissions in the mounted /etc/qgisserver volumen... but that did not 
help too


(note, trying out to run this in a kubernetes cluster)

Regards,

Richard


On 2023-05-22 15:34, Richard Duivenvoorde via QGIS-User wrote:

Having a QGIS-container servicing a very simple country file with
labels (EPSG:28992).
All is super responsive < 150ms as long as I stay within the bbox of
the country...
As soon as I zoom out further, the response time goes up to 3 -4 
seconds...


QGIS_CATCH_SEGV=1
QGIS_SERVER_LOG_LEVEL=0
there is no sign of errors in the logs...

Anybody a clue for a reason that is happening?

Regards for any input,

Richard Duivenvoorde
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS-server: strange slowness if outside extent

2023-05-22 Thread Richard Duivenvoorde via QGIS-User
Having a QGIS-container servicing a very simple country file with labels 
(EPSG:28992).
All is super responsive < 150ms as long as I stay within the bbox of the 
country...
As soon as I zoom out further, the response time goes up to 3 -4 
seconds...


QGIS_CATCH_SEGV=1
QGIS_SERVER_LOG_LEVEL=0
there is no sign of errors in the logs...

Anybody a clue for a reason that is happening?

Regards for any input,

Richard Duivenvoorde
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server / lizmap : error message

2023-05-12 Thread celati Laurent via QGIS-User
Hello,
Problem fix. According to me, the problem came from the postgis spatial
filter  enabled within my qgis project :

https://plugins.qgis.org/plugins/spatial_filter/
https://github.com/WhereGroup/spatial_filter





Le jeu. 11 mai 2023 à 16:38, celati Laurent  a
écrit :

> Hello,
> I make several tests with qgis server ans lizmap. For one of your qgis
> projects, i obtain an error message.
> im' taking the liberty to share those messages. FYI, i work with debian,
> apache and postgis tables data :
>
> *QGIS SERVER : *
>
> 16:21:54 INFO Server[853909]: SERVER_NAME: -..fr
>
> 16:21:54 INFO Server[853909]: REQUEST_URI:
> /cgi-bin/qgis_mapserv.fcgi/lizmap/server.json
>
> 16:21:54 INFO Server[853909]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi
>
> 16:21:54 INFO Server[853909]: PATH_INFO: /lizmap/server.json
>
> 16:21:54 INFO Server[853909]: REMOTE_ADDR: 192.168.4.7
>
> 16:21:54 INFO Server[853909]: SERVER_PORT: 80
>
> 16:21:54 INFO Server[853909]: QUERY_STRING:
>
> 16:21:54 INFO Server[853909]: REQUEST_METHOD: GET
>
> 16:21:54 INFO Server[853909]: QGIS_PROJECT_FILE:
> /home/qgis/projects/world.qgs
>
> 16:21:54 INFO Server[853909]: SERVER_PROTOCOL: HTTP/1.1
>
> 16:21:54 INFO Server[853909]: Using configuration file path from
> environment: /home/qgis/projects/world.qgs
>
> 16:21:54 INFO Lizmap[853909]: Request headers provided
>
> 16:21:54 INFO Lizmap[853909]: No lizmap user groups in request headers
>
> 16:21:54 INFO Server[853909]: Using configuration file path from
> environment: /home/qgis/projects/world.qgs
>
> 16:21:54 INFO Server[853909]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/'
>
> 16:21:54 INFO Server[853909]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/wfs3'
>
> 16:21:54 INFO Server[853909]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap'
>
> 16:21:54 INFO Server[853909]: API Lizmap accepts the URL path
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json'
>
> 16:21:54 INFO Server[853909]: Checking API path /server.json for
> server.json
>
> 16:21:54 INFO Server[853909]: API Lizmap: found handler server
>
> 16:21:54 CRITICAL Server[853909]: Service ATLAS is not registered
>
> 16:21:54 CRITICAL Server[853909]: Service CADASTRE is not registered
>
> 16:21:54 INFO Server[853909]: Request finished in 1 ms
>
>
> *LIZMAP*
>  error An error has been raised when loading WMS GetCapabilities: HTTP
> Code 400
>  error GetCapabilities result code: 500
>  error GetCapabilities result code: 500
> error GetCapabilities result code: 500
>  error GetCapabilities result code: 500
>  error An error has been raised when loading WMS GetCapabilities: HTTP
> Code 400
> error GetCapabilities result code: 500
> Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>  Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>
> Thanks.
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server / lizmap : error message

2023-05-11 Thread celati Laurent via QGIS-User
Hello,
I make several tests with qgis server ans lizmap. For one of your qgis
projects, i obtain an error message.
im' taking the liberty to share those messages. FYI, i work with debian,
apache and postgis tables data :

*QGIS SERVER : *

16:21:54 INFO Server[853909]: SERVER_NAME: -..fr

16:21:54 INFO Server[853909]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json

16:21:54 INFO Server[853909]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi

16:21:54 INFO Server[853909]: PATH_INFO: /lizmap/server.json

16:21:54 INFO Server[853909]: REMOTE_ADDR: 192.168.4.7

16:21:54 INFO Server[853909]: SERVER_PORT: 80

16:21:54 INFO Server[853909]: QUERY_STRING:

16:21:54 INFO Server[853909]: REQUEST_METHOD: GET

16:21:54 INFO Server[853909]: QGIS_PROJECT_FILE:
/home/qgis/projects/world.qgs

16:21:54 INFO Server[853909]: SERVER_PROTOCOL: HTTP/1.1

16:21:54 INFO Server[853909]: Using configuration file path from
environment: /home/qgis/projects/world.qgs

16:21:54 INFO Lizmap[853909]: Request headers provided

16:21:54 INFO Lizmap[853909]: No lizmap user groups in request headers

16:21:54 INFO Server[853909]: Using configuration file path from
environment: /home/qgis/projects/world.qgs

16:21:54 INFO Server[853909]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/'

16:21:54 INFO Server[853909]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/wfs3'

16:21:54 INFO Server[853909]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap'

16:21:54 INFO Server[853909]: API Lizmap accepts the URL path
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json'

16:21:54 INFO Server[853909]: Checking API path /server.json for server.json

16:21:54 INFO Server[853909]: API Lizmap: found handler server

16:21:54 CRITICAL Server[853909]: Service ATLAS is not registered

16:21:54 CRITICAL Server[853909]: Service CADASTRE is not registered

16:21:54 INFO Server[853909]: Request finished in 1 ms


*LIZMAP*
 error An error has been raised when loading WMS GetCapabilities: HTTP Code
400
 error GetCapabilities result code: 500
 error GetCapabilities result code: 500
error GetCapabilities result code: 500
 error GetCapabilities result code: 500
 error An error has been raised when loading WMS GetCapabilities: HTTP Code
400
error GetCapabilities result code: 500
Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
171
 Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
171

Thanks.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis-server bullseye (stable) and sid (unstable) give blank (white) page on GetMap for all test sites

2023-05-08 Thread Mats Bjerin via QGIS-User
I finally found the solution:
For any map, to get a visual image, the type of image must be specified in the 
URL to the server with e.g. FORMAT=image/jpeg
For the osm.qgs example map from the documentation, I must specify LAYERS=OSM 
for any data to be returned.
For the world.qgs project, only the FORMAT=image/jpeg was required to make it 
work as the LAYERS=countries is already part of the suggested URL and thus 
tested by me initially.

Example of a valid URL for the osm.qgs project:
http://localhost:8080/qgis-server/?SERVICE=WMS=1.3.0=EPSG:4326=GetMap=/projects/osm.qgs=-90,-180,90,180=1000=1000=OSM=image/png

Hope someone is helped by this.
/Mats

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis-server bullseye (stable) and sid (unstable) give blank (white) page on GetMap for all test sites

2023-05-07 Thread Mats Bjerin via QGIS-User
Hi,

I am trying to use a docker image of qgis-server as defined in the official 
documentation chapter “8. Containerized deployment”.
https://lists.osgeo.org/mailman/options/qgis-user

I have added the required nginx server and I can run the GetCapabilities test 
successfully:
http://localhost:8080/qgis-server/?SERVICE=WMS=1.3.0=GetCapabilities

I then get a complete xml spec of the server capabilities and some basic info 
on the default map (osm.qgs).

http://www.w3.org/2001/XMLSchema-instance 
xmlns:qgs=http://www.qgis.org/wms xmlns:sld=http://www.opengis.net/sld 
xmlns=http://www.opengis.net/wms xsi:schemaLocation=http://www.opengis.net/wms 
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd 
http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd 
http://www.qgis.org/wms 
http://localhost:8080/qgis-server/?SERVICE=WMS=GetSchemaExtension
 version="1.3.0">

WMS
Untitled

infoMapAccessService

http://www.w3.org/1999/xlink 
xlink:href=http://localhost:8080/qgis-server/ xlink:type="simple"/>
conditions unknown
None

… and so on …

I have added the file osm.qgs and also the test sample world.qgs and its 
associated SQLite database from 
(https://github.com/qgis/QGIS-Training-Data/tree/master/exercise_data/qgis-server-tutorial-data)
 to the external folder ~/data that is mounted as /data inside the container.

If I enter the running container, I can see the files owned by the qgis user in 
the /data folder.

If I try the osm.qgs map in my Chrome Browser with this call:
http://localhost:8080/qgis-server/?MAP=/data/osm.qgs=WMS=1.3.0=GetMap=EPSG:3857=400=200=-90,-180,90,180,
I get a blank page in return on the web page.
I had expected the Open Street Map base map to show up as a result of the call.

If I try the world.qgs map in my Chrome Browser, with the suggested call:
http://localhost:8080/qgis-server/?MAP=/data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
I get the reply that the layer “countries” does not exist.
I had expected the simple demo map in return on the web page.

Has anyone managed to make this run?
What might I be missing?

Many thanks in advance for your advice!

Best,
/Mats B.

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread Antonio Viscomi via QGIS-User
Great!

Il gio 4 mag 2023, 14:33 celati Laurent  ha
scritto:

> Thanks a lot. It 's works well now.
>
> Le jeu. 4 mai 2023 à 11:37, Etienne Trimaille  a
> écrit :
>
>> According to the QGIS documentation :
>> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>>
>> QGIS_SERVER_LOG_FILE is deprecated and will be removed, in favor of
>> QGIS_SERVER_LOG_STDERR.
>> You shouldn't use both variables, either one or the other. We recommend
>> using the non deprecated one, it's using the normal stderr, like a lot of
>> services on a server.
>>
>> I'm just adding one more important information because it's about your
>> server security :
>>
>> > If you go to
>> > http://YOURhost/cgi-bin/qgis_mapserv.fcgi
>> > It's qgis server active?
>>
>> It's indeed needed to debug like this, in order to see HTTP requests. Use
>> curl/wget is needed.
>>
>> But as an important security reminder, the QGIS server URL mustn't be
>> accessible from a public URL. Otherwise, it's possible to have sensitive
>> data about your server published. Moreover, if the URL of QGIS server is
>> published on the internet, then it's possible to totally bypass all user
>> permissions and ACL about projects, layers, features visibility which makes
>> Lizmap features about user, groups and rights useless.
>>
>>
>> https://docs.lizmap.com/current/en/install/pre_requirements.html#qgis-server-side
>>
>> Just keep that in mind
>>
>> Regards,
>>
>>
>>
>> Le Jeudi, Mai 04, 2023 10:54 CEST, Antonio Viscomi 
>> a écrit:
>>
>>
>>
>> Hi Laurent,
>> If you go to
>>
>> http://YOURhost/cgi-bin/qgis_mapserv.fcgi
>>
>> It's qgis server active?
>>
>>
>> Il gio 4 mag 2023, 10:36 celati Laurent  ha
>> scritto:
>>
>>> Hi,
>>> Thanks and sorry to disturb you again. I tried to create manually the
>>> file qgislog.log in /var/log/qgis.
>>> Then i set chown www-data /var/log/qgis/qgislog.log
>>> and sudo chmod 775 /var/log/qgis/qgislog.log
>>> I reloaded and restarted apache. But the file qgislog.log is and remains
>>> empty.
>>> I don't know where the problem come from.
>>>
>>> Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
>>> écrit :
>>>
 Hi,

 It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated,
 you can see it in the documentation
 https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
 QGIS_SERVER_LOG_STDERR will send logs to stderr.

 Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
 qgis-user@lists.osgeo.org> a écrit :

> Laurent,
> Please, try to create the file 'qgislog.log' manually first
> If doesn't works I don't know why
>
> Il mer 3 mag 2023, 18:18 celati Laurent  ha
> scritto:
>
>> Hello,
>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>> /var/log/qgis/qgislog.log
>> Then i set chown www-data /var/log/qgis
>> and sudo chmod 775 /var/log/qgis
>>
>> Then a2ensite XXX.XXX.fr
>> Then i have reload apache systemctl reload apache2
>>
>> But still no qgislog file has been created.
>>
>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi 
>> a écrit :
>>
>>> in additions
>>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>>> sudo chmod 775 /var/log/qgis/qgislog.log
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>>> antovisc...@gmail.com> ha scritto:
>>>
 hi Laurent,
 I set
 FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
 also,
 and works fine for me

 Saluti

 Antonio

 Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via
 QGIS-User  ha scritto:

> Good afternoon,
> I work with Debian, Apache. Qgis server 3.30. And lizmap. The
> lizmap log deals with a problem regarding my qgis server logs.
> In the /etc/apache2/sites-available i have created a file
> XXX.XXX.conf with ths part of content  :
>
>   # QGIS log
>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>
> And i have create the directories that will store the QGIS Server
> logs
>
> mkdir -p /var/log/qgis/
> chown www-data:www-data /var/log/qgis
>
> But, there are never no log file created within this folder. Do
> you know why ? Do i have to restart qgis server ?
> I know how to restart apache (systemctl restart apache2).
> But how to restart qgis server ?
>
> Thanks a lot for your guidances.
>
>
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: 

Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread celati Laurent via QGIS-User
Thanks a lot. It 's works well now.

Le jeu. 4 mai 2023 à 11:37, Etienne Trimaille  a
écrit :

> According to the QGIS documentation :
> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>
> QGIS_SERVER_LOG_FILE is deprecated and will be removed, in favor of
> QGIS_SERVER_LOG_STDERR.
> You shouldn't use both variables, either one or the other. We recommend
> using the non deprecated one, it's using the normal stderr, like a lot of
> services on a server.
>
> I'm just adding one more important information because it's about your
> server security :
>
> > If you go to
> > http://YOURhost/cgi-bin/qgis_mapserv.fcgi
> > It's qgis server active?
>
> It's indeed needed to debug like this, in order to see HTTP requests. Use
> curl/wget is needed.
>
> But as an important security reminder, the QGIS server URL mustn't be
> accessible from a public URL. Otherwise, it's possible to have sensitive
> data about your server published. Moreover, if the URL of QGIS server is
> published on the internet, then it's possible to totally bypass all user
> permissions and ACL about projects, layers, features visibility which makes
> Lizmap features about user, groups and rights useless.
>
>
> https://docs.lizmap.com/current/en/install/pre_requirements.html#qgis-server-side
>
> Just keep that in mind
>
> Regards,
>
>
>
> Le Jeudi, Mai 04, 2023 10:54 CEST, Antonio Viscomi 
> a écrit:
>
>
>
> Hi Laurent,
> If you go to
>
> http://YOURhost/cgi-bin/qgis_mapserv.fcgi
>
> It's qgis server active?
>
>
> Il gio 4 mag 2023, 10:36 celati Laurent  ha
> scritto:
>
>> Hi,
>> Thanks and sorry to disturb you again. I tried to create manually the
>> file qgislog.log in /var/log/qgis.
>> Then i set chown www-data /var/log/qgis/qgislog.log
>> and sudo chmod 775 /var/log/qgis/qgislog.log
>> I reloaded and restarted apache. But the file qgislog.log is and remains
>> empty.
>> I don't know where the problem come from.
>>
>> Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
>> écrit :
>>
>>> Hi,
>>>
>>> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated,
>>> you can see it in the documentation
>>> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>>> QGIS_SERVER_LOG_STDERR will send logs to stderr.
>>>
>>> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
>>> qgis-user@lists.osgeo.org> a écrit :
>>>
 Laurent,
 Please, try to create the file 'qgislog.log' manually first
 If doesn't works I don't know why

 Il mer 3 mag 2023, 18:18 celati Laurent  ha
 scritto:

> Hello,
> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
> /var/log/qgis/qgislog.log
> Then i set chown www-data /var/log/qgis
> and sudo chmod 775 /var/log/qgis
>
> Then a2ensite XXX.XXX.fr
> Then i have reload apache systemctl reload apache2
>
> But still no qgislog file has been created.
>
> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
> écrit :
>
>> in additions
>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>> sudo chmod 775 /var/log/qgis/qgislog.log
>>
>> Saluti
>>
>> Antonio
>>
>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>> antovisc...@gmail.com> ha scritto:
>>
>>> hi Laurent,
>>> I set
>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>>> also,
>>> and works fine for me
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User
>>>  ha scritto:
>>>
 Good afternoon,
 I work with Debian, Apache. Qgis server 3.30. And lizmap. The
 lizmap log deals with a problem regarding my qgis server logs.
 In the /etc/apache2/sites-available i have created a file
 XXX.XXX.conf with ths part of content  :

   # QGIS log
   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

 And i have create the directories that will store the QGIS Server
 logs

 mkdir -p /var/log/qgis/
 chown www-data:www-data /var/log/qgis

 But, there are never no log file created within this folder. Do you
 know why ? Do i have to restart qgis server ?
 I know how to restart apache (systemctl restart apache2).
 But how to restart qgis server ?

 Thanks a lot for your guidances.




 ___
 QGIS-User mailing list
 QGIS-User@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>> ___
 QGIS-User mailing list
 QGIS-User@lists.osgeo.org
 List info: 

Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread Antonio Viscomi via QGIS-User
if you have none response from previous url,
please check  your apache virtual host is setted like this:

















*ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/  
  AllowOverride NoneOptions +ExecCGI -MultiViews -SymLinksIfOwnerMatch
  Require all granted
FcgidMaxRequestLen 26214400  FcgidConnectTimeout 60  
RewriteEngine onRewriteCond
%{HTTP:Authorization} .RewriteRule .* -
[E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]  *

Saluti

Antonio


Il giorno gio 4 mag 2023 alle ore 10:54 Antonio Viscomi <
antovisc...@gmail.com> ha scritto:

> Hi Laurent,
> If you go to
>
> http://YOURhost/cgi-bin/qgis_mapserv.fcgi
>
> It's qgis server active?
>
>
> Il gio 4 mag 2023, 10:36 celati Laurent  ha
> scritto:
>
>> Hi,
>> Thanks and sorry to disturb you again. I tried to create manually the
>> file qgislog.log in /var/log/qgis.
>> Then i set chown www-data /var/log/qgis/qgislog.log
>> and sudo chmod 775 /var/log/qgis/qgislog.log
>> I reloaded and restarted apache. But the file qgislog.log is and remains
>> empty.
>> I don't know where the problem come from.
>>
>> Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
>> écrit :
>>
>>> Hi,
>>>
>>> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated,
>>> you can see it in the documentation
>>> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>>> QGIS_SERVER_LOG_STDERR will send logs to stderr.
>>>
>>> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
>>> qgis-user@lists.osgeo.org> a écrit :
>>>
 Laurent,
 Please, try to create the file 'qgislog.log' manually first
 If doesn't works I don't know why

 Il mer 3 mag 2023, 18:18 celati Laurent  ha
 scritto:

> Hello,
> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
> /var/log/qgis/qgislog.log
> Then i set chown www-data /var/log/qgis
> and sudo chmod 775 /var/log/qgis
>
> Then a2ensite XXX.XXX.fr
> Then i have reload apache systemctl reload apache2
>
> But still no qgislog file has been created.
>
> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
> écrit :
>
>> in additions
>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>> sudo chmod 775 /var/log/qgis/qgislog.log
>>
>> Saluti
>>
>> Antonio
>>
>>
>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>> antovisc...@gmail.com> ha scritto:
>>
>>> hi Laurent,
>>> I set
>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>>> also,
>>> and works fine for me
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User
>>>  ha scritto:
>>>
 Good afternoon,
 I work with Debian, Apache. Qgis server 3.30. And lizmap. The
 lizmap log deals with a problem regarding my qgis server logs.
 In the /etc/apache2/sites-available i have created a file
 XXX.XXX.conf with ths part of content  :

   # QGIS log
   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

 And i have create the directories that will store the QGIS Server
 logs

 mkdir -p /var/log/qgis/
 chown www-data:www-data /var/log/qgis

 But, there are never no log file created within this folder. Do you
 know why ? Do i have to restart qgis server ?
 I know how to restart apache (systemctl restart apache2).
 But how to restart qgis server ?

 Thanks a lot for your guidances.




 ___
 QGIS-User mailing list
 QGIS-User@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

>>> ___
 QGIS-User mailing list
 QGIS-User@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

>>>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread Antonio Viscomi via QGIS-User
Hi Laurent,
If you go to

http://YOURhost/cgi-bin/qgis_mapserv.fcgi

It's qgis server active?


Il gio 4 mag 2023, 10:36 celati Laurent  ha
scritto:

> Hi,
> Thanks and sorry to disturb you again. I tried to create manually the file
> qgislog.log in /var/log/qgis.
> Then i set chown www-data /var/log/qgis/qgislog.log
> and sudo chmod 775 /var/log/qgis/qgislog.log
> I reloaded and restarted apache. But the file qgislog.log is and remains
> empty.
> I don't know where the problem come from.
>
> Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
> écrit :
>
>> Hi,
>>
>> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you
>> can see it in the documentation
>> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>> QGIS_SERVER_LOG_STDERR will send logs to stderr.
>>
>> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
>> qgis-user@lists.osgeo.org> a écrit :
>>
>>> Laurent,
>>> Please, try to create the file 'qgislog.log' manually first
>>> If doesn't works I don't know why
>>>
>>> Il mer 3 mag 2023, 18:18 celati Laurent  ha
>>> scritto:
>>>
 Hello,
 Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
 /var/log/qgis/qgislog.log
 Then i set chown www-data /var/log/qgis
 and sudo chmod 775 /var/log/qgis

 Then a2ensite XXX.XXX.fr
 Then i have reload apache systemctl reload apache2

 But still no qgislog file has been created.

 Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
 écrit :

> in additions
> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
> sudo chmod 775 /var/log/qgis/qgislog.log
>
> Saluti
>
> Antonio
>
>
> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
> antovisc...@gmail.com> ha scritto:
>
>> hi Laurent,
>> I set
>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>> also,
>> and works fine for me
>>
>> Saluti
>>
>> Antonio
>>
>>
>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
>> qgis-user@lists.osgeo.org> ha scritto:
>>
>>> Good afternoon,
>>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
>>> log deals with a problem regarding my qgis server logs.
>>> In the /etc/apache2/sites-available i have created a file
>>> XXX.XXX.conf with ths part of content  :
>>>
>>>   # QGIS log
>>>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>>>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>>>
>>> And i have create the directories that will store the QGIS Server
>>> logs
>>>
>>> mkdir -p /var/log/qgis/
>>> chown www-data:www-data /var/log/qgis
>>>
>>> But, there are never no log file created within this folder. Do you
>>> know why ? Do i have to restart qgis server ?
>>> I know how to restart apache (systemctl restart apache2).
>>> But how to restart qgis server ?
>>>
>>> Thanks a lot for your guidances.
>>>
>>>
>>>
>>>
>>> ___
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>> ___
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread celati Laurent via QGIS-User
Hi,
Thanks and sorry to disturb you again. I tried to create manually the file
qgislog.log in /var/log/qgis.
Then i set chown www-data /var/log/qgis/qgislog.log
and sudo chmod 775 /var/log/qgis/qgislog.log
I reloaded and restarted apache. But the file qgislog.log is and remains
empty.
I don't know where the problem come from.

Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
écrit :

> Hi,
>
> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you
> can see it in the documentation
> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
> QGIS_SERVER_LOG_STDERR will send logs to stderr.
>
> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
> qgis-user@lists.osgeo.org> a écrit :
>
>> Laurent,
>> Please, try to create the file 'qgislog.log' manually first
>> If doesn't works I don't know why
>>
>> Il mer 3 mag 2023, 18:18 celati Laurent  ha
>> scritto:
>>
>>> Hello,
>>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>>> /var/log/qgis/qgislog.log
>>> Then i set chown www-data /var/log/qgis
>>> and sudo chmod 775 /var/log/qgis
>>>
>>> Then a2ensite XXX.XXX.fr
>>> Then i have reload apache systemctl reload apache2
>>>
>>> But still no qgislog file has been created.
>>>
>>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
>>> écrit :
>>>
 in additions
 sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
 sudo chmod 775 /var/log/qgis/qgislog.log

 Saluti

 Antonio


 Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
 antovisc...@gmail.com> ha scritto:

> hi Laurent,
> I set
> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
> also,
> and works fine for me
>
> Saluti
>
> Antonio
>
>
> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
> qgis-user@lists.osgeo.org> ha scritto:
>
>> Good afternoon,
>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
>> log deals with a problem regarding my qgis server logs.
>> In the /etc/apache2/sites-available i have created a file
>> XXX.XXX.conf with ths part of content  :
>>
>>   # QGIS log
>>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>>
>> And i have create the directories that will store the QGIS Server
>> logs
>>
>> mkdir -p /var/log/qgis/
>> chown www-data:www-data /var/log/qgis
>>
>> But, there are never no log file created within this folder. Do you
>> know why ? Do i have to restart qgis server ?
>> I know how to restart apache (systemctl restart apache2).
>> But how to restart qgis server ?
>>
>> Thanks a lot for your guidances.
>>
>>
>>
>>
>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread Etienne Trimaille via QGIS-User
Hi,

It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you
can see it in the documentation
https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
QGIS_SERVER_LOG_STDERR will send logs to stderr.



Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
qgis-user@lists.osgeo.org> a écrit :

> Laurent,
> Please, try to create the file 'qgislog.log' manually first
> If doesn't works I don't know why
>
> Il mer 3 mag 2023, 18:18 celati Laurent  ha
> scritto:
>
>> Hello,
>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>> /var/log/qgis/qgislog.log
>> Then i set chown www-data /var/log/qgis
>> and sudo chmod 775 /var/log/qgis
>>
>> Then a2ensite XXX.XXX.fr
>> Then i have reload apache systemctl reload apache2
>>
>> But still no qgislog file has been created.
>>
>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
>> écrit :
>>
>>> in additions
>>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>>> sudo chmod 775 /var/log/qgis/qgislog.log
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>>> antovisc...@gmail.com> ha scritto:
>>>
 hi Laurent,
 I set
 FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
 also,
 and works fine for me

 Saluti

 Antonio


 Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
 qgis-user@lists.osgeo.org> ha scritto:

> Good afternoon,
> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
> log deals with a problem regarding my qgis server logs.
> In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
> with ths part of content  :
>
>   # QGIS log
>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>
> And i have create the directories that will store the QGIS Server logs
>
> mkdir -p /var/log/qgis/
> chown www-data:www-data /var/log/qgis
>
> But, there are never no log file created within this folder. Do you
> know why ? Do i have to restart qgis server ?
> I know how to restart apache (systemctl restart apache2).
> But how to restart qgis server ?
>
> Thanks a lot for your guidances.
>
>
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
 ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread Antonio Viscomi via QGIS-User
Laurent,
Please, try to create the file 'qgislog.log' manually first
If doesn't works I don't know why

Il mer 3 mag 2023, 18:18 celati Laurent  ha
scritto:

> Hello,
> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
> /var/log/qgis/qgislog.log
> Then i set chown www-data /var/log/qgis
> and sudo chmod 775 /var/log/qgis
>
> Then a2ensite XXX.XXX.fr
> Then i have reload apache systemctl reload apache2
>
> But still no qgislog file has been created.
>
> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
> écrit :
>
>> in additions
>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>> sudo chmod 775 /var/log/qgis/qgislog.log
>>
>> Saluti
>>
>> Antonio
>>
>>
>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>> antovisc...@gmail.com> ha scritto:
>>
>>> hi Laurent,
>>> I set
>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>>> also,
>>> and works fine for me
>>>
>>> Saluti
>>>
>>> Antonio
>>>
>>>
>>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
>>> qgis-user@lists.osgeo.org> ha scritto:
>>>
 Good afternoon,
 I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
 log deals with a problem regarding my qgis server logs.
 In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
 with ths part of content  :

   # QGIS log
   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

 And i have create the directories that will store the QGIS Server logs

 mkdir -p /var/log/qgis/
 chown www-data:www-data /var/log/qgis

 But, there are never no log file created within this folder. Do you
 know why ? Do i have to restart qgis server ?
 I know how to restart apache (systemctl restart apache2).
 But how to restart qgis server ?

 Thanks a lot for your guidances.




 ___
 QGIS-User mailing list
 QGIS-User@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

>>>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread celati Laurent via QGIS-User
Hello,
Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
/var/log/qgis/qgislog.log
Then i set chown www-data /var/log/qgis
and sudo chmod 775 /var/log/qgis

Then a2ensite XXX.XXX.fr
Then i have reload apache systemctl reload apache2

But still no qgislog file has been created.

Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
écrit :

> in additions
> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
> sudo chmod 775 /var/log/qgis/qgislog.log
>
> Saluti
>
> Antonio
>
>
> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
> antovisc...@gmail.com> ha scritto:
>
>> hi Laurent,
>> I set
>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>> also,
>> and works fine for me
>>
>> Saluti
>>
>> Antonio
>>
>>
>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
>> qgis-user@lists.osgeo.org> ha scritto:
>>
>>> Good afternoon,
>>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap log
>>> deals with a problem regarding my qgis server logs.
>>> In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
>>> with ths part of content  :
>>>
>>>   # QGIS log
>>>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>>>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>>>
>>> And i have create the directories that will store the QGIS Server logs
>>>
>>> mkdir -p /var/log/qgis/
>>> chown www-data:www-data /var/log/qgis
>>>
>>> But, there are never no log file created within this folder. Do you know
>>> why ? Do i have to restart qgis server ?
>>> I know how to restart apache (systemctl restart apache2).
>>> But how to restart qgis server ?
>>>
>>> Thanks a lot for your guidances.
>>>
>>>
>>>
>>>
>>> ___
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread celati Laurent via QGIS-User
Good afternoon,
I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap log
deals with a problem regarding my qgis server logs.
In the /etc/apache2/sites-available i have created a file XXX.XXX.conf with
ths part of content  :

  # QGIS log
  FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
  FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

And i have create the directories that will store the QGIS Server logs

mkdir -p /var/log/qgis/
chown www-data:www-data /var/log/qgis

But, there are never no log file created within this folder. Do you know
why ? Do i have to restart qgis server ?
I know how to restart apache (systemctl restart apache2).
But how to restart qgis server ?

Thanks a lot for your guidances.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server : Serve Postgis data ?

2023-03-28 Thread Christoph Jung via QGIS-User
Hi,

Did you stored the username and password for connecting the Postgres-DB in an 
authentication configuration? And did you provide an environment variable with 
the path to a file containing the master password within? If not, please have a 
look into the really good and complete documentation about authentication in 
QGIS desktop and server:

https://docs.qgis.org/3.28/en/docs/user_manual/auth_system/auth_workflows.html#qgis-server-support

https://docs.qgis.org/3.28/en/docs/user_manual/auth_system/auth_overview.html#master-password

Best regards,
Christoph 

> Am 27.03.2023 um 18:09 schrieb celati Laurent via QGIS-User 
> :
> 
> 
> Good afternoon,
> Following to my previous message, I'm sharing my error. I am unable to serve 
> a project containing postgis tables. For a first test, I'm just trying to 
> serve one of the tables contained in my project. Here is the URL that I 
> defined and tested. I tried to define max and min coordinates (BBOX) in the 
> spatial reference system in 2154 (Lambert 93).
> 
>  
> http://SERVEUR/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/cigeo_forages.qgs=Cigeo_Zios_Po=WMS=1.3.0=GetMap=EPSG:2154=400=200=865347.7454,6820554.3899,886533.8979,6833234.8104
> 
> Please read below the error message : Internal Server Error
> 
> The server encountered an internal error or misconfiguration and was unable 
> to complete your request.
> Please contact the server administrator at webmaster@localhost to inform them 
> of the time this error occurred, and the actions you performed just before 
> this error.
> More information about this error may be available in the server error log.
> If someone has any idea? To be complete, since the beginning of my tests, I 
> have never had a log file generated in /var/log/qgis...This folder has been 
> always remained empty
> Thanks a lot.
> 
>> Le lun. 27 mars 2023 à 11:48, celati Laurent  a 
>> écrit :
>> Good morning,
>> I have just (finally) validated the installation of Qgis server on our 
>> Debian server.
>> I manage to serve/broadcast the .qgs project and the data made available by 
>> the community (world.qgs project). These are shp files.
>> In parallel with the installation of Lizmap or QWC2, I would like to test 
>> this time the fact to serve of qgis projects containing postgis tables from 
>> our database. How to do this ? Especially for the definition of the URL? How 
>> to define in the URL the sources of the postgis tables? The URL notably has 
>> a LAYERS&...
>> How for example to publish all the postgis tables contained in a project, 
>> without having to specify each of them in the URL?
>> Thank you so much.
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server : Serve Postgis data ?

2023-03-27 Thread chris hermansen via QGIS-User
Laurent and list,

On Mon, Mar 27, 2023, 09:09 celati Laurent via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Good afternoon,
> Following to my previous message, I'm sharing my error. I am unable to
> serve a project containing postgis tables. For a first test, I'm just
> trying to serve one of the tables contained in my project. Here is the URL
> that I defined and tested. I tried to define max and min coordinates (BBOX)
> in the spatial reference system in 2154 (Lambert 93).
>
> * 
> http://SERVEUR/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/cigeo_forages.qgs=Cigeo_Zios_Po=WMS=1.3.0=GetMap=EPSG:2154=400=200=865347.7454,6820554.3899,886533.8979,6833234.8104
> *
>
> Please read below the error message : Internal Server Error
>
>
>
> *The server encountered an internal error or misconfiguration and was
> unable to complete your request.Please contact the server administrator at
> webmaster@localhost to inform them of the time this error occurred, and the
> actions you performed just before this error.More information about this
> error may be available in the server error log.*
> If someone has any idea? To be complete, since the beginning of my tests,
> I have never had a log file generated in /var/log/qgis...This folder has
> been always remained empty
> Thanks a lot.
>


Anything interesting in the PostgreSQL log file? Or syslog?


> Le lun. 27 mars 2023 à 11:48, celati Laurent  a
> écrit :
>
>> Good morning,
>> I have just (finally) validated the installation of Qgis server on our
>> Debian server.
>> I manage to serve/broadcast the .qgs project and the data made available
>> by the community (world.qgs project). These are shp files.
>> In parallel with the installation of Lizmap or QWC2, I would like to test
>> this time the fact to serve of qgis projects containing postgis tables from
>> our database. How to do this ? Especially for the definition of the URL?
>> How to define in the URL the sources of the postgis tables? The URL notably
>> has a LAYERS&...
>> How for example to publish all the postgis tables contained in a project,
>> without having to specify each of them in the URL?
>> Thank you so much.
>>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server : Serve Postgis data ?

2023-03-27 Thread celati Laurent via QGIS-User
Good afternoon,
Following to my previous message, I'm sharing my error. I am unable to
serve a project containing postgis tables. For a first test, I'm just
trying to serve one of the tables contained in my project. Here is the URL
that I defined and tested. I tried to define max and min coordinates (BBOX)
in the spatial reference system in 2154 (Lambert 93).

* 
http://SERVEUR/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/cigeo_forages.qgs=Cigeo_Zios_Po=WMS=1.3.0=GetMap=EPSG:2154=400=200=865347.7454,6820554.3899,886533.8979,6833234.8104
*

Please read below the error message : Internal Server Error



*The server encountered an internal error or misconfiguration and was
unable to complete your request.Please contact the server administrator at
webmaster@localhost to inform them of the time this error occurred, and the
actions you performed just before this error.More information about this
error may be available in the server error log.*
If someone has any idea? To be complete, since the beginning of my tests, I
have never had a log file generated in /var/log/qgis...This folder has been
always remained empty
Thanks a lot.

Le lun. 27 mars 2023 à 11:48, celati Laurent  a
écrit :

> Good morning,
> I have just (finally) validated the installation of Qgis server on our
> Debian server.
> I manage to serve/broadcast the .qgs project and the data made available
> by the community (world.qgs project). These are shp files.
> In parallel with the installation of Lizmap or QWC2, I would like to test
> this time the fact to serve of qgis projects containing postgis tables from
> our database. How to do this ? Especially for the definition of the URL?
> How to define in the URL the sources of the postgis tables? The URL notably
> has a LAYERS&...
> How for example to publish all the postgis tables contained in a project,
> without having to specify each of them in the URL?
> Thank you so much.
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server : install QWC2 and Lizmap on the same server?

2023-03-27 Thread celati Laurent via QGIS-User
0


Dear all,

I succeed in installing qgis server on our Debian server. Before starting
on the installation and documentation of QWC2 and Lizmap, we would have
been interested in a small comparison of these two solutions. In a test
perspective, is it possible to have these 2 solutions installed on the same
Debian server? (for information, we have apache as web server). Or is it
unadviced to attempt this double installation (risk of conflicts in
particular)?

Thanks a lot.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS server : Serve Postgis data ?

2023-03-27 Thread celati Laurent via QGIS-User
Good morning,
I have just (finally) validated the installation of Qgis server on our
Debian server.
I manage to serve/broadcast the .qgs project and the data made available by
the community (world.qgs project). These are shp files.
In parallel with the installation of Lizmap or QWC2, I would like to test
this time the fact to serve of qgis projects containing postgis tables from
our database. How to do this ? Especially for the definition of the URL?
How to define in the URL the sources of the postgis tables? The URL notably
has a LAYERS&...
How for example to publish all the postgis tables contained in a project,
without having to specify each of them in the URL?
Thank you so much.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-27 Thread celati Laurent via QGIS-User
;= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>=
>>> 2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2),
>>> libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>=
>>> 5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3),
>>> libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>=
>>> 5.2)Conflicts: qgis-mapserverDescription: QGIS server providing various OGC
>>> services QGIS is a Geographic Information System (GIS) which manages,
>>> analyzes and display databases of geographic information. This package
>>> contains the QGIS server.Homepage: https://qgis.org/ <https://qgis.org/>*
>>>
>>> Regarding the debian version installed :
>>> lsb_release -a
>>> No LSB modules are available.
>>> Distributor ID: Debian
>>> Description:Debian GNU/Linux 11 (bullseye)
>>> Release:11
>>> Codename:   bullseye
>>>
>>>
>>> Within the qgis.demo.conf, i took the liberty to change the IP value of
>>> the server by the name of the server.
>>> Then :
>>> root@XX:/etc/apache2/sites-available# a2ensite 
>>> ERROR: Site XX does not exist!
>>>
>>> Then. After a restart of Apache. I get this error message :
>>> root@X:/etc/apache2/sites-available# curl
>>> .fr/cgi-bin/qgis_mapserv.fcgi
>>> Project file error
>>>
>>> Thanks a lot for your help.
>>>
>>> Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
>>> r.agui...@utwente.nl> a écrit :
>>>
>>>> Hi,
>>>>
>>>>
>>>>
>>>> There is a helpful material at:
>>>> https://github.com/elpaso/qgis3-server-vagrant,
>>>>
>>>> Also a docker container image at:
>>>> https://github.com/elpaso/qgis-server-docker.
>>>>
>>>> Perhaps you could use this material as a starting point.
>>>>
>>>> Hope this helps.
>>>>
>>>>
>>>>
>>>> Best,
>>>>
>>>>
>>>>
>>>> Rosa
>>>>
>>>>
>>>>
>>>> -
>>>>
>>>> Dr. Rosa Aguilar
>>>>
>>>> University of Twente
>>>>
>>>> Faculty of Geoinformation Science and Earth Observation
>>>>
>>>> Connect with me on LinkedIn
>>>> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>>>>
>>>> https://rosaguilar.github.io
>>>>
>>>> -
>>>>
>>>> The essential is invisible to the eye. Saint-Exupéry
>>>>
>>>>
>>>>
>>>> *From:* QGIS-User  *On Behalf Of *celati
>>>> Laurent via QGIS-User
>>>> *Sent:* Wednesday, March 15, 2023 4:23 PM
>>>> *To:* qgis-user 
>>>> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>>>>
>>>>
>>>>
>>>> Good afternnon,
>>>>
>>>>
>>>> I want to install Qgis server on my Linux Debian server virtual .For
>>>> now, it's not working.
>>>> FYI, I already have a working apache server and used for geoserver and
>>>> geonetwork.
>>>>
>>>> I followed the Qgis server doc/tutorial:
>>>>
>>>>
>>>> https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
>>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
>>>>
>>>> https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
>>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-26 Thread Andrea Giudiceandrea via QGIS-User

Il 26/03/2023 23:47, celati Laurent ha scritto:


And when i enter : /
/
http://SERVER/cgi-bin/qgis_mapserv.fcgi 
 
SERVICE=WMS=1.3.0=GetCapabilities


I obtain :
|

|This XML file does not appear to have any style information associated 
with it. The document tree is shown below. xmlns:sld="http://www.opengis.net/sld " 
xmlns="http://www.opengis.net/wms " 


Good. This means that the QGIS Server and Apache web server are up and 
running and correctly respond to the request.


> When i enter :
> 
/http://SERVER/qgisserver?MAP=/home/qgis/projects/world.qgs=continents=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180 


> I obtain :
> /Not Found The requested URL was not found on this server. Apache/2.4.54
> (Debian) Server SERVER Port 80/

It seems to me that URL is incorrect.
AFAIK it should be:

http://SERVER/cgi-bin/qgis_mapserv.fcgi?...

not:

http://SERVER/qgisserver?...

See 
https://docs.qgis.org/3.28/en/docs/training_manual/qgis_server/wms.html#getmap-requests


Probably there is a typo in the QGIS Server manual.

Best regards.

Andrea
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-26 Thread celati Laurent via QGIS-User
_release -a
>> No LSB modules are available.
>> Distributor ID: Debian
>> Description:Debian GNU/Linux 11 (bullseye)
>> Release:11
>> Codename:   bullseye
>>
>>
>> Within the qgis.demo.conf, i took the liberty to change the IP value of
>> the server by the name of the server.
>> Then :
>> root@XX:/etc/apache2/sites-available# a2ensite 
>> ERROR: Site XX does not exist!
>>
>> Then. After a restart of Apache. I get this error message :
>> root@X:/etc/apache2/sites-available# curl
>> .fr/cgi-bin/qgis_mapserv.fcgi
>> Project file error
>>
>> Thanks a lot for your help.
>>
>> Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
>> r.agui...@utwente.nl> a écrit :
>>
>>> Hi,
>>>
>>>
>>>
>>> There is a helpful material at:
>>> https://github.com/elpaso/qgis3-server-vagrant,
>>>
>>> Also a docker container image at:
>>> https://github.com/elpaso/qgis-server-docker.
>>>
>>> Perhaps you could use this material as a starting point.
>>>
>>> Hope this helps.
>>>
>>>
>>>
>>> Best,
>>>
>>>
>>>
>>> Rosa
>>>
>>>
>>>
>>> -
>>>
>>> Dr. Rosa Aguilar
>>>
>>> University of Twente
>>>
>>> Faculty of Geoinformation Science and Earth Observation
>>>
>>> Connect with me on LinkedIn
>>> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>>>
>>> https://rosaguilar.github.io
>>>
>>> -
>>>
>>> The essential is invisible to the eye. Saint-Exupéry
>>>
>>>
>>>
>>> *From:* QGIS-User  *On Behalf Of *celati
>>> Laurent via QGIS-User
>>> *Sent:* Wednesday, March 15, 2023 4:23 PM
>>> *To:* qgis-user 
>>> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>>>
>>>
>>>
>>> Good afternnon,
>>>
>>>
>>> I want to install Qgis server on my Linux Debian server virtual .For
>>> now, it's not working.
>>> FYI, I already have a working apache server and used for geoserver and
>>> geonetwork.
>>>
>>> I followed the Qgis server doc/tutorial:
>>>
>>>
>>> https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
>>>
>>> https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jh35omGXX%2FoArpmE234Xr%2BxuHzVDflxKav8EVzWpHXA%3D=0>
>>>
>>> FYI, when I test the executable, here is the message.The version seems
>>> to be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *[code]root@XX:/usr/lib/cgi-bin#
>>> /usr/lib/cgi-bin/qgis_mapserv.fcgi --version Application path not
>>> initialized Application path not initialized Application path not
>>> initialized QStandardPaths: runtime directory '/run/user/1001' is not owned
>>> by UID 0, but a directory permissions 0700 owned by UID 1001 GID 1001
>>> Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment
>>> variable. Warning 1: Unable to find ECW driver to unload from GDAL_SKIP
>>> environment variable. Warning 1: 

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-23 Thread Jorge Gustavo Rocha via QGIS-User

Hi,

You are using curl on the command line. You need to protect the url 
between quotes.


Can you try again with quotes around the URL?

Regards,

Jorge

On 23/03/23 14:06, celati Laurent via QGIS-User wrote:

Good morning,
Thanks a lot for your message.

I uninstalled everything I had installed up to now (from the Debian 
repository)  which only offered the qgis server 3.10 version.
I added the official qgis repository which allowed to install the 
version of qgis server 3.30. For information,  the qgis project that I 
am trying to serve is version 3.28 and not 3.30.

This is the current error message I am getting now:

/ curl 
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities 
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities>

[1] 395943
[2] 395944
root@SERVEUR_NAME:/home/qgis/projects# encoding="UTF-8"?>
http://www.opengis.net/ogc; 
version="1.3.0">
  Please add or check 
the value of the REQUEST parameter


^C
[1]- Done curl 
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS 
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS>

[2]+ Finished VERSION=1.3.0
/
Do you know what is the request parameter within the URL ?
Someone can help me? Thanks a lot.

Le ven. 17 mars 2023 à 13:08, celati Laurent 
 a écrit :


Good afternoon,
First, thank you so much for your replies.
I'm trying to give additional/updated inputs.
I confirm to you that i installed the server thanks to a `apt
install qgis-server` command.
Please read the results when i tape this command :
/root@xx:/etc/apache2/sites-available# dpkg -s qgis-server
Package: qgis-server
Status: install ok installed
Priority: optional
Section: science
Installed-Size: 9019
Maintainer: Debian GIS Project

Architecture: amd64
Source: qgis
Version: 3.10.14+dfsg-1
Replaces: qgis-mapserver
Provides: qgis-mapserver
Depends: python3-qgis (= 3.10.14+dfsg-1), qgis-providers (=
3.10.14+dfsg-1), libc6 (>= 2.29), libexiv2-27 (>= 0.27.3),
libfcgi0ldbl (>= 2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14
(>= 3.10.2), libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>=
5.15.1), libqt5gui5 (>= 5.3.0) | libqt5gui5-gles (>= 5.3.0),
libqt5webkit5 (>= 5.212.0~alpha3), libqt5widgets5 (>= 5.0.2),
libqt5xml5 (>= 5.0.2), libstdc++6 (>= 5.2)
Conflicts: qgis-mapserver
Description: QGIS server providing various OGC services
 QGIS is a Geographic Information System (GIS) which manages,
analyzes and
 display databases of geographic information.
 This package contains the QGIS server.
Homepage: https://qgis.org//
/
/
Regarding the debian version installed :
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye


Within the qgis.demo.conf, i took the liberty to change the IP
value of the server by the name of the server.
Then :
root@XX:/etc/apache2/sites-available# a2ensite 
ERROR: Site XX does not exist!
Then. After a restart of Apache. I get this error message :
root@X:/etc/apache2/sites-available# curl
.fr/cgi-bin/qgis_mapserv.fcgi
Project file error

Thanks a lot for your help.

Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC)
 a écrit :

Hi,

There is a helpful material at:
https://github.com/elpaso/qgis3-server-vagrant,

Also a docker container image
at:https://github.com/elpaso/qgis-server-docker.

Perhaps you could use this material as a starting point.

Hope this helps.

Best,

Rosa

-

Dr. Rosa Aguilar

University of Twente

Faculty of Geoinformation Science and Earth Observation

Connect with me on LinkedIn
<https://www.linkedin.com/in/rosamaguilar/?locale=en_US>

https://rosaguilar.github.io <https://rosaguilar.github.io/>__

-

The essential is invisible to the eye. Saint-Exupéry

*From:*QGIS-User  *On
Behalf Of *celati Laurent via QGIS-User
    *Sent:* Wednesday, March 15, 2023 4:23 PM
*To:* qgis-user 
*Subject:* [Qgis-user] Qgis server : install on Linux Debian

Good afternnon,


I want to install Qgis server on my Linux Debian server
virtual .For now, it's not working.
FYI, I already have a working apache server and used for
geoserver and geonetwork.

I followed the Qgis server doc/tutorial:


https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html

<https:

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-23 Thread celati Laurent via QGIS-User
Good morning,
Thanks a lot for your message.

I uninstalled everything I had installed up to now (from the Debian
repository)  which only offered the qgis server 3.10 version.
I added the official qgis repository which allowed to install the version
of qgis server 3.30. For information,  the qgis project that I am trying to
serve is version 3.28 and not 3.30.
This is the current error message I am getting now:











* curl
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities>[1]
395943[2] 395944root@SERVEUR_NAME:/home/qgis/projects# http://www.opengis.net/ogc
<http://www.opengis.net/ogc>" version="1.3.0">  Please add or check the value of the REQUEST
parameter^C[1]- Done curl
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS>[2]+ Finished
VERSION=1.3.0*
Do you know what is the request parameter within the URL ?
Someone can help me? Thanks a lot.

Le ven. 17 mars 2023 à 13:08, celati Laurent  a
écrit :

> Good afternoon,
> First, thank you so much for your replies.
> I'm trying to give additional/updated inputs.
> I confirm to you that i installed the server thanks to a `apt install
> qgis-server` command.
> Please read the results when i tape this command :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *root@xx:/etc/apache2/sites-available# dpkg -s qgis-serverPackage:
> qgis-serverStatus: install ok installedPriority: optionalSection:
> scienceInstalled-Size: 9019Maintainer: Debian GIS Project
>  >Architecture: amd64Source:
> qgisVersion: 3.10.14+dfsg-1Replaces: qgis-mapserverProvides:
> qgis-mapserverDepends: python3-qgis (= 3.10.14+dfsg-1), qgis-providers (=
> 3.10.14+dfsg-1), libc6 (>= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>=
> 2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2),
> libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>=
> 5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3),
> libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>=
> 5.2)Conflicts: qgis-mapserverDescription: QGIS server providing various OGC
> services QGIS is a Geographic Information System (GIS) which manages,
> analyzes and display databases of geographic information. This package
> contains the QGIS server.Homepage: https://qgis.org/ <https://qgis.org/>*
>
> Regarding the debian version installed :
> lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description:Debian GNU/Linux 11 (bullseye)
> Release:11
> Codename:   bullseye
>
>
> Within the qgis.demo.conf, i took the liberty to change the IP value of
> the server by the name of the server.
> Then :
> root@XX:/etc/apache2/sites-available# a2ensite 
> ERROR: Site XX does not exist!
>
> Then. After a restart of Apache. I get this error message :
> root@X:/etc/apache2/sites-available# curl
> .fr/cgi-bin/qgis_mapserv.fcgi
> Project file error
>
> Thanks a lot for your help.
>
> Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
> r.agui...@utwente.nl> a écrit :
>
>> Hi,
>>
>>
>>
>> There is a helpful material at:
>> https://github.com/elpaso/qgis3-server-vagrant,
>>
>> Also a docker container image at:
>> https://github.com/elpaso/qgis-server-docker.
>>
>> Perhaps you could use this material as a starting point.
>>
>> Hope this helps.
>>
>>
>>
>> Best,
>>
>>
>>
>> Rosa
>>
>>
>>
>> -
>>
>> Dr. Rosa Aguilar
>>
>> University of Twente
>>
>> Faculty of Geoinformation Science and Earth Observation
>>
>> Connect with me on LinkedIn
>> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>>
>> https://rosaguilar.github.io
>>
>> -
>>
>> The essential is invisible to the eye. Saint-Exupéry
>>
>>
>>
>> *From:* QGIS-User  *On Behalf Of *celati
>> Laurent via QGIS-User
>> *Sent:* Wednesday, March 15, 2023 4:23 PM
>> *To:* qgis-user 
>> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>>
>>
>>
>> Good afternnon,
>>
>>
>> I want to install Qgis server on my Linux Debian server virtual .For now,
>> it's not working.
>> FYI, I already have a working apache server and used for geoserver and
>>

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-18 Thread Andrea Giudiceandrea via QGIS-User

celati Laurent laurent.celati at gmail.com
Fri Mar 17 05:08:56 PDT 2023



I confirm to you that i installed the server thanks to a `apt install
qgis-server` command.



*root at xx:/etc/apache2/sites-available# dpkg -s qgis-serverPackage:
qgis-serverStatus: install ok installedPriority: optionalSection:
scienceInstalled-Size: 9019Maintainer: Debian GIS Project


Hi Laurent,
it seems you didn't follow the instructions available at 
https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu as 
advised in the QGIS Server Guide/Manual, so you ended up installing QGIS 
from the Debian bullseye repository (in which the latest available 
version is QGIS 3.10.14) instead of the QGIS repositories (in which the 
latest available versions for Debian bullseye are QGIS 3.28.4 and QGIS 
3.30.0).


Best regards.

Andrea Giudiceandrea
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-17 Thread celati Laurent via QGIS-User
Good afternoon,
First, thank you so much for your replies.
I'm trying to give additional/updated inputs.
I confirm to you that i installed the server thanks to a `apt install
qgis-server` command.
Please read the results when i tape this command :


















*root@xx:/etc/apache2/sites-available# dpkg -s qgis-serverPackage:
qgis-serverStatus: install ok installedPriority: optionalSection:
scienceInstalled-Size: 9019Maintainer: Debian GIS Project
>Architecture: amd64Source:
qgisVersion: 3.10.14+dfsg-1Replaces: qgis-mapserverProvides:
qgis-mapserverDepends: python3-qgis (= 3.10.14+dfsg-1), qgis-providers (=
3.10.14+dfsg-1), libc6 (>= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>=
2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2),
libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>=
5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3),
libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>=
5.2)Conflicts: qgis-mapserverDescription: QGIS server providing various OGC
services QGIS is a Geographic Information System (GIS) which manages,
analyzes and display databases of geographic information. This package
contains the QGIS server.Homepage: https://qgis.org/ <https://qgis.org/>*

Regarding the debian version installed :
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:Debian GNU/Linux 11 (bullseye)
Release:11
Codename:   bullseye


Within the qgis.demo.conf, i took the liberty to change the IP value of the
server by the name of the server.
Then :
root@XX:/etc/apache2/sites-available# a2ensite 
ERROR: Site XX does not exist!

Then. After a restart of Apache. I get this error message :
root@X:/etc/apache2/sites-available# curl
.fr/cgi-bin/qgis_mapserv.fcgi
Project file error

Thanks a lot for your help.

Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
r.agui...@utwente.nl> a écrit :

> Hi,
>
>
>
> There is a helpful material at:
> https://github.com/elpaso/qgis3-server-vagrant,
>
> Also a docker container image at:
> https://github.com/elpaso/qgis-server-docker.
>
> Perhaps you could use this material as a starting point.
>
> Hope this helps.
>
>
>
> Best,
>
>
>
> Rosa
>
>
>
> -
>
> Dr. Rosa Aguilar
>
> University of Twente
>
> Faculty of Geoinformation Science and Earth Observation
>
> Connect with me on LinkedIn
> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>
> https://rosaguilar.github.io
>
> -
>
> The essential is invisible to the eye. Saint-Exupéry
>
>
>
> *From:* QGIS-User  *On Behalf Of *celati
> Laurent via QGIS-User
> *Sent:* Wednesday, March 15, 2023 4:23 PM
> *To:* qgis-user 
> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>
>
>
> Good afternnon,
>
>
> I want to install Qgis server on my Linux Debian server virtual .For now,
> it's not working.
> FYI, I already have a working apache server and used for geoserver and
> geonetwork.
>
> I followed the Qgis server doc/tutorial:
>
> https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
>
> https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jh35omGXX%2FoArpmE234Xr%2BxuHzVDflxKav8EVzWpHXA%3D=0>
>
> FYI, when I test the executable, here is the message.The version seems to
> be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[code]root@XX:/usr/lib/cgi-bin#
> /usr/lib/cgi-bin/qgis_mapserv.fcgi --version Application path not
> initialized Application path not initialized Application path not
> initiali

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-15 Thread Aguilar Bolivar, Rosa (UT-ITC) via QGIS-User
Hi,

There is a helpful material at: https://github.com/elpaso/qgis3-server-vagrant,
Also a docker container image at: https://github.com/elpaso/qgis-server-docker.
Perhaps you could use this material as a starting point.
Hope this helps.

Best,

Rosa

-
Dr. Rosa Aguilar
University of Twente
Faculty of Geoinformation Science and Earth Observation
Connect with me on 
LinkedIn<https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
https://rosaguilar.github.io<https://rosaguilar.github.io/>
-
The essential is invisible to the eye. Saint-Exupéry

From: QGIS-User  On Behalf Of celati Laurent 
via QGIS-User
Sent: Wednesday, March 15, 2023 4:23 PM
To: qgis-user 
Subject: [Qgis-user] Qgis server : install on Linux Debian

Good afternnon,

I want to install Qgis server on my Linux Debian server virtual .For now, it's 
not working.
FYI, I already have a working apache server and used for geoserver and 
geonetwork.

I followed the Qgis server doc/tutorial:
https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jh35omGXX%2FoArpmE234Xr%2BxuHzVDflxKav8EVzWpHXA%3D=0>

FYI, when I test the executable, here is the message.The version seems to be 
qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
[code]root@XX:/usr/lib/cgi-bin# /usr/lib/cgi-bin/qgis_mapserv.fcgi 
--version
Application path not initialized
Application path not initialized
Application path not initialized
QStandardPaths: runtime directory '/run/user/1001' is not owned by UID 0, but a 
directory permissions 0700 owned by UID 1001 GID 1001
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment 
variable.
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment 
variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment 
variable.
Initializing server modules from "/usr/lib/qgis/server"
"Checking /usr/lib/qgis/server for native services modules"
"Loading native module /usr/lib/qgis/server/libdummy.so"
"Loading native module /usr/lib/qgis/server/libwcs.so"
"Loading native module /usr/lib/qgis/server/libwfs.so"
"Loading native module /usr/lib/qgis/server/libwfs3.so"
"Loading native module /usr/lib/qgis/server/libwms.so"
"Loading native module /usr/lib/qgis/server/libwmts.so"
:1: DeprecationWarning: setapi() is deprecated
Logged warning: Loading a file that was saved with an older version of qgis 
(saved in 0.0.0, loaded in 3.10.14-A Coruña). Problems may occur.
Content Length: 206
Content-Type: text/xml; charset=utf-8
[b]Server: Qgis FCGI server - QGis version 3.10.14-A Coruña
Status: 200
http://www.opengis.net/ogc<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opengis.net%2Fogc=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298370457%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=quyHw82PqJGv79OxOfI2MD360x9T0B7%2FP%2Bn2teJ%2FNUk%3D=0>"
 version="1.3.0">
Service unknown or 
unsupported


I installed mod_fcgid successfully.
As I already Apache installed. What should I do ? I would like to be able to 
coexist geoserver, geonetwork and qgis server. I would like to be able to add 
for qgis server a https://SERVEUR_NAME/qgis_server URL.

I created a qgis.demo.conf file under etc/apache2/sites-available. I only 
replaced ServerName with my server's IP. I haven't changed anything else. Given 
my needs and working environment, should I modify the first line of the file? :
[

I created the directories that will store the QGIS server logs and the 
authentication database logs:
[code]mkdir -p /var/log/qgis/
chown www-data:www-data /var/log/qgis
mkdir -p /home/qgis/qgisserverdb
chown www-data:www-data /home/qgis/qgi

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-15 Thread Andrea Giudiceandrea via QGIS-User

celati Laurent laurent.celati at gmail.com
Wed Mar 15 08:23:10 PDT 2023



The version seems to
be qgis 3.10 (and not 3.22).


Hi Laurent,
the QGIS version installed depends on your Debian OS version and on the 
package repository used to install QGIS.


What Debian version are you using? What repository? Did you follow the 
installation instruction for you Linux distribution available on the 
QGIS web site as mentioned in the QGIS Server Guide/Manual?


Best regards.

Andrea Giudiceandrea
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-15 Thread Tomas Pospisek via QGIS-User

On 15.03.23 16:23, celati Laurent via QGIS-User wrote:

Good afternnon,

I want to install Qgis server on my Linux Debian server virtual .For 
now, it's not working.
FYI, I already have a working apache server and used for geoserver and 
geonetwork.


I followed the Qgis server doc/tutorial:
https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html 

https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
 


FYI, when I test the executable, here is the message.The version seems 
to be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
/[code]root@XX:/usr/lib/cgi-bin# 
/usr/lib/cgi-bin/qgis_mapserv.fcgi --version

Application path not initialized
Application path not initialized
Application path not initialized
QStandardPaths: runtime directory '/run/user/1001' is not owned by UID 
0, but a directory permissions 0700 owned by UID 1001 GID 1001
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP 
environment variable.
Warning 1: Unable to find ECW driver to unload from GDAL_SKIP 
environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP 
environment variable.

Initializing server modules from "/usr/lib/qgis/server"
"Checking /usr/lib/qgis/server for native services modules"
"Loading native module /usr/lib/qgis/server/libdummy.so"
"Loading native module /usr/lib/qgis/server/libwcs.so"
"Loading native module /usr/lib/qgis/server/libwfs.so"
"Loading native module /usr/lib/qgis/server/libwfs3.so"
"Loading native module /usr/lib/qgis/server/libwms.so"
"Loading native module /usr/lib/qgis/server/libwmts.so"
:1: DeprecationWarning: setapi() is deprecated
Logged warning: Loading a file that was saved with an older version of 
qgis (saved in 0.0.0, loaded in 3.10.14-A Coruña). Problems may occur.

Content Length: 206
Content-Type: text/xml; charset=utf-8
[b]Server: Qgis FCGI server - QGis version 3.10.14-A Coruña
Status: 200
http://www.opengis.net/ogc 
" version="1.3.0">
Service unknown or 
unsupported

/


I guess it's best to solve one problem after the other. So above we see 
that the qgis server is working.


We do not see how you installed the server. I am guessing you did a `apt 
install qgis-server`. If that's the case then you should be able to see 
the version of the installed qgis server like this: `dpkg -s qgis-server`.



I installed mod_fcgid successfully.
As I already Apache installed. What should I do ? I would like to be 
able to coexist geoserver, geonetwork and qgis server. I would like to 
be able to add for qgis server a https://SERVEUR_NAME/qgis_server 
 URL.


I created a qgis.demo.conf file under etc/apache2/sites-available. I 
only replaced ServerName with my server's IP. I haven't changed anything 
else. Given my needs and working environment, should I modify the first 
line of the file? :

[

/I created the directories that will store the QGIS server logs and the 
authentication database logs:

[code]mkdir -p /var/log/qgis/
chown www-data:www-data /var/log/qgis
mkdir -p /home/qgis/qgisserverdb
chown www-data:www-data /home/qgis/qgisserverdb/

I enabled fgcid mode and virtual host. But after restarting apache, I 
got nothing.

/
root@:/etc# curl 
http://XXX.fr/cgi-bin/qgis_mapserv.fcgi 




301 Moved Permanently

Moved Permanently
The document has moved href="https://XXXcgi-bin/qgis_mapserv.fcgi 
">here.


Apache/2.4.54 (Debian) Server at XXX.fr Port 80
[/code]/


You need to configure apache so that when it gets the URL 
http://XXX.fr/cgi-bin/qgis_mapserv.fcgi that the request ends up at 
the qgis server.


Via the browser, when I try 
/X.fr/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities/

It says Site Unreachable.

If someone could help me? THANKS.


*t

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server : install on Linux Debian

2023-03-15 Thread celati Laurent via QGIS-User
Good afternnon,

I want to install Qgis server on my Linux Debian server virtual .For now,
it's not working.
FYI, I already have a working apache server and used for geoserver and
geonetwork.

I followed the Qgis server doc/tutorial:
https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems

FYI, when I test the executable, here is the message.The version seems to
be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
























*[code]root@XX:/usr/lib/cgi-bin# /usr/lib/cgi-bin/qgis_mapserv.fcgi
--versionApplication path not initializedApplication path not
initializedApplication path not initializedQStandardPaths: runtime
directory '/run/user/1001' is not owned by UID 0, but a directory
permissions 0700 owned by UID 1001 GID 1001Warning 1: Unable to find ECW
driver to unload from GDAL_SKIP environment variable.Warning 1: Unable to
find ECW driver to unload from GDAL_SKIP environment variable.Warning 1:
Unable to find driver JP2ECW to unload from GDAL_SKIP environment
variable.Initializing server modules from "/usr/lib/qgis/server""Checking
/usr/lib/qgis/server for native services modules""Loading native module
/usr/lib/qgis/server/libdummy.so""Loading native module
/usr/lib/qgis/server/libwcs.so""Loading native module
/usr/lib/qgis/server/libwfs.so""Loading native module
/usr/lib/qgis/server/libwfs3.so""Loading native module
/usr/lib/qgis/server/libwms.so""Loading native module
/usr/lib/qgis/server/libwmts.so":1: DeprecationWarning: setapi() is
deprecatedLogged warning: Loading a file that was saved with an older
version of qgis (saved in 0.0.0, loaded in 3.10.14-A Coruña). Problems may
occur.Content Length: 206Content-Type: text/xml; charset=utf-8[b]Server:
Qgis FCGI server - QGis version 3.10.14-A CoruñaStatus:
200http://www.opengis.net/ogc
" version="1.3.0">Service unknown or
unsupported*

I installed mod_fcgid successfully.
As I already Apache installed. What should I do ? I would like to be able
to coexist geoserver, geonetwork and qgis server. I would like to be able
to add for qgis server a https://SERVEUR_NAME/qgis_server URL.

I created a qgis.demo.conf file under etc/apache2/sites-available. I only
replaced ServerName with my server's IP. I haven't changed anything else.
Given my needs and working environment, should I modify the first line of
the file? :
[





*I created the directories that will store the QGIS server logs and the
authentication database logs:[code]mkdir -p /var/log/qgis/chown
www-data:www-data /var/log/qgismkdir -p /home/qgis/qgisserverdbchown
www-data:www-data /home/qgis/qgisserverdb*

I enabled fgcid mode and virtual host. But after restarting apache, I got
nothing.










*root@:/etc# curl
http://XXX.fr/cgi-bin/qgis_mapserv.fcgi
301 Moved
PermanentlyMoved PermanentlyThe document
has moved https://XXXcgi-bin/qgis_mapserv.fcgi
">here.Apache/2.4.54
(Debian) Server at XXX.fr Port 80[/code]*

Via the browser, when I try
*X.fr/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities*
It says Site Unreachable.

If someone could help me? THANKS.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis Server: how to log database queries

2023-02-03 Thread Alessandro Pasotti via QGIS-User
No, there is no (easy) way to log the SQL in QGIS server.

You may try with a server plugin that uses the new debugging panel
query logger but I'm not sure if that will work (I didn't try).

Kind regards.


On Fri, Feb 3, 2023 at 5:38 PM Tommaso via QGIS-User
 wrote:
>
> Hello,
> my WFS service - based on docker-qgis-server/  3.28.0 (the camptocamp image) 
> -  is not returning all features I expect, when I use a spatial query.
> To debug the problem, I would like to see the queries, which Qgis send to the 
> database. But it seems that the maximal log level is INFO, which logs only 
> the HTTP requests:
>
> QGIS_SERVER_LOG_LEVEL=0
>
> https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/config.html#logging
>
>
> There is way to see database queries? Unfortunately I don't have access to 
> the machine, where the database is running, so I cannot check the queries on 
> that machine.
>
> Best regards, Tommaso
>
> --
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis Server: how to log database queries

2023-02-03 Thread Tommaso via QGIS-User

Hello,

my WFS service - based on docker-qgis-server/  3.28.0 (the camptocamp 
image) -  is not returning all features I expect, when I use a spatial 
query. 
To debug the problem, I would like to see the queries, which Qgis send to 
the database. But it seems that the maximal log level is INFO, which logs 
only the HTTP requests:



QGIS_SERVER_LOG_LEVEL=0
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/config.html#logging





There is way to see database queries? Unfortunately I don't have access to 
the machine, where the database is running, so I cannot check the queries 
on that machine.



Best regards, Tommaso

--
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server error log - Solved

2023-02-01 Thread Schmidt Christian via QGIS-User
Hi Thomas,

Habe das gleiche Problem mit Python, exakt gleiche Fehlermeldung im Log von 
QGIS-Server.
Was ich nicht ganz verstehe, ist wie Du das Problem lösen konntest.
was the additional(!) installation of the corresponding qgis package from the 
OSGeo4W installer.

Welches Package meinst Du denn?

Beste Grüsse

Christian Schmidt

[cid:image001.png@01D9364A.879C2F60]

RELIS AG | Bahnhofstrasse 40 | 5400 Baden
Zentrale:  +41 (0)56 210 39 60
Direkt:  +41 (0)56 210 39 71
www.relis.ch
bim-solutions.ch

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis Server: Configuring max number of WFS features served by the server

2023-01-19 Thread Tom via QGIS-User

Hello Gerald,
thank you! 
I set the variable and I see in the log file the following message


"15:41:27 INFO Server[93]: - QGIS_SERVER_API_WFS3_MAX_LIMIT / 
'/qgis/server_api_wfs3_max_limit' (Maximum value for "limit" in a features 
request, defaults to 1): '1000' (read from ENVIRONMENT_VARIABLE) "


So, it should work, but the WFS requests are still returning all 
features...How can I debug this?


Best regards, Tommaso


On Tuesday 17 January 2023 15:30:55 (+01:00), Gerald Kogler via QGIS-User 
wrote:



> Hi Tom,

> 

> I think QGIS_SERVER_API_WFS3_MAX_LIMIT is what you are looking for: 
https://docs.qgis.org/3.22/en/docs/server_manual/config.html#environment-variables







> For sure you always can limit it also from the request using 
MAXFEATURES, which is a standard OGC WFS parameter: 
https://docs.qgis.org/3.22/en/docs/server_manual/services/wfs.html#wfs-getfeature-maxfeatures







> hope that helps

> Gerald

> 

> 

> 


> On 17/1/23 15:22, Tom via QGIS-User wrote:

> > Hello,

> > I want to limit the number of WFS features serve by Qgis Server.

> > In Geoserver one can configure this in "Maximum number of features"

> > There is such a option in Qgis Server?

> > Best regards, Tommaso

> > ___

> > QGIS-User mailing list

> > QGIS-User@lists.osgeo.org

> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

> 


> ___

> QGIS-User mailing list

> QGIS-User@lists.osgeo.org

> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

> 


--
Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis Server: Configuring max number of WFS features served by the server

2023-01-17 Thread Gerald Kogler via QGIS-User

Hi Tom,

I think QGIS_SERVER_API_WFS3_MAX_LIMIT is what you are looking for: 
https://docs.qgis.org/3.22/en/docs/server_manual/config.html#environment-variables


For sure you always can limit it also from the request using 
MAXFEATURES, which is a standard OGC WFS parameter: 
https://docs.qgis.org/3.22/en/docs/server_manual/services/wfs.html#wfs-getfeature-maxfeatures


hope that helps
Gerald



On 17/1/23 15:22, Tom via QGIS-User wrote:

Hello,

I want to limit the number of WFS features serve by Qgis Server.

In Geoserver one can configure this in "Maximum number of features"

There is such a option in Qgis Server?

Best regards, Tommaso

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis Server: Configuring max number of WFS features served by the server

2023-01-17 Thread Tom via QGIS-User
Hello,


I want to limit the number of WFS features serve by Qgis Server.


In Geoserver one can configure this in "Maximum number of features"


There is such a option in Qgis Server?


Best regards, Tommaso___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server hardware specifications

2022-12-12 Thread jhubbslist--- via QGIS-User
Do you have Linux expertise in-house? I ask because if so, you can set 
up and run QGIS Server on a Linux system and hit it from web browsers 
instead of using Remote Desktop. Also, consider if that's what you 
really want to do versus give a bunch of QGIS users - each running QGIS 
locally on their own machines - access to a common set of GIS data. That 
can be done by file services (mostly has to be read-only, though) or by 
something more flexible and structurable like PostgreSQL/PostGIS.


On 12/12/22 9:00 AM, Kevin via QGIS-User wrote:

Dear Qgis list members,
I would like to ask some questions regarding using Qgis on a terminal 
server which runs Windows Server 2019.

Does Qgis run on Windows Server 2019?
What are the hardware specifications for Qgis that runs on a Windows 
Server 2019?

Kind regards,
Kevin Keilich
IT-System Administrator

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server hardware specifications

2022-12-12 Thread Kevin via QGIS-User
Dear Qgis list members,

 

I would like to ask some questions regarding using Qgis on a terminal server which runs Windows Server 2019.

 

Does Qgis run on Windows Server 2019?

What are the hardware specifications for Qgis that runs on a Windows Server 2019?

 

Kind regards,

 

Kevin Keilich

IT-System Administrator
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS-Server How to avoid unique data check in postgis for each session

2022-11-16 Thread Amedeo Fadini via Qgis-user
Thank-you very much Jurgen, it works.
I found that in the .qgs file it an attribute "estimatedmetadata=true" on
ayer-tree-layer and datsource element.
Wonder if checkPrimaryKeyUnicity='1' on the same elements does mean
anything...

Amedeo

Il giorno mer 16 nov 2022 alle ore 15:00 Jürgen E. Fischer via Qgis-user <
qgis-user@lists.osgeo.org> ha scritto:

> Hi Amedeo,
>
> On Wed, 16. Nov 2022 at 14:18:57 +0100, Amedeo Fadini via Qgis-user wrote:
> > SELECT count(distinct ("id","field1"))=count(("id","field1")) FROM
> > "public"."mytable"
>
> Check  "use estimated table metadata" in the connection before adding the
> layer.
>
>
> Jürgen
>
>
> --
> Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
> Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
> Software Engineer   D-26506 Norden
> https://www.norbit.de
> QGIS release manager (PSC)  Germany IRC: jef on Libera|OFTC
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS-Server How to avoid unique data check in postgis for each session

2022-11-16 Thread Jürgen E . Fischer via Qgis-user
Hi Amedeo,

On Wed, 16. Nov 2022 at 14:18:57 +0100, Amedeo Fadini via Qgis-user wrote:
> SELECT count(distinct ("id","field1"))=count(("id","field1")) FROM
> "public"."mytable"

Check  "use estimated table metadata" in the connection before adding the
layer.


Jürgen


-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Nordenhttps://www.norbit.de
QGIS release manager (PSC)  Germany IRC: jef on Libera|OFTC


signature.asc
Description: PGP signature
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS-Server How to avoid unique data check in postgis for each session

2022-11-16 Thread Amedeo Fadini via Qgis-user
Hi everybody,
My question should be addressed to developers, but I have too many lists,
hope someone reads here too.
For the italian cadastre reference point publication [1]I have a large,
postgis table (~1,7 milions rows across Italy) partitioned over an
attribute list, so the Primary key is on two fields.
The date are published with QGIS server but each time the server receive a
request (GetMap or GetFeatuerinfo) i noticed that QGIS make a qery to check
if the primary key is unique

SELECT count(distinct ("id","field1"))=count(("id","field1")) FROM
"public"."mytable"

that is stated in this line of code:

https://github.com/qgis/QGIS/blob/1373d2bcfcc26a834d4a21a0a95187b77f64d4cd/src/providers/postgres/qgspostgresprovider.cpp#L2008

This query is quite slow, is there a way to set up the postgis table or
QGIS project to avoid this check?
Thanks

Amedeo Fadini

[1] www.topgeometri.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS-Server: missing tags in GetFeatureInfo-Response

2022-10-04 Thread Inka Tauber via Qgis-user
Thanks a lot for your quick reply! I think HTML templating is a long-awaited 
functionality.

Regards

--

Inka Tauber

Landesamt für Umwelt, Naturschutz und Geologie M-V
www.lung.mv-regierung.de
www.umweltkarten.mv-regierung.de


-Ursprüngliche Nachricht-
Von: Alessandro Pasotti [mailto:apaso...@gmail.com]
Gesendet: Freitag, 16. September 2022 15:17
An: (LUNG GUE, 120-1) Tauber, I. 
Cc: qgis-user 
Betreff: Re: [Qgis-user] QGIS-Server: missing tags in GetFeatureInfo-Response

On Fri, Sep 16, 2022 at 3:13 PM Inka Tauber via Qgis-user 
 wrote:
>
> Hello,
>
> QGIS Server GFI HTML response starts and ends with the HEAD tag. Some parts, 
> that are necessary to form a complete  HTML (DOCTYPE, HTML tag) are missing.  
> This may be useful, if the receiving application already creates the outer 
> HTML frame. But sometimes complete HTML or XML responses are needed. Is there 
> perhaps an configuration option to switch between full and only the inner 
> parts of GFI HTML and XML documents? Or is writing a plugin (similar to the 
> one described in 
> https://www.itopen.it/qgis-server-getfeatureinfo-with-style/) the only option?
>

That's the only option at the moment.

A PR to make it template-based is under development:
https://github.com/qgis/QGIS/issues/49851#issuecomment-1229899652




--
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it

Allgemeine Datenschutzinformation:
Der telefonische, schriftliche oder elektronische Kontakt mit dem Ministerium 
für Klimaschutz, Landwirtschaft, ländliche Räume und Umwelt 
Mecklenburg-Vorpommern ist mit der Speicherung und Verarbeitung der von Ihnen 
ggf. mitgeteilten persönlichen Daten verbunden. Rechtsgrundlage hierfür ist 
Art. 6 Absatz 1 Buchstabe e der Datenschutzgrundverordnung (DSGVO) der 
Europäischen Union in Verbindung mit § 4 Abs. 1 Landesdatenschutzgesetz (DSG 
M-V).
Weitere Informationen erhalten Sie hier: https://www.regierung-mv.de/Datenschutz
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS-Server: missing tags in GetFeatureInfo-Response

2022-09-16 Thread Alessandro Pasotti via Qgis-user
On Fri, Sep 16, 2022 at 3:13 PM Inka Tauber via Qgis-user
 wrote:
>
> Hello,
>
> QGIS Server GFI HTML response starts and ends with the HEAD tag. Some parts, 
> that are necessary to form a complete  HTML (DOCTYPE, HTML tag) are missing.  
> This may be useful, if the receiving application already creates the outer 
> HTML frame. But sometimes complete HTML or XML responses are needed. Is there 
> perhaps an configuration option to switch between full and only the inner 
> parts of GFI HTML and XML documents? Or is writing a plugin (similar to the 
> one described in 
> https://www.itopen.it/qgis-server-getfeatureinfo-with-style/) the only option?
>

That's the only option at the moment.

A PR to make it template-based is under development:
https://github.com/qgis/QGIS/issues/49851#issuecomment-1229899652




--
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS-Server: missing tags in GetFeatureInfo-Response

2022-09-16 Thread Inka Tauber via Qgis-user
Hello,

QGIS Server GFI HTML response starts and ends with the HEAD tag. Some parts, 
that are necessary to form a complete  HTML (DOCTYPE, HTML tag) are missing.  
This may be useful, if the receiving application already creates the outer HTML 
frame. But sometimes complete HTML or XML responses are needed. Is there 
perhaps an configuration option to switch between full and only the inner parts 
of GFI HTML and XML documents? Or is writing a plugin (similar to the one 
described in https://www.itopen.it/qgis-server-getfeatureinfo-with-style/) the 
only option?

Regards and thanks,
Inka



Allgemeine Datenschutzinformation:
Der telefonische, schriftliche oder elektronische Kontakt mit dem Ministerium 
f?r Klimaschutz, Landwirtschaft, l?ndliche R?ume und Umwelt 
Mecklenburg-Vorpommern ist mit der Speicherung und Verarbeitung der von Ihnen 
ggf. mitgeteilten pers?nlichen Daten verbunden. Rechtsgrundlage hierf?r ist 
Art. 6 Absatz 1 Buchstabe e der Datenschutzgrundverordnung (DSGVO) der 
Europ?ischen Union in Verbindung mit ? 4 Abs. 1 Landesdatenschutzgesetz (DSG 
M-V).
Weitere Informationen erhalten Sie hier: https://www.regierung-mv.de/Datenschutz
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server and Active Directory

2022-08-30 Thread Christoph Jung via Qgis-user
Thank you for the advice, Alessandro. I will have a look on it. 

> Am 30.08.2022 um 11:45 schrieb Alessandro Pasotti :
> 
> Hi,
> 
> not out of the box, but you might be able to develop a Python server
> plugin to implement custom authorization/authentication for the
> server.
> 
> A few examples are available here:
> https://github.com/elpaso/qgis3-server-vagrant/tree/master/resources/web/plugins
> 
> see httpbasic for example.
> 
> 
>> On Tue, Aug 30, 2022 at 11:39 AM Christoph Jung via Qgis-user
>>  wrote:
>> 
>> Hello everyone,
>> 
>> Does anybody have experience with the authorisation of web services 
>> published by the QGIS Server, especially using AD users/groups? Is it 
>> possible to create services that are usable without further action for some 
>> authorised users and all other users cannot consume this services?
>> 
>> Kind regards,
>> Christoph
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> 
> -- 
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server and Active Directory

2022-08-30 Thread Alessandro Pasotti via Qgis-user
Hi,

not out of the box, but you might be able to develop a Python server
plugin to implement custom authorization/authentication for the
server.

A few examples are available here:
https://github.com/elpaso/qgis3-server-vagrant/tree/master/resources/web/plugins

see httpbasic for example.


On Tue, Aug 30, 2022 at 11:39 AM Christoph Jung via Qgis-user
 wrote:
>
> Hello everyone,
>
> Does anybody have experience with the authorisation of web services published 
> by the QGIS Server, especially using AD users/groups? Is it possible to 
> create services that are usable without further action for some authorised 
> users and all other users cannot consume this services?
>
> Kind regards,
> Christoph
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server and Active Directory

2022-08-30 Thread Christoph Jung via Qgis-user
Hello everyone,

Does anybody have experience with the authorisation of web services published 
by the QGIS Server, especially using AD users/groups? Is it possible to create 
services that are usable without further action for some authorised users and 
all other users cannot consume this services?

Kind regards,
Christoph 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server Cache Strategy

2022-08-01 Thread Michael Hälsig via Qgis-user
Hi,
I am using QGIS Server 3.26.1 on Debian Bullseye. In the log I find the message

'WARNING Server[23950]: Invalid cache strategy, expecting 'filesystem', 
'periodic' or 'off'.'

I could ignore this (only warning) - but I would like to know how to set the 
cache strategy. What means cache strategy 'periodic'? I have set the 
environment variables QGIS_SERVER_CACHE_DIRECTORY=<..> and 
QGIS_SERVER_CACHE_SIZE=<...>, but this did not change anything. 

Any hints?

Kind regards
Michael Hälsig



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server install

2022-04-22 Thread Aguilar Bolivar, Rosa (UT-ITC) via Qgis-user
This a nice example, from Alessandro, one of the core devs  of qgis server
https://github.com/elpaso/qgis-server-docker

Hth

Rosa

On Apr 22, 2022 3:24 PM, Nicolas Boisteault via Qgis-user 
 wrote:

Hi,

I suggest you to try Docker with docker-composer.

Here is an example : 
https://github.com/3liz/lizmap-docker-compose/blob/master/docker-compose.yml

Le 21/04/2022 à 02:26, Silvia Vitorino Pereira via Qgis-user a écrit :

Hi everybody,
I'm completely new with QGis Server.
To install it on my Win10 Pro, I followed the steps in 
,
 paing attention to install the same desktop and server versions (QGIS 3.22-6). 
But when I try to run the server I get the follwing message:
"The curl_multi_poll procedure entry point could not be located in the dynamic 
link library C:\OSGeo4W\bin\gdal304.dll" (something like that).
To call the server, I used 

Someone could help me with this?


Thank you in advance,
--

Silvia V. Pereira
LABREN - Laboratório de Modelagem e Estudos de Recursos Renováveis de Energia
DIIAV - Divisão de Impactos, Adaptação e Vulnerabilidades
INPE - Instituto Nacional de Pesquisas Espaciais
Av. dos Astronautas, 1758 - Jd. Granja
São José dos Campos - SP - Brasil
CEP 12227-010
Tel.: +55 12 3208-7908
___



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server install

2022-04-22 Thread Nicolas Boisteault via Qgis-user

Hi,

I suggest you to try Docker with docker-composer.

Here is an example : 
https://github.com/3liz/lizmap-docker-compose/blob/master/docker-compose.yml


Le 21/04/2022 à 02:26, Silvia Vitorino Pereira via Qgis-user a écrit :


Hi everybody,
I'm completely new with QGis Server.
To install it on my Win10 Pro, I followed the steps in 
, 
paing attention to install the same desktop and server versions (QGIS 
3.22-6). But when I try to run the server I get the follwing message:
"The curl_multi_poll procedure entry point could not be located in the 
dynamic link library C:\OSGeo4W\bin\gdal304.dll" (something like that).
To call the server, I used 


Someone could help me with this?


Thank you in advance,
--

*Silvia V. Pereira*
LABREN - Laboratório de Modelagem e Estudos de Recursos Renováveis de Energia
DIIAV - Divisão de Impactos, Adaptação e Vulnerabilidades
INPE - Instituto Nacional de Pesquisas Espaciais
Av. dos Astronautas, 1758 - Jd. Granja
São José dos Campos - SP - Brasil
CEP 12227-010
Tel.: +55 12 3208-7908
___

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server install

2022-04-20 Thread Silvia Vitorino Pereira via Qgis-user

Hi everybody,
I'm completely new with QGis Server.
To install it on my Win10 Pro, I followed the steps in
,
paing attention to install the same desktop and server versions (QGIS
3.22-6). But when I try to run the server I get the follwing message: 
"The curl_multi_poll procedure entry point could not be located in the

dynamic link library C:\OSGeo4W\bin\gdal304.dll" (something like that).
To call the server, I used

Someone could help me with this?

Thank you in advance,
--

Silvia V. Pereira
LABREN - Laboratório de Modelagem e Estudos de Recursos Renováveis de
Energia
DIIAV - Divisão de Impactos, Adaptação e Vulnerabilidades
INPE - Instituto Nacional de Pesquisas Espaciais
Av. dos Astronautas, 1758 - Jd. Granja
São José dos Campos - SP - Brasil
CEP 12227-010
Tel.: +55 12 3208-7908
__
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] [QGIS-Server] Possible to use multiple FILTER or EXP_FILTER relatives to multiple TYPENAME?

2022-01-17 Thread Nicolas Boisteault

Hi all,

If I execute :

http://DOMAIN/?MAP=mymap=WFS=GetFeature=1.0.0=GeoJSON=data_integers_FILTER="id"=2

or

http://DOMAIN/?MAP=mymap=WFS=GetFeature=1.0.0=GeoJSON=data_trad_en_fr_FILTER="id"=4

Responses are correct.

Now if I try to execute both queries in one this way :

http://DOMAIN/?MAP=mymap=WFS=GetFeature=1.0.0=GeoJSON=data_integers,data_trad_en_fr_FILTER="id"=2",id"=4

It returns all features for both layers when I'd like two features (one 
from first query plus one from second one).


The problem is the same with OGC Filter. Is there anything I'm doing 
wrong or it is not intended to query multiple TYPENAMEs with multiple 
EXP_FILTERs/FILTERs?


Thanks.

--
Nicolas Boisteault
Ingénieur
www.3liz.com 

*Tel.* 06 19 36 78 32
*Bureau*
31, rue de l'Argenterie 
 

34000 Montpellier 
 


*Siège social*
73, allée Kleber 
 

Boulevard de Strasbourg 
 

34000 Montpellier 

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qgis-server minimal qgs project file?

2021-12-13 Thread Alessandro Pasotti
Hi,

I'm afraid there is no such information anywhere.

We have done some optimization a few months ago that allow to skip the
parsing of some parts that are not relevant to the server when loading a
project, see:

https://github.com/qgis/QGIS/pull/40418
https://github.com/qgis/QGIS/pull/40360

Kind regards


On Mon, Dec 13, 2021 at 8:31 AM U.Archi  wrote:

> Hi list!
>
> I want to dynamically create qgs xml project files for qgis server.
> Creating a template from a qgis desktop project works fine, but the qgs
> xml is quite large with what seems to me a lot of settings related to
> qgis desktop.
>
> I checked the qgis-server docs, but I can't find any hints what can be
> discarded for serving projects from qgis-server.
>
> Any ideas where to look?
>
> Thanks!
> Urs
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] qgis-server minimal qgs project file?

2021-12-12 Thread U.Archi

Hi list!

I want to dynamically create qgs xml project files for qgis server. 
Creating a template from a qgis desktop project works fine, but the qgs 
xml is quite large with what seems to me a lot of settings related to 
qgis desktop.


I checked the qgis-server docs, but I can't find any hints what can be 
discarded for serving projects from qgis-server.


Any ideas where to look?

Thanks!
Urs
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread DelazJ
Hi Mats, all

Just to let you know that some of the unclear/confusing statements in the
docs you pointed out in an earlier message have been addressed. The updated
version is available at
https://github.com/qgis/QGIS-Documentation/blob/master/docs/server_manual/getting_started.rst
and will be pushed to the docs website later tonight (UTC).
Hope that helps you get through or at least makes things less confusing.
And please open issues in the repo if there still are.

Regards,
Harrissou


Le lun. 18 oct. 2021 à 11:00, Mats Elfström  a
écrit :

> Nyall, and QGIS fellow users and friends!
>
> No one is born with knowledge, but everyone can learn.
> Which is what I am trying hard here.
> I humbly asked for user collaboration, and took great care in explaining
> what I have done, and what I am aiming at.
> (see also the thread "*Configuring QGIS server on Ubuntu 20.4*")
> I have not given up yet, but I will drop this thread.
> As you imply, it has taken off in the wrong direction.
>
> Best regards, Mats.E
>
> Den mån 18 okt. 2021 kl 09:44 skrev Nyall Dawson :
>
>> On Mon, 18 Oct 2021 at 17:23, Mats Elfström 
>> wrote:
>> >
>> > I am not too happy if I have to start over on a new machine.
>>
>> With all due respect, what do you expect as the outcome of this
>> discussion?  You're complaining about software you obtained for free!
>> If you're looking for commercial SUPPORT for QGIS then you need to
>> contract a QGIS support provider (see
>> https://qgis.org/en/site/forusers/commercial_support.html). If you're
>> not experienced enough to setup the server yourself, I strongly
>> caution you NOT to expose it to the internet and instead pay someone
>> with the experience to do this for you, and ensure it's done
>> correctly.
>>
>> If it's a volunteer task and you don't want to pay for support, then
>> you NEED to moderate your language and avoid the inflammatory wording.
>> That's never an effective way to get a good response from the
>> volunteer side of the community.
>>
>> Nyall
>>
>>
>>
>>
>> >
>> > Regards, Mats.E
>> >
>> >
>> > Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
>> richard.greenw...@gmail.com>:
>> >>
>> >> Posting again without screenshot, which apparently caused my previous
>> email to await moderator approval.
>> >>
>> >> Mats,
>> >>
>> >> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
>> steps which got me an XML capabilities document.
>> >>
>> >> # standard practice when starting a new instance
>> >> sudo apt update && sudo apt upgrade -y
>> >> # reboot if a new kernel was installed by apt upgrade
>> >> sudo reboot
>> >> # install qgis-server and apache web server
>> >> sudo apt install qgis-server apache2 libapache2-mod-fcgid
>> >> # enable apache fcgi and cgi
>> >> sudo a2enmod fcgi cgi
>> >> sudo systemctl restart apache2
>> >> # in a web browser you should now get an XML document from the
>> following request
>> >>
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>> >>
>> >> And 3 more steps got me a map
>> >>
>> >> # load some test data
>> >> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
>> >> sudo apt install unzip
>> >> unzip v2.0.zip
>> >> # in a web browser you should get a map from the following request
>> >>
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>> >>
>> >> The tutorial tries to cover a lot of ground, maybe too much. And the 8
>> steps above certainly don't cover enough for a production server. But it's
>> quite unfair to say that "QGIS Server is not ready for production". As
>> Donovan pointed out, there are a lot of moving parts and you have to have
>> some proficiency with all of them if you are doing it on your own.
>> >>
>> >> The basic principle is that QGIS Server is serving WMS, WFS, WCS
>> requests via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI
>> and Fast-CGI. Pick whatever operating system and web server you're the most
>> proficient with. Install QGIS Server, start with the simplest configuration
>> that you can, as I did above. Then start tuning it to your needs. If you
>> run into problems ask for help on the list or
>> https://gis.stackexchange.com/ with specific details as to what the
>> problem is.
>> >>
>> >> --
>> >> Richard W. Greenwood
>> >> www.greenwoodmap.com
>> >
>> >
>> >
>> > --
>> >
>> >
>> > GisKraft, Geodatakonsult
>> >
>> > Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>> > tel: +46 70 595 39 35 / www.giskraft.se
>> >
>> > ___
>> > Qgis-user mailing list
>> > Qgis-user@lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
> --
>
>
> *GisKraft*, Geodatakonsult
>
> Mats 

Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Mats Elfström
Nyall, and QGIS fellow users and friends!

No one is born with knowledge, but everyone can learn.
Which is what I am trying hard here.
I humbly asked for user collaboration, and took great care in explaining
what I have done, and what I am aiming at.
(see also the thread "*Configuring QGIS server on Ubuntu 20.4*")
I have not given up yet, but I will drop this thread.
As you imply, it has taken off in the wrong direction.

Best regards, Mats.E

Den mån 18 okt. 2021 kl 09:44 skrev Nyall Dawson :

> On Mon, 18 Oct 2021 at 17:23, Mats Elfström 
> wrote:
> >
> > I am not too happy if I have to start over on a new machine.
>
> With all due respect, what do you expect as the outcome of this
> discussion?  You're complaining about software you obtained for free!
> If you're looking for commercial SUPPORT for QGIS then you need to
> contract a QGIS support provider (see
> https://qgis.org/en/site/forusers/commercial_support.html). If you're
> not experienced enough to setup the server yourself, I strongly
> caution you NOT to expose it to the internet and instead pay someone
> with the experience to do this for you, and ensure it's done
> correctly.
>
> If it's a volunteer task and you don't want to pay for support, then
> you NEED to moderate your language and avoid the inflammatory wording.
> That's never an effective way to get a good response from the
> volunteer side of the community.
>
> Nyall
>
>
>
>
> >
> > Regards, Mats.E
> >
> >
> > Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
> richard.greenw...@gmail.com>:
> >>
> >> Posting again without screenshot, which apparently caused my previous
> email to await moderator approval.
> >>
> >> Mats,
> >>
> >> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
> steps which got me an XML capabilities document.
> >>
> >> # standard practice when starting a new instance
> >> sudo apt update && sudo apt upgrade -y
> >> # reboot if a new kernel was installed by apt upgrade
> >> sudo reboot
> >> # install qgis-server and apache web server
> >> sudo apt install qgis-server apache2 libapache2-mod-fcgid
> >> # enable apache fcgi and cgi
> >> sudo a2enmod fcgi cgi
> >> sudo systemctl restart apache2
> >> # in a web browser you should now get an XML document from the
> following request
> >>
> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
> >>
> >> And 3 more steps got me a map
> >>
> >> # load some test data
> >> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
> >> sudo apt install unzip
> >> unzip v2.0.zip
> >> # in a web browser you should get a map from the following request
> >>
> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
> >>
> >> The tutorial tries to cover a lot of ground, maybe too much. And the 8
> steps above certainly don't cover enough for a production server. But it's
> quite unfair to say that "QGIS Server is not ready for production". As
> Donovan pointed out, there are a lot of moving parts and you have to have
> some proficiency with all of them if you are doing it on your own.
> >>
> >> The basic principle is that QGIS Server is serving WMS, WFS, WCS
> requests via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI
> and Fast-CGI. Pick whatever operating system and web server you're the most
> proficient with. Install QGIS Server, start with the simplest configuration
> that you can, as I did above. Then start tuning it to your needs. If you
> run into problems ask for help on the list or
> https://gis.stackexchange.com/ with specific details as to what the
> problem is.
> >>
> >> --
> >> Richard W. Greenwood
> >> www.greenwoodmap.com
> >
> >
> >
> > --
> >
> >
> > GisKraft, Geodatakonsult
> >
> > Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> > tel: +46 70 595 39 35 / www.giskraft.se
> >
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Nyall Dawson
On Mon, 18 Oct 2021 at 17:23, Mats Elfström  wrote:
>
> I am not too happy if I have to start over on a new machine.

With all due respect, what do you expect as the outcome of this
discussion?  You're complaining about software you obtained for free!
If you're looking for commercial SUPPORT for QGIS then you need to
contract a QGIS support provider (see
https://qgis.org/en/site/forusers/commercial_support.html). If you're
not experienced enough to setup the server yourself, I strongly
caution you NOT to expose it to the internet and instead pay someone
with the experience to do this for you, and ensure it's done
correctly.

If it's a volunteer task and you don't want to pay for support, then
you NEED to moderate your language and avoid the inflammatory wording.
That's never an effective way to get a good response from the
volunteer side of the community.

Nyall




>
> Regards, Mats.E
>
>
> Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood 
> :
>>
>> Posting again without screenshot, which apparently caused my previous email 
>> to await moderator approval.
>>
>> Mats,
>>
>> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps 
>> which got me an XML capabilities document.
>>
>> # standard practice when starting a new instance
>> sudo apt update && sudo apt upgrade -y
>> # reboot if a new kernel was installed by apt upgrade
>> sudo reboot
>> # install qgis-server and apache web server
>> sudo apt install qgis-server apache2 libapache2-mod-fcgid
>> # enable apache fcgi and cgi
>> sudo a2enmod fcgi cgi
>> sudo systemctl restart apache2
>> # in a web browser you should now get an XML document from the following 
>> request
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>>
>> And 3 more steps got me a map
>>
>> # load some test data
>> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
>> sudo apt install unzip
>> unzip v2.0.zip
>> # in a web browser you should get a map from the following request
>> http://IP-ADDRESS-OR-HOST-NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>>
>> The tutorial tries to cover a lot of ground, maybe too much. And the 8 steps 
>> above certainly don't cover enough for a production server. But it's quite 
>> unfair to say that "QGIS Server is not ready for production". As Donovan 
>> pointed out, there are a lot of moving parts and you have to have some 
>> proficiency with all of them if you are doing it on your own.
>>
>> The basic principle is that QGIS Server is serving WMS, WFS, WCS requests 
>> via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI and 
>> Fast-CGI. Pick whatever operating system and web server you're the most 
>> proficient with. Install QGIS Server, start with the simplest configuration 
>> that you can, as I did above. Then start tuning it to your needs. If you run 
>> into problems ask for help on the list or https://gis.stackexchange.com/ 
>> with specific details as to what the problem is.
>>
>> --
>> Richard W. Greenwood
>> www.greenwoodmap.com
>
>
>
> --
>
>
> GisKraft, Geodatakonsult
>
> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> tel: +46 70 595 39 35 / www.giskraft.se
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-18 Thread Mats Elfström
Hi Richard!
I agree, those steps should do it.
I tried to carefully follow the instructions (as I have been told to do) on
this page.
https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
which differs considerably from your instructions. Are these steps
unneccesary?

1 You do not create a virtual host
2 You do not edit the .hosts file

Those two steps have caused me the most worry, because I did not see the
point of doing that, and the instructions are not very clear.
Have you read my quite detailed report on every step of the described
installation process, where everything went smoothly until the virtual host
was added?

I agree that this may seem as an HTTP server configuration problem more
than a QGIS Server problem.
But they are connected, QGIS Server is of no use without a HTPP server.
And I consider the documentation of any software an integral part of the
software. So that incomplete or false documentation can be considered a bug
if it prevents the software from running.

This machine is up on the net, has a PostgreSQL/PostGIS geodatabase with
lots of data and Geoserver 2.19 up and running. No problems there.
I am not too happy if I have to start over on a new machine.

Regards, Mats.E


Den mån 18 okt. 2021 kl 04:31 skrev Richard Greenwood <
richard.greenw...@gmail.com>:

> Posting again without screenshot, which apparently caused my previous
> email to await moderator approval.
>
> Mats,
>
> I fired up a new Ubuntu 20.04 instance on AWS and did the following 5
> steps which got me an XML capabilities document.
>
> # standard practice when starting a new instance
> sudo apt update && sudo apt upgrade -y
> # reboot if a new kernel was installed by apt upgrade
> sudo reboot
> # install qgis-server and apache web server
> sudo apt install qgis-server apache2 libapache2-mod-fcgid
> # enable apache fcgi and cgi
> sudo a2enmod fcgi cgi
> sudo systemctl restart apache2
> # in a web browser you should now get an XML document from the following
> request
> http://IP-ADDRESS-OR-HOST-NAME
> /cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
>
> And 3 more steps got me a map
>
> # load some test data
> wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
> sudo apt install unzip
> unzip v2.0.zip
> # in a web browser you should get a map from the following request
> http://IP-ADDRESS-OR-HOST-NAME
> /cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180
>
> The tutorial tries to cover a lot of ground, maybe too much. And the 8
> steps above certainly don't cover enough for a production server. But it's
> quite unfair to say that "QGIS Server is not ready for production". As
> Donovan pointed out, there are a lot of moving parts and you have to have
> some proficiency with all of them if you are doing it on your own.
>
> The basic principle is that QGIS Server is serving WMS, WFS, WCS requests
> via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI and
> Fast-CGI. Pick whatever operating system and web server you're the most
> proficient with. Install QGIS Server, start with the simplest configuration
> that you can, as I did above. Then start tuning it to your needs. If you
> run into problems ask for help on the list or
> https://gis.stackexchange.com/ with specific details as to what the
> problem is.
>
> --
> Richard W. Greenwood
> www.greenwoodmap.com
>


-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread Richard Greenwood
Posting again without screenshot, which apparently caused my previous email
to await moderator approval.

Mats,

I fired up a new Ubuntu 20.04 instance on AWS and did the following 5 steps
which got me an XML capabilities document.

# standard practice when starting a new instance
sudo apt update && sudo apt upgrade -y
# reboot if a new kernel was installed by apt upgrade
sudo reboot
# install qgis-server and apache web server
sudo apt install qgis-server apache2 libapache2-mod-fcgid
# enable apache fcgi and cgi
sudo a2enmod fcgi cgi
sudo systemctl restart apache2
# in a web browser you should now get an XML document from the following
request
http://IP-ADDRESS-OR-HOST-NAME
/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities

And 3 more steps got me a map

# load some test data
wget https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip
sudo apt install unzip
unzip v2.0.zip
# in a web browser you should get a map from the following request
http://IP-ADDRESS-OR-HOST-NAME
/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities=/home/ubuntu/QGIS-Training-Data-2.0/exercise_data/qgis-server-tutorial-data/world.qgs=countries=WMS=1.3.0=GetMap=EPSG:4326=400=200=-90,-180,90,180

The tutorial tries to cover a lot of ground, maybe too much. And the 8
steps above certainly don't cover enough for a production server. But it's
quite unfair to say that "QGIS Server is not ready for production". As
Donovan pointed out, there are a lot of moving parts and you have to have
some proficiency with all of them if you are doing it on your own.

The basic principle is that QGIS Server is serving WMS, WFS, WCS requests
via CGI (or Fast-CGI). Apache, Ngix, IIS, Tomcat all can serve CGI and
Fast-CGI. Pick whatever operating system and web server you're the most
proficient with. Install QGIS Server, start with the simplest configuration
that you can, as I did above. Then start tuning it to your needs. If you
run into problems ask for help on the list or
https://gis.stackexchange.com/ with
specific details as to what the problem is.

-- 
Richard W. Greenwood
www.greenwoodmap.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread Saulteau Don
I haven't had major issues getting a QGIS map server deployed on apache,
but sometimes there would be a thing or two not included in the
step-by-step because individual setups can be different and also require a
diverse level of knowledge and skill sets.

Consider that to get it going you likely had to:

 - deploy a server (windows or linux?)
 - setup a datastore (a database or traditional flat file?)
 - manage and prep your software, data and maps (qgis, qgis server)
 - configure and deploy the web host (iis, apache, nginx?)
 - configure the web host to host the qgis map server

Each one of those components is an industry in itself. As GIS we are often
allowed to or expected to dabble in one or all of them (hence the jack of
all trades, master of none).

So keep trying and reach out for support in any of those specific areas as
it can take a little to learn where the issues actually lie when problems
arise.

Good luck!



Donovan

On Sun, Oct 17, 2021 at 4:03 AM Paolo Cavallini 
wrote:

> Quite strange. We have tens of installations, never a failure.
> Maybe you can get some support?
> Cheers.
>
> Il 17 ottobre 2021 10:44:11 EEST, "giskraft.se" 
> ha scritto:
>>
>> Trust me, Paolo, I would very much more like to be the harbinger of
>> success and confidence in QGIS Server.
>> But in 5-6 years, ”following the instructions carefully” has never
>> worked. Once or twice, I have succeeded after much trial an error, on
>> Windows machines. Linux was supposed to be better. So I decided to give
>> that a try.
>> And I had no problems setting up PostGIS and Geoserver on this Ubuntu
>> machine, by following the instructions. Starting from scratch is not a
>> tempting option.
>>
>> Hälsning / Regards
>> Mats.E
>>
>> Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad /
>> Excuse my brevity.
>>
>> 17 okt. 2021 kl. 04:58 skrev Paolo Cavallini :
>>
>>  Please do not spread FUD.
>> We have tens of instances running smoothly. Just follow carefully the
>> instructions on a clean machine, and it will work.
>> Thanks.
>>
>> Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström" <
>> mats.elfst...@giskraft.se> ha scritto:
>>>
>>> Hi!
>>> Thanks to Jorge and Benoit for trying to assist with missing information.
>>> I have attempted to include the suggested code snippets into my virtual
>>> host file, and am at least able to start Apache2 now (there were errors I
>>> had to figure out).
>>> I am not too happy about the resulting mix.
>>>
>>> *Conclusion: FAIL*
>>> qgis_server.fcgi is running locally. check
>>> Apache2 is accessible on port 80 (http://geonet.se) check
>>> But despite all efforts, the request
>>>
>>> http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>>> invariably gets a 404 Not Found response.
>>>
>>> *Conclusion*: QGIS Server is not ready for production.
>>> There is a fatal bug, the missing parts of the documentation which
>>> prevents the setup and configuration of the service.
>>>
>>> Now I have to fall back on Geoserver, despite the miserable cartography
>>> and the SLD file difficulties.
>>>
>>> Tired and not so happy, Mats.E
>>>
>>> --
>>>
>>>
>>> *GisKraft*, Geodatakonsult
>>>
>>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>>> tel: +46 70 595 39 35 / www.giskraft.se
>>>
>>
>> --
>> Sorry for being short
>>
>>
> --
> Sorry for being short
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread Paolo Cavallini
Quite strange. We have tens of installations, never a failure.
Maybe you can get some support?
Cheers.

Il 17 ottobre 2021 10:44:11 EEST, "giskraft.se"  ha 
scritto:
>Trust me, Paolo, I would very much more like to be the harbinger of
>success and confidence in QGIS Server. 
>But in 5-6 years, ”following the instructions carefully” has never
>worked. Once or twice, I have succeeded after much trial an error, on
>Windows machines. Linux was supposed to be better. So I decided to give
>that a try. 
>And I had no problems setting up PostGIS and Geoserver on this Ubuntu
>machine, by following the instructions. Starting from scratch is not a
>tempting option. 
>
>Hälsning / Regards
>Mats.E
>
>Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad /
>Excuse my brevity. 
>
>> 17 okt. 2021 kl. 04:58 skrev Paolo Cavallini :
>> 
>>  Please do not spread FUD.
>> We have tens of instances running smoothly. Just follow carefully the
>instructions on a clean machine, and it will work.
>> Thanks.
>> 
>> Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström"
> ha scritto:
>>> 
>>> Hi!
>>> Thanks to Jorge and Benoit for trying to assist with missing
>information.
>>> I have attempted to include the suggested code snippets into my
>virtual host file, and am at least able to start Apache2 now (there
>were errors I had to figure out).
>>> I am not too happy about the resulting mix.
>>> 
>>> Conclusion: FAIL
>>> qgis_server.fcgi is running locally. check
>>> Apache2 is accessible on port 80 (http://geonet.se) check
>>> But despite all efforts, the request 
>>>
>http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>>> invariably gets a 404 Not Found response.
>>> 
>>> Conclusion: QGIS Server is not ready for production. 
>>> There is a fatal bug, the missing parts of the documentation which
>prevents the setup and configuration of the service.
>>> 
>>> Now I have to fall back on Geoserver, despite the miserable
>cartography and the SLD file difficulties.
>>> 
>>> Tired and not so happy, Mats.E
>>> 
>>> -- 
>>> 
>>> 
>>> GisKraft, Geodatakonsult
>>> 
>>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>>> tel: +46 70 595 39 35 / www.giskraft.se
>>> 
>> 
>> -- 
>> Sorry for being short

-- 
Sorry for being short___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-17 Thread giskraft . se
Trust me, Paolo, I would very much more like to be the harbinger of success and 
confidence in QGIS Server. 
But in 5-6 years, ”following the instructions carefully” has never worked. Once 
or twice, I have succeeded after much trial an error, on Windows machines. 
Linux was supposed to be better. So I decided to give that a try. 
And I had no problems setting up PostGIS and Geoserver on this Ubuntu machine, 
by following the instructions. Starting from scratch is not a tempting option. 

Hälsning / Regards
Mats.E

Skickat från min / Sent from my iPad, Ursäkta att jag är kortfattad / Excuse my 
brevity. 

> 17 okt. 2021 kl. 04:58 skrev Paolo Cavallini :
> 
>  Please do not spread FUD.
> We have tens of instances running smoothly. Just follow carefully the 
> instructions on a clean machine, and it will work.
> Thanks.
> 
> Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström"  
> ha scritto:
>> 
>> Hi!
>> Thanks to Jorge and Benoit for trying to assist with missing information.
>> I have attempted to include the suggested code snippets into my virtual host 
>> file, and am at least able to start Apache2 now (there were errors I had to 
>> figure out).
>> I am not too happy about the resulting mix.
>> 
>> Conclusion: FAIL
>> qgis_server.fcgi is running locally. check
>> Apache2 is accessible on port 80 (http://geonet.se) check
>> But despite all efforts, the request 
>> http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>> invariably gets a 404 Not Found response.
>> 
>> Conclusion: QGIS Server is not ready for production. 
>> There is a fatal bug, the missing parts of the documentation which prevents 
>> the setup and configuration of the service.
>> 
>> Now I have to fall back on Geoserver, despite the miserable cartography and 
>> the SLD file difficulties.
>> 
>> Tired and not so happy, Mats.E
>> 
>> -- 
>> 
>> 
>> GisKraft, Geodatakonsult
>> 
>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>> tel: +46 70 595 39 35 / www.giskraft.se
>> 
> 
> -- 
> Sorry for being short
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-16 Thread Paolo Cavallini
Please do not spread FUD.
We have tens of instances running smoothly. Just follow carefully the 
instructions on a clean machine, and it will work.
Thanks.

Il 17 ottobre 2021 00:53:58 EEST, "Mats Elfström"  
ha scritto:
>Hi!
>Thanks to Jorge and Benoit for trying to assist with missing
>information.
>I have attempted to include the suggested code snippets into my virtual
>host file, and am at least able to start Apache2 now (there were errors
>I
>had to figure out).
>I am not too happy about the resulting mix.
>
>*Conclusion: FAIL*
>qgis_server.fcgi is running locally. check
>Apache2 is accessible on port 80 (http://geonet.se) check
>But despite all efforts, the request
>http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
>invariably gets a 404 Not Found response.
>
>*Conclusion*: QGIS Server is not ready for production.
>There is a fatal bug, the missing parts of the documentation which
>prevents
>the setup and configuration of the service.
>
>Now I have to fall back on Geoserver, despite the miserable cartography
>and
>the SLD file difficulties.
>
>Tired and not so happy, Mats.E
>
>-- 
>
>
>*GisKraft*, Geodatakonsult
>
>Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>tel: +46 70 595 39 35 / www.giskraft.se

-- 
Sorry for being short___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-16 Thread Mats Elfström
Hi!
Thanks to Jorge and Benoit for trying to assist with missing information.
I have attempted to include the suggested code snippets into my virtual
host file, and am at least able to start Apache2 now (there were errors I
had to figure out).
I am not too happy about the resulting mix.

*Conclusion: FAIL*
qgis_server.fcgi is running locally. check
Apache2 is accessible on port 80 (http://geonet.se) check
But despite all efforts, the request
http://geonet.se/qgis/my_12?SERVICE=WMS=1.3.0=GetCapabilities
invariably gets a 404 Not Found response.

*Conclusion*: QGIS Server is not ready for production.
There is a fatal bug, the missing parts of the documentation which prevents
the setup and configuration of the service.

Now I have to fall back on Geoserver, despite the miserable cartography and
the SLD file difficulties.

Tired and not so happy, Mats.E

-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-08 Thread Mats Elfström
Many thanks, Jorge. That was very decent of you.
Now I will see if I can braid those snippets into my server configuration.
I will report back later.

Best regards, Mats.E
-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-08 Thread Paolo Cavallini
we also have many installation. in general following the instructions in
the manual works well, what is your problem?
cheers.

Il 08/10/21 12:50, Jorge Gustavo Rocha ha scritto:
> Hi Mats,
> 
> I have QGIS Server running under Apache in several public institutions.
> My apache2/conf-available files are attached.
> 
> It runs pretty well under Apache.
> 
> Regards,
> 
> Jorge Gustavo
> 
> On 08/10/21 11:25, Mats Elfström wrote:
>> Hi?
>> Is anybody using, or know of someplace where QGIS Server is used in a
>> professional and public service, using Apache as web server?
>> I would be immensively and eternally grateful if anybody in a position
>> to do so would share the secrets of the Apache setup and configuration
>> to act as web server to the QGIS fcgi service. Preferably also how one
>> can rewrite the url so that  a GetCapabilites request to a workspace
>> folder will return a Geoserver equivalent response. 
>>
>> Many many thanks beforehand, Mats.E
>> -- 
>>
>> *
>> *
>>
>> *GisKraft*, Geodatakonsult
>>
>> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
>> tel: +46 70 595 39 35 / www.giskraft.se 
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server in professional use?

2021-10-08 Thread Jorge Gustavo Rocha
Hi Mats,

I have QGIS Server running under Apache in several public institutions.
My apache2/conf-available files are attached.

It runs pretty well under Apache.

Regards,

Jorge Gustavo

On 08/10/21 11:25, Mats Elfström wrote:
> Hi?
> Is anybody using, or know of someplace where QGIS Server is used in a
> professional and public service, using Apache as web server?
> I would be immensively and eternally grateful if anybody in a position
> to do so would share the secrets of the Apache setup and configuration
> to act as web server to the QGIS fcgi service. Preferably also how one
> can rewrite the url so that  a GetCapabilites request to a workspace
> folder will return a Geoserver equivalent response. 
>
> Many many thanks beforehand, Mats.E
> -- 
>
> *
> *
>
> *GisKraft*, Geodatakonsult
>
> Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
> tel: +46 70 595 39 35 / www.giskraft.se 
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Define ENABLE_USR_LIB_CGI_BIN
FcgidProcessLifeTime 8200
FcgidIOTimeout 8200
FcgidConnectTimeout 400
FcgidMaxRequestLen 10



Define ENABLE_USR_LIB_CGI_BIN



Define ENABLE_USR_LIB_CGI_BIN



# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /cgi-bin/ /usr/local/bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted




# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf

FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgisserver.log
# 0 INFO (log all requests), 1 WARNING, 2 CRITICAL (suitable for production 
purposes).
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

# Virtual display
FcgidInitialEnv DISPLAY ":99"

FcgidInitialEnv QGIS_SERVER_IGNORE_BAD_LAYERS 1
FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING 1
FcgidInitialEnv QGIS_SERVER_MAX_THREADS -1

# Required
# See https://github.com/qgis/QGIS/issues/31675
# Required to get the ortos from DGT
# scp /home/jgr/.local/share/QGIS/QGIS3/profiles/geodashboard/qgis-auth.db 
q...@homologacao.geomaster.pt:qgisserverdb qgis-auth.db
# Evitar o erro: Download of capabilities failed: SSL handshake failed
FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb/"
FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE "/home/qgis/qgisserverdb/qgis-auth.db"

RewriteEngine on
RewriteOptions Inherit
RewriteRule ^/postgresql/(.*)/(.*)/(.*)/cgi-bin/qgis_mapserv.fcgi 
/cgi-bin/qgis_mapserv.fcgi 
[NC,PT,E=QGIS_PROJECT_FILE:postgresql:?service=$1=disable=$2=$3]

# CORS (for debugging; use carefully in production)
# Always set these headers.
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, 
origin, authorization, accept, client-security-token"

# Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request.
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS server in professional use?

2021-10-08 Thread Mats Elfström
Hi?
Is anybody using, or know of someplace where QGIS Server is used in a
professional and public service, using Apache as web server?
I would be immensively and eternally grateful if anybody in a position to
do so would share the secrets of the Apache setup and configuration to act
as web server to the QGIS fcgi service. Preferably also how one can rewrite
the url so that  a GetCapabilites request to a workspace folder will return
a Geoserver equivalent response.

Many many thanks beforehand, Mats.E
-- 


*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server Log Stderr

2021-07-07 Thread pathmapper

Hi Thomas,


You received the STDERR log on Ubuntu not Windows, right?


Yes, that's right.

I'm having
ErrorLog ${APACHE_LOG_DIR}/error.log
set also in my QGIS server vHost.conf not in my httpd.conf.

Does this makes a difference to you?

Otherwise I would also I stick with QGIS_SERVER_LOG_FILE for now :)

Cheers,
Björn


On 06.07.2021 12:05, Thomas Schüttenberg wrote:

Hi Björn,
thanks for investigating, but no, I still don't get this.
With
ErrorLog "${STACK}/logs/error.log"
in httpd.conf (plus LogLevel info to make sure there will be something
to log) and
FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
plus FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
in the QGIS server vHost.conf, there is no log output from QGIS server
in error.log while restarting the Apache. I would expect the QGIS
server summary[1] like I see in the QGIS_SERVER_LOG_FILE, not only the
Apache restart lines.

You received the STDERR log on Ubuntu not Windows, right?
I think I stick with QGIS_SERVER_LOG_FILE for now.

[1]
https://docs.qgis.org/3.16/en/docs/server_manual/config.html#settings-summary




pathmapper  hat am 05.07.2021 07:01 geschrieben:


Hmm, with QGIS_SERVER_LOG_STDERR 1 it works as long as I use the
standard

ErrorLog ${APACHE_LOG_DIR}/error.log

But if I change it to

ErrorLog ${APACHE_LOG_DIR}/qgisserver.log

a file ${APACHE_LOG_DIR}/qgisserver.log is created but the QGIS server
logs are still saved in ${APACHE_LOG_DIR}/error.log

Thomas, is this the same behaviour you are seeing?


On 02.07.2021 14:43, thomas wrote:
> Hi Björn,
>
> Am 02.07.21 um 10:58 schrieb pathmapper:
>> Hi Thomas,
>>
>> is QGIS_SERVER_LOG_FILE still set in your conf?
>>
>> Asking because QGIS_SERVER_LOG_STDERR has no effect when
>> QGIS_SERVER_LOG_FILE is set.
>>
>> Maybe doublecheck that you restarted Apache after these changes :)
>
> Sure, quadruple checked all that ;)
>
>>
>> With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.
>
> After some research[1] I already suspected it to be a windows specific
> issue... :-/
>
> Or I'm making wrong assumptions about what stderr is, although[2]:
> "... The error log will also contain debugging output from CGI
> scripts. Any information written to stderr by a CGI script will be
> copied directly to the error log."
>
> [1]
> 
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-server-landing-page-when-running-as-fastcgi-tp5456241p5456373.html
> [2] https://httpd.apache.org/docs/2.4/logs.html#errorlog
>
> Cheers
> Thomas
>
>
>>
>> Cheers,
>> Bjoern
>>
>> On 01.07.2021 15:11, Thomas Schüttenberg wrote:
>>> Hi there!
>>>
>>> Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
>>> since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
>>> described in the manual[1].
>>>
>>> Nevertheless the standard error log file I defined in my Apache
>>> configuration stays silent (Loglevel 0).
>>> So either I miss something in my config or QGIS_SERVER_LOG_STDERR
>>> does
>>> not work here.
>>>
>>> My QGIS server 3.18.2 and 3.16. are installed on a windows server
>>> 2019, btw. Mayby anyone of you is able to help me with their
>>> experience? Thanks!
>>>
>>> [1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html
>>>
>>> Cheers Thomas
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server Log Stderr

2021-07-06 Thread Thomas Schüttenberg
Hi Björn,
thanks for investigating, but no, I still don't get this. 
With 
ErrorLog "${STACK}/logs/error.log"
in httpd.conf (plus LogLevel info to make sure there will be something to log) 
and
FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
plus FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
in the QGIS server vHost.conf, there is no log output from QGIS server in 
error.log while restarting the Apache. I would expect the QGIS server 
summary[1] like I see in the QGIS_SERVER_LOG_FILE, not only the Apache restart 
lines.

You received the STDERR log on Ubuntu not Windows, right?
I think I stick with QGIS_SERVER_LOG_FILE for now.

[1] 
https://docs.qgis.org/3.16/en/docs/server_manual/config.html#settings-summary



> pathmapper  hat am 05.07.2021 07:01 geschrieben:
> 
>  
> Hmm, with QGIS_SERVER_LOG_STDERR 1 it works as long as I use the 
> standard
> 
> ErrorLog ${APACHE_LOG_DIR}/error.log
> 
> But if I change it to
> 
> ErrorLog ${APACHE_LOG_DIR}/qgisserver.log
> 
> a file ${APACHE_LOG_DIR}/qgisserver.log is created but the QGIS server 
> logs are still saved in ${APACHE_LOG_DIR}/error.log
> 
> Thomas, is this the same behaviour you are seeing?
> 
> 
> On 02.07.2021 14:43, thomas wrote:
> > Hi Björn,
> > 
> > Am 02.07.21 um 10:58 schrieb pathmapper:
> >> Hi Thomas,
> >> 
> >> is QGIS_SERVER_LOG_FILE still set in your conf?
> >> 
> >> Asking because QGIS_SERVER_LOG_STDERR has no effect when 
> >> QGIS_SERVER_LOG_FILE is set.
> >> 
> >> Maybe doublecheck that you restarted Apache after these changes :)
> > 
> > Sure, quadruple checked all that ;)
> > 
> >> 
> >> With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.
> > 
> > After some research[1] I already suspected it to be a windows specific
> > issue... :-/
> > 
> > Or I'm making wrong assumptions about what stderr is, although[2]:
> > "... The error log will also contain debugging output from CGI
> > scripts. Any information written to stderr by a CGI script will be
> > copied directly to the error log."
> > 
> > [1]
> > http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-server-landing-page-when-running-as-fastcgi-tp5456241p5456373.html
> > [2] https://httpd.apache.org/docs/2.4/logs.html#errorlog
> > 
> > Cheers
> > Thomas
> > 
> > 
> >> 
> >> Cheers,
> >> Bjoern
> >> 
> >> On 01.07.2021 15:11, Thomas Schüttenberg wrote:
> >>> Hi there!
> >>> 
> >>> Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
> >>> since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
> >>> described in the manual[1].
> >>> 
> >>> Nevertheless the standard error log file I defined in my Apache
> >>> configuration stays silent (Loglevel 0).
> >>> So either I miss something in my config or QGIS_SERVER_LOG_STDERR 
> >>> does
> >>> not work here.
> >>> 
> >>> My QGIS server 3.18.2 and 3.16. are installed on a windows server
> >>> 2019, btw. Mayby anyone of you is able to help me with their
> >>> experience? Thanks!
> >>> 
> >>> [1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html
> >>> 
> >>> Cheers Thomas
> >>> ___
> >>> Qgis-user mailing list
> >>> Qgis-user@lists.osgeo.org
> >>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server Log Stderr

2021-07-04 Thread pathmapper
Hmm, with QGIS_SERVER_LOG_STDERR 1 it works as long as I use the 
standard


ErrorLog ${APACHE_LOG_DIR}/error.log

But if I change it to

ErrorLog ${APACHE_LOG_DIR}/qgisserver.log

a file ${APACHE_LOG_DIR}/qgisserver.log is created but the QGIS server 
logs are still saved in ${APACHE_LOG_DIR}/error.log


Thomas, is this the same behaviour you are seeing?


On 02.07.2021 14:43, thomas wrote:

Hi Björn,

Am 02.07.21 um 10:58 schrieb pathmapper:

Hi Thomas,

is QGIS_SERVER_LOG_FILE still set in your conf?

Asking because QGIS_SERVER_LOG_STDERR has no effect when 
QGIS_SERVER_LOG_FILE is set.


Maybe doublecheck that you restarted Apache after these changes :)


Sure, quadruple checked all that ;)



With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.


After some research[1] I already suspected it to be a windows specific
issue... :-/

Or I'm making wrong assumptions about what stderr is, although[2]:
"... The error log will also contain debugging output from CGI
scripts. Any information written to stderr by a CGI script will be
copied directly to the error log."

[1]
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-server-landing-page-when-running-as-fastcgi-tp5456241p5456373.html
[2] https://httpd.apache.org/docs/2.4/logs.html#errorlog

Cheers
Thomas




Cheers,
Bjoern

On 01.07.2021 15:11, Thomas Schüttenberg wrote:

Hi there!

Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
described in the manual[1].

Nevertheless the standard error log file I defined in my Apache
configuration stays silent (Loglevel 0).
So either I miss something in my config or QGIS_SERVER_LOG_STDERR 
does

not work here.

My QGIS server 3.18.2 and 3.16. are installed on a windows server
2019, btw. Mayby anyone of you is able to help me with their
experience? Thanks!

[1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html

Cheers Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server Log Stderr

2021-07-02 Thread thomas

Hi Björn,

Am 02.07.21 um 10:58 schrieb pathmapper:

Hi Thomas,

is QGIS_SERVER_LOG_FILE still set in your conf?

Asking because QGIS_SERVER_LOG_STDERR has no effect when QGIS_SERVER_LOG_FILE 
is set.

Maybe doublecheck that you restarted Apache after these changes :)


Sure, quadruple checked all that ;)



With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.


After some research[1] I already suspected it to be a windows specific issue... 
:-/

Or I'm making wrong assumptions about what stderr is, although[2]: "... The error log will also 
contain debugging output from CGI scripts. Any information written to stderr by a CGI script will be 
copied directly to the error log."


[1] 
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QGIS-server-landing-page-when-running-as-fastcgi-tp5456241p5456373.html

[2] https://httpd.apache.org/docs/2.4/logs.html#errorlog

Cheers
Thomas




Cheers,
Bjoern

On 01.07.2021 15:11, Thomas Schüttenberg wrote:

Hi there!

Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
described in the manual[1].

Nevertheless the standard error log file I defined in my Apache
configuration stays silent (Loglevel 0).
So either I miss something in my config or QGIS_SERVER_LOG_STDERR does
not work here.

My QGIS server 3.18.2 and 3.16. are installed on a windows server
2019, btw. Mayby anyone of you is able to help me with their
experience? Thanks!

[1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html

Cheers Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server Log Stderr

2021-07-02 Thread pathmapper

Hi Thomas,

is QGIS_SERVER_LOG_FILE still set in your conf?

Asking because QGIS_SERVER_LOG_STDERR has no effect when 
QGIS_SERVER_LOG_FILE is set.


Maybe doublecheck that you restarted Apache after these changes :)

With QGIS server 3.18.1 on Ubuntu LTR it's working as expected.

Cheers,
Bjoern

On 01.07.2021 15:11, Thomas Schüttenberg wrote:

Hi there!

Because file logging support with QGIS_SERVER_LOG_FILE is deprecated
since QGIS 3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as
described in the manual[1].

Nevertheless the standard error log file I defined in my Apache
configuration stays silent (Loglevel 0).
So either I miss something in my config or QGIS_SERVER_LOG_STDERR does
not work here.

My QGIS server 3.18.2 and 3.16. are installed on a windows server
2019, btw. Mayby anyone of you is able to help me with their
experience? Thanks!

[1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html

Cheers Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server Log Stderr

2021-07-01 Thread Thomas Schüttenberg
Hi there!

Because file logging support with QGIS_SERVER_LOG_FILE is deprecated since QGIS 
3.4. I just tried to switch to QGIS_SERVER_LOG_STDERR 1 as described in the 
manual[1].

Nevertheless the standard error log file I defined in my Apache configuration 
stays silent (Loglevel 0).
So either I miss something in my config or QGIS_SERVER_LOG_STDERR does not work 
here. 

My QGIS server 3.18.2 and 3.16. are installed on a windows server 2019, btw. 
Mayby anyone of you is able to help me with their experience? Thanks!

[1] https://docs.qgis.org/3.16/en/docs/server_manual/config.html

Cheers Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server, Lizmap / OpenLayer, QGIS2Web

2021-06-30 Thread Alessandro Pasotti
On Wed, Jun 30, 2021 at 4:11 PM Gerald Kogler  wrote:

> Hi,
>
> qgis2web exports a static version of your QGIS project to web using
> OpenLayers or Leaflet as webmap technologies. It gives you some options
> on export, furthermore you could take the exported code and customize it
> furthermore. It produces pure HTML+JS+CSS so you could host it on any
> server.
>
> One limitation is that all your data is exported as GeoJSON, so it's
> only suitable for limited amount of data as loading of big files could
> be quite slow on web.
>
> QGIS Server needs a more powerful server infrastructure as you have to
> install QGIS Server package with all it's dependencies. It has the big
> advantage that it serves QGIS projects with all it's symbology exactly
> as they are shown on desktop. But you have to code your own web viewer,
> for example using OpenLayers.
>

That's not entirely correct: since 3.16 QGIS Server provides you a simple
catalog and map viewer out of the box:
https://docs.qgis.org/3.16/en/docs/server_manual/services.html#qgis-server-catalog

No need for additional software.

WFS3 also has a (even more simpler) integrated map viewer.

Regards.

-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server, Lizmap / OpenLayer, QGIS2Web

2021-06-30 Thread Gerald Kogler
Hi,

qgis2web exports a static version of your QGIS project to web using
OpenLayers or Leaflet as webmap technologies. It gives you some options
on export, furthermore you could take the exported code and customize it
furthermore. It produces pure HTML+JS+CSS so you could host it on any
server.

One limitation is that all your data is exported as GeoJSON, so it's
only suitable for limited amount of data as loading of big files could
be quite slow on web.

QGIS Server needs a more powerful server infrastructure as you have to
install QGIS Server package with all it's dependencies. It has the big
advantage that it serves QGIS projects with all it's symbology exactly
as they are shown on desktop. But you have to code your own web viewer,
for example using OpenLayers.

LizMap uses QGIS Server but offers you the hosting so you don't have to
care about server setup and maintenance and the web map viewer based on
OpenLayers.

Hope that helps
Gerald



On 30/6/21 15:10, Riccardo D'Alvito wrote:
> Morning.
> 
> I would like to get information on the differences that there are
> between QGIS Server and LizMap and between OpenLayers and QGIS2Web. I
> can't quite figure out where the operation of one ends and the operation
> of the other begins.
> I know I'm getting a little confused so I need some keys to enlighten me. 
> 
> Thank you.
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server, Lizmap / OpenLayer, QGIS2Web

2021-06-30 Thread Riccardo D'Alvito
Morning.

I would like to get information on the differences that there are between QGIS 
Server and LizMap and between OpenLayers and QGIS2Web. I can't quite figure out 
where the operation of one ends and the operation of the other begins.
I know I'm getting a little confused so I need some keys to enlighten me.

Thank you.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-22 Thread Alessandro Pasotti
On Tue, Jun 22, 2021 at 12:47 PM Marco Casalboni 
wrote:

> I'm sorry to bother you more.
> With the examples provided I can easily set up my role permissions, but it
> works on layers only: the accessControlFilter.layerPermissions doesn't seem
> to take care of layer groups in the GetCapabilities request.
> If the layer group has 0 layers because none of the sublayers is readable
> by the authenticated user, it still remains in the GetCapabilities response.
>
> Is it possible to exclude a group with 0 layers in the GetCapabilities
> response?
>

This sounds like a bug to me... I cannot see any valid reason to keep an
empty group in the capabilities response.

Or better:
> Is it possible to apply the AccessControl plugin to a layer group?
>

I don't think so, because a group is not a layer and the plugin filter
current implementation works on layers.

Regards.

-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-22 Thread Marco Casalboni
I'm sorry to bother you more.
With the examples provided I can easily set up my role permissions, but it
works on layers only: the accessControlFilter.layerPermissions doesn't seem
to take care of layer groups in the GetCapabilities request.
If the layer group has 0 layers because none of the sublayers is readable
by the authenticated user, it still remains in the GetCapabilities response.

Is it possible to exclude a group with 0 layers in the GetCapabilities
response?
Or better:
Is it possible to apply the AccessControl plugin to a layer group?

Thanks in advance

Il giorno lun 21 giu 2021 alle ore 19:23 Marco Casalboni <
casalbo...@gmail.com> ha scritto:

> I followed the examples and It works likes a charm, many thanks
>
> Il lun 21 giu 2021, 10:19 Luigi Pirelli  ha scritto:
>
>> Old but good article (in Spanish) by German Carrillo about contiguring
>> access credential granularity to QGIS Server data
>>
>>
>> https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/
>>
>> Luigi Pirelli
>>
>>
>> **
>> * LinkedIn: https://www.linkedin.com/in/luigipirelli
>> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
>> * GitHub: https://github.com/luipir
>> * Book: Mastering QGIS3 - 3rd Edition
>> 
>> * Hire a team: http://www.qcooperative.net
>>
>> **
>>
>>
>> On Mon, 21 Jun 2021 at 10:07, Marco Casalboni 
>> wrote:
>>
>>> Thank you for the accurate informations, this will be very helpful.
>>>
>>> One more thing: is it possible to filter the wms GetCapabilities
>>> request's layer list according to an authenticated user (or role)?
>>>
>>> regards,
>>>
>>> Marco
>>>
>>> Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <
>>> carrillo.ger...@gmail.com> ha scritto:
>>>
 Hi Marco,


 I published a blog where I configured permissions based on user roles
 for a QGIS Server workshop.
 Keep in mind that it was just a demo. It was based on some plugin
 examples by Alessandro Pasotti.

 One single project, one single WMS, several user roles and different
 permissions (based on spatial and non-spatial filters) per role.

 You can read here [1] the instructions.
 They are unfortunately only in Spanish. Even though I created an
 English version, we are migrating the whole website at the moment, so it's
 unavailable.
 I hope you manage to translate them.


 BTW, according to your use case, you would need to focus on
 "layerPermissions" (see the link Thomas posted earlier in this thread).


 Regards,

 Germán
 
 [1]
 https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10


 El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
 osgeo.mailingl...@gmail.com>) escribió:

> Hi,
>
> You may create a QGIS Server plugin to manage your permissions e.g
> https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py
>
> Regards
>
> Thomas
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


 ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Marco Casalboni
I followed the examples and It works likes a charm, many thanks

Il lun 21 giu 2021, 10:19 Luigi Pirelli  ha scritto:

> Old but good article (in Spanish) by German Carrillo about contiguring
> access credential granularity to QGIS Server data
>
>
> https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/
>
> Luigi Pirelli
>
>
> **
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Book: Mastering QGIS3 - 3rd Edition
> 
> * Hire a team: http://www.qcooperative.net
>
> **
>
>
> On Mon, 21 Jun 2021 at 10:07, Marco Casalboni 
> wrote:
>
>> Thank you for the accurate informations, this will be very helpful.
>>
>> One more thing: is it possible to filter the wms GetCapabilities
>> request's layer list according to an authenticated user (or role)?
>>
>> regards,
>>
>> Marco
>>
>> Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <
>> carrillo.ger...@gmail.com> ha scritto:
>>
>>> Hi Marco,
>>>
>>>
>>> I published a blog where I configured permissions based on user roles
>>> for a QGIS Server workshop.
>>> Keep in mind that it was just a demo. It was based on some plugin
>>> examples by Alessandro Pasotti.
>>>
>>> One single project, one single WMS, several user roles and different
>>> permissions (based on spatial and non-spatial filters) per role.
>>>
>>> You can read here [1] the instructions.
>>> They are unfortunately only in Spanish. Even though I created an English
>>> version, we are migrating the whole website at the moment, so it's
>>> unavailable.
>>> I hope you manage to translate them.
>>>
>>>
>>> BTW, according to your use case, you would need to focus on
>>> "layerPermissions" (see the link Thomas posted earlier in this thread).
>>>
>>>
>>> Regards,
>>>
>>> Germán
>>> 
>>> [1]
>>> https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10
>>>
>>>
>>> El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
>>> osgeo.mailingl...@gmail.com>) escribió:
>>>
 Hi,

 You may create a QGIS Server plugin to manage your permissions e.g
 https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py

 Regards

 Thomas
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

>>>
>>>
>>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Luigi Pirelli
Old but good article (in Spanish) by German Carrillo about contiguring
access credential granularity to QGIS Server data

https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition

* Hire a team: http://www.qcooperative.net
**


On Mon, 21 Jun 2021 at 10:07, Marco Casalboni  wrote:

> Thank you for the accurate informations, this will be very helpful.
>
> One more thing: is it possible to filter the wms GetCapabilities request's
> layer list according to an authenticated user (or role)?
>
> regards,
>
> Marco
>
> Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <
> carrillo.ger...@gmail.com> ha scritto:
>
>> Hi Marco,
>>
>>
>> I published a blog where I configured permissions based on user roles for
>> a QGIS Server workshop.
>> Keep in mind that it was just a demo. It was based on some plugin
>> examples by Alessandro Pasotti.
>>
>> One single project, one single WMS, several user roles and different
>> permissions (based on spatial and non-spatial filters) per role.
>>
>> You can read here [1] the instructions.
>> They are unfortunately only in Spanish. Even though I created an English
>> version, we are migrating the whole website at the moment, so it's
>> unavailable.
>> I hope you manage to translate them.
>>
>>
>> BTW, according to your use case, you would need to focus on
>> "layerPermissions" (see the link Thomas posted earlier in this thread).
>>
>>
>> Regards,
>>
>> Germán
>> 
>> [1]
>> https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10
>>
>>
>> El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
>> osgeo.mailingl...@gmail.com>) escribió:
>>
>>> Hi,
>>>
>>> You may create a QGIS Server plugin to manage your permissions e.g
>>> https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py
>>>
>>> Regards
>>>
>>> Thomas
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
>>
>> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Alessandro Pasotti
On Mon, Jun 21, 2021 at 10:06 AM Marco Casalboni 
wrote:

> Thank you for the accurate informations, this will be very helpful.
>
> One more thing: is it possible to filter the wms GetCapabilities request's
> layer list according to an authenticated user (or role)?
>

Yes:
https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#access-control-filters



> regards,
>
> Marco
>
> Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <
> carrillo.ger...@gmail.com> ha scritto:
>
>> Hi Marco,
>>
>>
>> I published a blog where I configured permissions based on user roles for
>> a QGIS Server workshop.
>> Keep in mind that it was just a demo. It was based on some plugin
>> examples by Alessandro Pasotti.
>>
>> One single project, one single WMS, several user roles and different
>> permissions (based on spatial and non-spatial filters) per role.
>>
>> You can read here [1] the instructions.
>> They are unfortunately only in Spanish. Even though I created an English
>> version, we are migrating the whole website at the moment, so it's
>> unavailable.
>> I hope you manage to translate them.
>>
>>
>> BTW, according to your use case, you would need to focus on
>> "layerPermissions" (see the link Thomas posted earlier in this thread).
>>
>>
>> Regards,
>>
>> Germán
>> 
>> [1]
>> https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10
>>
>>
>> El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
>> osgeo.mailingl...@gmail.com>) escribió:
>>
>>> Hi,
>>>
>>> You may create a QGIS Server plugin to manage your permissions e.g
>>> https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py
>>>
>>> Regards
>>>
>>> Thomas
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
>>
>> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Marco Casalboni
Thank you for the accurate informations, this will be very helpful.

One more thing: is it possible to filter the wms GetCapabilities request's
layer list according to an authenticated user (or role)?

regards,

Marco

Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <
carrillo.ger...@gmail.com> ha scritto:

> Hi Marco,
>
>
> I published a blog where I configured permissions based on user roles for
> a QGIS Server workshop.
> Keep in mind that it was just a demo. It was based on some plugin examples
> by Alessandro Pasotti.
>
> One single project, one single WMS, several user roles and different
> permissions (based on spatial and non-spatial filters) per role.
>
> You can read here [1] the instructions.
> They are unfortunately only in Spanish. Even though I created an English
> version, we are migrating the whole website at the moment, so it's
> unavailable.
> I hope you manage to translate them.
>
>
> BTW, according to your use case, you would need to focus on
> "layerPermissions" (see the link Thomas posted earlier in this thread).
>
>
> Regards,
>
> Germán
> 
> [1]
> https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10
>
>
> El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
> osgeo.mailingl...@gmail.com>) escribió:
>
>> Hi,
>>
>> You may create a QGIS Server plugin to manage your permissions e.g
>> https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py
>>
>> Regards
>>
>> Thomas
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-17 Thread Germán Carrillo
Hi Marco,


I published a blog where I configured permissions based on user roles for a
QGIS Server workshop.
Keep in mind that it was just a demo. It was based on some plugin examples
by Alessandro Pasotti.

One single project, one single WMS, several user roles and different
permissions (based on spatial and non-spatial filters) per role.

You can read here [1] the instructions.
They are unfortunately only in Spanish. Even though I created an English
version, we are migrating the whole website at the moment, so it's
unavailable.
I hope you manage to translate them.


BTW, according to your use case, you would need to focus on
"layerPermissions" (see the link Thomas posted earlier in this thread).


Regards,

Germán

[1]
https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10


El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
osgeo.mailingl...@gmail.com>) escribió:

> Hi,
>
> You may create a QGIS Server plugin to manage your permissions e.g
> https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py
>
> Regards
>
> Thomas
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-17 Thread Thomas Gratier
Hi,

You may create a QGIS Server plugin to manage your permissions e.g
https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py

Regards

Thomas
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-16 Thread Marco Casalboni
Hi all,
this is my setup:

Server: linux debian 10
QGIS server version: 3.18
Http server: apache

Is it possible to serve WMS layers with the http basic authentication?
I think I can do this by configuring an apache virtual host

BUT

What if I want to configure the layer list according to a specific user
role?
The best I can think, is to create a new project for every configuration I
need and then bind a new apache virtual host to each configuration, but
this would be a pain if I have to change something common in every
configuration.

Is there a more integrated solution directly in QGIS server configuration?

regards

Marco
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


  1   2   3   4   5   6   >