Re: [QGIS-Developer] QGIS server deployment

2019-02-25 Thread Patrick Valsecchi
On the camptocamp side, we use 1) within a docker image: https://cloud.docker.com/u/camptocamp/repository/docker/camptocamp/qgis-server What I strongly recommend is to add a FcgidMaxRequestsPerProcess with a value of 1000 (work around some potential memory leaks in QGIS). I'd say to set the numbe

Re: [QGIS-Developer] Sentry support for QGIS crashes / minidumps

2018-05-03 Thread Patrick Valsecchi
Hi, Would be very useful for QGIS server. Good idea! CU On Thu, May 3, 2018 at 9:10 AM, Nathan Woodrow wrote: > Hey Tim, > > I added a crash handler in 3.0 for Windows at least and it lead to a few > good fixes. I will checkout the stuff you posted to see if we can > intergrate it into what I

Re: [QGIS-Developer] What are "Key/value" and "List" widgets in attributes form?

2018-04-02 Thread Patrick Valsecchi
Hi Good analysis and sorry for my slow response. The widgets are not directly tied to PG. They will work as long as the providers support QVariant::List or QVariant::Map datatypes. The spatialite provider supports QVariant::List, encoded as JSON: https://github.com/qgis/QGIS/commit/6260f9dea5293

Re: [QGIS-Developer] QGIS Server request extra parameters as variables for expressions

2017-11-23 Thread Patrick Valsecchi
You could do that using the filter parameter with something like that: FILTER=layer_name:"floor" = 3 On Thu, Nov 23, 2017 at 2:38 PM, Matthias Kuhn wrote: > Like WMS dimension? > > http://mapserver.org/ogc/wms_dimension.html > > Matthias > > > On 11/23/17 2:11 PM, Arnaud Morvan wrote: > > Hello,

Re: [QGIS-Developer] Travis timeout

2017-11-08 Thread Patrick Valsecchi
/1C3FMZM > > Recently Matthias also explained on this list how to run python tests > inside QtCreator. > > Cheers > > > On Wed, Nov 8, 2017 at 9:22 AM, Patrick Valsecchi < > patrick.valsec...@camptocamp.com> wrote: > >> Hi, >> >> I'm trying to

[QGIS-Developer] Travis timeout

2017-11-08 Thread Patrick Valsecchi
Hi, I'm trying to work on a feature in the master branch, but Travis constantly times out on my builds . Did I miss something? Plus, I'm trying to run UTs on my machine, but the doc must be outdated. How do I run the tests in tests/src/python/t

Re: [Qgis-developer] Visualisation of relations

2016-10-31 Thread Patrick Valsecchi
16 at 1:51 PM, Matthias Kuhn wrote: > On 10/31/2016 01:26 PM, Patrick Valsecchi wrote: > > Matthias, > > > > Hummm... I don't know about the tabs. Initially I was thinking it would > > be a good idea, then I tried to imagine how it would look like for > > l

Re: [Qgis-developer] Visualisation of relations

2016-10-31 Thread Patrick Valsecchi
reed, collapsed by default makes sense for huge models. For small ones > it's a bit strange though. Another approach would be to put them on > separate tabs by default, I think that could look quite nice also. What > do you think? > > Regards > Matthias > > On 10/31/2016

Re: [Qgis-developer] Visualisation of relations

2016-10-31 Thread Patrick Valsecchi
xes > containing the QgsRelationEditor widget is remembered. > > So I think that functionality-wise, most of it should be there already. > With a lot of air left for improvement on the usability side. > > Cheers > Matthias > > [1] http://blog.vitu.ch/10112013-1201/qgis-relati

Re: [Qgis-developer] Visualisation of relations

2016-10-12 Thread Patrick Valsecchi
No answer. I think I'll move forward with my proposal. Thanks. On Fri, Oct 7, 2016 at 9:27 AM, Patrick Valsecchi < patrick.valsec...@camptocamp.com> wrote: > Hi, > > I'm tasked with making QGIS a bit more usable with complex database > schemas having a lot of relatio

Re: [Qgis-developer] A different behavior in Qt5 beaks a lot of things.

2016-10-07 Thread Patrick Valsecchi
for the widgets that now appears by default. On Fri, Oct 7, 2016 at 11:27 AM, Patrick Valsecchi < patrick.valsec...@camptocamp.com> wrote: > Hi, > > I was investigating a new bug when editing a feature's attribute with the > current master. > For example, if you don&#

[Qgis-developer] A different behavior in Qt5 beaks a lot of things.

2016-10-07 Thread Patrick Valsecchi
Hi, I was investigating a new bug when editing a feature's attribute with the current master. For example, if you don't touch the configuration of a layer containing integer fields, save the project, exit, re-open the project, when you edit the attribute of this layer, all the integer fields are f

[Qgis-developer] Visualisation of relations

2016-10-07 Thread Patrick Valsecchi
Hi, I'm tasked with making QGIS a bit more usable with complex database schemas having a lot of relations (up to hundreds of linked tables). The INSPIRE people were a bit too inspired when creating their data schemas and now we have to try to make QGIS able to cope with that. My concerns with the

Re: [Qgis-developer] Decoupling core/data and GUI part of widgets in 3.0

2016-08-31 Thread Patrick Valsecchi
On Wed, Aug 31, 2016 at 4:38 PM, Matthias Kuhn wrote: > On 08/31/2016 04:12 PM, Patrick Valsecchi wrote: > > That would force the plugin writters to provide two plugins: > > Not really, you can add two register calls in one plugin. > > Then the plugin woud only work for QGI

Re: [Qgis-developer] Decoupling core/data and GUI part of widgets in 3.0

2016-08-31 Thread Patrick Valsecchi
Hi, On Wed, Aug 31, 2016 at 1:20 PM, Matthias Kuhn wrote: > On 08/31/2016 12:41 PM, Nyall Dawson wrote: > > Just to clarify - are you proposing that only a map of widget > > configuration is moved to core? I'd say the representValue function > > for each widget should also should be moved across

[Qgis-developer] Editor Widget for hstore (QVariantMap)

2016-08-30 Thread Patrick Valsecchi
Hi, I'm working on [1] and I'm adding a widget for editing a key/value field. I want it to look like that in the form view (yes I still have some details to iron out): [image: Inline image 1] But, for the table view, this widget is too big to fit in a table cell. So want I envision is too show th

Re: [Qgis-developer] Perfs: a lot of WKB conversions

2016-08-21 Thread Patrick Valsecchi
ote: > Hi Patrick > > On Tue, Jul 19, 2016 at 9:58 AM, Patrick Valsecchi > wrote: > > Hi, > > > > I was looking at the perfs of qgis server and I did a small profiling of > a > > GetMap on a road layer (linestring) with QGIS configured with defaults. > We >

Re: [Qgis-developer] JSON parsing

2016-08-19 Thread Patrick Valsecchi
Hi Nyall, On Fri, Aug 19, 2016 at 11:11 AM, Nyall Dawson wrote: > Just wondering - why not XML in the database? It's how styles are stored, > so it'd be nice to keep consistency. > The widget config is a QMap and it was easier to convert a JSON into that. But yes, this is a good idea (eventhoug

[Qgis-developer] JSON parsing

2016-08-19 Thread Patrick Valsecchi
Hello, For my editor widget stuff, I need to parse JSON (to get the stored the widget config from the DB). I've seen that the arcgirest provider uses qjson for that, so I've tried to use it. Works fine on my machine, but fails to compile on Travis (missing include file for qjson/parser.h). Now, I'

Re: [Qgis-developer] Perfs: a lot of WKB conversions

2016-07-19 Thread Patrick Valsecchi
On Tue, Jul 19, 2016 at 11:38 AM, Even Rouault wrote: > I'm not sure to have followed your computation, but it is wrong somewhere > (must be a km vs m confusion). > Yes indeed. Shame on me. The earth circumference is 40'000km, not 40'000m. ___ Qgis-dev

Re: [Qgis-developer] Perfs: a lot of WKB conversions

2016-07-19 Thread Patrick Valsecchi
Hi Martin, On Tue, Jul 19, 2016 at 10:52 AM, Martin Dobias wrote: > Just curious - what did you use for profiling? Release or Debug build? > When trying to optimize code like QGIS server, I tend to do that: 1. Take a scenario that matches the realworld, run it with a RELEASE build on a m

Re: [Qgis-developer] Perfs: a lot of WKB conversions

2016-07-19 Thread Patrick Valsecchi
Hi Nyall, On Tue, Jul 19, 2016 at 10:25 AM, Nyall Dawson wrote: > See https://github.com/qgis/qgis3.0_api/issues/15 > > Cool, that would force us to use the coordinates directly instead of the WKB. > We can't use a QPolygonF, as it uses qreal for storage. For certain > architectures this is fl

[Qgis-developer] Perfs: a lot of WKB conversions

2016-07-19 Thread Patrick Valsecchi
Hi, I was looking at the perfs of qgis server and I did a small profiling of a GetMap on a road layer (linestring) with QGIS configured with defaults. We spend a lot of time converting to and from WKB. For example, for rending 67k features (3 GetMaps), we do this for each feature: - When readi

[Qgis-developer] QGIS for INSPIRE

2016-07-06 Thread Patrick Valsecchi
Hi, We (titellus and camptocamp) are going to start working on adding a few functionalities needed for INSPIRE to QGIS core. Before starting, we’d like to tell the community what we plan to do (maybe, some are optional) and give a chance to everybody to comment. - Advanced attribute type