Re: [QGIS-Developer] QgsLayout.itemById returns wrong object

2018-10-21 Thread Nyall Dawson
On Tue, 23 Jan 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?

Coming back to this older discussion -- last week a workaround was
pushed to 3.3 master to try and avoid this issue. I'd love for
widespread testing of the currently nightlies to confirm that the
issue is now fixed (or not)! If anyone is still hitting this issue,
please report here the build number and what method you are calling to
retrieve a layout item.

Fingers crossed :) would be great to have this solved for 3.4!
Nyall


>
> 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

Re: [QGIS-Developer] QGIS WCS is requesting FULL dataset?

2018-10-21 Thread Andrea Aime
On Sat, Oct 20, 2018 at 9:58 PM Jonathan Moules <
jonathan-li...@lightpear.com> wrote:

> Hi Lists,
>
> I'm cross posting this to GeoServer-Users over from QGIS-Dev as the
> current QGIS code seems to be trying to work around a GeoServer quirk
> based on Nyall's code-comment snippet.
>
> Is there something different QGIS can do to work around the stated issue
> in a better way given I guess requesting a 10x10 Coverage via WCS isn't
> going to be doing the host server any favours?
>

The behavior described in the comments might be actually happening...
sorry, no time to
look into it right now, we have the JDK11 code sprint incoming and all
spare time is going there.
I checked the ticket tracker, found no bug report about it.
I would be useful if someone could verify, maybe using a built-in demo
dataset.

Fixing it right now might help, but it will take many years before older
versions of GeoServer
out there are upgraded, we get a surprisingly high number  people running 5
years old versions of GeoServer
asking questions on the list just saying, even if one rushes to fix it
now, that code in QGIS might
not be lifted anytime soon (but it could be made configurable I guess?).

Also, in GeoServer WCS 1.0 normally uses overviews when available, but of
course the layer
might not have them, or be a mosaic of many files. That said, the WCS being
queried is not a GeoServer,
not sure how it might work.

Finally...  any chance QGIS could be using WCS 2.0 instead? The 1.0 and 1.1
protocols are ancient and pretty clunky,
WCS 2.0 is so much better from all points of view.
In fact, I believe that WCS 1.0 and 1.1 have received little to no
significant maintenance
in GeoServer for the longest time, I'd venture to guess very few care about
them.
WCS 2.0 is instead receiving interest and more care, likely because it has
been chosen by INSPIRE
for raster download services.

Cheers
Andrea

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
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] Anyone have ci setup for a QGIS plugin on GitLab?

2018-10-21 Thread Nyall Dawson
Hey all,

I'm wondering if anyone's aware of any QGIS plugins which are hosted
on gitlab which have a CI workflow setup.

There's quite a number of plugins which have this on github/Travis
infrastructure (using the available QGIS docker containers) which are
easy to use as a template, but I'm not able to find any similar
existing setups for gitlab CI.

Can anyone point me toward any?

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