Re: [QGIS-Developer] QGIS Date, Time and Time Zones

2021-04-29 Thread Matthias Kuhn
For what it's worth ... +1 On Fri, Apr 30, 2021 at 12:31 AM Nyall Dawson wrote: > On Fri, 30 Apr 2021 at 04:10, C Hamilton wrote: > > > > Last year there was a discussion on date, time, and timezones in QGIS. > Back then the discussion was that QGIS uses the QDateTime object which > supports

[QGIS-Developer] Line Density Analysis Occurring on Gradient (No Pic)

2021-04-29 Thread Eboni Westbury
Hi there, I need to run the Line Density Analysis; however, the results I receive are always on a gradient. All of my files are saved to the same directory, and all layers are georeferenced with the same co-ordinates. Would anyone be able to assist in rectifying this? Thanks, Eboni Westbury

Re: [QGIS-Developer] QGIS Date, Time and Time Zones

2021-04-29 Thread Nyall Dawson
On Fri, 30 Apr 2021 at 04:10, C Hamilton wrote: > > Last year there was a discussion on date, time, and timezones in QGIS. Back > then the discussion was that QGIS uses the QDateTime object which supports > timezones, but QGIS does not expose timezones anywhere. This I understand > because

Re: [QGIS-Developer] QGIS Date, Time and Time Zones

2021-04-29 Thread C Hamilton
Thanks for the reply. That certainly places a lot of limits on what can and cannot be done. Calvin On Thu, Apr 29, 2021 at 2:18 PM Even Rouault wrote: > > > but the question I have is whether a vector layer were saved to > > something like a GPKG would the timezone even be preserved? > >

Re: [QGIS-Developer] QGIS Date, Time and Time Zones

2021-04-29 Thread Even Rouault
 but the question I have is whether a vector layer were saved to something like a GPKG would the timezone even be preserved? Short answer: not by default Longer answer: - see https://github.com/opengeospatial/geopackage/issues/530 - and

[QGIS-Developer] QGIS Date, Time and Time Zones

2021-04-29 Thread C Hamilton
Last year there was a discussion on date, time, and timezones in QGIS. Back then the discussion was that QGIS uses the QDateTime object which supports timezones, but QGIS does not expose timezones anywhere. This I understand because time zones are the ultimate pain. I recently released a

Re: [QGIS-Developer] Probably a stupid python question regarding QgsVectorlayer

2021-04-29 Thread Prem Kumar
Hi mate, If you still need further details of database uri, you may refer to the skeleton code below. obj_vl = QgsVectorLayer(in_fc,"new lyr","ogr") datapr=obj_vl.dataProvider() lyrUri=None if isinstance(obj_vl, QgsVectorLayer): lyrUri =

Re: [QGIS-Developer] Probably a stupid python question regarding QgsVectorlayer

2021-04-29 Thread Bo Victor Thomsen
Thanks Alessandro :-) (I need some new reading glasses, or maybe a new brain. When you read the /Properties/ -> /Information/ tab for the layer, the needed information is shown in the tab with the prefix /*Source*: /! It shouldn't be that hard for me to guess!!) Med venlig hilsen / Kind

Re: [QGIS-Developer] Probably a stupid python question regarding QgsVectorlayer

2021-04-29 Thread Alessandro Pasotti
Hi Bo, iface.activeLayer().source() should give you what you want. On Thu, Apr 29, 2021 at 2:21 PM Bo Victor Thomsen < bo.victor.thom...@gmail.com> wrote: > Hi list - > > I have a (probably totally obvious, stupid) Pyhton question: > > I need the datasource URI string of a maplayer chosen by

[QGIS-Developer] How to set individual qwc-services log levels (newbie question)

2021-04-29 Thread Alberto Trentadue
HelloSorry for the basic question from a newbie.I am testing the qwc-services container stack deployment and I need to increase the log level for an individual service.Is there a env variable to set the log level of one single service/container? Thank you for help

[QGIS-Developer] Probably a stupid python question regarding QgsVectorlayer

2021-04-29 Thread Bo Victor Thomsen
Hi list - I have a (probably totally obvious, stupid) Pyhton question: I need the datasource URI string of a maplayer chosen by the user. I have found  the QgsMapLayer chosen by the user. And the QgsVectorLayer associated with the Maplayer. How do I find the datasource string associated

Re: [QGIS-Developer] QgsSpatialIndex nearestNeighbor returns more than 1 feature

2021-04-29 Thread matteo
Thanks for the answer. I've some border cases (like perfect angles that determines a weird equal distance). Sorry for the noise and thanks for the hint Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: