[QGIS-Developer] Modeler: What's missing to define string, number or other simple outputs

2024-04-15 Thread René-Luc Dhont via QGIS-Developer

Hi devs,

It seems it is not possible to define string, number, boolean or variant 
output for modeler algorithm.


For example, if you add Delete duplicate geometries 
`native:deleteduplicategeometries` algorithm in a model, you will not be 
able to define the name for the outputs Count of retained records 
RETAINED_COUNT and Count of discarded duplicate records DUPLICATE_COUNT.


So what's missing to be able to define the name for string, number, 
boolean or variant output to ensure that these became model algorithm 
output ?


Regards,
René-Luc___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] Modeler: Can a QgsProcessingOutputVariant be a QgsProcessingParameterGeometry for child algorithm?

2024-04-15 Thread René-Luc Dhont via QGIS-Developer

Hi devs,

I have found an issue and proposed fix 
https://github.com/qgis/QGIS/pull/57150 that has been merged and backported.

It will be possible to chain algorithm on Point and Geometry.

René-Luc

Le 05/04/2024 à 18:52, René-Luc Dhont a écrit :

Hi devs,

I'm trying to build algorithms with geometry ouput.
It seems that QgsProcessingOutputVariant has been build for it.

But if I use my algorithms in a model with QGIS 3.34 :
* I can't provide a name to QgsProcessingOutputVariant to become model 
algorithm ouput
* I can't use QgsProcessingOutputVariant as a parameter for a child 
algorithm


What is the QgsProcessingOutputVariant use case?
Which QgsProcessingOutputVariant has been defined for?

Thanks,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Modeler: Can a QgsProcessingOutputVariant be a QgsProcessingParameterGeometry for child algorithm?

2024-04-05 Thread René-Luc Dhont via QGIS-Developer

Hi devs,

I'm trying to build algorithms with geometry ouput.
It seems that QgsProcessingOutputVariant has been build for it.

But if I use my algorithms in a model with QGIS 3.34 :
* I can't provide a name to QgsProcessingOutputVariant to become model 
algorithm ouput
* I can't use QgsProcessingOutputVariant as a parameter for a child 
algorithm


What is the QgsProcessingOutputVariant use case?
Which QgsProcessingOutputVariant has been defined for?

Thanks,
René-Luc___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] GeoFerver canno't read QGIS server WFS Services

2023-06-05 Thread René-Luc Dhont via QGIS-Developer

Hi Walter,

The issue concerns Particelle_terreni_e_fabbricati layer.
Can you check the DescribeFeatureType for this layer: 
Particelle_terreni_e_fabbricati ?


Regards,
René-Luc

Le 05/06/2023 à 09:26, Walter Lorenzetti a écrit :


Hi René-Luc,

yes it fail on DescribeFeatureType.

This is the repsonse of QGIS 3.28.7:

http://www.opengis.net/gml; 
targetNamespace="http://www.qgis.org/gml; 
xmlns="http://www.w3.org/2001/XMLSchema; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; version="1.0" 
xmlns:qgs="http://www.qgis.org/gml; 
xmlns:ogc="http://www.opengis.net/ogc; elementFormDefault="qualified">
 schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd; 
namespace="http://www.opengis.net/gml"/>
 type="qgs:buildingsType"/>

 
  
   
    
 type="gml:MultiSurfacePropertyType"/>

 
 
 nillable="true"/>

 
 
 
 
 
 
 
 
 nillable="true"/>
 nillable="true"/>

 
 nillable="true"/>

 
 
 type="string" nillable="true"/>
 type="long" nillable="true"/>
 
 nillable="true"/>
 nillable="true"/>

    
   
  
 


and following a DescribeFeatureType response which does not fail on 
geoservers from a Italy government  service:


http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Alluvioni_Estensione.map=ITH2018_Estensione_LPH=DescribeFeatureType=1.1.0=WFS


http://mapserver.gis.umn.edu/mapserver;
   xmlns:ms="http://mapserver.gis.umn.edu/mapserver;
   xmlns:ogc="http://www.opengis.net/ogc;
   xmlns:xsd="http://www.w3.org/2001/XMLSchema;
   xmlns="http://www.w3.org/2001/XMLSchema;
   xmlns:gml="http://www.opengis.net/gml;
   elementFormDefault="qualified" version="0.1" >

  http://www.opengis.net/gml;
  
schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd; />


  

  
    
  
    
  minOccurs="0" maxOccurs="unbounded"/>

  
  
  
  
  
  
  
  
  
  
  
  
  
    
  
    
  




I can't see a substantial difference :(

W

Il 31/05/23 15:28, René-Luc Dhont via QGIS-Developer ha scritto:

Hi Walter,

You have to check the result of DescribeFeatureType WFS Request.
This request has to provide the XSD to validate the GML.

Regards,
René-Luc

Le 31/05/2023 à 14:59, Walter Lorenzetti via QGIS-Developer a écrit :


Hi,

when I try to add a WFS service layer to a GeoServer instance I get 
an exception like this:


```

...

Caused by: java.lang.RuntimeException: 
org.geotools.data.DataSourceException: No XSDElementDeclaration 
found for {http://www.opengis.net/wfs}Particelle_terreni_e_fabbricati
    at 
org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:329)
    at 
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:296)
    at 
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:105)
    at 
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:342)
    at 
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:325)
    at 
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:409)


...

```

Any idea about this issue? It seams a XML error validation..

Thanks in advance.

W


--

Walter Lorenzetti phD
email: lorenze...@gis3w.it
site: gis3w.it <https://gis3w.it>
twitter: w_lorenzetti
Tel/Cell: (+39) 347-6597931
Viale Verdi 24 - 51016 Montecatini Terme (PT)


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



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

--

Walter Lorenzetti phD
email: lorenze...@gis3w.it
site: gis3w.it <https://gis3w.it>
twitter: w_lorenzetti
Tel/Cell: (+39) 347-6597931
Viale Verdi 24 - 51016 Montecatini Terme (PT)

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


Re: [QGIS-Developer] GeoFerver canno't read QGIS server WFS Services

2023-05-31 Thread René-Luc Dhont via QGIS-Developer

Hi Walter,

You have to check the result of DescribeFeatureType WFS Request.
This request has to provide the XSD to validate the GML.

Regards,
René-Luc

Le 31/05/2023 à 14:59, Walter Lorenzetti via QGIS-Developer a écrit :


Hi,

when I try to add a WFS service layer to a GeoServer instance I get an 
exception like this:


```

...

Caused by: java.lang.RuntimeException: 
org.geotools.data.DataSourceException: No XSDElementDeclaration found 
for {http://www.opengis.net/wfs}Particelle_terreni_e_fabbricati
    at 
org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:329)
    at 
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:296)
    at 
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:105)
    at 
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:342)
    at 
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:325)
    at 
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:409)


...

```

Any idea about this issue? It seams a XML error validation..

Thanks in advance.

W


--

Walter Lorenzetti phD
email: lorenze...@gis3w.it
site: gis3w.it 
twitter: w_lorenzetti
Tel/Cell: (+39) 347-6597931
Viale Verdi 24 - 51016 Montecatini Terme (PT)


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


Re: [QGIS-Developer] QGIS Server and OGC API - Processes

2023-05-12 Thread René-Luc Dhont via QGIS-Developer

Hi Alessandro,

It is implemented in Py-QGIS-WPS https://github.com/3liz/py-qgis-wps

Regards,

Le 12/05/2023 à 11:44, Alessandro Pasotti via QGIS-Developer a écrit :

Hi,

Is anybody working or planning to work on an implementation of OGC API
- Processes [1] for QGIS Server?

[1]https://ogcapi.ogc.org/processes/overview.html

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


Re: [QGIS-Developer] Project loader profiler Postgres Layers

2022-11-16 Thread René-Luc Dhont via QGIS-Developer

Hi Rémi,

During the provider creation, a lot of SQL requests are made to check a 
lot of thing even if the use estimated metadata is checked :

* Fields list
* geometry type
* primary key
* extent
* capabilities (read, insert, update, delete)

You can take a look at these PRs to have an idea on all the SQL request 
made at the creation :

* https://github.com/qgis/QGIS/pull/49440
* https://github.com/qgis/QGIS/pull/50186

Regards,
René-Luc

Le 16/11/2022 à 09:55, Julien Cabieces via QGIS-Developer a écrit :

Hi Remi,

Which profiler are you talking about ?

Did you try to use the the new Debugging/Developement tool ? It's new
since QGIS 3.26 and will give you the list of requests and the time
spent for each one when loading a project/layer or opening the attribute
table.

Regards,
Julien

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


[QGIS-Developer] QGIS Server WMS Advertised extent and layers / groups bounding box in GetCapabilities

2022-10-04 Thread René-Luc Dhont via QGIS-Developer

Hi QGIS Server devs,

We, David and I, are working on enhancing the way QGIS Server is 
building the WMS GetCapabilities document. [1]


And I have some questions about the QGIS Server WMS Advertised extent 
and the layers / groups bounding box in GetCapabilities.


For exemple in the tests/testdata/qgis_server/test_project.qgs [2], the 
WMS Advertised extent is set to
* CRS="EPSG:4326" minx="44.901236" miny="8.203154"  maxx="44.901599" 
maxy="8.204165" [3][4]


And in this project, the WGS84 extent of the landsat layer is
* CRS="EPSG:4326" minx="30.151856" miny="17.924273" maxx="30.257289" 
maxy="18.045658" [5]


As you can read, the layer landsat is out of the WMS Advertised extent.

So the WMS GetCapabilities document contains a layer landsat with a 
bounding box outside the root layer / group bounding box.


I was thinking that the root layer / group bounding box should include 
all the layers bounding box.


So I wonder what the role of the WMS Advertised extent is.
* Is it only the root layer / group extent ?
* Is it a restricted extent (no data available outside this extent) ?
* Is it the minimum extent of all WMS layers ?

1. https://github.com/dmarteau/QGIS/tree/wms-getcapabilities-refactoring-2
2. 
https://github.com/qgis/QGIS/blob/master/tests/testdata/qgis_server/test_project.qgs
3. 
https://github.com/qgis/QGIS/blob/master/tests/testdata/qgis_server/test_project.qgs#L1818 

4. 
https://github.com/qgis/QGIS/blob/master/tests/testdata/qgis_server/wms_getcapabilities_rewriting.txt#L114
5. 
https://github.com/qgis/QGIS/blob/master/tests/testdata/qgis_server/wms_getcapabilities_rewriting.txt#L160


Thanks
René-Luc Dhont___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread René-Luc Dhont

Hi Jorge,

WMS Server can process SLD  provide in a GetMap Request.
QGIS Server is able to apply an SLD to a layer and provide the resulting 
image. The SLD can be provided through the SLD_BODY parameter or the  
SLD parameter for linked file.

https://docs.qgis.org/3.16/en/docs/server_manual/services.html#qgisserver-wms-getmap
This capability is mainly exploited by web clients

René-Luc

Le 26/10/2021 à 12:26, Jorge Gustavo Rocha a écrit :

Hi Kurt,

By design, WMS GetMap requests returns images. Those are rendered on 
the server side, by the map server. Many services just provide those 
rendered images.


Are you trying to provide advanced image processing capabilities on 
the client side to apply an SLD on top those images?


Or would you like to try other GetMap formats, more friendly to 
process on the client side? Like svg or kml? Some of these formats are 
available as vendor options of the map server.


Regards,

Jorge Gustavo


On 26/10/21 10:58, Kurt Menke wrote:

Hello,
We have been developing web apps that allow the user to download the 
selected extent and data layers as a QGIS project file. Many of the 
layers are hosted by the government as WMS services. We are wondering 
if anyone has looked into the possibility of applying an SLD style to 
a WMS layer in QGIS. We were hoping to be able to edit the *.qgs file 
programmatically. We would be interested in sponsoring the effort 
depending on the level of effort required, assuming it is even possible.

Best,
Kurt

--

Kurt Menke

GIS-Consultant
--
Septima P/S
Frederiksberggade 19, 2nd Floor
1459 Copenhagen

Tlf: +45 5114 6444

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



J. Gustavo


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


[QGIS-Developer] Test failed because the version.qgis.org certificat expired on the september 10 2021

2021-09-10 Thread René-Luc Dhont

Hi PSC and Devs,

The TestQgsProcessingAlgs::fileDownloader() failed because the 
version.qgis.org certificat expired on the september 10 2021.


So PR merging is blocked.

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] QGIS Server Tiles API Plugin

2021-07-30 Thread René-Luc Dhont

Hi Devs,

On request from Ifremer, we at 3Liz are started to work on a plugin to 
provide Tiles API for QGIS Server.

https://github.com/3liz/qgis-server-tiles-plugin

We have started to implement a Tile Map Service API, known as TMS.
It is based on the QGIS project WMTS configuration availabe in the OWS 
Server tab in Project properties.
If the EPSG:3857 is activated for WMTS, the tiles will be available 
through a simple URL with the MAP parameter.
The TMS API supports images, provided by WMTS, and Vector Tile based on 
QgsVectorTileWriter.


I have discovered that QgsVectorTileMVTEncoder is not available in Python.

We have planed to:
* implement in this plugin the OGC Tiles API, https://ogcapi.ogc.org/tiles/
* enhance the QGIS API to be able to build Vector Tile in other CRS than 
EPSG:3857

* and port the OGC Tiles API in the QGIS Server core.

Feedbacks are welcome
Regards,
René-Luc D'Hont

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


Re: [QGIS-Developer] REST API for QGIS processing tool

2021-02-25 Thread René-Luc Dhont


Le 24/02/2021 à 23:27, Nyall Dawson a écrit :


Look into the "WPS" standard. There's even an existing server for
this: https://github.com/3liz/py-qgis-wps


Thanks Nyall to pointing it.

Prem, If you are interested in a REST API, implementing the OGC API 
Processes standard is  being considered for py-qgis-wps

* https://github.com/opengeospatial/ogcapi-processes/
* https://ogcapi.ogc.org/processes/

py-qgis-wps is based on Tornado and any contributions are welcome.
https://github.com/3liz/py-qgis-wps

René-Luc



Nyall

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


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


[QGIS-Developer] How to fix the color ramp item list for the UI

2020-11-03 Thread René-Luc Dhont

Hi devs,

I have an issue with the QGIS Raster Color Ramp UI, I can't get the 
color ramp item list set with PyQGIS.


I have a PyQGIS Script to set the Raster Color Ramp like it is defined 
in the pyQGIS cookbook. It works find for rendering and legend, but if I 
open the Raster layer properties and look at the Style tab, the color 
ramp list item is not exactly the same as the one I defined in  my 
script. Values and labels are saved, but the color is lost.


How to fixed the color ramp item list ?

The pyQGIS cookbook code [0] works for rendering but the UI loose the list.
If you try this code, you ill not get 2 items in the UI
```
fcn = QgsColorRampShader()
fcn.setColorRampType(QgsColorRampShader.Interpolated)
lst = [ QgsColorRampShader.ColorRampItem(0, QColor(0,255,0)),
  QgsColorRampShader.ColorRampItem(255, QColor(255,255,0)) ]
fcn.setColorRampItemList(lst)
shader = QgsRasterShader()
shader.setRasterShaderFunction(fcn)
renderer = QgsSingleBandPseudoColorRenderer(rlayer.dataProvider(), 1, 
shader)

rlayer.setRenderer(renderer)
rlayer.triggerRepaint()
```

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] How to get a generated CRS from an Unknown CRS

2020-10-07 Thread René-Luc Dhont

Thanks Nyall for your answer.

Is it really just a string issue ?
If the text is "Custom CRS",  will the CRS stored in the project (or in 
the datasource) never become "invalid projection" ?


René-Luc

Le 07/10/2020 à 09:20, Nyall Dawson a écrit :

This has been fixed recently for 3.16.

It's basically just a string issue -- instead of reading "Unknown CRS"
the text should be "Custom CRS". The CRS will still transform
correctly (as you've deduced).

Nyall


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

[QGIS-Developer] How to get a generated CRS from an Unknown CRS

2020-10-07 Thread René-Luc Dhont

Hi devs,

We are facing a behavior we did not expect from QGIS Server regarding 
custom projections.


We are using Raster layer with a custom projection. This projection is 
well read and understanding by QGIS. The data are displayed at the right 
place with 'on-th-fly' CRS transformation. But the CRS is desribed by 
QGIS as an Unknown CRS and not as a Generated CRS.
In the XML project, the CRS is described with proj4 text and WKT but it 
does not have an authid with a USER authority.


And with QGIS Desktop and QGIS Server on Linux OS, sometimes the layer 
is loaded without any CRS. The layer properties dialog displayed an 
'invalid projection', even if the CRS is defined in the project and the 
layer has been well displyed before saving, closing and opening the project.


Here are my questions :
Is the auto generated CRS has been deactivated from QGIS ?
Is there a way to create a custom CRS from a layer CRS defined as 
unknown CRS ?


Regards,
René-Luc

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

Re: [QGIS-Developer] The virtual QgsRasterInterface block method is too slow

2020-10-06 Thread René-Luc Dhont

Thanks Nyall,

I have tested Hotspot and the result is interesting :
* 48.7% of the time is due to QgsRasterProjector::block that provide 
projected raster block
* 26.6% of the time is due to ProjectorData::srcRowCol that identify the 
source row col corresponding to the destination row col


Is some enhancement could e done here ?

Regards,
René-Luc

Le 05/10/2020 à 05:31, Nyall Dawson a écrit :

On Fri, 2 Oct 2020 at 00:53, René-Luc Dhont  wrote:

Hi devs,

A customer found that reading a lightweight GeoTIFF takes 1 second in
QGIS Server needs less than 200 milliseconds.

With timer I found somethings strange around the virtual
QgsRasterInterface block method and it's reimplation in QgsGdalProvider.
Here is part of my logs:

../src/core/raster/qgsrasteriterator.cpp:87 :
(readNextRasterPartInternal) [2ms] Entered
../src/core/providers/gdal/qgsgdalprovider.cpp:2641 : (initIfNeeded)
[1ms] GdalDataset opened
../src/core/providers/gdal/qgsgdalprovider.cpp:317 : (crsFromWkt) [0ms]
+proj=aea +lat_1=43 +lat_2=62 +lat_0=30 +lon_0=-30 +x_0=0 +y_0=0
+datum=WGS84 +units=m +no_defs
../src/core/providers/gdal/qgsgdalprovider.cpp:2836 : (initBaseDataset)
[0ms] GDALGetRasterNoDataValue = -3.4e+38
../src/core/providers/gdal/qgsgdalprovider.cpp:647 : (block) [10ms]
QgsGdalProvider::block
../src/core/providers/gdal/qgsgdalprovider.cpp:718 : (readBlock) [0ms]
QgsGdalProvider::readBlock
../src/core/providers/gdal/qgsgdalprovider.cpp:965 : (readBlock) [2ms]
QgsGdalProvider::readBlock completed in (seconds): 0.002
../src/core/providers/gdal/qgsgdalprovider.cpp:684 : (block) [0ms]
QgsGdalProvider::block completed in (seconds): 0.002
../src/core/raster/qgsrasteriterator.cpp:137 :
(readNextRasterPartInternal) [643ms] Raster iterator read next block
completed in (seconds): 0.656
../src/core/raster/qgsrasteriterator.cpp:87 :
(readNextRasterPartInternal) [3ms] Entered
../src/core/providers/gdal/qgsgdalprovider.cpp:647 : (block) [6ms]
QgsGdalProvider::block
../src/core/providers/gdal/qgsgdalprovider.cpp:718 : (readBlock) [0ms]
QgsGdalProvider::readBlock
../src/core/providers/gdal/qgsgdalprovider.cpp:965 : (readBlock) [0ms]
QgsGdalProvider::readBlock completed in (seconds): 0
../src/core/providers/gdal/qgsgdalprovider.cpp:684 : (block) [0ms]
QgsGdalProvider::block completed in (seconds): 0
../src/core/raster/qgsrasteriterator.cpp:137 :
(readNextRasterPartInternal) [283ms] Raster iterator read next block
completed in (seconds): 0.289
../src/core/raster/qgsrasteriterator.cpp:87 :
(readNextRasterPartInternal) [0ms] Entered


The qgsrasterinterator.cpp ligne 130 [1] tooks almost 300 times longer
than it's reimplementation.

Do you know a way to enhance this ?

I'd caution against reading too much into the debug output timings. My
suggestion is to re-run the tests using hotspot
(https://github.com/KDAB/hotspot) as this will give much more useful
information about the bottlenecks.

Nyall


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

[QGIS-Developer] The virtual QgsRasterInterface block method is too slow

2020-10-01 Thread René-Luc Dhont

Hi devs,

A customer found that reading a lightweight GeoTIFF takes 1 second in 
QGIS Server needs less than 200 milliseconds.


With timer I found somethings strange around the virtual 
QgsRasterInterface block method and it's reimplation in QgsGdalProvider.

Here is part of my logs:

../src/core/raster/qgsrasteriterator.cpp:87 : 
(readNextRasterPartInternal) [2ms] Entered
../src/core/providers/gdal/qgsgdalprovider.cpp:2641 : (initIfNeeded) 
[1ms] GdalDataset opened
../src/core/providers/gdal/qgsgdalprovider.cpp:317 : (crsFromWkt) [0ms] 
+proj=aea +lat_1=43 +lat_2=62 +lat_0=30 +lon_0=-30 +x_0=0 +y_0=0 
+datum=WGS84 +units=m +no_defs
../src/core/providers/gdal/qgsgdalprovider.cpp:2836 : (initBaseDataset) 
[0ms] GDALGetRasterNoDataValue = -3.4e+38
../src/core/providers/gdal/qgsgdalprovider.cpp:647 : (block) [10ms] 
QgsGdalProvider::block
../src/core/providers/gdal/qgsgdalprovider.cpp:718 : (readBlock) [0ms] 
QgsGdalProvider::readBlock
../src/core/providers/gdal/qgsgdalprovider.cpp:965 : (readBlock) [2ms] 
QgsGdalProvider::readBlock completed in (seconds): 0.002
../src/core/providers/gdal/qgsgdalprovider.cpp:684 : (block) [0ms] 
QgsGdalProvider::block completed in (seconds): 0.002
../src/core/raster/qgsrasteriterator.cpp:137 : 
(readNextRasterPartInternal) [643ms] Raster iterator read next block 
completed in (seconds): 0.656
../src/core/raster/qgsrasteriterator.cpp:87 : 
(readNextRasterPartInternal) [3ms] Entered
../src/core/providers/gdal/qgsgdalprovider.cpp:647 : (block) [6ms] 
QgsGdalProvider::block
../src/core/providers/gdal/qgsgdalprovider.cpp:718 : (readBlock) [0ms] 
QgsGdalProvider::readBlock
../src/core/providers/gdal/qgsgdalprovider.cpp:965 : (readBlock) [0ms] 
QgsGdalProvider::readBlock completed in (seconds): 0
../src/core/providers/gdal/qgsgdalprovider.cpp:684 : (block) [0ms] 
QgsGdalProvider::block completed in (seconds): 0
../src/core/raster/qgsrasteriterator.cpp:137 : 
(readNextRasterPartInternal) [283ms] Raster iterator read next block 
completed in (seconds): 0.289
../src/core/raster/qgsrasteriterator.cpp:87 : 
(readNextRasterPartInternal) [0ms] Entered



The qgsrasterinterator.cpp ligne 130 [1] tooks almost 300 times longer 
than it's reimplementation.


Do you know a way to enhance this ?

Regards,
René-Luc

1 
https://github.com/qgis/QGIS/blob/master/src/core/raster/qgsrasteriterator.cpp#L130

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

[QGIS-Developer] Using task to run multiple processes in an algorithm

2020-08-05 Thread René-Luc Dhont

Hi dev,

I have a little question : Is it possible to run multiple processes with 
QgsProcessingAlgRunnerTask in QgsProcessingAlgorithm::processAlgorithm ?


Once a QgsProcessingAlgRunnerTask instanciated and configured it has to 
be passed to the QgsTaskManager available through QgsApplication. Is 
QgsApplication available in QgsProcessingAlgorithm::processAlgorithm and 
thread safe ?


Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] LTR 3.10: Fixing issues when content cache is used in blocking mode

2020-06-01 Thread René-Luc Dhont

Hi devs,

I need your point of view about fixing issues when content cache is used 
in blocking mode.


A QGIS Server user has identified an issue when content cache is used in 
blocking mode. In some cases, the bug is timed out QGIS Server.
This issue is due to a loop to wait for content task cache begun. In 
some cases, the loop starts even if the task has already begun, and it 
is never stopped.
This issue has been fixed in master and version 3.12, by fixing the task 
manager waitforfinished (PR 32838 [1], a 6 mounths old PR) and removing 
the loop when content cache is used in blocking mode (part of PR 35158 [2]).

These pull requests has not been backported to LTR, the 3.10 release.

To fix, the issue in LTR, I have manually backported the 2 Pull Requests:
* Backport Fix Task manager waitforfinished, PR 36651 [3]
* Backport Fix issues when content cache is used in blocking mode, PR 
36624 [4]

And requested Nyall Danwson reviews.

After Nyall reviews, I have two options to fix the issue:
1. Fix Task manager waitforfinished (merge PR 36651 [3]) and removing 
the loop (removing commit c184270 [5] from PR 36624 [4] then merge it)

2. Keep and fix the loop (merge PR 36624 [4] and close PR 36651 [3])

So I need a collegial decision about the least bad way to fix the issue:
1. Merge a risky backport and remove the loop
2. Keep and fix the loop

Thanks for your feedbacks.

René-Luc

[1] https://github.com/qgis/QGIS/pull/32838
[2] https://github.com/qgis/QGIS/pull/35158
[3] https://github.com/qgis/QGIS/pull/36651
[4] https://github.com/qgis/QGIS/pull/36624
[5] 
https://github.com/qgis/QGIS/pull/36624/commits/c184270ebe2bb51164fdcd13b7ccd8ebc42e71a0

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

Re: [QGIS-Developer] Processing algorithms in Qgis serveur

2020-04-23 Thread René-Luc Dhont

Hi,

You can take a look at py-qgis-wps : https://github.com/3liz/py-qgis-wps

Regards,
René-Luc

Le 23/04/2020 à 15:16, PALMIER Patrick (Responsable de groupe) - 
CEREMA/DTerNP/DATHa/MT a écrit :

Hi,

Yes, I want to provide a WPS service based on qgis processing 
algorithm in a web app



Thank you


Best regards

---


Le 23/04/2020 15:06, > Etienne Trimaille a écrit :

Hi,

Can you elaborate what do you mean with "how to run processing
algorithms in Qqis server?" ?

Do you mean providing an WPS service on your server?

Or do you mean to run Processing algorithms with a standalone
application? Look what has been done in QGIS 3.13
https://github.com/qgis/QGIS/pull/34617
Before 3.13, there are some scripts on the internet to launch
Processing algs as a small executable.

Le jeu. 23 avr. 2020 à 07:26, PALMIER Patrick (Responsable de groupe)
- CEREMA/DTerNP/DATHa/MT  a écrit :


Hello,

Is there any documentation, tutorial or examples to show how to run
processing algorithms in Qqis server?

Thanks

Patrick Palmier
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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


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

[QGIS-Developer] Server: The legend anchored point will be reset to up left when WMS GetPrint

2020-04-09 Thread René-Luc Dhont

Hi devs,

I have found an issue in QGIS Server and I am not able to fix it.
I have firstly create the test to confirm the bug 
https://github.com/qgis/QGIS/pull/35060


The issue is that the anchored point of a legend layout item is reset 
when the QGIS Server performs a print.
I cannot reproduce the issue with QGIS Desktop. The anchored point is 
never reset whatever the options and configurations of the associated map.

I did not find how the anchored point can be reset for a layout item.

Thanks in advanced for your help.
Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS "fast" mode

2020-03-20 Thread René-Luc Dhont

Hi Régis,

The trust option is used in QgProject with 
QgsVectorLayer::setReadExtentFromXml

https://github.com/qgis/QGIS/blob/master/src/core/qgsproject.cpp#L3304

Then in the case of a postgres layer, the checkUnicityKey is disabled
https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorlayer.cpp#L1684

And it's all. The trust option only avoid to calculate layer Extent and 
verify primary key for postgres layers.


The estimatedMetadata layer option is more common in provider. It will 
be great to can check/uncheck this option.


Regards
René-luc

Le 19/03/2020 à 19:30, Régis Haubourg a écrit :
Hi, can someone explain what is the real logic currently coded for 
trust option? It feels like this topic raises again each year for 5 
years now, and we have regressions and what it is supposed to do.


It was funded at start to not check at all any metadata on the 
datasource and read only qgs informations

Did it change for some reason ? Why?

It should be adequate even for big databases of QGIS stores all the 
required informations.


Regards
Regis



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

Re: [QGIS-Developer] QGIS "fast" mode

2020-03-19 Thread René-Luc Dhont

Hi Tomas,

The way trust option works is not enough for big databases and big 
project with more than 100 layers. It is what Michaël and I experiment.


Then the problem with changes data is more about the layer extent. For 
example a natural observations layer is designed to accept data on a 
territory but t the start of the project the layer extent is null and 
will growing with data inserted. The trust option cannot be used at the 
project start unless the user can set the available extent, or can 
defined the trust option for each layer.


It will be great to set trust option at the layer level so QGIS can 
trust the layer information provided by the XML : QLR or QGS content
It will also be great to can set some technical metadata like a layer 
available extent as the geographic area for which a selected CRS is 
valid for use.


Regards,
René-Luc

Le 18/03/2020 à 22:01, Tomas Straupis a écrit :

2020-03-18, tr, 21:41 kimaidou rašė:

# only few requests are avoided as you pointed out so the performance improves 
"only" a bit

   In large databases those few requests take minutes and sometimes
even hours... For servers even 30 seconds are too much when you're
trying to add a new QGIS server process to existing say 10 while on
high load doing 500 requests per second.


# sometimes you have some layers with changing data, and there is actually no 
way to trust only a subset of layers inside the project

   1. If geometry types are changing by design, then checking geometry
type upon project loading is not enough. Then you need to ALWAYS
filter your results by requested geometry type. But only if it is the
case of varying geometry types. In my opinion, developer of the
layer/query should know beforehand if it is possible for geometry
types to variate and then create a view filtering on geometry type (or
it could be an option in QGIS ~"filter on geometry type").

   2. If database schemas are changing on-line then I would say
something is very wrong with the IT processes. Changes should start on
dev environment where data changes and QGIS project changes as well.
Then changes to db structure go to other environments up to production
in patches TOGETHER with updated QGIS project. System (in this case
QGIS) should never (in my experience) try to "fix" the problem because
it does not know all required information: maybe the project was
opened in incorrect environment, maybe it is a temporary problem,
maybe the real table is missing and you're accidentally trying to
query incorrect table which was never supposed to be queried -> strict
rules/control. Of course there could be a button "refresh" on a layer
to allow operator to re-query layer information upon manual request.


Do you think it would be interesting to have the trust option per layer and not 
only per project?

   Theoretically there could be very different data sources, but in my
opinion if organisation uses strict IT processes then all layers will
be strictly managed (you would rarely/never have direct access to the
database of a different company/institution with different/weaker
processes). And vice versa.



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

Re: [QGIS-Developer] Geopackage FID columns: i HATE them!!!!

2020-03-19 Thread René-Luc Dhont
I agree, so in my algorithms working with geopackage I always redefined  
FID with


options = QgsVectorFileWriter.SaveVectorOptions()
options.layerOptions = ['FID=id']

For me it is like a primary key in PostGIS, I need to manage it.
Other point, Feature ID in QGIS is still a short integer.

Regards,
René-Luc

Le 19/03/2020 à 10:28, Régis Haubourg a écrit :
+1000. I was so relieved of the fid/oid/mapinfo_id when QGIS arrived 
and allowed business logic primary keys.



Le jeu. 19 mars 2020 à 07:52, Nathan Woodrow > a écrit :


I agree.

If there is an ID that is used internally as a unique primary key
it should never be shown to the user. It should not be expected to
be edited outside of the provider's control or be stable between
edits.

If you need a stable ID for reference you should make your own
{{insert rant about people wanting to use increating ints as a
reference ID}}

On Thu, Mar 19, 2020 at 4:04 PM Nyall Dawson
mailto:nyall.daw...@gmail.com>> wrote:

Hi list,

Just wondering what everyone's thoughts are about geopackage FID
columns. Personally, I find them an absolute nightmare to deal
with,
resulting in annoying (and dangerous) issues when trying to save
geopackage edits, such as
- field type issues: converting certain formats to geopackage
fails,
because existing fields with name "fid" are of an incompatible
type
with geopackage. Solution: manually uncheck the "fid" field
from the
"save as" dialog.
- unique constraint violations: we've mostly fixed this in
processing,
but it's still unfortunately really common to get failures
when saving
edits to geopackage because some operation has resulted in
duplicate
fids. This can be a nightmare to fix, if it's even possible to
do so.

I personally HATE HATE HATE these columns, and would rather I
never
saw them ever again. Does anyone else feel the same? If so,
could we
potentially just permanently hide these columns from QGIS and
avoid
all these dangerous issues for users?

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org

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

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


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


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

[QGIS-Developer] Default QgsPalLayerSettings for Line layer

2020-02-04 Thread René-Luc Dhont

Hi Devs,

I would like to know how to get the default QgsPalLayerSettings values 
for a point, line or polygon layer.

Is a method exist ?
Is it defined in some comments ?

It is for fixing my PR Read SLD TextSymbolizer for lines 
https://github.com/qgis/QGIS/pull/34223


Thanks,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Build failed on Azure CI, how to get details

2020-01-16 Thread René-Luc Dhont

Hi Devs,

Is the Azure CI mandatory before merging ?

Regards,
René-Luc

Le 15/01/2020 à 15:29, René-Luc Dhont a écrit :

Hi Dev,

My PRs https://github.com/qgis/QGIS/pull/33813 and 
https://github.com/qgis/QGIS/pull/33725 failed to build on Azure CI.


The build log is minimalistic :

2020-01-15T10:12:39.7333036Z Build project
2020-01-15T10:12:39.7350985ZEach symbol represents 1024 bytes of output.
2020-01-15T10:12:39.7351096Z'!' represents an error and '*' a warning.
2020-01-15T10:21:19.1415558Z 
.*  Size: 49K
2020-01-15T10:36:14.5224541Z 
..*...  Size: 99K
2020-01-15T10:49:37.5635400Z 
...*..  Size: 149K
2020-01-15T10:58:23.4653034Z 
**  Size: 199K
2020-01-15T11:07:34.3517006Z 
.*...*..**...*** Size of output: 248K
2020-01-15T11:07:34.4586592Z Error(s) when building project
2020-01-15T11:07:34.4586766Z1 Compiler errors
2020-01-15T11:07:34.4587572Z56 Compiler warnings
2020-01-15T11:07:34.7983476Z [0/1] cmd.exe /C "cd /D D:\a\1\s\ms-windows\osgeo4w\build-qgis-dev-x86 
&& "C:\Program Files\CMake\bin\ctest.exe" -D ExperimentalSubmit"
2020-01-15T11:07:34.8127277ZSite: azure-pipelines
2020-01-15T11:07:34.8127629ZBuild name: PR 33813 / master (1138) 
(d88e9cbd97) (qgis-dev Experimental x86)
2020-01-15T11:07:34.8147167Z Submit files
2020-01-15T11:07:34.8147322ZSend to track: Experimental
2020-01-15T11:07:34.8147841Z
SubmitURL:https://cdash.orfeo-toolbox.org/submit.php?project=QGIS
2020-01-15T11:07:36.9734255ZUploaded: 
D:/a/1/s/ms-windows/osgeo4w/build-qgis-dev-x86/Testing/20200115-1012/Build.xml
2020-01-15T11:07:37.4788307ZUploaded: 
D:/a/1/s/ms-windows/osgeo4w/build-qgis-dev-x86/Testing/20200115-1012/Done.xml
2020-01-15T11:07:37.4789266ZSubmission successful
2020-01-15T11:07:37.4891009Z build failed
2020-01-15T11:07:37.4896897Z BUILD ERROR 0: Wed 01/15/2020 11:07:37.47
2020-01-15T11:07:37.9186422Z ##[error]Cmd.exe exited with code '1'.
2020-01-15T11:07:38.0958787Z ##[section]Finishing: Building QGIS
How to get details when the build failed ?

Thanks

René-Luc




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

[QGIS-Developer] Build failed on Azure CI, how to get details

2020-01-15 Thread René-Luc Dhont

Hi Dev,

My PRs https://github.com/qgis/QGIS/pull/33813 and 
https://github.com/qgis/QGIS/pull/33725 failed to build on Azure CI.


The build log is minimalistic :

2020-01-15T10:12:39.7333036Z Build project
2020-01-15T10:12:39.7350985ZEach symbol represents 1024 bytes of output.
2020-01-15T10:12:39.7351096Z'!' represents an error and '*' a warning.
2020-01-15T10:21:19.1415558Z 
.*  Size: 49K
2020-01-15T10:36:14.5224541Z 
..*...  Size: 99K
2020-01-15T10:49:37.5635400Z 
...*..  Size: 149K
2020-01-15T10:58:23.4653034Z 
**  Size: 199K
2020-01-15T11:07:34.3517006Z 
.*...*..**...*** Size of output: 248K
2020-01-15T11:07:34.4586592Z Error(s) when building project
2020-01-15T11:07:34.4586766Z1 Compiler errors
2020-01-15T11:07:34.4587572Z56 Compiler warnings
2020-01-15T11:07:34.7983476Z [0/1] cmd.exe /C "cd /D D:\a\1\s\ms-windows\osgeo4w\build-qgis-dev-x86 
&& "C:\Program Files\CMake\bin\ctest.exe" -D ExperimentalSubmit"
2020-01-15T11:07:34.8127277ZSite: azure-pipelines
2020-01-15T11:07:34.8127629ZBuild name: PR 33813 / master (1138) 
(d88e9cbd97) (qgis-dev Experimental x86)
2020-01-15T11:07:34.8147167Z Submit files
2020-01-15T11:07:34.8147322ZSend to track: Experimental
2020-01-15T11:07:34.8147841ZSubmitURL: 
https://cdash.orfeo-toolbox.org/submit.php?project=QGIS
2020-01-15T11:07:36.9734255ZUploaded: 
D:/a/1/s/ms-windows/osgeo4w/build-qgis-dev-x86/Testing/20200115-1012/Build.xml
2020-01-15T11:07:37.4788307ZUploaded: 
D:/a/1/s/ms-windows/osgeo4w/build-qgis-dev-x86/Testing/20200115-1012/Done.xml
2020-01-15T11:07:37.4789266ZSubmission successful
2020-01-15T11:07:37.4891009Z build failed
2020-01-15T11:07:37.4896897Z BUILD ERROR 0: Wed 01/15/2020 11:07:37.47
2020-01-15T11:07:37.9186422Z ##[error]Cmd.exe exited with code '1'.
2020-01-15T11:07:38.0958787Z ##[section]Finishing: Building QGIS

How to get details when the build failed ?

Thanks

René-Luc


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

[QGIS-Developer] Reviewing Pull-Request for bugfixing QgsVectorLayer's method Read SLD Labeling

2019-11-19 Thread René-Luc Dhont

Hi devs,

I have proposed a fix of the QgsVectorLayer's method Read SLD Labeling.
I would like to request a review before merging, especially because 
Iwould like to backport the fix.


I have seen that the QgsVectorLayer's method Read Sld is a 4 years old 
code and I don't know whom can I request for review or if a review is 
necessary.


Reagdrs,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] How to encode blobs in (Geo)JSON?

2019-11-07 Thread René-Luc Dhont

Hi Alessandro,

I think the same as you,base64 the blob.

Regards,
René-Luc

Le 07/11/2019 à 17:40, Alessandro Pasotti a écrit :

Hi,

I'm running into an issue with OAPIF and blob/binary fields, the 
QgsJsonExporter does not currently handle that kind of field and just 
convert them to string (whatever that means).


This is clearly wrong in case the blob does not contain ascii or 
UTF-8, I think the way to go might be to base64 the blob but I'd like 
to know if anyone has a better idea.



--
Alessandro Pasotti
w3: www.itopen.it 

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


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

Re: [QGIS-Developer] 3.10.0 in hard freeze, should we branch master as unfreeze for 3.12?

2019-10-14 Thread René-Luc Dhont

Hi devs,

I remove my +1 for branching version 3.10 before release, but we have an 
issue in QGIS managing stale tag for frozen branch.


Some Pull Requests with frozen tag has been tagged stale by the github 
probot-stale.


René-Luc


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

Re: [QGIS-Developer] 3.10.0 in hard freeze, should we branch master as unfreeze for 3.12?

2019-10-13 Thread René-Luc Dhont

+1 for branching off the release-3_10

Le 14/10/2019 à 01:34, Nyall Dawson a écrit :

(Subject says it  )

Now that we're in hard freeze for the 3.10.0 release, should we be 
branching off the release-3_10 branch now and unfreezing master for 3.12?


Nyall

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


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

Re: [QGIS-Developer] QGIS Server does not wait for remote SVG before rendering

2019-09-24 Thread René-Luc Dhont

Hi devs,

I have started to work on fixing this issue 
https://github.com/qgis/QGIS/pull/31930


I was thinking, I have found a solution to force QGIS Server to wait for 
loading remote SVG before rendering.
But it seems that I am not able to determine if a task is running or 
will be ran.


Just after fetching SVGs, I wrote this code :

    if ( QgsApplication::taskManager()->countActiveTasks() > 0 )
    {
  QEventLoop loop;
  QObject::connect( QgsApplication::taskManager(), 
::allTasksFinished, , ::quit );

  loop.exec();
    }

When a task is added, does the number of active tasks increase?
Is the number of active tasks null when all the task has been performed ?
If the number of active tasks is null, are all tasks finished ?

Thansk for your help,
René-Luc


Le 05/07/2019 à 00:48, Nyall Dawson a écrit :

On Thu, 4 Jul 2019 at 23:08, René-Luc Dhont  wrote:

Hi devs,

We encountered a strange issue with QGIS Server, a point layer with a
simple style using a remote SVG.

At the first GetMap request to this layer, QGIS Server rendered an image
with missing symbol, the ?.

At the second same GetMap Request, QGIS Server rendered an image with
the remote SVG.

And sometimes the remote SVG is not drawn and replaced by the  ?.

Do you know if the renderer or the styler has a timer to wait for SVG ?
Is It configurable ? or the context can be configured to wait for svg or
an error ?

On the desktop it's done in a background thread, and the svg/raster
image caches fire a signal when the image is downloaded, triggering a
canvas refresh.

I'm not sure how you could address this with server. Maybe either:
1. (ugly) push some flag via the render context to force the renderer
to wait until a required svg is downloaded, and push this flag into
the svg/ raster image caches.
2. (out of the box) use https://github.com/qgis/QGIS/pull/30522 to
check in advance for any remote svg/images required in a project, and
prefetch all these on server startup BEFORE any rendering operation is
requested.

Nyall


Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

Re: [QGIS-Developer] Integration of Zoo and QGIS

2019-09-02 Thread René-Luc Dhont

Hi Tim,

David Marteau has ported QGIS 3 Processing framework to Web as WPS.

A presentation has been made during the Foss4g 2019: WPS with Qgis 
processing - From desktop to server
* the stream 
https://media.ccc.de/v/bucharest-306-wps-with-qgis-processing-from-desktop-to-server 
or https://www.youtube.com/watch?v=YL1tdcJwimA


Here is the code source https://github.com/3liz/py-qgis-wps
and the docker source https://github.com/3liz/docker-qgis-wps

Regards,

René-Luc

Le 02/09/2019 à 21:27, Tim Sutton a écrit :

Dear QGIS devs

During the FOSS4G I had a nice catch up with Gérald Fenoy from the ZOO 
project. He had some interesting suggestions about integrating ZOO and 
QGIS. The benefit? The addition of many more processing algorithms to 
our collection. There are different alternatives we could look into 
but the main interesting ideas I think are:


1. Exposing QGIS 3 Server as a WPS server, making all the algorithms 
available in WPS via ZOO. I remember 3LIZ was working on WPS support 
in v2 but I dont know what the state of WPS options in QGIS 3 is.
2. Using ZOO as a WPS client in QGIS and wrapping the algorithms we 
find as local processing algs.
3. Potentially using ZOO as a WPS server running locally and exposing 
the algs they support to the processing framework


Is anybody interested in pursuing the idea of ZOO integration? Would 
you like to join us for a call to better understand the possibilities? 
If so please let me know and I will set up a call.


Regards

Tim
—








*Tim Sutton*

*Co-founder:*Kartoza
*Ex Project chair:*QGIS.org 

Visit http://kartoza.com  to find out about open 
source:


Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

*Skype*: timlinux
*IRC:*timlinux on #qgis at freenode.net 

I'd love to connect. Here's my calendar link 
 to make finding time easy.



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


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

[QGIS-Developer] QGIS Server does not wait for remote SVG before rendering

2019-07-04 Thread René-Luc Dhont

Hi devs,

We encountered a strange issue with QGIS Server, a point layer with a 
simple style using a remote SVG.


At the first GetMap request to this layer, QGIS Server rendered an image 
with missing symbol, the ?.


At the second same GetMap Request, QGIS Server rendered an image with 
the remote SVG.


And sometimes the remote SVG is not drawn and replaced by the  ?.

Do you know if the renderer or the styler has a timer to wait for SVG ? 
Is It configurable ? or the context can be configured to wait for svg or 
an error ?


Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS Server 2.x and caching question

2019-06-12 Thread René-Luc Dhont

Hi Andreas,

We didn't yet find shadow layers in QGIS 3, but I don't think it has 
been fixed because it's a silent issue for desktop users.


Regards,
René-Luc

Le 12/06/2019 à 11:01, Andreas Neumann a écrit :


Hi René-Luc,

Thanks for the reply. Good to know that we are not the only ones 
struggling with such issues.


Is this known issue in QGIS 2.x only or also in QGIS 3.x?

I will also have a look at the Layer Board plugin and see what it does 
and how it could help us.


Thanks,

Andreas

On 2019-06-12 10:02, René-Luc Dhont wrote:


Hi Andreas,

It's a known issue. It is not easy to understand because it's due to 
SHADOW layers...
Some times, QGIS keeps some undisplayed layers with the same UUID and 
stored it in the QGIS project.


You can use Layer Board plugin to remove them.

Regards,
René-Luc

Le 11/06/2019 à 18:28, Andreas Neumann a écrit :


Hi all,

At my new work place we are running a 2.x QGIS server which in two 
projects behaves very strange: sometimes colors display in the color 
we expected, sometimes really light. Then my colleagues discovered 
that more than rules share the same UUID identifier, because the QGS 
files have been copy pasted into a anew project and then aggregated 
again into the same single project.


Not knowing about the internals of QGIS server 2x (and 3x) I wonder 
if this something we need to avoid? Are the UUID identifiers of a 
symbology rule relevant and absolutely need to be unique? Do we have 
to avoid such id clashes?


The "human readable" nature of qgs/qml files naturally seduce people 
to copy / paste and mix project stuff together in text editors ...


Thank you for your feedback on this topic.

Andreas


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



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





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

Re: [QGIS-Developer] QGIS Server 3.4.7 and WFS Filtering PropertyIsLike

2019-06-12 Thread René-Luc Dhont

Hi Luca,

The OGC Filter element is required as the document element for filter 
parameter.


Regards,
René-Luc

Le 11/06/2019 à 15:59, Luca Manganelli a écrit :

Addendum.

I discovered what problem was.

OWSLib generates an URL like this:

http:// WFSHOST .../=singleChar="_" escapeChar="\" 
matchCase="false">nome_viaVIA 
A%


but it seems that QGIS Server doesn't like this. We should add 
 and  at start and the end of the FILTER value:


http:// WFSHOST .../= wildCard="%" singleChar="_" escapeChar="\" 
matchCase="false">nome_viaVIA 
A%


with the last URL, the WFS query works!




Il giorno mar 11 giu 2019 alle ore 14:18 Luca Manganelli 
> ha scritto:


Hello,

I'm trying to make this python 3 code with OwsLib working.
In particular, I'm searching a road with the name starting by "VIA
F.", but QGIS Server returns me a road named VIA MATTEOTTI...

Does QGIS Server support PropertyIsLike in WFS?


#!/usr/bim/python3
from owslib.wfs import WebFeatureService
from owslib.etree import etree
from owslib.fes import PropertyIsEqualTo, PropertyIsLike, BBox

wfs =
WebFeatureService(url='https://cartografia.comunelavis.it/wms/cbase')

filt = PropertyIsLike(propertyname='nome_via', literal='VIA F.%',
wildCard='%', matchCase=False)
filterxml = etree.tostring(filt.toXML()).decode("utf-8")

feature = wfs.getfeature(typename=['Civici'], maxfeatures=1,
filter=filterxml)
gml = etree.parse(feature)
print(etree.tostring(gml))



--
Luca Manganelli
Assistente informatico
Servizio Innovazione e Sistemi digitali
Via Ezio Maccani 148
38121 Trento (TN)

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


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

Re: [QGIS-Developer] QGIS Server 2.x and caching question

2019-06-12 Thread René-Luc Dhont

Hi Andreas,

It's a known issue. It is not easy to understand because it's due to 
SHADOW layers...
Some times, QGIS keeps some undisplayed layers with the same UUID and 
stored it in the QGIS project.


You can use Layer Board plugin to remove them.

Regards,
René-Luc

Le 11/06/2019 à 18:28, Andreas Neumann a écrit :


Hi all,

At my new work place we are running a 2.x QGIS server  which in two 
projects behaves very strange: sometimes colors display in the color 
we expected, sometimes really light. Then my colleagues discovered 
that more than rules share the same UUID identifier, because the QGS 
files have been copy pasted into a anew project and then aggregated 
again into the same single project.


Not knowing about the internals of QGIS server 2x (and 3x) I wonder if 
this something we need to avoid? Are the UUID identifiers of a 
symbology rule relevant and absolutely need to be unique? Do we have 
to avoid such id clashes?


The "human readable" nature of qgs/qml files naturally seduce people 
to copy / paste and mix project stuff together in text editors ...


Thank you for your feedback on this topic.

Andreas


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


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

Re: [QGIS-Developer] [qgis-server] Build gdal with external libraries for qgis-server

2019-05-24 Thread René-Luc Dhont

Hi Benjamin,

To use *ECW* in *server*-based products requires additional licensing 
permissions.


If you have the licence agreement, you can build GDAL with ECW, but you 
also need to build QGIS Server with ECW support.


Regards,
René-Luc

Le 24/05/2019 à 11:38, Benjamin Deregnaucourt a écrit :

Hello,

I'm currently a student at the University of Lille, I recently gained 
access to some mapfiles so I'm not accustomed to qgis yet. I would 
like to use a map server to share these files inside of my local network.


I want my server to be as complete as possible so I did some research 
and I found some libraries such as kea, Mr.Sid or ecw which can be 
built with gdal in order to read different files' types.


I built gdal with kea and Mr.Sid which work on my server, however, 
when I used ecw with the free version of SDK and I completed the 
installation, I got a warning saying that ecw had been skipped in the 
server and when I added an ecw file to a qgis project, my project 
wasn't working anymore (request timed-out).


I made a mistake during the installation, ecw has a server supported 
version while I used the free desktop version. Does the skipping issue 
come from the difference between licenses?


Is it possible to build gdal with ecw and use it in qgis-server 
legally for free?


If it's not possible and in the hypothesis that I managed to get a 
license, will it be working properly once gdal is built with the 
correct version of ecw?


Thanks a lot for your time

Benjamin Deregnaucourt


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


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

Re: [QGIS-Developer] PyQGIS : Creating a Geopackage layer without adding features

2019-05-23 Thread René-Luc Dhont

Hi Devs,

I have tested this and it works
from qgis.core import QgsVectorLayer, QgsVectorFileWriter
ml = QgsVectorLayer('Point?field=firstfield:int=secondfield:int', 
'test', 'memory')

filename = '/tmp/testing.gpkg'

options = QgsVectorFileWriter.SaveVectorOptions()
options.driverName = 'GPKG'
options.layerName = 'test'
write_result, error_message = 
QgsVectorFileWriter.writeAsVectorFormat(ml,filename,options)

write_result == QgsVectorFileWriter.NoError


René-Luc

Le 23/05/2019 à 09:27, René-Luc Dhont a écrit :

Hi Dev,

I would like to create a geopackage with multiple layers but without 
features. I'd like to do the same thing as the 
QgsNewGeoPackageLayerDialog do but without user interface in python.


I have tested with QgsVectorFileWriter, but the file and layer are not 
created if add feature is not used.


Do I have to use Python OGR packaging to do so ?

Regards,
René-Luc


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

[QGIS-Developer] PyQGIS : Creating a Geopackage layer without adding features

2019-05-23 Thread René-Luc Dhont

Hi Dev,

I would like to create a geopackage with multiple layers but without 
features. I'd like to do the same thing as the 
QgsNewGeoPackageLayerDialog do but without user interface in python.


I have tested with QgsVectorFileWriter, but the file and layer are not 
created if add feature is not used.


Do I have to use Python OGR packaging to do so ?

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Can I backport bugfix with UI updates and fixing QGIS Server regression

2019-05-20 Thread René-Luc Dhont

Hi Devs,

I have removed the commit cherry-picked from Nyall's pull-request that 
update the layout designer dialog.
So my Pull-request only contains changes for QGIS Server to fix the 
regression about printing selection.


I have introduced the capability to print selection in QGIS Server for 
version 3.4 LTR with the pull-request [Server] Reactivate the capability 
to print selection with Server 3.4 https://github.com/qgis/QGIS/pull/8320
This capability is available for image export and was tested and this 
pull-request fix inconsistent use of layout render context flags and add 
test to validate it.


I really hope this will be fix it version 3.4.9.

Regards,
René-Luc

Le 14/05/2019 à 10:00, René-Luc Dhont a écrit :

Hi all,

In the PR to fix the QGIS Server regression I only need to backport 1 
commit on the 2 provided by Nyall to fix the issue: Layout export - 
raster divided into tiles, edges evident in pdf/svg 
https://issues.qgis.org/issues/19500 in the Pull request 
[needs-docs][layouts] Add checkbox to disable raster tiling for 
PDF/SVG exports https://github.com/qgis/QGIS/pull/9016


The one I need is a fix: Fix inconsistent use of layout render context 
flags 
https://github.com/qgis/QGIS/pull/9692/commits/0954deaf97638519e9f4b3e28855e03a8a34f5c1
This one concoenrs only render context flags for PDF and SVG output. 
In the case of image output, the layout render context flags are well 
set.


So do you think, the Pull Request could be accepted, if I remove the 
UI modifed part and only conserve the modification needed for server ?


Regards,
René-Luc

Le 13/05/2019 à 08:04, Paolo Cavallini a écrit :

Hi all,

On 12/05/19 09:41, Régis Haubourg wrote:


I'd be pleased to test things here but use cases are so numerous that I
fail to see how to do this efficiently.
I hope we'll one day be able to run those smoke tests as discussed 
at La

Coruna.

I was about suggesting doing community-wide testing (having a test
package would greatly help). Is it so difficult to identify and test
possible regression areas?
Cheers.




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

[QGIS-Developer] FeatureSink, Processing and Geopackage : define layer primary key

2019-05-20 Thread René-Luc Dhont

Hi devs,

I'd like to save data in a Geopackage by defining the layername, the 
geometry column and the primary key field with a processing parameter 
feature sink.


I have found in the processing tests, that a feature sink value can be : 
ogr:dbname='/me/a.gpkg' table="d" (geom) sql=

Is it possible to define the primary key field ?

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] How to use postProcessLayer in plugin processing

2019-05-16 Thread René-Luc Dhont

Thanks, this link is helpful
https://gist.github.com/nyalldawson/26c091dd48b4f8bf56f172efe22cf75f

It contains a hack to work around sip bug!

Regards,
René-Luc

Le 16/05/2019 à 10:25, Tom Chadwin a écrit :

Don't know if any of the links in this reply from Nyall are of any use?

https://lists.osgeo.org/pipermail/qgis-developer/2018-September/054480.html

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

[QGIS-Developer] How to use postProcessLayer in plugin processing

2019-05-16 Thread René-Luc Dhont

Hi Devs,

I would like to set the style an output layer in a script processing. My 
algorithm is added to QGIS Processing by a plugin.


I have tested this :

```

class loadNamedStylePostProcessor(QgsProcessingLayerPostProcessorInterface):

    def __init__(self, outputName, feedback):
    super().__init__()
    self.outputName = outputName
    feedback.pushInfo('loadNamedStylePostProcessor init')
    feedback.pushInfo(self.outputName)

    def postProcessLayer(layer, context, feedback):
    feedback.pushInfo('postProcessLayer')
    feedback.pushInfo(self.outputName)
    feedback.pushInfo(layer.name())


class testPostProcessLayerAlgorithm(QgsProcessingAlgorithm):

    OUTPUT = 'OUTPUT'
    INPUT = 'INPUT'

    def initAlgorithm(self, config):
    self.addParameter(
    QgsProcessingParameterFeatureSource(
    self.INPUT,
    self.tr('Input layer'),
    [QgsProcessing.TypeVectorAnyGeometry]
    )
    )

    self.addParameter(
    QgsProcessingParameterFeatureSink(
    self.OUTPUT,
    self.tr('Output layer')
    )
    )

    def processAlgorithm(self, parameters, context, feedback):
    source = self.parameterAsSource(parameters, self.INPUT, context)
    (sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT,
   context, source.fields(), source.wkbType(), 
source.sourceCrs())


    total = 100.0 / source.featureCount() if source.featureCount() 
else 0

    features = source.getFeatures()

    for current, feature in enumerate(features):
    # Stop the algorithm if cancel button has been clicked
    if feedback.isCanceled():
    break

    # Add a feature in the sink
    sink.addFeature(feature, QgsFeatureSink.FastInsert)

    # Update the progress bar
    feedback.setProgress(int(current * total))

    context.layerToLoadOnCompletionDetails(
    dest_id
    ).setPostProcessor(
    loadNamedStylePostProcessor(self.OUTPUT, feedback)
    )

    return {self.OUTPUT: dest_id}

    def name(self):
    return 'test_post_process_layer'

    def displayName(self):
    return self.tr('Test postProcessLayer')

    def group(self):
    return self.tr('Tests')

    def groupId(self):
    return 'tests'

    def tr(self, string):
    return QCoreApplication.translate('Processing', string)

    def createInstance(self):
    return self.__class__()
```

The postProcesser is well initialize, but I never have the messages form 
postProcessLayer.


Any one has already use it in some code ?

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Can I backport bugfix with UI updates and fixing QGIS Server regression

2019-05-14 Thread René-Luc Dhont

Hi all,

In the PR to fix the QGIS Server regression I only need to backport 1 
commit on the 2 provided by Nyall to fix the issue: Layout export - 
raster divided into tiles, edges evident in pdf/svg 
https://issues.qgis.org/issues/19500 in the Pull request 
[needs-docs][layouts] Add checkbox to disable raster tiling for PDF/SVG 
exports https://github.com/qgis/QGIS/pull/9016


The one I need is a fix: Fix inconsistent use of layout render context 
flags 
https://github.com/qgis/QGIS/pull/9692/commits/0954deaf97638519e9f4b3e28855e03a8a34f5c1
This one concoenrs only render context flags for PDF and SVG output. In 
the case of image output, the layout render context flags are well set.


So do you think, the Pull Request could be accepted, if I remove the UI 
modifed part and only conserve the modification needed for server ?


Regards,
René-Luc

Le 13/05/2019 à 08:04, Paolo Cavallini a écrit :

Hi all,

On 12/05/19 09:41, Régis Haubourg wrote:


I'd be pleased to test things here but use cases are so numerous that I
fail to see how to do this efficiently.
I hope we'll one day be able to run those smoke tests as discussed at La
Coruna.

I was about suggesting doing community-wide testing (having a test
package would greatly help). Is it so difficult to identify and test
possible regression areas?
Cheers.


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

Re: [QGIS-Developer] Can I backport bugfix with UI updates and fixing QGIS Server regression

2019-05-10 Thread René-Luc Dhont

Hi devs,

I am still waiting for a review about fixing 2 issues in printing for 
QGIS and QGIS Server 3.4 LTR. https://github.com/qgis/QGIS/pull/9692


This PR wil fix an issue https://issues.qgis.org/issues/19500 `Layout 
export - raster divided into tiles, edges evident in pdf/svg`. This 
issue has been identifed in version 3.2 and has been fixed in 3.6.
This PR will also fix a regression in QGIS Server `Printing selection in 
PDF and SVG`. The selection is already printed in image output.


The next LTR will be released in 10 mounths. QGIS Server 3.6, which 
already have the fix, is not available on Debian Stretch because it 
requires Qt 5.9 and Debian Buster will be freezed in 8 mounths. So the 
QGIS server regression will not be available since the end of 2019.


I will appreciate a decision about this fix. Do you think QGIS Server 
users have to wait for the next LTR or Debian Buster release ?


Reagrds,
René-Luc

Le 19/04/2019 à 09:34, René-Luc Dhont a écrit :

Hi devs,

I have cherry-picked the changes

I have tested it without regressions or issues.

Now I need some review to merge and fix 2 issues. 
https://github.com/qgis/QGIS/pull/9692


Regards,
René-Luc

Le 17/04/2019 à 14:18, René-Luc Dhont a écrit :

Hi devs,

Thanks Paolo for your agreement.

I'd like to fix the QGIS Sever regression before friday and the 
version 3.4.7 released.


So I'd like to have other point of view  about backporting : 
[needs-docs][layouts] Add checkbox to disable raster tiling for 
PDF/SVG exports https://github.com/qgis/QGIS/pull/9016
and finalizing Fix regression server print selection pdf release 3.4  
https://github.com/qgis/QGIS/pull/9692


Thanks.
René-Luc

Le 12/04/2019 à 12:06, Paolo Cavallini a écrit :

Hi René,

On 12/04/19 12:05, René-Luc Dhont wrote:

I would like to know if I can backport all the commits made by 
Nyall to

fix issue 19500 even if it updates the User Interface ?

+1 from my side, but obviously Nyall has the final word on this.
Thanks.







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

Re: [QGIS-Developer] QGIS server issue: bounding box issues

2019-05-09 Thread René-Luc Dhont

Hi Andreas

Le 09/05/2019 à 11:59, Andreas Neumann a écrit :

Hi René-Luc,

Thanks for the explanation. Any chance we can "influence" that extent 
calculation (e.g. adding a user-defined margin to that extent?) - I 
guess a fully manual override would not be satisfactory as data 
changes, but adding a user-defined margin to that extent might help 
for both issues we have.


Also, this fact that layer extents are stored in QGIS worries me quite 
a bit. We live in a GDI where any minute data can be changed by any 
client (QGIS, ArcGIS, Geomedia, you name it). What if Geomedia adds 
features outside of the layer extent that is stored in the QGIS 
project, would that data then be ignored by QGIS server, because it is 
outside of the extent stored in the project file in QGIS?


Yes, new features outside the extent will be ignored by QGIS Server and 
QGIS Desktop if the user does not recalculate the layer extent.




Anyway - I would rather have global bounding boxes for all layers 
(defined globally per project) than some calculated exents stored in a 
QGIS project file that might be outdated quite easily, because other 
GIS edit the data meanwhile. I am not worried about bounding boxes 
being too big, but worried about bounding boxes that hide away 
existing data.


Andreas



We, a customer and I, would like to add the ability to define manually 
the extent for each layer. The extent could be calculated, based on the 
CRS and modified by user.

Do you think, could it be a solution ?

René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS server issue: bounding box issues

2019-05-09 Thread René-Luc Dhont

Hi Andreas,

The layer extent is not calculated by QGIS Server. It is read from the 
project, and the extent in the project is provided by QGIS when saving it.


In QGIS Server, the layer extent is used to restrict the rendering to 
the WMS layer extent.


Regards,
René-Luc

Le 09/05/2019 à 11:28, Andreas Neumann a écrit :

Hi QGIS (server) devs,

We came across issues around calculating bounding boxes in QGIS server.

1. Layers with only one point feature:

If a layer contains only one single point feature, QGIS server 
calculates a bounding box where the minx equals maxx and miny equals 
maxy, so resulting in a bounding box without a width and height. 
Sounds logical to QGIS server developers, but combined with the fact 
that QGIS server doesn't take into account rendered symbol sizes 
(another issue we have, see issue nr 2), it means that no WMS client 
will ever see this one single symbol rendered, which can't be the 
solution here ...


2. Layer bounding boxes do not take into account rendered symbol sizes:

Please have a look at 
http://www.carto.net/neumann/temp/qgis_server_bounding_box_issue.png - 
The green rectangle and the green arrows are not part of the QGIS 
server rendering, but they are added as an annotation to the rendered 
QGIS server graphics, to highlight the issues.


Here we have the issue that QGIS server only uses the "raw" geometry 
of point symbols without taking into account rendered symbol sizes. 
Now, I do understand that calculating symbol sizes is scale dependent 
and there is no single solution to that, but again, I think the 
current behavior of QGIS server (simply cutting off symbols at layer 
bounding boxes) is not a good and nice behavior. At least, I think the 
author of the WMS service should have a chance to define an extra 
margin to be added to the bounding boxes of the raw geometries of the 
point layer, either as a "per project" or "per layer" QGIS server 
configuration.


@Andrea: I wonder what Geoserver does in such cases?

Any thoughts how to solve these issues? The current behavior of QGIS 
server is not satisfactory to me, for both cases.


Thanks for your replies,

Andreas

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


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

Re: [QGIS-Developer] Can I backport bugfix with UI updates and fixing QGIS Server regression

2019-04-19 Thread René-Luc Dhont

Hi devs,

I have cherry-picked the changes

I have tested it without regressions or issues.

Now I need some review to merge and fix 2 issues. 
https://github.com/qgis/QGIS/pull/9692


Regards,
René-Luc

Le 17/04/2019 à 14:18, René-Luc Dhont a écrit :

Hi devs,

Thanks Paolo for your agreement.

I'd like to fix the QGIS Sever regression before friday and the 
version 3.4.7 released.


So I'd like to have other point of view  about backporting : 
[needs-docs][layouts] Add checkbox to disable raster tiling for 
PDF/SVG exports https://github.com/qgis/QGIS/pull/9016
and finalizing Fix regression server print selection pdf release 3.4  
https://github.com/qgis/QGIS/pull/9692


Thanks.
René-Luc

Le 12/04/2019 à 12:06, Paolo Cavallini a écrit :

Hi René,

On 12/04/19 12:05, René-Luc Dhont wrote:


I would like to know if I can backport all the commits made by Nyall to
fix issue 19500 even if it updates the User Interface ?

+1 from my side, but obviously Nyall has the final word on this.
Thanks.





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

Re: [QGIS-Developer] Can I backport bugfix with UI updates and fixing QGIS Server regression

2019-04-17 Thread René-Luc Dhont

Hi devs,

Thanks Paolo for your agreement.

I'd like to fix the QGIS Sever regression before friday and the version 
3.4.7 released.


So I'd like to have other point of view  about backporting : 
[needs-docs][layouts] Add checkbox to disable raster tiling for PDF/SVG 
exports https://github.com/qgis/QGIS/pull/9016
and finalizing Fix regression server print selection pdf release 3.4  
https://github.com/qgis/QGIS/pull/9692


Thanks.
René-Luc

Le 12/04/2019 à 12:06, Paolo Cavallini a écrit :

Hi René,

On 12/04/19 12:05, René-Luc Dhont wrote:


I would like to know if I can backport all the commits made by Nyall to
fix issue 19500 even if it updates the User Interface ?

+1 from my side, but obviously Nyall has the final word on this.
Thanks.



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

Re: [QGIS-Developer] Globally setting FI_POINT_TOLERANCE on QGIS server

2019-04-16 Thread René-Luc Dhont

Hi Andreas,

We have build a plugin for doing so.
It is available for QGIS 2 and we are working on proting it to QGIS 3.
https://github.com/3liz/qgis-wmsGetFeatureInfoPrecision

Regards,
René-Luc

Le 16/04/2019 à 15:53, Alessandro Pasotti a écrit :


On Tue, Apr 16, 2019 at 3:46 PM Andreas Neumann > wrote:


Hi,

I wonder if it is possible to globally set/influence
the FI_POINT_TOLERANCE in QGIS server?

We'd like to configure QGIS server such, that by default it is a
bit more tolerant (using a larger search radius) for point features.

I know that the client can set the FI_POINT_TOLERANCE on
GetFeatureInfo request, but what if the client doesn't know about
QGIS and these special parameters?

Could this be set globally in QGIS server by an environment variable?


No, that's not possible.


Thanks for your reply and greetings,

Andreas

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



--
Alessandro Pasotti
w3: www.itopen.it 

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


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

Re: [QGIS-Developer] FOSS4G CFP proposals around QGIS

2019-04-15 Thread René-Luc Dhont

Hi Andreas,

We also submitted 2 talks around QGIS and QGIS-Server:
- Lizmap to create Web Map Applications
- Offline viewing and editing Geographic Information for Forest Fire 
Defense


René-Luc

Le 15/04/2019 à 14:01, David Marteau a écrit :

Hi Andreas,

We have submitted (at least) 2 Talks:

- WPS with Qgis Processing - From desktop to server.
- QGIS: No more plugins only processings.

David


Le 15 avr. 2019 à 12:17, Andreas Neumann > a écrit :


Hi,

Today is the last day submitting workshop and presentation proposals.

I wonder who/what was already submitted, so I could potentially help 
to fill in gaps?


I could submit something around "tips with 
layouts/atlas/reports" (including usage of variables and expressions).


How about

  * QGIS server improvements (OGC validation, etc.)
  * Behind the scenes of QGIS.ORG  (it was presented
in Dresden at FOSSGIS by Anita and in A Coruna by myself; but I
think not yet at a FOSS4G conf)
  * QGIS 3D (Lutra-guys - are you participating?)

How about doing a workshop around 3D and mesh rendering?

Thanks for your replies and greetings,

Andreas

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



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


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

Re: [QGIS-Developer] GetFeatureInfo: sensitivity on rendered geometry vs original geometry.

2019-04-12 Thread René-Luc Dhont

Hi

Le 12/04/2019 à 16:05, Andreas Neumann a écrit :


On 2019-04-12 15:53, René-Luc Dhont wrote:


Hi Andreas,

I think QGIS Server has to use the rendered geometries to identify 
Feature.


yes



Is it possible to get the  point layer to polygon rendred layer ?


Like Alessandro, I also don't understand this statement. Do you say 
that I should convert my point layer to a polygon layer representing 
the rendered bounding box? This would be quite difficult for our users.


Andreas




The idea is how QGIS can convert point layer to polygon layer 
corresponding to bbox symbol to get feature information.


In QGIS Server, GetFeatureInfo is a simple GetFeature based on Extent. 
Is it possible to do the same but based on rendering ?


René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] GetFeatureInfo: sensitivity on rendered geometry vs original geometry.

2019-04-12 Thread René-Luc Dhont

Hi Andreas,

I think QGIS Server has to use the rendered geometries to identify Feature.
Is it possible to get the  point layer to polygon rendred layer ?

Regards,
René-Luc

Le 12/04/2019 à 15:43, Andreas Neumann a écrit :


Hi,

I'd like to discuss an issue with GetFeatureInfo that we have with 
point symbols.


(Point) symbols can have different sizes (sometimes rather large), 
different anchor points and sometimes even with offset away from the 
original feature geometry. Often, the rendering of the point symbol 
differs substantially from the original point geometry.


Now, our issue is that GetFeatureInfo often fails miserably in such 
cases. People try to click on the visible symbol, which doesn't 
correspond to the original geometry.


One such example WMS:

https://services.geo.zg.ch/ows/Abfallsammelstellen

The symbols are rather large, but the anchor point is at the bottom of 
the symbol. Users now think that they can click anywhere on the 
symbol, but in fact they can only click on the original geometry at 
the very bottom of the symbol, taking into account 
the FI_POINT_TOLERANCE parameter.


Things get even worse when one wants to identify points that are 
displayed using the point displacement renderer. There, GetFeatureInfo 
is only sensitive on the center point, and not at all at the rendered 
points at a completely different position.


Now my question: could we improve QGIS server that GetFeatureInfo 
responds to the bounding boxes of the rendered geometries (as opposed 
to the raw geometries), taking into account sizes, offsets, etc.


Would this be technically possible?

Would others also think that this is useful to have?

Or would this even contradict OGC standards?

Do other WMS servers implement such behaviors (Geoserver, UMN)?

Thanks for the discussion,

Andreas


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


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

[QGIS-Developer] Can I backport bugfix with UI updates and fixing QGIS Server regression

2019-04-12 Thread René-Luc Dhont

Hi Dev,

I have worked on fixing a regression in QGIS Server. 
https://github.com/qgis/QGIS/pull/9692


This regression exists in QGIS 3.4 but has been fixed by Nyall in QGIS 
3.6 by fixing an other issue.
The issue fixed by Nyall was *Layout export - raster divided into tiles, 
edges evident in pdf/svg* https://issues.qgis.org/issues/19500
The issue has been found in QGIS 3.2. It has been fixed in QGIS 3.6 but 
the fix has not been backported to QGIS 3.4.
I suppose that the backport has not been done because the fix updates 
the User Interface. https://github.com/qgis/QGIS/pull/9016


I would like to know if I can backport all the commits made by Nyall to 
fix issue 19500 even if it updates the User Interface ?


I think that this backport has to be done in QGIS 3.4 to fix a desktop 
issue and a server regression because it is the LTR version, but I need 
to know if it's the right thing to do.


René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS Server layer metadata

2019-04-11 Thread René-Luc Dhont

Hi ALessandro,

Which metadata can be reused ?

René-Luc D'Hont

Le 11/04/2019 à 11:12, Alessandro Pasotti a écrit :

Hi,

Shouldn't we drop some of the QGIS Server that are now available in 
the more general "Metadata" tab or at least fallback on those values?


Or maybe provide a button to copy values from the "Metadata" tab.


--
Alessandro Pasotti
w3: www.itopen.it 


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

Re: [QGIS-Developer] QgsProcessingParameterMatrix - numberRows is not respected in the UI

2019-03-05 Thread René-Luc Dhont

Hi Nyall

Le 04/03/2019 à 23:53, Nyall Dawson a écrit :

What about just creating an empty table with the required number of
rows in QgsProcessingMatrixParameterDialog::populateTable whenever
mParam has a fixed number of rows set?


It will be great, I will test it.

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QgsProcessingParameterMatrix - numberRows is not respected in the UI

2019-03-04 Thread René-Luc Dhont

Hi Nyall,

Thanks for the answer.

To work around the issue, I have to provide a default value.

In the case of a QgsProcessingParameterMatrix with fixed rows number has 
a default value have to be provided by the definition or the class ?


René-Luc

Le 02/03/2019 à 00:38, Nyall Dawson a écrit :

On Sat, 2 Mar 2019 at 00:11, René-Luc Dhont  wrote:

Hi Devs,

I'd like to use QgsProcessingParameterMatrix with fixed rows number,
like it's defined in SAGA User defined filter algorithm.

And like in SAGA User defined filter algorithm, the table displayed has
no rows.

Which part of the QGIS code has to build the displayed table ?

https://github.com/qgis/QGIS/blob/master/src/gui/processing/qgsprocessingmatrixparameterdialog.cpp#L111

with unit tests here:
https://github.com/qgis/QGIS/blob/master/tests/src/gui/testprocessinggui.cpp#L1760

Let me know if you have any questions about this code -- it's only
new, so is fresh on my mind.

Nyall


Thanks,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

[QGIS-Developer] QgsProcessingParameterMatrix - numberRows is not respected in the UI

2019-03-01 Thread René-Luc Dhont

Hi Devs,

I'd like to use QgsProcessingParameterMatrix with fixed rows number, 
like it's defined in SAGA User defined filter algorithm.


And like in SAGA User defined filter algorithm, the table displayed has 
no rows.


Which part of the QGIS code has to build the displayed table ?

Thanks,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS server deployment

2019-02-25 Thread René-Luc Dhont

Hi Walter,

We, at 3Liz, use the 3) with supervisord and the number of process is 
based on the number of preocessors.


But we also used for QGIS3 a 4th way, a python server based on tronado: 
https://github.com/3liz/py-qgis-server


Regards,

René-Luc
https://github.com/rldhont

Le 25/02/2019 à 11:08, Walter Lorenzetti a écrit :


Hi all,

I'm not a sysadmin but for our customers I'd like find the better way 
for deploy QGIS-server 3.


I try at least 3 ways:

1) Apache2 + libapache2-mod-fcgid

2) Nginx + fcgiwrap

3) Nginx + QGIS-Server working by socket/service (systemd)

By delveloper side, what do you think is the best?

I'd like to much 3) solution, but I found some problems, in 
particular, how many sockects I've to create watching at my server? 
(Number of processors )


For 1) and 2) have you experiences on performance and tuning?

Thanks in advance and thanks for work!

W

--

Walter Lorenzetti phD
email: lorenze...@gis3w.it
skype: aiki74
twitter:w_lorenzetti 
g+:aiki74 
Tel/Cell: (+39) 347-6597931
Viale Verdi 24 - 51016 Montecatini Terme (PT)
Nuovi corsi QGIS e GFOSS 




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


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

Re: [QGIS-Developer] QGIS Server: GetLegendGraphic questions

2019-01-28 Thread René-Luc Dhont

Hi Andreas,

You can use RULE to get only one category as described in the standard.
You can request the symbols only with the QGIS Server extra parameters 
https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/services.html#getlegendgraphics


Regards,
René-Luc

Le 28/01/2019 à 09:26, Andreas Neumann a écrit :


Hi,

I have two GetLegendGraphic questions which I couldn't find out with 
our documentation:


1.

Can QGIS server produce a filtered GetLegendGraphic response where 
only one or more categories are shown instead of the whole layer?


If so - would this work with the RULE parameter?

Would you have a sample request how to do this?

2.

Can I request the symbols only (e.g. only the box of a polygon layer), 
without layer title and without the text next to the legend box?



Thanks,
Andreas


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


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

Re: [QGIS-Developer] WFS and NULL values

2019-01-23 Thread René-Luc Dhont

Hi Allessandro,

Do you speak about these PR:
* https://github.com/qgis/QGIS/pull/8536 [Server] Null field value in 
GML has to be empty string 2.18
* https://github.com/qgis/QGIS/pull/8537 [Server][WFS] Null field value 
in GML has to be empty string 3.4


I don't think it is a GML specific issue, but something about XSD and XML.

Regards,
René-Luc

Le 23/01/2019 à 09:14, Paul Blottiere a écrit :

Hi Alessandro,

> If it is a bug I can work on the fix, but maybe I'm missing something.

Have you taken a look to the compliance OGC tests for WFS 1.X? If 
there's tests about this particular point, we'll know for sure if it's 
something to fix.


Regards.

Paul

Le mar. 22 janv. 2019 à 17:51, Alessandro Pasotti > a écrit :


Hi all,

while working on QGIS server I noticed that WFS GetFeature returns
NULL values as empty tags while according to the majority of the
sources I've found it should not include it in the XML response
(GML2 at least, I'm not sure about GML3 yet).

If it is a bug I can work on the fix, but maybe I'm missing something.

See:

http://osgeo-org.1560.x6.nabble.com/Why-the-WFS-does-not-return-the-NULL-value-field-td3802398.html

apparently this is also what geoserver does.

Any opinion?

-- 
Alessandro Pasotti

w3: www.itopen.it 



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

Re: [QGIS-Developer] Why is .qgz the default format?

2019-01-21 Thread René-Luc Dhont
On windows, the user with an accent in the account name can create the 
project as a QGZ file but can't  save the updated project as a QGZ file.


In the list provided by 
Paolo,https://issues.qgis.org/projects/qgis/issues?category_id=35_filter=1=id%3Adesc_id=o_id=%21%2A 
, a number of issues deriving from accent and qgz file:

* all layers gone when reopen *.qgZ as User „Jörn“
* Project which are saved with special characters in the filename and 
with the qgz extension are blank
* Special Characters in Project-Names saved as Qgz-Files do not work 
/qgz as default


René-Luc


Le 21/01/2019 à 16:04, Régis Haubourg a écrit :

Hi René-Luc,
What issues did you face during training? I'm afraid we won't improve 
if we advice to workaround this feature .

Régis

Le lun. 21 janv. 2019 à 16:00, René-Luc Dhont <mailto:rldh...@gmail.com>> a écrit :


Hi all,

During training, I discourage to use .qgz and auxiliary storage. I
force
users to save project as .qgs to avoid issues.
It is not stable yet for me.

René-Luc

Le 21/01/2019 à 15:54, Paolo Cavallini a écrit :
> Hi all,
>
> On 21/01/19 14:40, Hugo Mercier wrote:
>
>> I would vote for your 3rd proposition: replace xml hacking by
something
>> that looks like calls to an API.
>> And adding an option for those who want to switch back to .qgs +
>> separated aux files, keeping the default to .qgz.
> moreover, there are a number of issues deriving fom the qgz
files, see
>

https://issues.qgis.org/projects/qgis/issues?category_id=35_filter=1=id%3Adesc_id=o_id=%21%2A
> All the best.

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



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

Re: [QGIS-Developer] Why is .qgz the default format?

2019-01-21 Thread René-Luc Dhont

Hi all,

During training, I discourage to use .qgz and auxiliary storage. I force 
users to save project as .qgs to avoid issues.

It is not stable yet for me.

René-Luc

Le 21/01/2019 à 15:54, Paolo Cavallini a écrit :

Hi all,

On 21/01/19 14:40, Hugo Mercier wrote:


I would vote for your 3rd proposition: replace xml hacking by something
that looks like calls to an API.
And adding an option for those who want to switch back to .qgs +
separated aux files, keeping the default to .qgz.

moreover, there are a number of issues deriving fom the qgz files, see
https://issues.qgis.org/projects/qgis/issues?category_id=35_filter=1=id%3Adesc_id=o_id=%21%2A
All the best.


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

Re: [QGIS-Developer] Lizmap theming support

2019-01-17 Thread René-Luc Dhont

Hi Luca,

In the back-office, you can change some images and colors.
If it's not enough you can write some CSS in this page.

You can also use media to define a specific theme for a directory or a map :
https://docs.lizmap.com/current/en/publish/advanced_lizmap_config.html#media-in-lizmap
https://docs.lizmap.com/current/en/publish/advanced_lizmap_config.html#creating-simple-themes

Finally, you can use Jelix themes to overwrite the whole theme :
* https://docs.jelix.org/en/manual/themes
* https://docs.jelix.org/en/manual/overloads

Regards,
René-Luc

Le 17/01/2019 à 14:11, Luca Manganelli a écrit :

Hi,

I would like to change theme in Lizmap. In particular, many of us 
doesn't like the red icons (zoom in, out, pan, etc...).

It's possible?

Thank you in advance
Luca


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


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

Re: [QGIS-Developer] QGIS Server WFS 2.18 unreliable?

2018-11-13 Thread René-Luc Dhont

Hi Andreas,

QGIS Server segfaults when it try to build the GML for a Feature

The request works for GeoJSON format 
https://services.geo.zg.ch/ows/Gewaessernetz?SERVICE=WFS=GetFeature=1.0.0=zg.gewaessernetz=EPSG:2056=GeoJSON


René-Luc

Le 13/11/2018 à 14:32, Andreas Neumann a écrit :


Hi,

I am trying to publish a WFS Service through QGIS Server 2.18.

However, the result I get back from GetFeature errors out.

The XML stream starts correctly and after a while there is an HTML 
error snipped and as a result a non-wellformed XML response.


this is my URL:

https://services.geo.zg.ch/ows/Gewaessernetz?SERVICE=WFS=GetFeature=1.0.0=zg.gewaessernetz=EPSG:2056=GML3

Sometimes it works, but most of the time it fails.

Any ideas of what might be wrong?

Is QGIS Server 3.x more reliable regarding serving WFS?

Thanks,

Andreas



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


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

Re: [QGIS-Developer] Get the Canvas CRS in Expression

2018-11-12 Thread René-Luc Dhont

Hi Larissou,

Thanks!

Do you think map_crs, map_crs_definition and map_units could be backported ?

René-Luc


Le 12/11/2018 à 13:10, DelazJ a écrit :

Hi,
map_crs is a 3.0 feature afaics https://github.com/qgis/QGIS/pull/3968

Regards,
Harrissou

Le lun. 12 nov. 2018 à 13:06, René-Luc Dhont <mailto:rldh...@gmail.com>> a écrit :


I'd like to use it in QGIS 2.18 ?

In which version do you have map_crs ?

René-Luc


Le 12/11/2018 à 13:03, Tom Chadwin a écrit :
> I can see map_crs under Variables in the Expression editor.
>
> Tom
>
>
>
> -
> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
> --
> Sent from:
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
<mailto:QGIS-Developer@lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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



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

Re: [QGIS-Developer] Get the Canvas CRS in Expression

2018-11-12 Thread René-Luc Dhont

I'd like to use it in QGIS 2.18 ?

In which version do you have map_crs ?

René-Luc


Le 12/11/2018 à 13:03, Tom Chadwin a écrit :

I can see map_crs under Variables in the Expression editor.

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

[QGIS-Developer] Get the Canvas CRS in Expression

2018-11-12 Thread René-Luc Dhont

Hi Dev,

I need to get the canvas CRS in an expression.

It's possible to get the layer CRS with the method layer_property

It's possible to get some data of the map like map_center, 
map_extent_height, map_scale but I didn't find how to get the map_crs.


It will be useful for exemple to only display the labels of features 
nearest the center point. If the layer and the map are not in the same 
CRS, the distance between features can't be used.


Do I have to update QGIS sources or a way to get the canvas CRS allready 
exists ?


Regards,

René-Luc

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

Re: [QGIS-Developer] Lizmap cannot get the feature data with WFS

2018-09-27 Thread René-Luc Dhont

Hi Paolo,

Lizmap can't find the maplayer element base on layerId in the xml project.

Regards,

Le 27/09/2018 à 17:09, Paolo Cavallini a écrit :

Hi all,

I keep on getting the above error when editing or deleting points from
Lizmap 3.1.4 on latest qgis LTR, PostGIS 2.5.

Inserting new points works smoothly. From the error log I only get:

2018-09-27 16:45:29    192.168.1.118    notice    2018-09-27 16:45:29
[8]    Undefined offset: 0
/var/www/lizmap-web-client-3.1.14/lizmap/modules/lizmap/controllers/edition.classic.php
179

2018-09-27 16:45:29    192.168.1.118    error    2018-09-27 16:45:29
[0]    Call to a member function xpath() on null
/var/www/lizmap-web-client-3.1.14/lizmap/modules/lizmap/controllers/edition.classic.php
180

Any hint?

Thanks.



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

Re: [QGIS-Developer] [Server] feature typeName namespace in WFS GetFeature

2018-08-20 Thread René-Luc Dhont

Hi Stéphane,

I understand like you. So I think you are right.

René-Luc


Le 17/08/2018 à 11:44, Stéphane Brunner a écrit :

Hello,

In the test we configure the typeName like this
https://github.com/qgis/QGIS/blob/6d1e420c71615307bb2d5e84c187b32a1a363cda/tests/src/python/test_qgsserver_wfs.py#L217
xmlns:feature="http://www.qgis.org/gml;>



But I understand this is wrong, it should be
xmlns="http://www.qgis.org/gml;>

or
xmlns:feature="http://www.qgis.org/gml;>


Am I right or not?

CU
Stéphane


--
camptocamp.com 
mapfish.org 


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


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

Re: [QGIS-Developer] QEP: Temporal support in QGIS map renderer/application

2018-07-12 Thread René-Luc Dhont

Hi Nyall,

A QEP for Server is probably linked to your QEP:

Add WMS Time support in QGIS server

https://github.com/qgis/QGIS-Enhancement-Proposals/issues/110

René-Luc


Le 12/07/2018 à 09:20, Nyall Dawson a écrit :

Hi all,

I've just filed a new QEP, intended to be a "gathering point" for
discussion relating to unified approaches to temporal/animation
handling within QGIS:

https://github.com/qgis/QGIS-Enhancement-Proposals/issues/128

This is a very early prototype only, so please, if you have any
feedback, suggestions, or requirements for temporal handling within
QGIS, then please comment on the proposal!

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

[QGIS-Developer] 2.18 and 3.x Fix regression in Legend Composer : PR 7260

2018-06-20 Thread René-Luc Dhont

Hi Dev,

I have proposed to fix a regression in Legend Composer for release-2_18 
and in release-3_x. This feature is probaby not well known by QGIS devs 
and users because it has never been documented.


In QGIS 2.0, I have introduced the capability to use the layer's title 
as the default layer legend name. This feature has been introduced to do 
not have to rename manually all the legend layers item in composer eahc 
time a legend is added in a composer or the layer is added.


As a QGIS user, when I load layers in my project, from Shapefiles, Gpkg 
or PostgreSQL, I do not rename them in the layer panel (the "legend") 
because I like to see the real source name. For example I keep 
"main_roads" instead of renaming to "Main roads". In this context, I 
like to use the metadata "title" property as a replacement. Inside the 
composer, I would like to have the titles used, because my exported PDF 
is for my colleague and not me.


So do you think, this regression has to befixed or not ?
https://github.com/qgis/QGIS/pull/7260

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS Server - SSL handshake failed for cascading WMS

2018-06-01 Thread René-Luc Dhont

Hi all,

To fix this issue, you have to add HOME environmental variable to a 
directory in which the directory .qgis2 is writable for the user used by 
QGIS Server, with Apache2, it's www-data.


For exemple, do these commands:
```
mkdir /srv/qgis/.qgis2
chown www-data:www-data /srv/qgis/.qgis2
chmod 774 /srv/qgis/.qgis2
```

And add this in your apache virtual host:
```
FcgidInitialEnv HOME "/srv/qgis"
```

The documentation probably needs to be updated.

Regards,
René-Luc

Le 14/05/2018 à 17:49, Alessandro Pasotti a écrit :

And this:

https://issues.qgis.org/issues/17951

and this too:

https://issues.qgis.org/issues/16462



On Mon, May 14, 2018 at 4:58 PM, Régis Haubourg 
mailto:regis.haubo...@gmail.com>> wrote:


Hi Anne,
did you test QGIS 3.0 also?
Could you create an issue in issue.qgis.org
 tracker?

I found that one, that seemed related
https://issues.qgis.org/issues/18634


Regards,
Régis

2018-05-14 16:25 GMT+02:00 Anne Blankert mailto:anne.blank...@geodan.nl>>:

Hello List,

This question was already asked in Jan 2017, but no solution
was posted.

http://osgeo-org.1560.x6.nabble.com/QGIS-Server-SSL-handshake-failed-for-cascading-WMS-td5305094.html



The problem: if QGIS uses an HTTPS (SSL) WMS service, the WMS
works nicely in QGIS desktop. However, if you use the same
.qgs project file on QGIS Server, all requests to the HTTPS
(SSL) WMS server result in an  SSL handshake error.

This (still) happens on:
Ubuntu 16.04
QGIS server 2.18
An example WMS https server showing the problem is:
https://geodata.nationaalgeoregister.nl/bag/ows


A workaround could be to use the HTTP version of the WMS
instead of the HTTPS version. However, the capabilities of
many HTTP services advertise the HTTPS version for the GETMAP,
GETFEATUREINFO and GETLEGENDGRAPHIC endpoints.

The SSL problem also arises when trying to use WFS services
over HTTPS from QGIS Server.

Is this a known problem? Is there a workaround? Should I file
a bug report?

Thanks,

Anne

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org

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

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




___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org 
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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





--
Alessandro Pasotti
w3: www.itopen.it 


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


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

[QGIS-Developer] [Server] 2.18 : Is it possible to explicitly ignore SSL errors ?

2018-03-30 Thread René-Luc Dhont

Hi Devs,

The issue #16462 QGIS Server lost the ability to cascade WMS layers 
published using HTTPS is a bit annoying for GetPrint. It also concernes 
XYZ layers with https.


I have found this message in logs : Download of capabilities failed: SSL 
handshake failed


Is it possible to explicitly ignore SSL errors in QGIS Server ?

Thanks
René-Luc D'Hont
3Liz
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] issues in QGIS Server 2,18

2018-03-29 Thread René-Luc Dhont

Hi giovanni,

I'd like to try the WFS QGIS Server service ?

Regards,

René-Luc

Le 28/03/2018 à 12:38, Giovanni Manghi a écrit :

Hi all,



I have found the reason why QGIS Server 2.18 and probably 3 are slower
than 2.14 in generating GeoJSON.
I'll fix it.


I discovered two more WFS related issues, one in QGIS Desktop the
other in the Server.

I setup a WFS service, with both QGIS Server 2.18 and Mapserver, with
a layer than contains 5.6million points.
The QGIS WFS client pulls this layer without issues, but there is a
big problem when identifying features with the option "auto open form"
enabled:
on the second identify operation QGIS freezes and it start to leak
memory until it eats it all. It does not happen if the "auto open
form" option is not enabled. This happens also on QGIS 3.

The second issue is about the same dataset published as WFS with QGIS
Server, when saving the layer using QGIS using "save as" (for example
to a geopackage) the result is missing several features/points.
I tried then to save the layer using ogr from th CLI, and at some
point the message "ERROR 1: XML parsing of GML file failed : unclosed
token at line 109413441, column 21" is shown. This is not happening
(and the result is complete) if server used is Mapserver.

I can provide the services URLs is someone wants to give it a try.


cheers!

-- G --
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

Re: [QGIS-Developer] issues in QGIS Server 2,18

2018-03-16 Thread René-Luc Dhont

Hi Giovanni,

I have found the reason why QGIS Server 2.18 and probably 3 are slower 
than 2.14 in generating GeoJSON.

I'll fix it.

Regards,
René-Luc

Le 09/03/2018 à 17:43, Régis Haubourg a écrit :

Hi Giovanni,
 GetFeatures  can output GML with a different format.
What is sure is that GeoJSON spec doesn't leave any choice, unless we 
go for a proprietary output format allowing another SRS.
I'll keep that in mind when testing OGC compliancy for WFS. We are 
working on that currently to evaluate how much work is needed to reach 
a certification for WFS.

Regards
Régis

2018-03-09 14:34 GMT+01:00 Giovanni Manghi >:


Hi René-Luc,



> Le 01/03/2018 à 12:52, Giovanni Manghi a écrit :
>> Hi all,
>> now that 2.18 is LTR I guess that many have also updated their QGIS
>> Server installation to this release. Problem is that I see a few
>> issues in 2.18 and would like to have gsome feedback from others.
>>
>> *) slower: it seems this version is slower compared to 2.14, at
least
>> for some specific request like WFS GetFeatures. See for example:
>>
>> https://issues.qgis.org/issues/18249#note-1

>>
>> where in the same condition (same server, same postgis
datasource of
>> around ~25000 polygons) 2.18 is about 30 seconds slower than 2.14.
>
> This issue is simply due to the transformation of the geometry
from the
> layer CRS to the GeoJSON CRS standard: EPSG:4326

ok thanks, but one doubt: I guess that this change (compared to 2.14)
was to make qgis server more compliant and this also means that we
need to accept that for such requests will be always slower than it
was before? sorry for the dumb question as I'm not much into the ogc
internals.


cheers

-- G --
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org 
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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





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


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

Re: [QGIS-Developer] issues in QGIS Server 2,18

2018-03-02 Thread René-Luc Dhont

Hi devs,

An other Huge issue in QGIS Server 2.18.17:

https://issues.qgis.org/issues/18247

Regards,

René-Luc


Le 01/03/2018 à 14:26, René-Luc Dhont a écrit :


Hi Giovanni,


Le 01/03/2018 à 12:52, Giovanni Manghi a écrit :

Hi all,
now that 2.18 is LTR I guess that many have also updated their QGIS
Server installation to this release. Problem is that I see a few
issues in 2.18 and would like to have gsome feedback from others.

*) slower: it seems this version is slower compared to 2.14, at least
for some specific request like WFS GetFeatures. See for example:

https://issues.qgis.org/issues/18249#note-1

where in the same condition (same server, same postgis datasource of
around ~25000 polygons) 2.18 is about 30 seconds slower than 2.14.


This issue is simply due to the transformation of the geometry from 
the layer CRS to the GeoJSON CRS standard: EPSG:4326



*) At some point in 2.18 development -in the print composer,
properties of a legend- the "none" value for the "map" option was
removed. This option (together with "auto update" unchecked) allowed
to do GetPrint requests where a legend always shown the same fixed
entries regardless of the layers being requested. Moreover now the
layers legend (from a GetPrint) frequently shows "?" instead of the
correct legend. Not sure if the two things are related.


It will be great to have the possibility to allow nullptr in the map 
combobox.
Nyall, do you have an idea how to enhance QgsComposerItemComboBox 
introdiuced by 
https://github.com/qgis/QGIS/commit/1b4bd47076103e931e642c9c2b6a363f14b20a45?

Issue already exists: https://issues.qgis.org/issues/16899


*) Crashes on GetPrint: adding some type of elements in print
composers (like html text boxes) caused QGIS Server to crash when
doing a GetPrint *if* the *headless* server didn't had a fake xserver
installed. Now in 2.18 this happens even if QGIS Server is installed
on a Desktop OS, unless installing the fake x server. Not sure is
related but this now affects also Windows machines where a GetPrint
requests (of a layout with one of this problematic elements) make
always QGIS Server crash. This was not the case for 2.14.


The solution is probably to update the environment variable 
QT_GRAPHICSSYSTEM to 'raster' has explain 
https://issues.qgis.org/issues/15440 and in a lot of other project:

https://stackoverflow.com/questions/6168570/qgraphicsview-slow-scale-performance-under-linux
https://forum.kde.org/viewtopic.php?t=90821

I'll test this solution.

Regards,
René-Luc


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

Re: [QGIS-Developer] issues in QGIS Server 2,18

2018-03-01 Thread René-Luc Dhont

Hi Giovanni,


Le 01/03/2018 à 12:52, Giovanni Manghi a écrit :

Hi all,
now that 2.18 is LTR I guess that many have also updated their QGIS
Server installation to this release. Problem is that I see a few
issues in 2.18 and would like to have gsome feedback from others.

*) slower: it seems this version is slower compared to 2.14, at least
for some specific request like WFS GetFeatures. See for example:

https://issues.qgis.org/issues/18249#note-1

where in the same condition (same server, same postgis datasource of
around ~25000 polygons) 2.18 is about 30 seconds slower than 2.14.


This issue is simply due to the transformation of the geometry from the 
layer CRS to the GeoJSON CRS standard: EPSG:4326




*) At some point in 2.18 development -in the print composer,
properties of a legend- the "none" value for the "map" option was
removed. This option (together with "auto update" unchecked) allowed
to do GetPrint requests where a legend always shown the same fixed
entries regardless of the layers being requested. Moreover now the
layers legend (from a GetPrint) frequently shows "?" instead of the
correct legend. Not sure if the two things are related.


It will be great to have the possibility to allow nullptr in the map 
combobox.
Nyall, do you have an idea how to enhance QgsComposerItemComboBox 
introdiuced by 
https://github.com/qgis/QGIS/commit/1b4bd47076103e931e642c9c2b6a363f14b20a45?

Issue already exists: https://issues.qgis.org/issues/16899



*) Crashes on GetPrint: adding some type of elements in print
composers (like html text boxes) caused QGIS Server to crash when
doing a GetPrint *if* the *headless* server didn't had a fake xserver
installed. Now in 2.18 this happens even if QGIS Server is installed
on a Desktop OS, unless installing the fake x server. Not sure is
related but this now affects also Windows machines where a GetPrint
requests (of a layout with one of this problematic elements) make
always QGIS Server crash. This was not the case for 2.14.


The solution is probably to update the environment variable 
QT_GRAPHICSSYSTEM to 'raster' has explain 
https://issues.qgis.org/issues/15440 and in a lot of other project:

https://stackoverflow.com/questions/6168570/qgraphicsview-slow-scale-performance-under-linux
https://forum.kde.org/viewtopic.php?t=90821

I'll test this solution.

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Server] Package 2.18, GetPrint requests are segfaulting

2018-02-12 Thread René-Luc Dhont

Hi Jürgen,

Thanks for this link, I didn't know it.

What is the parameters used to build QGIS for packaging ?

René-Luc


Le 12/02/2018 à 12:31, Jürgen E. Fischer a écrit :

Hi René-Luc,

On Mon, 12. Feb 2018 at 12:09:54 +0100, René-Luc Dhont wrote:

How the packages are build ? Which configuration is used ?

See INSTALL[0]


Jürgen

[0] 
https://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html#toc11



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


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

[QGIS-Developer] [Server] Package 2.18, GetPrint requests are segfaulting

2018-02-12 Thread René-Luc Dhont

Hi Devs,

QGIS 2.18 will become the new LTR in les than 2 weeks and an issue in 
the server still remains.

https://issues.qgis.org/issues/15440 https://issues.qgis.org/issues/15440
This issue is a regression for users because in QGIS Server 2.18, 
GetPrint requests are segfaulting.


I have tested on the same server, a Debian Jessie OS, 2 versions of QGIS 
Server 2.18:

* The first one installed with the qgis.org package
* The second one build from source

The first one is segfaulting, and second one is not segfaulting.

The issue is available on Debian, Ubuntu and Windows.

How the packages are build ? Which configuration is used ?

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Server] Is QGIS Server 3 fast yet ? the 2018-02-06

2018-02-08 Thread René-Luc Dhont

Hi Andreas,

The problem with Apache is that the QGIS Server processes are regularly 
reset. So the QGIS Server cache is regularly cleaned, and the project is 
regularly reloaded. So the project is not loading every time a request 
is being made but some time.


I have opened an issue to have min, max and median requests time to have 
a better idea of the performances. But I have no skill in SCALA and 
Gatling to propose a PR.


It will be great to test other Web Server like Nginx/Supervisor or 
Tornado embedding QGIS Server.


Regards,
René-Luc

Le 08/02/2018 à 15:59, Andreas Neumann a écrit :


Hi René Luc,

Good points. I also had a look at these stats and was disappointed.

So I agree that it would be worth-wile working on improving the 
performance of QGIS server version 3.


On the QgsProject loading performance issue: is this only an issue at 
the first loading of the project or every time a request is being made?


Definitely I would welcome a submission at the next round of QGIS 
grants to further study the issues and improve perfomance were possible.


Thanks for your thoughts,

Andreas

On 2018-02-08 15:19, René-Luc Dhont wrote:


Hi Devs,

I have made some analyse of the performances data generated by 
CampToCamp test platform.
The data are downloadable here 
https://gmf-test.sig.cloud.camptocamp.net/ms_perfs/
And the tests are based on this docker-pull: 
https://github.com/camptocamp/ms_perfs


The QGIS Server docker used for these tests are based on the Kartoza 
one updated by CampToCamp
https://github.com/kartoza/docker-qgis-server It is based on Apache 
Server and FCGI.


The data comes from OpenStreetMap and are stored in a 
PostgreSQL/PostGIS database.
One type of request is tested, GetMap. Varoious number of 
simultaneous users and various scale

are tested.

To give an answer to the question : Is QGIS Server 3 fast yet ? , I 
only used the values for 10 simultaneous

users.

If the reference to the question is QGIS Server 2: QGIS Server 3 is 
NOT faster even with the trust option activated in the project.
QGIS Server 3 is always slower than QGIS Server 2, when only one 
layer is requested.
In the tests, QGIS Sever 3 is faster than QGIS Server 2 with 
multi-layers and complex styles.


This result can be easily explain by the new way QGIS Server is 
loaded project. QGIS Server 3 uses the QgsProject class, so all the
project : layers and layouts are loaded even if only one layer is 
requested.


About the trust project option, the results are a little bit 
disappointing. The performances are not always better than without.
For higher scale (1° by 800px), requests are slower, but for lower 
scale (0.015625° by 800px), they are faster.


Now if we consired GeoServer-jai as a reference, QGIS Server 3 is 
slower in lower sacle (0.03125° by 800px)

Now if we consired Mapserver as a reference, QGIS Server 3 is slower!

We have to test some configuration:
* disable simplify local
* change simplify max scale

Points of enhancement have to be explored :
* Faster QgsProject loading based on project parsing
* Simplify configuration at layer level
* Completing trust option

Regards,
René-Luc
* Enhance simplification

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





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

Re: [QGIS-Developer] [Server] Is QGIS Server 3 fast yet ? the 2018-02-06

2018-02-08 Thread René-Luc Dhont

Hi Régis

Le 08/02/2018 à 17:12, Régis Haubourg a écrit :

Hi René Luc,
thanks a lot for starting that analysis!

Do you plan to be in Madeira? Elaborating a complete test suite 
together would be perfectly fitted for that task .


I could not be in Madeira. But we can discuss about perf test suite.



Some questions:

- Trust option is only there to not query datasource when this one has 
no metadata for PK and extent. So it should only make sense to compare 
the first getcapabilities or project load with and without trust 
option. Other following requests should not have any impact, so we 
need to make sure the platform is not measuring something else in the 
differences you note. So I don't see what you mean by "completing" the 
trust option. Can you be more explicit ?


Trust option can be usefull with Apache. When you use QGIS Server with 
Apache, the QGIS Server processes are regularly reset. So the QGIS 
Server cache is regularly cleaned, and the project is regularly 
reloaded. So the trust option can affect all the request not only 
GetCapabilities.
So the average time request is affected by trust option, but I was 
thinking that this option make QGIS Server 3 faster at all scale and 
it's not the case for high scale.
I have open an issue to request min,max, median requests time to have an 
idea of the time needed to load project.




- Is the test  platform requesting wms layer groups, and did you test 
the multithread rendering? How many cores? How many cores really 
available when testing?


The platform requesting layers, not layer groups and multithreading 
rendering has been activated. the environnment variables are:

    QGIS_SERVER_PARALLEL_RENDERING: "true"
   QGIS_SERVER_MAX_THREADS: 8



I think we should first elaborate a common reference test suite and 
couple a system monitoring at the same time to be sure we don't have 
external noise in the tests, and find system bottlenecks. Then only we 
can consider some conclusions over development priorities I think.


The platform provided by camptomcamp is a good start and some 
enhancement has been already opened :

* test GetCapabilties
* test GetFeatureInfo
* test with labels

And we have multi options to test:
* with and without multithreading
* with and without local simplification (for postgres)
* with and without data projection (here form EPSG:4326 to EPSG:3857)

And we have other server configuration to test
* Nginx/Supervisor
* Embedding QGIS Server in Tornado or other Python server



Many thanks !

Régis




Regards,
René-Luc

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

[QGIS-Developer] [Server] Is QGIS Server 3 fast yet ? the 2018-02-06

2018-02-08 Thread René-Luc Dhont

Hi Devs,

I have made some analyse of the performances data generated by 
CampToCamp test platform.
The data are downloadable here 
https://gmf-test.sig.cloud.camptocamp.net/ms_perfs/
And the tests are based on this docker-pull: 
https://github.com/camptocamp/ms_perfs


The QGIS Server docker used for these tests are based on the Kartoza one 
updated by CampToCamp
https://github.com/kartoza/docker-qgis-server It is based on Apache 
Server and FCGI.


The data comes from OpenStreetMap and are stored in a PostgreSQL/PostGIS 
database.
One type of request is tested, GetMap. Varoious number of simultaneous 
users and various scale

are tested.

To give an answer to the question : Is QGIS Server 3 fast yet ? , I only 
used the values for 10 simultaneous

users.

If the reference to the question is QGIS Server 2: QGIS Server 3 is NOT 
faster even with the trust option activated in the project.
QGIS Server 3 is always slower than QGIS Server 2, when only one layer 
is requested.
In the tests, QGIS Sever 3 is faster than QGIS Server 2 with 
multi-layers and complex styles.


This result can be easily explain by the new way QGIS Server is loaded 
project. QGIS Server 3 uses the QgsProject class, so all the

project : layers and layouts are loaded even if only one layer is requested.

About the trust project option, the results are a little bit 
disappointing. The performances are not always better than without.
For higher scale (1° by 800px), requests are slower, but for lower scale 
(0.015625° by 800px), they are faster.


Now if we consired GeoServer-jai as a reference, QGIS Server 3 is slower 
in lower sacle (0.03125° by 800px)

Now if we consired Mapserver as a reference, QGIS Server 3 is slower!

We have to test some configuration:
* disable simplify local
* change simplify max scale

Points of enhancement have to be explored :
* Faster QgsProject loading based on project parsing
* Simplify configuration at layer level
* Completing trust option

Regards,
René-Luc
* Enhance simplification
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [server] Status and Roadmap

2018-02-08 Thread René-Luc Dhont

Hi Régis,

My answers in the body of your email

Le 08/02/2018 à 11:25, Régis Haubourg a écrit :

Hi all,

As you know, QGIS server has been fully refactored for QGIS 3.

Now some big enterprises are starting to rely on it in production 
environment and would like to consolidate again QGIS server.


I have some informations and questions :


# OGC certification

I got in touch with the OGC certification team, in the aim of getting 
official certification, since we pass all WMS 1.3.0 tests.
If we seek a reference implementation status on behalf of OSGEO and 
QGIS.org, there should be no fees, that's great news.

The process must be renewed every year.
We started the online testing process here: 
http://cite.opengeospatial.org/teamengine. It's failing currently, 
probably because of IP redirections we need to fix in our reference 
server (the one used by the continuous integration system)


We are asked to start evaluating WFS conformity too, but that should 
be a bit painful since there is no API in TeamEngine to make 
continuous integration, and online platform is not responding. So I'm 
not confident we'll have quick results here.


If everything goes well, I think QGIS can be certified soon! I think 
this will be very interesting to advertise in the doc and website.


The OGC team seems really happy to see QGIS getting in the 
certification loop, and suggest we also try to certify QGIS as a 
client. If anyone has worked in that area, that would be nice to join 
efforts.



# Performance

 * We are still interested in having performance measure reference and 
ideally have performance driven development with a continuous 
integration system. Yves, is there anything new on your side?


I have made a first analyse and I will send an email to the mailing-list.



 * One blocker for WFS was the performance of spatial filter, in 2.x, 
they were not forwarded to the database when possible, and implied 
reading the whole layer in memory before doing the spatial query on 
the QGIS side. Anyone knows if it's still the case?




No changes here. You just have to specify a QGIS2.ini or QGIS3.ini to 
speficy this.





all the best
Régis



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


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

Re: [QGIS-Developer] QGIS3 - Processing : display the HTML outputs

2018-01-11 Thread René-Luc Dhont

Thansk for the commit! +1


Le 11/01/2018 à 14:53, kimaidou a écrit :

Thanks Alexander Bruy for the commit !
https://github.com/qgis/QGIS/commit/3f55bba535b69d38993ace466266e2ab63d3839f

Michaël

2018-01-11 12:47 GMT+01:00 G. Allegri >:


The same for me!

Giovanni

2018-01-11 10:04 GMT+01:00 matteo >:

> Il 11/01/2018 09:47, Victor Olaya ha scritto:
>> No sure why it was decided to have it like that...but I
also think
>> that keepping it open by default is a better option.

+1 this is the first option I always change in all the
configpaths

Thanks!

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org

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

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




___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org 
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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





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


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

Re: [QGIS-Developer] php-cgi not found after installing QGIS Server on Windows

2017-11-27 Thread René-Luc Dhont

Hi Aitor,

Did you use this documentation ?

https://docs.3liz.com/en/install/windows.html#qgis-server-installation

Regards,

René-Luc


Le 27/11/2017 à 13:30, Aitor Gil Martin a écrit :


I installed QGIS Server 2.18, apache, QGIS Desktop 2.18 and all their 
dependencies using OSGeo4w x32 setup wizard on a Windows Server 2008 
R2 SP1 x64 virtual server.


After the installation I type localhost on my chrome browser to see 
the Apache's landing page and I am getting the following error:


Not Found

The requested URL /cgi-bin/php-cgi.exe/index.phtml was not found on 
this server.


I uninstalled and installed everything several times using OSGeo4w but 
I keep getting the same message. Something is not properly installed 
or missing.


Can anyone give me a clue on what might be happening?



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


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

Re: [QGIS-Developer] QGIS Server request extra parameters as variables for expressions

2017-11-24 Thread René-Luc Dhont

@Arnaud:

There is no WMS dimensions in QGIS server roadmap

@Richard:

Which one of the three GeoServer implementation is the more 'common' way ?


To my point of view, having the capability to update QGIS Variables 
through HTTP parameters will be a great enhancement.


About the WMS dimensions, QGIS will need some enhancement about Raster 
data to apply filtering, changes band in style and/or use expression for 
styles.


Regards,

René-Luc


Le 23/11/2017 à 20:53, Richard Duivenvoorde a écrit :

On 23-11-17 16:46, Arnaud Morvan wrote:


@Mathias :

Yes after taking a look, WMS dimensions is exactly the idea I have in mind.

Mmm,

I think Dimensions is a different case, as Dimensions are tied to WMS-T
[0] and the query parameter is defined as
=...,...
=...
etc
OR elevation:
=

GeoServer has (besides dimensions) even some more use of 'variables'
which you can use in different places:

- possible variable substitutions in sld's [1]
&=name1:value1;name2=value2&...

- sql view parameters [2]
=p1:v1;p2:v2;...

- format options in CQL queries [3]
_options=param1:value1;param2:value2;...

I think the 'expressions'-variables you are talking about are most close
to the viewparams (though if it only filters the styling itis a sld one...).

My point: let's define a 'common' param, shared between different FOSS
wms's instead of coming up with our own wheel :-)

Regards,

Richard Duivenvoorde

[0]
https://anitagraser.com/2011/06/10/wms-t-support-in-geoserver-and-mapserver/
[1]
http://docs.geoserver.org/stable/en/user/styling/sld/extensions/substitution.html
[2] http://docs.geoserver.org/latest/en/user/data/database/sqlview.html
[3] http://docs.geoserver.org/latest/en/user/services/wfs/vendor.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


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

Re: [QGIS-Developer] QGIS Server request extra parameters as variables for expressions

2017-11-22 Thread René-Luc Dhont

Hi Arnaud,

Is it like updated a QGIS project variables ?

Regards,

René-Luc


Le 22/11/2017 à 15:31, Arnaud Morvan a écrit :

Hello,

With mapserver, request extra parameters are accessible as template 
variables in mapfile.


I would like to implement the same possibility in QGIS Server, extra 
parameters may be accessible in project as expression variables.


For example : I would like to pass in a GetMap request an extra 
parameter FLOOR.


This parameter could be handled by QGIS Server as a variable value, so 
this could be used in the project to filter some layers using an 
expression.


Do you think this could be acceptable directly in QGIS Server, or may 
I have to wrote a plugin.


Maybe this type of plugin already exists ?

Note that I'm not familiar with server part.

Best regards



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

Re: [QGIS-Developer] loadLayerDefinition does not respect relative path from qlr file

2017-11-07 Thread René-Luc Dhont

Hi Devs,

I have found the issue: https://issues.qgis.org/issues/15656 that has 
been closed because the issue has been fixed in master. I reopened it 
because it has not been fixed in LTRs.


I have opened a Pull Request to fix it in 2.18 
https://github.com/qgis/QGIS/pull/5553


Regards,

René-Luc


Le 06/11/2017 à 20:50, René-Luc Dhont a écrit :

Hi Devs,

I will propose a PR to fix it.

Regards,
René-Luc

Le 06/11/2017 à 17:23, René-Luc Dhont a écrit :

Hi Devs,

I have found a bug in 2.18 that annoy me a lot:
* I can't load a layer definition in an existing project because the 
relative path in the layer definition is interpreted from the project 
file and not the layer definition file (.qlr)


So the layer definition can only be used in an not already saved 
project.


Do you know, how to force the absolute path ?

Regards,





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

Re: [QGIS-Developer] loadLayerDefinition does not respect relative path from qlr file

2017-11-06 Thread René-Luc Dhont

Hi Devs,

I will propose a PR to fix it.

Regards,
René-Luc

Le 06/11/2017 à 17:23, René-Luc Dhont a écrit :

Hi Devs,

I have found a bug in 2.18 that annoy me a lot:
* I can't load a layer definition in an existing project because the 
relative path in the layer definition is interpreted from the project 
file and not the layer definition file (.qlr)


So the layer definition can only be used in an not already saved project.

Do you know, how to force the absolute path ?

Regards,



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

[QGIS-Developer] loadLayerDefinition does not respect relative path from qlr file

2017-11-06 Thread René-Luc Dhont

Hi Devs,

I have found a bug in 2.18 that annoy me a lot:
* I can't load a layer definition in an existing project because the 
relative path in the layer definition is interpreted from the project 
file and not the layer definition file (.qlr)


So the layer definition can only be used in an not already saved project.

Do you know, how to force the absolute path ?

Regards,

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

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-20 Thread René-Luc Dhont

Hi Devs,

Here is a new feature for embbeding QGIS Server in Python application!
https://github.com/qgis/QGIS/pull/5408

Etienne, you can probably used it in GeoNodes to dynamically build Web 
Services.


Regards,
René-Luc

Le 03/10/2017 à 10:09, Etienne Trimaille a écrit :

Hi devs,

We would like to start testing QGIS Server 3: OGC services and Python 
plugins.


I think I read that the QGIS Server refactoring was finished and it 
seems that most of OGC tests are working: 
http://37.187.164.233/ogc/latest_wms_1_3_0.html


Is it possible to have the status of QGIS Server 3?
Are there some major known issues? Are Python plugins fully supported? 
Can we start porting plugins to the QGIS 3 Server API? Is there some 
highlights to know for Python plugins?


Thanks for the all the work which has been done!

Regards,
Etienne



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


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

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-13 Thread René-Luc Dhont

And I'm waiting to add WFS 1.1.0 support:
https://github.com/qgis/QGIS/pull/5297

Regards,
René-Luc

Le 13/10/2017 à 08:58, Régis Haubourg a écrit :

Hi Anita,

among the news, Paul is currently tackling OGC conformity issues.
see :
https://github.com/qgis/QGIS/pull/5044
https://github.com/qgis/QGIS/pull/5084
https://github.com/qgis/QGIS/pull/5145
https://github.com/qgis/QGIS/pull/5150
https://github.com/qgis/QGIS/pull/5157
https://github.com/qgis/QGIS/pull/5303

We still have some harder issues due to crashes of the OGC testing 
platform.


All tests are made using the "basic" level test (see 
http://cite.opengeospatial.org/teamengine/about/wms/1.3.0/site/)


When all will be green at this level, we'll run the platform with the 
other testing levels so that we have a good overview of our path for a 
full conformity of WMS 1.3.


We'll prepare a dedicated blog post toi describe what were the issues 
and what we did to fix them.


Cheers!
Régis

2017-10-12 22:56 GMT+02:00 Anita Graser >:


Thanks everyone so far! Please keep the info coming. I'll draft a
blog post on the weekend.

Regards,
Anita

On Thu, Oct 5, 2017 at 9:34 AM, Alessandro Pasotti
> wrote:

Hi Règis,

thanks for the nice summary!

Maybe it would be interesting for python devs to stress out
how QGIS server 3 brings the bindings and the plugins to a new
level: while the original filter-style python plugins, are
still available, the new service-oriented plugin-based
architecture allows Python developers to create new services
(for example WPS) by implementing a new `QgsService` directly
in Python. Overriding existing services is also possible.

The server API has now full python bindings and a QGIS server
can be easily implemented directly in Python and wrapped into
your favourite framework (see this simple wsgi experiment:
https://gist.github.com/elpaso/0cd7fb6a0518dc46c45557d9133438b8

).

For more examples of the API, I think there are some basic
examples in the official Python tests:

https://github.com/qgis/QGIS/blob/master/tests/src/python/test_qgsserver_services.py#L79





Cheers





On Wed, Oct 4, 2017 at 10:49 PM, Régis Haubourg
>
wrote:

Well, from a user point of view, that's a bit hard since
all this is 90 % refactoring.. which is supposed to be
transparent for users.

We have the trust and multithreaded features, that should
(and early testers today found it slower today) and the
ability to code new services using python.
We can also show some numbers about OGC conformity tests
and the goal of reaching OGC certification (WMS only by now).

Alessandro, René-Luc and David, do you have some user
oriented examples for the new modular API ?



2017-10-04 22:18 GMT+02:00 Anita Graser
>:

Great overview, thanks for drafting Régis!

Some additional ideas: Could we add a section with the
key improvements from an user perspective?

I'm particularly intrigued by the services / plugins
part. Could you elaborate?

Regards,
Anita



On Wed, Oct 4, 2017 at 9:42 PM, Régis Haubourg
> wrote:

Hi again,
here is my very first draft:

 Several images can be pulled from the joined
slides given at Foss4G-EU here

https://drive.google.com/file/d/0BzatQbprJ-hjWF95VzdHbGRsVEk/view?usp=sharing




René-Luc, David, Paul, don't hesitate to amend that!




*Qgis server refactoring is done!
*
As you may know, QGIS is jumping to a new major
version (yes!).
Doing so was made necessary because of the need to
switch to python 3, QT5, but also because we
needed to break the QGIS API in several places.

A year ago, a tiny troll

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-04 Thread René-Luc Dhont

Hi,

It seems that the QGIS refactoring is complete!
https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74
https://github.com/qgis/qgis3.0_api/issues/57
https://github.com/qgis/QGIS/pull/4824

You can use QGIS Server like this in Python

from qgis.server import QgsServer, QgsServerRequest, 
QgsBufferServerRequest, QgsBufferServerResponse


server = QgsServer()

qs = "?" + "&".join(["%s=%s" % i for i in list({
"MAP": '/tmp/qgis_project.qgs',
"SERVICE": "WFS",
"VERSION": "1.0.0",
"REQUEST": "GetCapabilities"
}.items())])
requestMethod = QgsServerRequest.GetMethod
headers = {}
data = '' #can be the xml request for requestMethod = 
QgsServerRequest.PostMethod


request = QgsBufferServerRequest(qs, requestMethod, headers, data)
response = QgsBufferServerResponse()
server.handleRequest(request, response)

headers = []
rh = response.headers()
rk = sorted(rh.keys())
for k in rk:
headers.append(("%s: %s" % (k, rh[k])).encode('utf-8'))

body = bytes(response.body())

Now QGIS Server needs somes enhancement and cleanup.

René-Luc D'Hont
3Liz

Le 04/10/2017 à 13:23, Régis Haubourg a écrit :

Hi

Yes, refactoring is now complete! see : 
https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74#issuecomment-334123595


Anita, I'll draft an article tonight if you still agree to review it, 
that would be great!


Régis



2017-10-03 14:25 GMT+02:00 Anita Graser >:




On Tue, Oct 3, 2017 at 11:19 AM, Régis Haubourg
> wrote:

Hi Etienne,

from my point of view, this is the perfect time to start
stressing QGIS server 3! We just discussed bout starting
working with it this morning on a new project.
Maybe Alessandro and René-Luc can tell us more about the
plugin side.

Paul is currently fixing issues raised by the OGC test
engines. Richard, could you find some time to expose them on a
public url?


​What would you think about publishing a QGIS Server update on
blog.qgis.org  once the latest information
has been gathered? I'd like to see Server presented and advertised
more ​widely.

​I'd be glad to help write the post if someone can help with the
necessary insights.

Regards,
Anita​





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


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

[QGIS-Developer] geos_c.h not found on MacOS

2017-09-14 Thread René-Luc Dhont

Hi Devs,

Two PRs have been opened for the same issue:
https://github.com/qgis/QGIS/pull/5192 macOS needs path to GEOS framework
https://github.com/qgis/QGIS/pull/5196 Fix geos_c.h not found

Any reviewers ?

Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] WIP: QGIS Server refactoring - the last one GetPrint

2017-08-26 Thread René-Luc Dhont

Hi Devs,

The QGIS Server refactoring is facing a segfault  in layer tree:

/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(+0x31371c)[0x7fd33114071c]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(+0x451f39)[0x7fd33127ef39]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(+0x44fcf2)[0x7fd33127ccf2]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(_ZNK25QgsObjectCustomProperties5valueERK7QStringRK8QVariant+0x2c)[0x7fd3315fbe5c]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(_ZNK16QgsLayerTreeNode14customPropertyERK7QStringRK8QVariant+0x3b)[0x7fd3312e80db]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(_ZN19QgsSymbolLegendNode11updateLabelEv+0x74)[0x7fd3312df7e4]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(+0x4b925a)[0x7fd3312e625a]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(+0x4b91d0)[0x7fd3312e61d0]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(+0x4b9106)[0x7fd3312e6106]
/home/travis/osgeo4travis/lib/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x2cb)[0x7fd3367f992b]
/home/travis/osgeo4travis/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xf6)[0x7fd330836486]
/home/travis/osgeo4travis/lib/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x25f4)[0x7fd330839dc4]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_core.so.2.99.0(_ZN14QgsApplication6notifyEP7QObjectP6QEvent+0x94)[0x7fd33146ea84]
/home/travis/build/qgis/QGIS/build/output/python/qgis/_core.so(_ZN17sipQgsApplication6notifyEP7QObjectP6QEvent+0x8f)[0x7fd332ad0b0f]
/home/travis/osgeo4travis/lib/libQt5Core.so.5(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x37a)[0x7fd3367d18da]
/home/travis/osgeo4travis/lib/libQt5Core.so.5(+0x292803)[0x7fd336821803]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x133)[0x7fd334113d13]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x48060)[0x7fd334114060]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x34)[0x7fd334114124]
/home/travis/osgeo4travis/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5c)[0x7fd336820dcc]
/home/travis/build/qgis/QGIS/build/output/lib/libqgis_server.so.2.99.0(_ZN9QgsServer13handleRequestER16QgsServerRequestR17QgsServerResponse+0x67)[0x7fd325655bd7]
/home/travis/build/qgis/QGIS/build/output/python/qgis/_server.so(+0x5c0fa)[0x7fd32596f0fa]

https://github.com/qgis/QGIS/pull/4959#issuecomment-324875586

So I need some help to fix it and finally ending the refactoring!

Regards,
René-Luc


Le 05/08/2017 à 11:33, Martin Dobias a écrit :

Hi René-Luc

On Fri, Aug 4, 2017 at 7:00 PM, René-Luc Dhont <rldh...@gmail.com> wrote:

The good news for QGIS Server is that when this PR will be merged, we'll be
able to definitely remove all the old project parser codes from the server.

That's awesome news - woohoo!! :-)

Cheers
Martin


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

Re: [QGIS-Developer] QGIS server vs LTR

2017-08-06 Thread René-Luc Dhont

Hi Devs,

To enhance QGIS Server 2.18, I have tested to add some test and I have 
some trouble with Highlight layers.

Does some one have using this feature ?

René-Luc


Le 02/08/2017 à 15:37, Andreas Neumann a écrit :
I personally don't have any issues with QGIS server 2.18. I use it in 
production.


I had a bug fixed with layer rendering order if one would call by a 
group layer (esp. the root layer) without specifiying all leaf layers 
- but it is fixed since a few weeks.


Other than that I don't have any issues - but I may not use all of the 
features (like the legend stuff).


Andreas


On 02.08.2017 15:15, Paolo Cavallini wrote:

Thanks Giovanni. However:

Il 02/08/2017 15:06, Giovanni Manghi ha scritto:

As far as I have seen there are two major problems, one actually
caused by a change in QGIS Desktop layout composer, see:

https://lists.osgeo.org/pipermail/qgis-developer/2017-July/049400.html

So at is now QGIS Server 2.18.11 is basically broken for use within a
webgis application (no getprints if the layout has a label/text box),
also for me the problem with the legend is a blocker to its adoption.

in my test print works even when text boxes are there, e.g.
https://lizmap.faunalia.eu/index.php/view/map/?repository=faunalia=conca 



I think now that 2.18 is LTR we should either fix these issues or warn
users to stick to 2.14 for a server.

all the best.


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


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

Re: [QGIS-Developer] WIP: QGIS Server refactoring - the last one GetPrint

2017-08-06 Thread René-Luc Dhont

Hi devs,

I have updated the PR with Highlight layers and more tests.

Regards,
René-Luc

Le 05/08/2017 à 11:33, Martin Dobias a écrit :

Hi René-Luc

On Fri, Aug 4, 2017 at 7:00 PM, René-Luc Dhont <rldh...@gmail.com> wrote:

The good news for QGIS Server is that when this PR will be merged, we'll be
able to definitely remove all the old project parser codes from the server.

That's awesome news - woohoo!! :-)

Cheers
Martin


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

[QGIS-Developer] WIP: QGIS Server refactoring - the last one GetPrint

2017-08-04 Thread René-Luc Dhont

Hi Devs,

I just created a PR for QGIS Server concerning GetPrint.
Because of the lack of test on the different GetPrint specific 
parameters in the precedent versions, I don't know if the refactoring 
gives exactly the same features. So I need reviews and tests to add new 
tests.


The good news for QGIS Server is that when this PR will be merged, we'll 
be able to definitely remove all the old project parser codes from the 
server.


Good Hackfest!
Regards,
René-Luc
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

  1   2   3   >