Re: [QGIS-Developer] Qt WebEngine in QGIS 3.36

2024-05-27 Thread Enrico Ferreguti via QGIS-Developer
Update on this: The flatpak QGIS 3.36.3 with Qt 5.15.10 has no issues. I'll
go with this.
Thank you very much for the support.

Il giorno lun 27 mag 2024 alle ore 20:23 Nyall Dawson <
nyall.daw...@gmail.com> ha scritto:

>
>
> On Mon, 27 May 2024, 11:02 pm Enrico Ferreguti, 
> wrote:
>
>> Hi Nyall
>> the installed qt webengine is the following:
>>
>> $ apt list --installed | grep webengine
>> libqt5webengine-data/jammy,jammy,now 5.15.9+dfsg-1 all [installato,
>> automatico]
>> libqt5webengine5/jammy,now 5.15.9+dfsg-1 amd64 [installato]
>> libqt5webenginecore5/jammy,now 5.15.9+dfsg-1 amd64 [installato,
>> automatico]
>> libqt5webenginewidgets5/jammy,now 5.15.9+dfsg-1 amd64 [installato,
>> automatico]
>> python3-pyqt5.qtwebengine/jammy,now 5.15.5-1 amd64 [installato,
>> automatico]
>> qml-module-qtwebengine/jammy,now
>>
>
> You need python qt webengine 5.15.6 for use in qgis. See
> https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/ChangeLog-5.15.7.dev2405031852
>
> The required change is "Allow Qt.AA_ShareOpenGLContexts to be specified
> before a
>  QCoreApplication is created to allow PyQtWebEngineWidgets to be
>  imported.".
>
> I'd file a bug for your distro and request and update.
>
> Nyall
>
> 5.15.9+dfsg-1 amd64 [installato]
>> qtwebengine5-dev/jammy,now 5.15.9+dfsg-1 amd64 [installato]
>> qtwebengine5-doc/jammy,jammy,now 5.15.9+dfsg-1 all [installato,
>> automatico]
>>
>> Thanks for the support.
>>
>>
>>
>>
>> Il giorno lun 27 mag 2024 alle ore 00:21 Nyall Dawson <
>> nyall.daw...@gmail.com> ha scritto:
>>
>>> On Sun, 26 May 2024 at 18:42, Enrico Ferreguti via QGIS-Developer
>>>  wrote:
>>> >
>>> > Dear QGIS developers, I would need your support to update my plugins.
>>> >
>>> > I read that Qt WebEngine, from QGIS
>>> >
>>> > 3.36.3-Maidenhead, QT 5.15.3, is available for plugins:
>>> https://changelog.qgis.org/en/entry/2607
>>>
>>> Which version of the python webengine library is installed? I suspect
>>> this package is out of date and needs an update.
>>>
>>> Nyall
>>>
>>> >
>>> >
>>> > But on Ubuntu Jammy LTS 22.04 and a fresh QGIS 3.36.3-Maidenhead with
>>> QT 5.15.3, when I try to import from QT5:
>>> > from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage,
>>> >
>>> > I get an exception:
>>> > ImportError: QtWebEngineWidgets must be imported before a
>>> QCoreApplication instance is created
>>> >
>>> > and when I do the same from python3 in bash I get no exceptions
>>> >
>>> > Where Am I wrong? Is there something different to do for importing
>>> QtWebEngineWidgets ?
>>> > Can you point me to a running example?
>>> >
>>> > Thank you very much.
>>> > Enrico Ferreguti
>>> >
>>> >
>>> > ___
>>> > 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] Qt WebEngine in QGIS 3.36

2024-05-27 Thread Enrico Ferreguti via QGIS-Developer
Hi Nyall
the installed qt webengine is the following:

$ apt list --installed | grep webengine
libqt5webengine-data/jammy,jammy,now 5.15.9+dfsg-1 all [installato,
automatico]
libqt5webengine5/jammy,now 5.15.9+dfsg-1 amd64 [installato]
libqt5webenginecore5/jammy,now 5.15.9+dfsg-1 amd64 [installato, automatico]
libqt5webenginewidgets5/jammy,now 5.15.9+dfsg-1 amd64 [installato,
automatico]
python3-pyqt5.qtwebengine/jammy,now 5.15.5-1 amd64 [installato, automatico]
qml-module-qtwebengine/jammy,now 5.15.9+dfsg-1 amd64 [installato]
qtwebengine5-dev/jammy,now 5.15.9+dfsg-1 amd64 [installato]
qtwebengine5-doc/jammy,jammy,now 5.15.9+dfsg-1 all [installato, automatico]

Thanks for the support.




Il giorno lun 27 mag 2024 alle ore 00:21 Nyall Dawson <
nyall.daw...@gmail.com> ha scritto:

> On Sun, 26 May 2024 at 18:42, Enrico Ferreguti via QGIS-Developer
>  wrote:
> >
> > Dear QGIS developers, I would need your support to update my plugins.
> >
> > I read that Qt WebEngine, from QGIS
> >
> > 3.36.3-Maidenhead, QT 5.15.3, is available for plugins:
> https://changelog.qgis.org/en/entry/2607
>
> Which version of the python webengine library is installed? I suspect
> this package is out of date and needs an update.
>
> Nyall
>
> >
> >
> > But on Ubuntu Jammy LTS 22.04 and a fresh QGIS 3.36.3-Maidenhead with QT
> 5.15.3, when I try to import from QT5:
> > from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage,
> >
> > I get an exception:
> > ImportError: QtWebEngineWidgets must be imported before a
> QCoreApplication instance is created
> >
> > and when I do the same from python3 in bash I get no exceptions
> >
> > Where Am I wrong? Is there something different to do for importing
> QtWebEngineWidgets ?
> > Can you point me to a running example?
> >
> > Thank you very much.
> > Enrico Ferreguti
> >
> >
> > ___
> > 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] Qt WebEngine in QGIS 3.36

2024-05-26 Thread Enrico Ferreguti via QGIS-Developer
Dear QGIS developers, I would need your support to update my plugins.

I read that Qt WebEngine, from QGIS

3.36.3-Maidenhead, QT 5.15.3, is available for plugins:
https://changelog.qgis.org/en/entry/2607

But on Ubuntu Jammy LTS 22.04 and a fresh QGIS 3.36.3-Maidenhead with QT
5.15.3, when I try to import from QT5:
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEnginePage,

I get an exception:
ImportError: QtWebEngineWidgets must be imported before a QCoreApplication
instance is created

and when I do the same from python3 in bash I get no exceptions

Where Am I wrong? Is there something different to do for importing
QtWebEngineWidgets ?
Can you point me to a running example?

Thank you very much.
Enrico Ferreguti
___
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-psc] QGIS budget 2023 RFC

2022-12-05 Thread Enrico Ferreguti via QGIS-Developer
> As for A, one of my take is that seeing the grant budget disappear this
year is a pity, especially seeing other amounts dedicated to documentation
for example.

I agree with Vincent and Matteo and even if I understand the need of fund
bugfixing and qt6 migration I would strongly recommend to improve grants
budget as a consistent way to interact with community, furthermore I would
enlarge core developers audience in any way with targeted training and
social involvement and lowering the needed technical contribution skills. I
thank you all for sharing this interesting discussion.

Il giorno lun 5 dic 2022 alle ore 11:27 Vincent Picavet (ml) via
QGIS-Developer  ha scritto:

> Hi Andreas, all,
>
> On 24/11/2022 16:09, Andreas Neumann wrote:
> [..]
> > We did not really discuss the hourly rates at the budget meeting.
> > From 2021 to 2022 we raised the hourly dev rates from 100 to 110 -
> > and the hourly documentation rates from 40 to 44. I know that both
> > rates are low. We can discuss raising them again.
>
> My question was general, and actually includes all prices. I have no
> definite opinion on this topic, as it can be complicated given the
> disparity of inflation according to what price we are talking about, and
> also geographically speaking.
>
> > The plan for the two positions was not to have direct employees of
> > QGIS.ORG , but to use a proxy company, in our case
> > Kartoza, to act as the employer. Also - our budget does not allow
> > regular European or North-American salaries. With these limitations
> > at hand, we can use Kartoza as a proxy to hire employees in certain
> > parts of the world where the salaries we can offer can be attractive
> > - and where they have talented people to work on some of our issues
> > (sysadmin, documentation, etc.)
>
> I have very mixed feelings about this, and it raises lots of questions we
> definitely have to clear out before establishing any process.
>
> - Using a proxy company is very similar to me than having direct
> employees, if these positions have no clear limits of time and perimeter
> - Using a proxy company instead of direct employees can be considered
> illegal according to local legislation. I do not know for Swiss law.
> - How was Kartoza selected ? Was there an open process for other companies
> to apply ? Who decided and on what criteria ? The fact that the company
> owned by a member of QGIS PSC is selected is a big red flag for me, if the
> process is not fully transparent and fair for others.
> - "our budget does not allow European or North-American salaries" : see
> below for the budget volume comments. But I have very mixed feelings about
> this statement : it sounds exactly like social dumping. I do not know what
> would be fair to select employees, and I recognize it to be a complex
> issue, but in some ways it does not feel right.
>
> > For the documentation part: Tim and Harrissou are involved in the
> > selection process of the candidates.
>
> Is the process and selection committee documented somewhere ?
>
> > I agree that the grant budget with 10k is not very attractive. We
> > also discussed skipping it for one year. Not sure what is better ...
> >
> > BTW: you can all help to find new sustaining members ... that would
> > increase our budget and would allow us to pay better hourly rates
> > ...
> >
> > I wish we had a larger budget at hand than the +/- 200k € we seem to
> > be able to attract each year. From certain countries where we know we
> > have a lot of QGIS users (France, Italy - just to name two of them)
> > there are not a lot of sustaining members or donations other than
> > from a few private persons and very small companies. Maybe companies
> > like yours could help us to get in touch with the larger companies
> > with a lot of QGIS users that could become new sustaining members ...
> > Do you think that would be possible?
>
> First of all, complaining that our budget is too low is definitely not the
> way to consider the problem : QGIS.org budget will, by definition,
> **always** be too low compared to what we could need. Developing a software
> and managing a community is a boundless task and you can always find tasks
> and work packages to spend all the money you can imagine of.
>
> I agree that QGIS.org could attract more sustaining members. I just hope
> you are not accusing Oslandia of not doing our job of proselitysm, QGIS
> community support, communication and globally QGIS.org and QGIS software
> contributions. We do our part for sure.
>
> ... And this is not the point, as I said the question I raise is not how
> to increase our budget, since the exact same issues will araise with a
> larger budget.
>
> The questions are :
> - A/ how do we use our existing budget for most important things to support
> - B/ what our decisions processes are, where are they documented, and are
> they clear, transparent and fair
>
> As for A, one of my take is that seeing the grant budget disappear this
> yea

Re: [QGIS-Developer] WFS3 API POST PUT Methods

2022-03-03 Thread Enrico Ferreguti
Il giorno mer 2 mar 2022 alle ore 18:09 Alessandro Pasotti <
apaso...@gmail.com> ha scritto:

>
> Enrico,
>
> We only accept 4326 currently.
>
> I think we could be more tolerant if the OAPIF extensions allows it, we
> currently allow GET with other CRSs but POST/PUT/PATCH are not implemented
> to handle different CRSs.
>

What about accepting requests with same CRS of feature source? Could be
this a reasonable feature request?
Anyway on REST Interface you did a great job. Thanks.


>
> Kind Regards
>
>
> On Wed, Mar 2, 2022 at 1:53 PM Enrico Ferreguti 
> wrote:
>
>> Hi QGIS devs,
>> I'm testing the API REST interface for updating a WFS3 and I verified
>> that the new/modified feature had to be expressed in geojson format in
>> EPSG:4326 coordinates regardless of the SRID of the served layer. I
>> verified the behaviour with QGIS server 3.16 LTR and latest 3.22
>>
>> Is this an issue or a feature due to compliance to OGC or RFC7946
>> standards?
>>
>> Anyway I found this behaviour very uncomfortable because it obliges to
>> perform preliminarly unaccurate reprojections from javascript/python
>> clients.
>>
>> Best regards.
>> Enrico Ferreguti.
>> ___
>> 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
> QCooperative:  www.qcooperative.net
> ItOpen:   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] WFS3 API POST PUT Methods

2022-03-02 Thread Enrico Ferreguti
Hi QGIS devs,
I'm testing the API REST interface for updating a WFS3 and I verified that
the new/modified feature had to be expressed in geojson format in EPSG:4326
coordinates regardless of the SRID of the served layer. I verified the
behaviour with QGIS server 3.16 LTR and latest 3.22

Is this an issue or a feature due to compliance to OGC or RFC7946 standards?

Anyway I found this behaviour very uncomfortable because it obliges to
perform preliminarly unaccurate reprojections from javascript/python
clients.

Best regards.
Enrico Ferreguti.
___
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't get values from QgsMeshLayer

2021-02-03 Thread Enrico Ferreguti
Thanks for the quick reply Vincent, it was really the crs mismatch. I
didn't aware that for extracting values the underlying triangular mesh has
to be updated.
anyway there is a little issue in the script you provide, even the sample
point has to be transformed to MapCanvas crs
p1 = transform.trasform(QgsPointXY(1.60301, 38.38453))
In effect putting the project to the same crs of the mesh layer (4326) the
script outputs the correct values
so the above script should be the following

##
mesh=QgsMeshLayer('/your/path//20210202_211414_ICON_EU_P06_.grb2','mesh','mdal')
print("mesh is valid:",mesh.isValid())

# First, we need to build the triangular mesh used to render and access the
mesh from the layer
# QgsCoordinatesTransform is needed, here we build one with destination to
the map but could be other one
# If the layer is already render in the map, no need to do that if we want
it in the same coordinates than the map

destinationCrs=iface.mapCanvas().mapSettings().destinationCrs()
transform=QgsCoordinateTransform(mesh.crs(),destinationCrs,QgsProject.instance().transformContext())
mesh.updateTriangularMesh(transform)

p1 = transform.trasform(QgsPointXY(1.60301, 38.38453))

ds_group_index = 1

for g in mesh.datasetGroupsIndexes():
print ("MESH GROUP:", g,
mesh.datasetGroupMetadata(QgsMeshDatasetIndex(g,0)).name())

for i in range(mesh.datasetCount(QgsMeshDatasetIndex(ds_group_index,0))):
dataset = QgsMeshDatasetIndex(ds_group_index, i)
meta = mesh.datasetMetadata(dataset)
t = meta.time()
value = mesh.datasetValue(dataset, p1)
print ("VALUES P1",t,value.scalar(),value.x(),value.y())
##

Il giorno mer 3 feb 2021 alle ore 17:14 Vincent Cloarec 
ha scritto:

> I rewrite your script :
>
> ##
>
> mesh=QgsMeshLayer('/your/path//20210202_211414_ICON_EU_P06_.grb2','mesh','mdal')
> print("mesh is valid:",mesh.isValid())
>
> # First, we need to build the triangular mesh used to render and access
> the mesh from the layer
> # QgsCoordinatesTransform is needed, here we build one with destination to
> the map but could be other one
> # If the layer is already render in the map, no need to do that if we want
> it in the same coordinates than the map
>
> destinationCrs=iface.mapCanvas().mapSettings().destinationCrs()
>
> transform=QgsCoordinateTransform(mesh.crs(),destinationCrs,QgsProject.instance().transformContext())
> mesh.updateTriangularMesh(transform)
>
> p1 = QgsPointXY(1.60301, 38.38453)
>
> ds_group_index = 1
>
> for g in mesh.datasetGroupsIndexes():
> print ("MESH GROUP:", g,
> mesh.datasetGroupMetadata(QgsMeshDatasetIndex(g,0)).name())
>
> for i in range(mesh.datasetCount(QgsMeshDatasetIndex(ds_group_index,0))):
> dataset = QgsMeshDatasetIndex(ds_group_index, i)
> meta = mesh.datasetMetadata(dataset)
> t = meta.time()
> value = mesh.datasetValue(dataset, p1)
> print ("VALUES P1",t,value.scalar(),value.x(),value.y())
>
> ##
>
>
> Be careful to not mix QgsMeshDatasetIndex index from provider with
> QgsMeshDatasetIndex from layer. Indeed, since 3.16 we can have extra
> dataset group (for example virtual one), the layer handles with its own way
> the group indexes
>
> Le mer. 3 févr. 2021 à 11:31, Enrico Ferreguti  a
> écrit :
>
>> 3.16
>> The attachment was missing.
>> You can download it from here:
>> https://beato.duckdns.org/nextcloud/s/Ra4opS94zYfgfXa
>>
>> Il mer 3 feb 2021, 16:26 Vincent Cloarec  ha scritto:
>>
>>> Hi Enrico,
>>>
>>> As that will depend of the version of QGIS, which version do you use?
>>>
>>> Le mer. 3 févr. 2021 à 10:59, Enrico Ferreguti  a
>>> écrit :
>>>
>>>> I'm trying to write a simple function for retrieving wind speed and
>>>> direction at a specified moment from a given grib file readable as mesh
>>>> layer the prototype script is the following:
>>>>
>>>> mesh = QgsMeshLayer("[path to the attached
>>>> grib]/20210202_211414_ICON_EU_P06_.grb2","test","mdal")
>>>> #mesh = iface.activeLayer()
>>>> p1 = QgsPointXY(1.60301, 38.38453)
>>>>
>>>> ds_group_index = 1
>>>>
>>>> for g in mesh.datasetGroupsIndexes():
>>>> print ("MESH GROUP:", g,
>>>> mesh.datasetGroupMetadata(mesh.datasetIndexAtRelati

Re: [QGIS-Developer] Can't get values from QgsMeshLayer

2021-02-03 Thread Enrico Ferreguti
3.16
The attachment was missing.
You can download it from here:
https://beato.duckdns.org/nextcloud/s/Ra4opS94zYfgfXa

Il mer 3 feb 2021, 16:26 Vincent Cloarec  ha scritto:

> Hi Enrico,
>
> As that will depend of the version of QGIS, which version do you use?
>
> Le mer. 3 févr. 2021 à 10:59, Enrico Ferreguti  a
> écrit :
>
>> I'm trying to write a simple function for retrieving wind speed and
>> direction at a specified moment from a given grib file readable as mesh
>> layer the prototype script is the following:
>>
>> mesh = QgsMeshLayer("[path to the attached
>> grib]/20210202_211414_ICON_EU_P06_.grb2","test","mdal")
>> #mesh = iface.activeLayer()
>> p1 = QgsPointXY(1.60301, 38.38453)
>>
>> ds_group_index = 1
>>
>> for g in mesh.datasetGroupsIndexes():
>> print ("MESH GROUP:", g,
>> mesh.datasetGroupMetadata(mesh.datasetIndexAtRelativeTime(h0,g)).name())
>>
>> for i in range(mesh.dataProvider().datasetCount(ds_group_index)):
>> meta =
>> mesh.dataProvider().datasetMetadata(QgsMeshDatasetIndex(ds_group_index, i))
>> t = meta.time()
>> dataset = QgsMeshDatasetIndex(ds_group_index, i)
>> value = mesh.datasetValue(dataset, p1)
>> print ("VALUES P1",t,value.scalar(),value.x(),value.y())
>>
>> When I run the script I can get dataset names from metadata but I'getting
>> Nan as values
>> I verified that the grib is loadable in mapcanvas and the sample point is
>> within grib extent.
>> I read the note in api (
>> https://qgis.org/api/classQgsMeshLayer.html#a76a7ec072b4acaf45c1a10f5872c4948)
>> "It uses previously cached and indexed triangular mesh and so if the layer
>> has not been rendered previously (e.g. when used in a script) it returns
>> NaN value" so I tried to process an already loaded mesh (decomment line 2)
>> without luck.
>>
>> Is there anybody who can help me finding what I'm doing wrong? 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
>>
>
___
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't get values from QgsMeshLayer

2021-02-03 Thread Enrico Ferreguti
I'm trying to write a simple function for retrieving wind speed and
direction at a specified moment from a given grib file readable as mesh
layer the prototype script is the following:

mesh = QgsMeshLayer("[path to the attached
grib]/20210202_211414_ICON_EU_P06_.grb2","test","mdal")
#mesh = iface.activeLayer()
p1 = QgsPointXY(1.60301, 38.38453)

ds_group_index = 1

for g in mesh.datasetGroupsIndexes():
print ("MESH GROUP:", g,
mesh.datasetGroupMetadata(mesh.datasetIndexAtRelativeTime(h0,g)).name())

for i in range(mesh.dataProvider().datasetCount(ds_group_index)):
meta =
mesh.dataProvider().datasetMetadata(QgsMeshDatasetIndex(ds_group_index, i))
t = meta.time()
dataset = QgsMeshDatasetIndex(ds_group_index, i)
value = mesh.datasetValue(dataset, p1)
print ("VALUES P1",t,value.scalar(),value.x(),value.y())

When I run the script I can get dataset names from metadata but I'getting
Nan as values
I verified that the grib is loadable in mapcanvas and the sample point is
within grib extent.
I read the note in api (
https://qgis.org/api/classQgsMeshLayer.html#a76a7ec072b4acaf45c1a10f5872c4948)
"It uses previously cached and indexed triangular mesh and so if the layer
has not been rendered previously (e.g. when used in a script) it returns
NaN value" so I tried to process an already loaded mesh (decomment line 2)
without luck.

Is there anybody who can help me finding what I'm doing wrong? 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-voting-members] [Qgis-psc] New community voting members

2021-01-25 Thread Enrico Ferreguti
Wow. I'm proud to be part of this with you. Thank you all.

Il mar 26 gen 2021, 06:59 Etienne Trimaille 
ha scritto:

> Good morning,
>
> Thank you to all community voting members and PSC.
> Very grateful and great pleasure to be there !
>
> Regards,
>
> Le mar. 26 janv. 2021 à 12:16, Peter Petrik <
> peter.pet...@lutraconsulting.co.uk> a écrit :
>
>> Dear Community Members and PSC,
>>
>> I am honored to be a voting member and will try my best to continue to
>> help the QGIS Project.
>>
>> Cheers,
>> Peter
>>
>>
>> On Mon, Jan 25, 2021 at 8:14 PM Marco Bernasocchi  wrote:
>>
>>> Dear Community,
>>>
>>> it is with great pleasure that I would like to officially congratulate
>>> our new community voting members for their election.
>>>
>>> David signer
>>> Enrico Ferreguti
>>> Etienne Trimaille
>>> Pedro Venâncio
>>> Peter Petrik
>>> Richard Duivenvoorde
>>>
>>> I would also like to extend them a heartfelt thank you for all the work
>>> they have put into QGIS over the years.
>>> I'd also like to extend my gratitude to all voters and everybody who
>>> gave feedback on how to make the voting process even better.
>>>
>>> I will add all new members to the community voting list and you'll be
>>> able starting voting immediately.
>>>
>>> It is a great pleasure having you all on board!
>>>
>>> Cheers Marco
>>>
>>> --
>>> Marco Bernasocchi
>>>
>>> QGIS.org Chair
>>> OPENGIS.ch CEO
>>> http://berna.io
>>> ___
>>> Qgis-psc mailing list
>>> qgis-...@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/qgis-psc
>>>
>> ___
>> 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-voting-members mailing list
> qgis-voting-memb...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-voting-members
>
___
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 open a QGIS prococessing algorithm dialog in python?

2020-01-24 Thread Enrico Ferreguti
Hi QGIS developers,

I would like to programmatically show a processing algoritm dialog from
python. I gived a look to processing toolbox and I found that this is
possible importing and instantiating the class AlgorithmDialog
[gui/processingToolbox.py][1]

from processing.gui.AlgorithmDialog import AlgorithmDialog
from qgis.core import QgsApplication

alg =
QgsApplication.processingRegistry().algorithmById('qgis:extractbyattribute')
dlg = AlgorithmDialog(alg, False, iface.mainWindow())
dlg.show()
dlg.exec_()

This opens algorithm dialog and let me perform processing computations but
once closed the dialog window QGIS become instable and crash without any
message interacting with the user interface.

What am I doing wrong? Is there a method to do this in other way?

I just posted the question on StackExchange:
https://gis.stackexchange.com/questions/348542/open-qgis-prococessing-algorithm-dialog-with-python

Thanks in advance.
Enrico Ferreguti.

  [1]:
https://github.com/qgis/QGIS/blob/276a31439eb95f9cdb1053a6ae2dba3f19fbcece/python/plugins/processing/gui/ProcessingToolbox.py#L262
___
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] QWebView issues

2019-10-30 Thread Enrico Ferreguti
Hi Dev List,
I'm facing to QWebView issues after upgrading to QGIS 3.10 under Windows
(Linux seems not affected) that prevent some plugins from regular execution
(go2streetview, go2mapillary, Qgis2Threejs). I already submitted to issue
track: https://github.com/qgis/QGIS/issues/32507 , have issue reports from
other users and personally checked on my machine but  @minorua does not
confirm: https://github.com/minorua/Qgis2threejs/issues/191
so I ask if anyone could verify or suggest a fix
Thanks.
Enrico.
___
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] Explode HStore algorithm

2019-05-12 Thread Enrico Ferreguti
You can handle hstore using dedicated maps functions in expressions:
https://docs.qgis.org/testing/en/docs/user_manual/working_with_vector/expression.html#id25

Il giorno dom 12 mag 2019, 01:51  ha scritto:

> Hi,
>
> i'm running QGIS 3.6.2 and need to work with hstore.
>
> Where can i find "Explode Hstore"?
>
> regards
> walter
> My projects:
>
> Admin Boundaries of the World 
> Missing Boundaries
> 
> Emergency Map 
> Postal Code Map (Germany only) 
> Fools (QA for zipcodes in Germany) 
> Postcode Boundaries of Germany
> 
> ___
> 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] Boundless Web App Builder and qgis2web - QGIS grant proposal possible

2019-05-09 Thread Enrico Ferreguti
I would be interested in helping you.
I'm porting to QGIS3 a plugin (https://github.com/enricofer/gdrive_provider)
for using google spreadsheets as QGIS dataprovider and I did some test for
using WAB portions to export these layers to web:
https://github.com/enricofer/GooGIS2CSV
for example:
https://enricofer.github.io/GooGIS2CSV/converter.html?spreadsheet_id=15zmg1f36uEdHZNDOnSXrDtXPFtAYq8Ax7rw82WnB3Bo,1yPAqNQLAGBmATT8j3VQV64Xw0lEkjtirD5qsh687YgM,1WscQj2qN3vCXWhKGIQ16F4BpWgMFfaxyOcHmrWrUkAY,1Av8PtNKTyYAQ1wnkfUht1LsVOf-k6zU30HnXqsoffLs
reproject and display on Openlayers map google_drive layers edited and
styles in QGIS.
It would be great see this on Qgis2Web.

Regards. Enrico.


Il giorno mer 8 mag 2019 alle ore 10:42 Tom Chadwin 
ha scritto:

> Hello all
>
> As many of you know, qgis2web was built on top of Victor's work on his
> previous plugin qgis-ol3. Victor went on to be the major developer of the
> Boundless Web App Builder plugin (WAB). WAB exports to OpenLayers, while
> qgis2web exports to OpenLayers or Leaflet.
>
> With Boundless's change in focus (I hope it would be fair to describe this
> as "away from QGIS"), I wonder if we can try to incorporate some of Web App
> Builder's functionality into qgis2web. Victor and I are both keen for this
> to take place, and it would certainly be a shame if all the amazing
> functionality which Victor (and others) built into WAB were lost.
>
> Would any dev/devs be interested in this as a possible QGIS grants
> proposal?
> Victor and I are both happy to help guide contributors around the WAB and
> qgis2web codebases and help in any way we can.
>
> I don't think I'll put in such a proposal myself, so if anyone else is
> interested, please do get in touch.
>
> All the best
>
> 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

Re: [QGIS-Developer] Handle Bad Layers

2018-09-06 Thread Enrico Ferreguti
Bad layer handling is not currently supported under QGIS3. for now.

Best Regards.
Enrico

Il mer 5 set 2018, 23:49 Nyall Dawson  ha scritto:

> On Thu, 6 Sep 2018 at 05:42, Worth Lutz  wrote:
> >
> > Hi Devs,
> >
> > I have a question about the "Handle Bad Layers" dialog. My scenario is
> working offline and loading a project with WMS layers defined. As the WMS
> is unreachable, the layers are marked as "bad". Since the layers are not
> fixable while offline, they get deleted from the project.
> >
> > I would like to continue to edit the layers locally stored on my laptop
> and not lose the definitions of the WMS layers when saving the project.
> >
> > I would like to see the "bad" layers marked as "disabled because bad"
> and not deleted from the project. This would keep the stored information
> about the layer in the project. When the project is next opened while
> connected to the internet these layers would be available without having to
> enter them again.
> >
> > Is there currently a way to do this?  Or should I add an enhancement
> request issue for this idea?
>
> I think this is a widely desired feature, and something I'd very much
> like to see available "out of the box".
>
> For 2.x there is a plugin "changeDataSource" which allows this
> behavior. I don't think that plugin is available for 3.x yet.
>
> Nyall
>
> >
> > --
> > Worth Lutz
> >
> >
> > ___
> > 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] QGIS Python API doc: add QgsInterface

2018-04-12 Thread Enrico Ferreguti
Thanks Denis. Very clear python docs!
Just out of curiosity, I read somewhere why QgisInterface has 'Qgis' prefix
and all other classes have 'Qgs' but I totally forget the reason There
was something about Gary Sherman
Could you help me?


2018-04-12 15:49 GMT+02:00 Richard Duivenvoorde :

> On 12-04-18 15:27, Denis Rouzaud wrote:
> > Finally done
> > http://python.qgis.org/master/gui/other/QgisInterface.html
> >
> > :)
>
> Ah, thanks Denis! Really nice the Python docs, and I had troubles
> finding the QgisInterface too :-)
>
> Is it an idea to just point to it (in a small paragraph pointing to the
> other docs and python cookbook on the frontpage:
> http://python.qgis.org/master/
>
> I think we/I should do some redirection too, like
> - python.qgis.org -> https://python.qgis.org/master/ (now empty)
> - api.qgis.org/python -> python.qgis.org
> - api.qgis.org -> https://qgis.org/api/
> Something else?
>
> About gui/other/QgisInterface.html I was searching in the 'treeview' on
> the left op the page, but could not find it there...
> Because all 'headings' are with a capital: New, Options, Paint and then
> 'other' is on the bottom :-)
>
> Thanks for all this work!
>
> Regards,
>
> Richard Duivenvoorde
> ___
> 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] API freeze

2018-02-15 Thread Enrico Ferreguti
Hi all, In github wiki I read that: " QGIS 3 has entered feature freeze.
It's, therefore, time to port your plugin. But be aware that the *API is
not freezed yet*. "

Me and many other plugin developers are partecipating to QGIS3 migration
effort.
I'm handling issues notifications related to API break, (
https://github.com/enricofer/go2streetview/issues/35,
https://github.com/enricofer/go2mapillary/issues/9) and I would know when
API will be stable? Should we expect breaks till the final release?

I understand that core devs are working hard to make next release more
stable, I would only know how to schedule my time contribution.

Many Thanks.
Enrico Ferreguti
___
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] QgsLayout.itemById returns wrong object

2018-01-24 Thread Enrico Ferreguti
I'm testing the code under QGIS3, but I fear that
isinstance(item, item_class), in my case: isinstance(item,
QgsLayoutItemPicture)
returns always false because item is of QgsLayoutItem generic class

Nyall's workaround works for me without exceptions:

from qgis.core import QgsProject, QgsLayoutItemPicture
import sip
myLayout = QgsProject.instance().layoutManager().layoutByName('test')
myLayoutPicture =
sip.cast(myLayout.itemById("picture"),QgsLayoutItemPicture)
myLayoutPicture.setPicturePath("path to an image")


2018-01-24 10:20 GMT+01:00 Etienne Trimaille :

> Is-it possible to remove this function from SIP bindings? According to SIP
> version?
>
> It's a common issue, already raised on the mailing list and in plugin
> issue trackers.
>
> I'm copy/pasting another message/snippet from Martin which works perfectly:
>
> Not sure if that is related, was just looking into code of a plugin we
> use with QGIS 2.18 and there for getting composer items we have this
> helper method:
>
> @staticmethod
> def get_composition_item(comp, item_id, item_class):
> for item in comp.items():
> if isinstance(item, item_class):
> if item.id() == item_id:
> return item
>
> And you would call it e.g.:
> ver_label = self.get_composition_item(self.oview_compn, 'version',
> QgsComposerLabel)
>
> Not sure if that is to work around the same problem as you have - I
> didn't write that code. And to get composer map items, we use
> composition.getComposerMapById(id)
>
> 2018-01-24 10:09 GMT+03:00 Nyall Dawson :
>
>> On 23 January 2018 at 22:34, Enrico Ferreguti 
>> wrote:
>> > I'm trying to programmatically set a QgsLayoutPicture content in
>> QGIS3.0:
>> >
>> > 1) I create a new print composition and I name it 'test'
>> > 2) I create a picture frame in the composition and I call it 'picture'
>> > 3) I run the following code:
>> >
>> > from qgis.core import QgsProject
>> > myLayout = QgsProject.instance().layoutManager().layoutByName('test')
>> > myLayoutPicture = myLayout.itemById("picture")
>> > myLayoutPicture.setPicturePath("path to an image")
>> >
>> > and I get the following Exception:
>> > AttributeError: 'QgsLayoutItem' object has no attribute 'setPicturePath'
>> >
>> > If I inspect myLayoutPicture object I found it is a
>> qgis._core.QgsLayoutItem
>> > not a QgsLayoutPicture
>> >
>> > Is this a correct behaviour or is it an issue? How can I get the right
>> > Layout object?
>>
>> This became an issue after a certain sip version. It affects QGIS 2.x
>> also, and seems to be caused by sip being unable to automatically cast
>> classes which use multiple inheritance (like QgsComposerItem,
>> QgsLayoutItem). The consequence is that Python is only aware of the
>> base class, not the actual item subclass.
>>
>> I can't find anyway to fix this properly. So I hack around by forcing
>> sip to manually cast to the correct item type, e.g. by inserting two
>> lines* which look like this:
>>
>> # screw you sip, I'll just manually cast
>> real_item = sip.cast(item, QgsLayoutItemPicture)
>>
>> It's not pretty, but it works...
>>
>> Nyall
>>
>> * the first line is critical for the fix to work correctly
>> ___
>> 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] QgsLayout.itemById returns wrong object

2018-01-23 Thread Enrico Ferreguti
I'm trying to programmatically set a QgsLayoutPicture content in QGIS3.0:

1) I create a new print composition and I name it 'test'
2) I create a picture frame in the composition and I call it 'picture'
3) I run the following code:

from qgis.core import QgsProject
myLayout = QgsProject.instance().layoutManager().layoutByName('test')
myLayoutPicture = myLayout.itemById("picture")
myLayoutPicture.setPicturePath("path to an image")

and I get the following Exception:
AttributeError: 'QgsLayoutItem' object has no attribute 'setPicturePath'

If I inspect myLayoutPicture object I found it is a
qgis._core.QgsLayoutItem not a QgsLayoutPicture

Is this a correct behaviour or is it an issue? How can I get the right
Layout object?

Regards.
Enrico Ferreguti
___
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] Plugin for both QGIS2 and QGIS3

2018-01-17 Thread Enrico Ferreguti
I both migrate plugin keeping qgis2 compatibility (
https://github.com/enricofer/attributepainter) or branching to qgis3 only (
https://github.com/enricofer/go2streetview)
Having to carry out 3 migrations in one: python2 to python3, QT4 to QT5,
PyQt2 to PyQt3,  in my experience I strongly suggest you to branch to Qgis3
only, leaving the qgis2 compatibility to simpler plugins.
You will get a more readable and efficient code, and you'll get the
opportunity to understand and exploit the api breaks benefits.
Regards
Enrico Ferreguti

2018-01-17 8:27 GMT+01:00 Javier Becerra Elcinto :

> Hi Simon,
>
> We have used the approach of qgis2compat: we get our code running on QGis3
> with new API calls, and use a small compatibility layer to get that same
> code running on QGis2. It is a bit of work, but seems to be working fine.
>
> However the wiki (https://github.com/qgis/QGIS/
> wiki/Plugin-migration-to-QGIS-3) now says that qgis2compat has been
> deprecated; I do not know if it is because that route is a dead-end, if
> other people are just making two different versions of the plugin.
>
> Regards,
>
> Javier
>
>
>
> El 16/01/2018 a las 14:53, Simon Gröchenig escribió:
>
>> Hi,
>> I aim to release a QGIS3-version of my QGIS plugin "GPX Segment
>> Importer". I would like to ask you if there exists a common approach for
>> releasing versions for both QGIS2 and QGIS3? Should I create a new plugin
>> for QGIS3 or can I somehow use the existing plugin for both?
>> Simon
>> ___
>> 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] QgsComposition.getComposerItemById returns wrong object

2018-01-07 Thread Enrico Ferreguti
Thanks Nyall, I will wait for that.

Il 07/gen/2018 02:08, "Nyall Dawson"  ha scritto:

> On 7 January 2018 at 08:13, Enrico Ferreguti  wrote:
> > I'm trying to set programmatically a QgsComposerPicture content in
> QGIS2.99:
> >
> > 1) I create a new print composition and I name it 'test'
> > 2) I create a picture frame in the composition and I call it 'picture'
> > 3) I run the following code:
> >
> > from qgis.core import QgsProject
> > myComposition =
> > QgsProject.instance().layoutManager().compositionByName('test')
> > myComposerPicture = myComposition.getComposerItemById("picture")
> > myComposerPicture.setPicturePath("[path to an image]")
> >
> > and I get the following Exception:
> > AttributeError: 'QgsComposerItem' object has no attribute
> 'setPicturePath'
> >
> > If I inspect myComposerPicture object I found it is a
> > qgis._core.QgsComposerItem not a QgsComposerPicture
> >
> > Is this a correct behaviour or is it an issue?
> > Should I open a issue ticket?
>
> If your script is targeting QGIS 3.0, please don't file bugs against
> composer. You need to use the newer layouts engine instead (QgsLayout
> and associated classes).
>
> Over the coming week all composer code will be removed from QGIS.
>
> 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] QgsComposition.getComposerItemById returns wrong object

2018-01-06 Thread Enrico Ferreguti
I'm trying to set programmatically a QgsComposerPicture content in QGIS2.99:

1) I create a new print composition and I name it 'test'
2) I create a picture frame in the composition and I call it 'picture'
3) I run the following code:

from qgis.core import QgsProject
myComposition =
QgsProject.instance().layoutManager().compositionByName('test')
myComposerPicture = myComposition.getComposerItemById("picture")
myComposerPicture.setPicturePath("[path to an image]")

and I get the following Exception:
AttributeError: 'QgsComposerItem' object has no attribute 'setPicturePath'

If I inspect myComposerPicture object I found it is a
qgis._core.QgsComposerItem not a QgsComposerPicture

Is this a correct behaviour or is it an issue?
Should I open a issue ticket?
___
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] Removing QgsProject.instance() from Python bindings?

2018-01-03 Thread Enrico Ferreguti
...thanks. Many QgsProject.instance() calls even in our plugins too!

2018-01-03 3:37 GMT+01:00 Nyall Dawson :

> >>
> >> Just wondering... before 3.0 launch, should we remove
> >> QgsProject.instance() from the Python bindings, in favour of something
> >> like iface.activeProject()?
> >>
> >> Sometime in the future (4.0?) we'll end up killing
> >> QgsProject.instance(), but in the meantime is it a good move to push
> >> people away from relying on this method?
> >>
> >> I'd say yes, given that the 2.x -> 3.0 api break is so huge anyway and
> >> will generally result in substantial plugin rewriting (vs just
> >> modifying a few methods), maybe we're better off to get PyQGIS
> >> developers to deal with this now and factor it into their new
> >> designs?*
> >>
> >> Nyall
> >>
> >> * based on the belief that 3.x -> 4.0 will be a gentler transition!!
> >> ___
>
> Ok, based on the results of https://github.com/qgis/QGIS/pull/5974 ,
> we'll have to defer this until 4.0 when (hopefully) we have much fewer
> QgsProject::instance() calls in core/gui/providers.
>
> 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] Convert from mapunits to pixels

2017-11-10 Thread Enrico Ferreguti
did you noticed QgsMapCanvas.mapUnitsPerPixel
<https://qgis.org/api/classQgsMapCanvas.html#ad381f3ff0fc3a6db6cf1441b7a6eb754>()
?
then
lenght in pixels = lenght in mapunits / mapUnitsPerPixel
<https://qgis.org/api/classQgsMapCanvas.html#ad381f3ff0fc3a6db6cf1441b7a6eb754>
()

2017-11-10 13:27 GMT+01:00 Enrico Ferreguti :

> It's a QGIS3 plugin, I have not yet understood how to exclude QGIS2 from
> plugin search.
>
> 2017-11-10 13:26 GMT+01:00 Enrico Ferreguti :
>
>> It's a QGIS3 plugin, I have not yet understood how to exclude QGIS2 from
>> plugin search.
>>
>> 2017-11-10 12:22 GMT+01:00 Tom Chadwin :
>>
>>> By the way, I couldn't load go2mapillary in 2.18.14 via the plugin
>>> manager -
>>> I get "cannot import name QgsDataSourceUri".
>>>
>>> Thanks
>>>
>>> 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

Re: [QGIS-Developer] Convert from mapunits to pixels

2017-11-10 Thread Enrico Ferreguti
It's a QGIS3 plugin, I have not yet understood how to exclude QGIS2 from
plugin search.

2017-11-10 13:26 GMT+01:00 Enrico Ferreguti :

> It's a QGIS3 plugin, I have not yet understood how to exclude QGIS2 from
> plugin search.
>
> 2017-11-10 12:22 GMT+01:00 Tom Chadwin :
>
>> By the way, I couldn't load go2mapillary in 2.18.14 via the plugin
>> manager -
>> I get "cannot import name QgsDataSourceUri".
>>
>> Thanks
>>
>> 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

Re: [QGIS-Developer] Convert from mapunits to pixels

2017-11-10 Thread Enrico Ferreguti
Hi Tom, I'm not sure to understand your problem, I point you to the
function that downloads vector tiles from mapillary doing that conversion:
https://github.com/enricofer/go2mapillary/blob/6c452b768e8bf8264516f27db33b1e6c690ada48/mapillary_coverage.py#L139

2017-11-09 17:26 GMT+01:00 Tom Chadwin :

> Hello all
>
> I've never implemented support of any unit other than pixels in my plugin.
> A
> particular use case (vector tiles) could really use mapunits. Can someone
> explain (or point me towards) the method for converting from mapunits to
> pixels for on-screen rendering?
>
> Thanks
>
> 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

Re: [QGIS-Developer] can't load plugins with QGIS custom widgets in windows

2017-09-29 Thread Enrico Ferreguti
Hi Loïc,
I have no luck with your fix. I'm getting the same exception.
The uic module doesn't recognize the property
QgsMapLayerProxyModel::RasterLayer
of the custom widget as valid. I tried to remove the entire property
section from .ui file and set it programmatically during the dialog
__init__ with
self.RasterLayer.setFilters(QgsMapLayerProxyModel.RasterLayer)
after setupUi but the widget does not load available layers...

Thanks anyway.
Enrico Ferreguti

2017-09-28 22:12 GMT+02:00 L.Bartoletti :

> Hi,
>
> I have found the same problem on FreeBSD if custom widgets are not
> installed.
>
> My solution at least on FreeBSD and Windows (osgeo4w) use your .ui (it's
> only a XML), search this:
>
>   
>YOUR CUSTOM WIDGET
>YOUR CUSTOM WIDGET
>YOUR CUSTOM WIDGET.h
>   
>
> and change the line containing a C++ header:
>
> YOUR CUSTOM WIDGET.h
>
> by :
>
> qgis.gui
>
>
> Regards.
>
> Loïc
>
> On 28.09.2017 16:54, Enrico Ferreguti wrote:
>
> I'm getting the following exception:
>
> AttributeError: unknown enum QgsMapLayerProxyModel::RasterLayer
>>
>
> loading a plugin with QGIS custom QT designer widget in windows standalone
> QGIS 2.14 ltr and 2.18.
>
> The exception doesn't affect linux and osgeo4win installations.
>
> I found that this was a 2015 reported issue: https://issues.qgis.org/
> issues/13428
> and I solve it as suggested in https://lists.osgeo.org/
> pipermail/qgis-developer/2015-September/039196.html simply copying a file
> in the right place.
>
> The fix is apparently easy and considering that Qt custom widgets are
> widely used I can't figure why this old issue isn't yet solved.
>
> Is it a qgis or an osgeo4win issue? Should I reopen a ticket?
>
> Thanks. Enrico Ferreguti.
>
>
>
>
>
> ___
> QGIS-Developer mailing listqgis-develo...@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] can't load plugins with QGIS custom widgets in windows

2017-09-28 Thread Enrico Ferreguti
I'm getting the following exception:

AttributeError: unknown enum QgsMapLayerProxyModel::RasterLayer
>

loading a plugin with QGIS custom QT designer widget in windows standalone
QGIS 2.14 ltr and 2.18.

The exception doesn't affect linux and osgeo4win installations.

I found that this was a 2015 reported issue:
https://issues.qgis.org/issues/13428
and I solve it as suggested in
https://lists.osgeo.org/pipermail/qgis-developer/2015-September/039196.html
simply copying a file in the right place.

The fix is apparently easy and considering that Qt custom widgets are
widely used I can't figure why this old issue isn't yet solved.

Is it a qgis or an osgeo4win issue? Should I reopen a ticket?

Thanks. Enrico Ferreguti.
___
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-psc] QGIS Grant: Expand unit test coverage for geometry classes

2017-09-25 Thread Enrico Ferreguti
Beyond the report on an accomplished task, I see the joy and the passion on
making something good. I can't explain how much your efforts on taking care
of QGIS make my everyday work better.

Thank you very much.

Il 26/set/2017 06:40, "Tim Sutton"  ha scritto:

> Hi Nyall
>
>
> Thank you so much for doing this work and for your report back! I hope
> this is just one of many times that we will be able to fund our community
> members to make substantial improvements to the quality of QGIS!
>
> Regards
>
> Tim
>
> > On 26 Sep 2017, at 9:31 AM, Nyall Dawson  wrote:
> >
> > Hi PSC,
> >
> > Just reporting in that with PR #5254 [1], the grant work has now been
> > completed and we're sitting as close as possible to 100% unit test
> > coverage for the geometry primitive classes (i.e. the classes which
> > represent the raw geometry types, such as points/multipoints/circular
> > strings/ etc).
> >
> > While the purpose of this work wasn't directly to fix bugs, writing
> > the tests has allowed me to identify and fix dozens of issues in these
> > geometry classes. The fixes range from pedantic (e.g. crashes when
> > requesting parts of the geometry with invalid indexes such as negative
> > numbers), through to severe (a geometry corruption caused after
> > converting a MultiLineString to GML which would definitely cause QGIS
> > server to crash on certain requests).
> >
> > Just to ensure that there's no misconceptions here: having 100% test
> > coverage doesn't mean the geometry classes are now bug free - rather
> > it means that the current logic is protected so that future features,
> > fixes, or optimisations will not cause regressions from the current
> > behaviour.
> >
> > I'd like the thank the PSC once again for accepting this funding
> > request (and the sponsors who made it possible!). In my opinion this
> > was a crucial piece of work required to help make future QGIS releases
> > much less likely to suffer serious regressions, so I'm very thankful
> > that you allowed it to happen!
> >
> > Regards,
> > Nyall
> >
> >
> > [1] https://github.com/qgis/QGIS/pull/5254
> > ___
> > Qgis-psc mailing list
> > qgis-...@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/qgis-psc
>
> ___
> 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] Plugins licence

2017-05-03 Thread Enrico Ferreguti
Nathan, thanks for your kind explanation. I go like that.

Regards.

2017-05-03 14:25 GMT+02:00 Nathan Woodrow :

> Hey,
>
> Yes, that is fine.  You can use Apache libraries in a GPL applications (I
> think QGIS already does) just not the other way around e.g you can't make
> an Apache application that includes GPL code.
>
> - Nathan
>
> On Wed, May 3, 2017 at 10:17 PM, Enrico Ferreguti 
> wrote:
>
>> Hi all QGIS developers,
>>
>> I'm submitting a new plugin: https://github.com/enricofer/gdrive_provider
>> that makes use of external libraries published under Apache v2 licence
>>
>> As far as I understand
>> <https://www.apache.org/licenses/GPL-compatibility.html>
>>
>> The Free Software Foundation <http://www.fsf.org/> considers
>>> <http://www.fsf.org/licensing/licenses/#apache2> the Apache License,
>>> Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> to be a free
>>> software <http://www.gnu.org/philosophy/free-sw.html> license,
>>> compatible
>>> <http://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses>
>>> with version 3 of the GPL
>>> <http://www.fsf.org/licensing/licenses/gpl.html>. The Software Freedom
>>> Law Center <http://www.softwarefreedom.org/> provides practical advice
>>> <http://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html>
>>> for developers about including permissively licensed source.
>>> Apache 2 software can therefore be included in GPLv3 projects, because
>>> the GPLv3 license accepts our software into GPLv3 works.
>>>
>>
>> So I should release the plugin with GPLv3 that I understand is compatible
>> with with plugin licencing policy ("GPLv2 or greater")
>> <http://blog.qgis.org/2016/05/29/licensing-requirements-for-qgis-plugins/>
>>
>> The plugin is provided with a checkbox that makes aware the user about
>> the Google Drive Terms of Service.
>>
>> Do You think that GPLv3 licensing and Google Drive Terms of Service
>> disclaimer suffits?
>>
>> Regards.
>> Enrico Ferreguti
>>
>>
>> ___
>> 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] Plugins licence

2017-05-03 Thread Enrico Ferreguti
Hi all QGIS developers,

I'm submitting a new plugin: https://github.com/enricofer/gdrive_provider
that makes use of external libraries published under Apache v2 licence

As far as I understand
<https://www.apache.org/licenses/GPL-compatibility.html>

The Free Software Foundation <http://www.fsf.org/> considers
> <http://www.fsf.org/licensing/licenses/#apache2> the Apache License,
> Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> to be a free
> software <http://www.gnu.org/philosophy/free-sw.html> license, compatible
> <http://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses>
> with version 3 of the GPL <http://www.fsf.org/licensing/licenses/gpl.html>.
> The Software Freedom Law Center <http://www.softwarefreedom.org/>
> provides practical advice
> <http://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html>
> for developers about including permissively licensed source.
> Apache 2 software can therefore be included in GPLv3 projects, because the
> GPLv3 license accepts our software into GPLv3 works.
>

So I should release the plugin with GPLv3 that I understand is compatible
with with plugin licencing policy ("GPLv2 or greater")
<http://blog.qgis.org/2016/05/29/licensing-requirements-for-qgis-plugins/>

The plugin is provided with a checkbox that makes aware the user about the
Google Drive Terms of Service.

Do You think that GPLv3 licensing and Google Drive Terms of Service
disclaimer suffits?

Regards.
Enrico Ferreguti
___
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 remote control API

2017-03-14 Thread Enrico Ferreguti
I never tested, but I see there is https://github.com/3liz/qgis-wps4server
a server-plugin to perform remote geoprocessing jobs.
Anyway I think this could be very handy for remote qgis-server
administration.

Regards.
Enrico

2017-03-14 21:48 GMT+01:00 Bernd Vogelgesang :

> Hi Barry,
> sounds great for me! (simple users opinion)
>
> Cheers
> Bernd
>
>
> Am 14.03.2017, 18:51 Uhr, schrieb Barry Rowlingson <
> b.rowling...@lancaster.ac.uk>:
>
> I'm doing some spatial analysis with R. I've read in a shapefile:
>>
>>  > data = shapefile("input.shp")
>>
>> then I've done some analysis:
>>
>>  > data$stats = something(data)
>>
>> Now I want to map it. I can use R's plot function, but that's not
>> interactive, hard to add background layers and style, no labelling,
>> cartography etc. I could use leaflet, but that requires JS code to get
>> anything custom. So I write a shapefile:
>>
>>  > shapefile(data, "output.shp")
>>
>> Start QGIS, load the shapefile, realise all my column names have been
>> mashed to 12 characters (or whatever), style it. Go "huh" and think.
>> Back to R. Repeat.
>>
>> With a QGIS remote control API I could do something like:
>>
>>  > addQgisLayer(data)
>>
>> and *bang* there it is in Qgis. With data flow in that direction, Qgis
>> is a cartographic display for R's spatial data. But data flow could go
>> the other way - so that Qgis layers could be easily read back into R
>> spatial data.
>>
>>  In theory you could wrap the entire Python API to the remote control
>> API. At that point the use cases are almost like any Python QGIS use
>> cases, except expanded to any language or system that can send a web
>> request. R, Matlab,  JS, perl, ruby.. even Python if you want to be
>> slightly perverse and can't run from the python interpreter.
>>
>> Barry
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Mar 14, 2017 at 3:35 PM, Tom Chadwin 
>> wrote:
>>
>>> What are some example use cases?
>>>
>>> Tom
>>>
>>>
>>>
>>> -
>>> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
>>> --
>>> View this message in context: http://osgeo-org.1560.x6.nabbl
>>> e.com/QGIS-remote-control-API-tp5312091p5312279.html
>>> Sent from the QGIS - Developer mailing list archive at Nabble.com.
>>> ___
>>> 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
>>
>
>
> --
> Bernd Vogelgesang
> Siedlerstraße 2
> 91083 Baiersdorf/Igelsdorf
> Tel: 09133-825374
>
> ___
> 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] QT5 signals/slots in QGIS3

2017-03-03 Thread Enrico Ferreguti
Thanks very much Matthias. I will open a Ticket as a build issue.

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] QT5 signals/slots in QGIS3

2017-03-02 Thread Enrico Ferreguti
Hi, all

I don't see answer about this. Should I open a issue ticket?

Best Regards

2017-03-01 10:35 GMT+01:00 Enrico Ferreguti :

> I am migrating a plugin to QGIS3 and under Windows with the latest
> qgis-dev release(build 1182816) I get an error connecting to well know
> QgsVectorLayer signals:
>
> vectorlayer.committedAttributesAdded.connect(self.attributes_added)
> or
> vectorlayer.committedFeaturesAdded.connect(self.attributes_added)
>
> give:
>
> TypeError: C++ type 'QList' is not supported as a signal argument type
>
> I give a look to PyQT5 signal/slot model and I haven't found something
> different from PyQT4 so don't understand if this is a bug or a new QGIS3
> signal behaviour...
>
> Is there somewhere a raw class/methods changes list from QGIS2 to QGIS3?
>
> Best Regards and thanks to all for the wonderful work!
>
___
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] QT5 signals/slots in QGIS3

2017-03-01 Thread Enrico Ferreguti
I am migrating a plugin to QGIS3 and under Windows with the latest qgis-dev
release(build 1182816) I get an error connecting to well know
QgsVectorLayer signals:

vectorlayer.committedAttributesAdded.connect(self.attributes_added)
or
vectorlayer.committedFeaturesAdded.connect(self.attributes_added)

give:

TypeError: C++ type 'QList' is not supported as a signal argument type

I give a look to PyQT5 signal/slot model and I haven't found something
different from PyQT4 so don't understand if this is a bug or a new QGIS3
signal behaviour...

Is there somewhere a raw class/methods changes list from QGIS2 to QGIS3?

Best Regards and thanks to all for the wonderful work!
___
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] Plugin [1102] AequilibraE approval notification.

2016-12-19 Thread Enrico Ferreguti
I wasn't aware to have an executable between my plugin sources.
In my case I have just removed it from the pyxform library as QgisODK
plugin does not require XForm validation and resubmit it to the repository.
But I think that if a library has an open source origin, a corresponding
licence, and is shared with a community should be normally accepted in a
qgis plugin bundle even if containing compiled binaries. We have to think
that gis is computationally intensive and a software like QGis is suited to
integrate different tools.
So I think that is not so useful for QGis users to strictly fulfil the "no
executable" policy. Protecting in this way QGis global stability we could
lose many opportunities, leaving them to proprietary systems much more
uninhibited.

Best Regards
Enrico Ferreguti


2016-12-19 18:44 GMT+01:00 Pedro Venâncio :

> Hi,
>
>
>
>> As I said, I'm in favour of a source-only policy, there are easy
>> technical solutions to download binaries after installation if a plugin
>> requires them and hosting on our plugin site binary blobs that we cannot
>> inspect doesn't look a good idea to me.
>>
>>
>>
> Crayfish plugin uses this approach http://www.lutraconsulting.co.
> uk/products/crayfish/wiki
>
> It download the binary libraries when installing the plugin from QGIS
> repository.
>
> Best regards,
> Pedro
>
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] GeoJSON issue

2016-01-23 Thread Enrico Ferreguti
I'm having a weird issue loading geojson on Qgis 2.12.3 under Ubuntu 14.04
LTS
Features are loaded with coordinates truncated as if they were integer
number. It's a big problem with WGS84 projection because a point like
E11.3455668 N45.4566996 is inserted as E11 N45
The issue appears even loading geojson from URL so it can be easily
reproduced:
For example inserting GeoJSON from with:
http://api.mapillary.com/v1/im/search?min-lat=45.4236627857&max-lat=45.4276518411&min-lon=11.8448906543&max-lon=11.8637224647&max-results=200&geojson=true
all features collapsed to E11 N45
The problem does not reside on source because coordinates in the provided
GeJSON are right.
The strange is that other testing systems do not appear affected ( qgis
2.12.2 under windows 32bit and qgis 2.10 under LUbuntu 14.04 LTS).

Is there Anyone who confims the issue? Should I open a ticket?

Regards.
Enrico Ferreguti
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Enrico Ferreguti
...sorry, the attachment.

2016-01-21 17:36 GMT+01:00 Enrico Ferreguti :

> Does it happens in all platforms?
> I have a problem like this under windows 32bit but not under Ubuntu or
> other external browser.
> Attached there is a simple html that throws exceptions loading external
> libraries (angular.js !?) under webkit on windows 32bit, but loads fine on
> other platforms.
>
> Regards. Enrico Ferreguti
>
> 2016-01-21 16:59 GMT+01:00 Tom Chadwin :
>
>> Thanks, Matthias - that should be just what I need. First attempts to
>> implement it result in a minidump, but I'll keep trying.
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541p5246553.html
>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
Title: Title





  
  

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

Re: [Qgis-developer] JS error in QtWebKit.QWebView - no error in IE11 or Chrome/Win

2016-01-21 Thread Enrico Ferreguti
Does it happens in all platforms?
I have a problem like this under windows 32bit but not under Ubuntu or
other external browser.
Attached there is a simple html that throws exceptions loading external
libraries (angular.js !?) under webkit on windows 32bit, but loads fine on
other platforms.

Regards. Enrico Ferreguti

2016-01-21 16:59 GMT+01:00 Tom Chadwin :

> Thanks, Matthias - that should be just what I need. First attempts to
> implement it result in a minidump, but I'll keep trying.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/JS-error-in-QtWebKit-QWebView-no-error-in-IE11-or-Chrome-Win-tp5246541p5246553.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Fwd: QgsExpression class can't evaluate not registered Layers

2015-12-03 Thread Enrico Ferreguti
Hi Nathan,

you can have a look to a the new version of changeDataSource plugin I was
releasing: https://github.com/enricofer/changeDataSource
Once installed, clicking on toolbutton [image: Immagine incorporata 3] is
possible to change the datasources of loaded layers
Expressions are used to massively replace datasources strings using a dummy
memory layer build up on the fly (called layerTable) that contains loaded
layers parameters.
This layer appears in legend when dialog is shown to allow expression
performing, because if layerTable layer is not charged in Registry its
fields are not listed in Expression Dialog under "Fields and Values"

[image: Immagine incorporata 4]

Expression is evaluated at row 541 in changeDataSource.py

Thanks.


2015-12-03 13:16 GMT+01:00 Nathan Woodrow :

> Hi,
>
> Can you paste and example?
>
> On Thu, 3 Dec 2015 10:10 pm Enrico Ferreguti  wrote:
>
>> Hi, I noticed that QgsExpression class can't evaluate layers that are not
>> loaded in QgsMapLayerRegistry.
>> This is a bit annoying because expressions could be evaluated against a
>> temporary datasource or external data without necessary show it to the
>> user. (an alternative question could be: Is it possible to hide a legend
>> item?)
>> Should I submit a feature request for this?
>>
>> Regards
>> Enrico Ferreguti.
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] QgsExpression class can't evaluate not registered Layers

2015-12-03 Thread Enrico Ferreguti
Hi, I noticed that QgsExpression class can't evaluate layers that are not
loaded in QgsMapLayerRegistry.
This is a bit annoying because expressions could be evaluated against a
temporary datasource or external data without necessary show it to the
user. (an alternative question could be: Is it possible to hide a legend
item?)
Should I submit a feature request for this?

Regards
Enrico Ferreguti.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] R: QgsBrowserDockWidget

2015-11-06 Thread Enrico Ferreguti
I didn't think it was so simple.
You take a QTreeView For example from QDesigner then you assign QgsTreeModel as 
view model, you add some trivial interaction logic and you get Your personal 
qgis browser.
That's all. Great Qgis!

Regards.
Enrico Ferreguti.


- Messaggio originale -
Da: "Luigi Pirelli" 
Inviato: ‎03/‎11/‎2015 18:11
A: "Enrico Ferreguti" 
Cc: "qgis-developer" 
Oggetto: Re: [Qgis-developer] QgsBrowserDockWidget

Hi Enrico,

I found other base classes in app that can be simply ported to library
without or with not so much code rewrite (e.g the identify widget).
I don't know about this class (seems there is only a qgisapp reference
using it's singleton), but usually is due the fact that it is a work
and developer would have time to do this.

in my opinion, feel free to do pull request... and hopefully adding test ;)

regards

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
******


On 3 November 2015 at 15:49, Enrico Ferreguti  wrote:
> Hi all.
>
> I notice that QgsBrowserDockWidget class is not included in python bindings.
> It would be great to have access to browser panel items from plugins.
> Is it intentional or an issue?
>
> Regards.
> Enrico Ferreguti
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] R: QgsBrowserDockWidget

2015-11-03 Thread Enrico Ferreguti
Hi Luigi, 
Contributing to core development is for now far from my skills. I was looking 
for a convenient way to browse available datasouces without to deal with qt gui 
engineering that is sometimes makes feel like reinventing the wheel. Thanks 
anyway.

Regards
Enrico Ferreguti

- Messaggio originale -
Da: "Luigi Pirelli" 
Inviato: ‎03/‎11/‎2015 18:11
A: "Enrico Ferreguti" 
Cc: "qgis-developer" 
Oggetto: Re: [Qgis-developer] QgsBrowserDockWidget

Hi Enrico,

I found other base classes in app that can be simply ported to library
without or with not so much code rewrite (e.g the identify widget).
I don't know about this class (seems there is only a qgisapp reference
using it's singleton), but usually is due the fact that it is a work
and developer would have time to do this.

in my opinion, feel free to do pull request... and hopefully adding test ;)

regards

Luigi Pirelli

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Elance: https://www.elance.com/s/edit/luigipirelli/
* GitHub: https://github.com/luipir
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
******


On 3 November 2015 at 15:49, Enrico Ferreguti  wrote:
> Hi all.
>
> I notice that QgsBrowserDockWidget class is not included in python bindings.
> It would be great to have access to browser panel items from plugins.
> Is it intentional or an issue?
>
> Regards.
> Enrico Ferreguti
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] QgsBrowserDockWidget

2015-11-03 Thread Enrico Ferreguti
Hi all.

I notice that QgsBrowserDockWidget class is not included in python bindings.
It would be great to have access to browser panel items from plugins.
Is it intentional or an issue?

Regards.
Enrico Ferreguti
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] row conditional formatting does not update

2015-10-27 Thread Enrico Ferreguti
Thanks for conditional formatting! It's a really great new feature!
But I noticed that with row formatting enable, cell aspect does not update
as the value changes. You have to re-apply rules to update the table.
Is it the normal behaviour or an Issue?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] OpenlayersPlugin QGIS

2015-10-01 Thread Enrico Ferreguti
starting by saying that I never experienced problems with Openlayers plugin
behind proxy, anyway I resolved all my proxy issues (user, passwords,
subnet exclusions ...) using Qgis own network manager instead of creating a
new one so you can try to remove the lines from 48 to 51 of
openlayers_layer.py file and replace the row 52:
self.setNetworkAccessManager(self.__manager)
with the following:
self.setNetworkAccessManager(QgsNetworkAccessManager.instance())
I just try and it goes but I don't know if it resolvs your issue.

Regards
Enrico Ferreguti



2015-10-01 12:32 GMT+02:00 Marica Landini :

> Sorry,
> I have this problem with 2.8 and 2.10.1 QGIS version (64bit)
> I have not tried other versions
> and I use Win7.
>
> I really appreciate any help you can provide.
> Marica
>
>
> On Thu, Oct 1, 2015 at 12:24 PM, Marica Landini 
> wrote:
>
>> Hi,
>> I need to use OpenlayersPlugin QGIS behind proxy network.
>> But I need to use defaultproxy settings configuration.
>>
>> QGIS works fine with this defaultproxy settings
>> (also connection to wms/etc...
>> reading plugin list and download it).
>>
>> But (with the defaultproxy settings) I can not work with OpenlayersPlugin
>> QGIS
>> that return:
>> TypeError: unable to convert a QVariant of type 10 to a QMetaType of type
>> 2
>>
>> I can instead use this plugin with http proxy and setting manually the
>> configuration (Settings->Options->Network)
>>
>> I have tryed to modify OpenlayersPlugin tool_network.py
>> commenting setHostName/setPort/setUser/setPassword
>> and using
>>
>> QNetworkProxy.setApplicationProxy(QNetworkProxy(QNetworkProxy.DefaultProxy))
>> obvious I do not get TypeError,
>> but the plugin not work properly (e.g. I do not get OSM layer).
>>
>> How can I resolve this problem?
>> There is another plugin that works with default (machine) proxy settings?
>> (apologies for my english)...
>>
>> Cheers,
>> Marica
>>
>> --
>> Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg
>> Preferisco formati liberi.
>> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
>> I prefer free formats.
>> http://it.wikipedia.org/wiki/Formato_aperto
>> http://en.wikipedia.org/wiki/Open_format
>>
>> Marica Landini
>>
>
>
>
> --
> Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg
> Preferisco formati liberi.
> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
> I prefer free formats.
> http://it.wikipedia.org/wiki/Formato_aperto
> http://en.wikipedia.org/wiki/Open_format
>
> Marica Landini
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] R: [Qgis-user] Re : view only current feature inatlas maps

2015-09-11 Thread Enrico Ferreguti
I agree with Michaël. I do not mean to modify styles from composer. Checking 
the option in composer should not influence map styles. It should only control 
feature visibility on atlas map item. 

Enrico.


Da: kimaidou
Inviato: venerdì 11 settembre 2015 14:04
A: Junior
Cc: Enrico Ferreguti;qgis-developer;qgis-u...@lists.osgeo.org
Oggetto: Re: [Qgis-user] Re : [Qgis-developer] view only current feature 
inatlas maps


Another proposal : in the gui for rule base rendering, we could add a new 
column in the rules tables, name "Activate only for atlas", which will allow 
the user to toggle each rule. If the checkbox is checked, the rule is used only 
in atlas.
This way the user can tune more easily, in the context of QGIS vector layer 
properties. 
I do not like having checkbox in the composer, since the composer is not always 
opened and visible.
Michaël

2015-09-11 12:16 GMT+02:00 Junior :
Hi,
i don't know if there is a work around but a big +1 for your UI proposal.

Envoyé depuis mon HTC

- Reply message -----
De : "Enrico Ferreguti" 
Pour : "qgis-developer" , 
"qgis-u...@lists.osgeo.org" 
Objet : [Qgis-developer] view only current feature in atlas maps
Date : ven., sept. 11, 2015 10:49

Hi list,
when I need to isolate the current atlas feature in map views I currently 
enable the rule based feature style and I set the rule to "$atlasfeatureid = 
$id" following this tutorial: 
http://nathanw.net/2013/12/02/waiting-for-qgis-2-2-highlighting-current-atlas-feature/
I'm wondering if there is an easier method, accessible for the common gis user, 
to do this avoiding expressions and complex styling methods, and if it's 
possible to control this behaviour directly from "controlled by altas" slot in 
map item properties tab as from the attached sample image.
Regards
Enrico Ferreguti

___
Qgis-user mailing list
qgis-u...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] view only current feature in atlas maps

2015-09-11 Thread Enrico Ferreguti
Hi list,

when I need to isolate the current atlas feature in map views I currently
enable the rule based feature style and I set the rule to "$atlasfeatureid
= $id" following this tutorial:
http://nathanw.net/2013/12/02/waiting-for-qgis-2-2-highlighting-current-atlas-feature/
I'm wondering if there is an easier method, accessible for the common gis
user, to do this avoiding expressions and complex styling methods, and if
it's possible to control this behaviour directly from "controlled by altas"
slot in map item properties tab as from the attached sample image.

Regards
Enrico Ferreguti
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Change the query of a query layer (postgis)

2015-06-17 Thread Enrico Ferreguti
Hi Olivier,
datasource changing is a feature that I really miss and wait from longtime.
Every Qgis new release I checked without success if the properties
datasource string is editable. I recently found the hack you report (
https://geogear.wordpress.som/2015/05/15/changing-qgis-layer-datasource-with-python/)
that I verify to be working up to Wien 2.8.2. Till 2.9 the code crash qgis.
Reading your post I realized that a new QgsVectorLayer method has appeared:
setDatasource. Wow! Perhaps the waiting is going to be over

Regards,

Enrico Ferreguti.

2015-06-17 16:45 GMT+02:00 Olivier Dalang :

> Hi Enrico,
>
> Hmm I didn't think of that, thanks for the idea ! But I can't use it since
> I may have several user at once.
>
> Best,
>
> Olivier
>
> 2015-06-17 16:03 GMT+02:00 enricofer :
>
>> Hi Olivier,
>> In your case, I think that the best way to do this is to create a view
>> from the sql query and load it as layer, than, when qslider changes, change
>> the view definition with "ALTER VIEW"  and reload the layer.
>>
>> Regards,
>>
>> Enrico Ferreguti
>>
>> Il giorno 17/giu/2015, alle ore 14:29, olivier [via OSGeo.org] <[hidden
>> email] <http:///user/SendEmail.jtp?type=node&node=5211452&i=0>> ha
>> scritto:
>>
>> Hi !
>>
>> Is it possible to change the query of a postgis query layer in python
>> without reloading the project ?
>>
>> The goal is to have a parameter in my query that I'd be able to change
>> with a slider.
>>
>> I tried the QgsVectorLayer.setDataSource() method, but it makes QGis
>> crash.
>> I tried the workaround described here (
>> http://gis.stackexchange.com/questions/62610/changing-data-source-of-layer-in-qgis
>> ), writing and reading the XML file, but it also makes QGis crash.
>>
>> If not possible, is there a serious limitation behind this, or is the
>> feature just missing/bugged ?
>>
>> Example :
>>
>> I have this query loaded as a layer:
>>
>> "SELECT id, name, ST_Buffer(geom,25) as geom FROM my_table"
>>
>> But I want to be able to change the hardcoded buffer from 25 to some
>> value from a QSlider.
>>
>> Thanks!
>>
>> Olivier
>>
>> ___
>> Qgis-developer mailing list
>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5211424&i=0>
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>> --
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://osgeo-org.1560.x6.nabble.com/Change-the-query-of-a-query-layer-postgis-tp5211424.html
>>  To unsubscribe from Quantum GIS - Developer, click here.
>> NAML
>> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>>
>> --
>> View this message in context: Re: Change the query of a query layer
>> (postgis)
>> <http://osgeo-org.1560.x6.nabble.com/Change-the-query-of-a-query-layer-postgis-tp5211424p5211452.html>
>> Sent from the Quantum GIS - Developer mailing list archive
>> <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-Developer-f4099106.html>
>> at Nabble.com.
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer