Re: [Qgis-user] Status bar flickering and can't make edits
And when I save the kml as shapefiles and edit, everything works fine. On Thu., 27 Oct. 2016, 10:36 Simon Muirhead,wrote: > Got two very simple vector layers open (kml) with Google sattelitle > underplayed. Open the attribute table and click edit and the status bar > starts flickering and I can't make any text edits in the table. Bug? OsX > 10.12 qgis 2.12.0 > -- > > Regards, Simon Muirhead > Written from my Nexus 6P so don't expect Tolstoy. > -- Regards, Simon Muirhead Written from my Nexus 6P so don't expect Tolstoy. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Status bar flickering and can't make edits
Got two very simple vector layers open (kml) with Google sattelitle underplayed. Open the attribute table and click edit and the status bar starts flickering and I can't make any text edits in the table. Bug? OsX 10.12 qgis 2.12.0 -- Regards, Simon Muirhead Written from my Nexus 6P so don't expect Tolstoy. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
Am 27.10.2016, 00:12 Uhr, schrieb Nyall Dawson: On 27 Oct 2016 7:18 AM, "Bernd Vogelgesang" wrote: Am 26.10.2016, 22:57 Uhr, schrieb Nyall Dawson : On 27 Oct 2016 6:51 AM, "Bernd Vogelgesang" wrote: > > Arghh, sorry for the noise! > > When hovering over the data-driven input button not so hectically, I discovered the explanation that it expects a 0 or 1. > So > case when> 'mypath'|| @atlas_pagename ||'_1.jpeg' IS NULL > THEN > 0 > END > > did the trick! This is odd... A null picture expression should be rendered empty, not as the red cross. The red cross is intended only as an >obnoxious, obvious indicator that a picture path was set but couldn't be found. The expression above would only result in 0 if @atlas_pagename is null. Nyall Well, yeah, I was too early to announce the solution. In fact this did not render the missing image, but also not the one which is >there :( case when '/media/Daten/IVL_Projekte/2016024_Feldhamster_NEA/2_EINGANG_MA/Bernd/QGIS/Fotos/'|| @atlas_pagename ||'_1.jpeg' IS NULL THEN 1 ELSE 0 END This should do it. But now I am again where is started: When the image is there, it is rendered, when not, the red cross is >exported as well. That's because that expression is just testing whether the concatenated string itself is null, not whether the corresponding file >actually exists. My advice: make a small python custom function 'file_exists' which checks for the existence of a file. Then change your picture path >expression to something like: Case when file_exists( 'media/' ... Etc) then 'media/' ... Else null end That should get you the result you are after. Nyall Hi Nyall, unfortunately, I have still no clue of python. I now added blank images for the missing ones :( I think I will at least file a bug report for the red cross not being rendered. Thanx for your attention Bernd :( Bernd > > Just amazing!!!> > Thanx > Bernd > > Am 26.10.2016, 22:19 Uhr, schrieb DelazJ : > >> Hi, >> what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a >case when expression)? >> http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode >> >> HTH, >> Harrissou >> >> 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : >>> >>> Hi, >>> I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these >plots automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos >named e.g. 1_1.jpeg, 1_2.jpeg. >>> >>> This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these >missing images are marked with a big red cross. >>> Unfortunately, these red crosses are also exported, which looks quite shitty. >>> >>> Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? >>> >>> The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red >crosses. >>> >>> Thanx >>> Bernd >>> >>> -->>> Bernd Vogelgesang >>> Siedlerstraße 2 >>> 91083 Baiersdorf/Igelsdorf >>> Tel: 09133-825374 >>> ___ >>> Qgis-user mailing list >>> Qgis-user@lists.osgeo.org >>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> > > > > -- > Bernd Vogelgesang > Siedlerstraße 2 > 91083 Baiersdorf/Igelsdorf > Tel: 09133-825374 > > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374 -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
On 27 Oct 2016 7:18 AM, "Bernd Vogelgesang"wrote: > > Am 26.10.2016, 22:57 Uhr, schrieb Nyall Dawson : > >> On 27 Oct 2016 6:51 AM, "Bernd Vogelgesang" wrote: >> > >> > Arghh, sorry for the noise! >> > >> > When hovering over the data-driven input button not so hectically, I discovered the explanation that it expects a 0 or 1. >> > So >> > case when >> > 'mypath'|| @atlas_pagename ||'_1.jpeg' IS NULL >> > THEN >> > 0 >> > END >> > >> > did the trick! >> >> This is odd... A null picture expression should be rendered empty, not as the red cross. The red cross is intended only as an obnoxious, obvious indicator that a picture path was set but couldn't be found. >> >> The expression above would only result in 0 if @atlas_pagename is null. >> >> Nyall > > > Well, yeah, I was too early to announce the solution. In fact this did not render the missing image, but also not the one which is there :( > > case when > '/media/Daten/IVL_Projekte/2016024_Feldhamster_NEA/2_EINGANG_MA/Bernd/QGIS/Fotos/'|| @atlas_pagename ||'_1.jpeg' IS NULL > THEN > 1 > ELSE > 0 > END > > This should do it. But now I am again where is started: When the image is there, it is rendered, when not, the red cross is exported as well. That's because that expression is just testing whether the concatenated string itself is null, not whether the corresponding file actually exists. My advice: make a small python custom function 'file_exists' which checks for the existence of a file. Then change your picture path expression to something like: Case when file_exists( 'media/' ... Etc) then 'media/' ... Else null end That should get you the result you are after. Nyall > > :( > > Bernd > >> > >> > Just amazing!!! >> > >> > Thanx >> > Bernd >> > >> > Am 26.10.2016, 22:19 Uhr, schrieb DelazJ : >> > >> >> Hi, >> >> what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a case when expression)? >> >> http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode >> >> >> >> HTH, >> >> Harrissou >> >> >> >> 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : >> >>> >> >>> Hi, >> >>> I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these plots automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos named e.g. 1_1.jpeg, 1_2.jpeg. >> >>> >> >>> This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these missing images are marked with a big red cross. >> >>> Unfortunately, these red crosses are also exported, which looks quite shitty. >> >>> >> >>> Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? >> >>> >> >>> The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red crosses. >> >>> >> >>> Thanx >> >>> Bernd >> >>> >> >>> -- >> >>> Bernd Vogelgesang >> >>> Siedlerstraße 2 >> >>> 91083 Baiersdorf/Igelsdorf >> >>> Tel: 09133-825374 >> >>> ___ >> >>> Qgis-user mailing list >> >>> Qgis-user@lists.osgeo.org >> >>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> >> >> >> > >> > >> > >> > -- >> > Bernd Vogelgesang >> > Siedlerstraße 2 >> > 91083 Baiersdorf/Igelsdorf >> > Tel: 09133-825374 >> > >> > ___ >> > Qgis-user mailing list >> > Qgis-user@lists.osgeo.org >> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user > > > > > -- > Bernd Vogelgesang > Siedlerstraße 2 > 91083 Baiersdorf/Igelsdorf > Tel: 09133-825374 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Slack Channel
I noticed a QGIS Slack [1] channel. Does anyone know how to get an invite? Thanks Clifford [1] qgis.slack.com -- @osm_seattle osm_seattle.snowandsnow.us OpenStreetMap: Maps with a human touch ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
Am 26.10.2016, 22:57 Uhr, schrieb Nyall Dawson: On 27 Oct 2016 6:51 AM, "Bernd Vogelgesang" wrote: Arghh, sorry for the noise! When hovering over the data-driven input button not so hectically, I discovered the explanation that it expects a 0 or 1. So case when'mypath'|| @atlas_pagename ||'_1.jpeg' IS NULL THEN 0 END did the trick! This is odd... A null picture expression should be rendered empty, not as the red cross. The red cross is intended only as an >obnoxious, obvious indicator that a picture path was set but couldn't be found. The expression above would only result in 0 if @atlas_pagename is null. Nyall Well, yeah, I was too early to announce the solution. In fact this did not render the missing image, but also not the one which is there :( case when '/media/Daten/IVL_Projekte/2016024_Feldhamster_NEA/2_EINGANG_MA/Bernd/QGIS/Fotos/'|| @atlas_pagename ||'_1.jpeg' IS NULL THEN 1 ELSE 0 END This should do it. But now I am again where is started: When the image is there, it is rendered, when not, the red cross is exported as well. :( Bernd Just amazing!!! Thanx Bernd Am 26.10.2016, 22:19 Uhr, schrieb DelazJ : Hi, what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a case >when expression)? http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode HTH, Harrissou 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : Hi, I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these plots >automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos named >e.g. 1_1.jpeg, 1_2.jpeg. This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these >missing images are marked with a big red cross. Unfortunately, these red crosses are also exported, which looks quite shitty. Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red >crosses. Thanx Bernd --Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
On 27 Oct 2016 6:51 AM, "Bernd Vogelgesang"wrote: > > Arghh, sorry for the noise! > > When hovering over the data-driven input button not so hectically, I discovered the explanation that it expects a 0 or 1. > So > case when > 'mypath'|| @atlas_pagename ||'_1.jpeg' IS NULL > THEN > 0 > END > > did the trick! This is odd... A null picture expression should be rendered empty, not as the red cross. The red cross is intended only as an obnoxious, obvious indicator that a picture path was set but couldn't be found. The expression above would only result in 0 if @atlas_pagename is null. Nyall > > Just amazing!!! > > Thanx > Bernd > > Am 26.10.2016, 22:19 Uhr, schrieb DelazJ : > >> Hi, >> what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a case when expression)? >> http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode >> >> HTH, >> Harrissou >> >> 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : >>> >>> Hi, >>> I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these plots automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos named e.g. 1_1.jpeg, 1_2.jpeg. >>> >>> This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these missing images are marked with a big red cross. >>> Unfortunately, these red crosses are also exported, which looks quite shitty. >>> >>> Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? >>> >>> The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red crosses. >>> >>> Thanx >>> Bernd >>> >>> -- >>> Bernd Vogelgesang >>> Siedlerstraße 2 >>> 91083 Baiersdorf/Igelsdorf >>> Tel: 09133-825374 >>> ___ >>> Qgis-user mailing list >>> Qgis-user@lists.osgeo.org >>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user >> >> > > > > -- > Bernd Vogelgesang > Siedlerstraße 2 > 91083 Baiersdorf/Igelsdorf > Tel: 09133-825374 > > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
Arghh, sorry for the noise! When hovering over the data-driven input button not so hectically, I discovered the explanation that it expects a 0 or 1. So case when 'mypath'|| @atlas_pagename ||'_1.jpeg' IS NULL THEN 0 END did the trick! Just amazing!!! Thanx Bernd Am 26.10.2016, 22:19 Uhr, schrieb DelazJ: Hi, what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a case when >expression)? http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode HTH, Harrissou 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : Hi, I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these plots >>automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos >>named e.g. 1_1.jpeg, 1_2.jpeg. This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these >>missing images are marked with a big red cross. Unfortunately, these red crosses are also exported, which looks quite shitty. Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red >>crosses. Thanx Bernd --Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
2016-10-26 22:36 GMT+02:00 Bernd Vogelgesang: > Hi Harrissou, > thanx for the hint. I already saw the checkbox, but had no idea what to do > with it. > > My problem now is, that I have really no idea what to put in the "case > when" > Maybe something like > '/mypath/'|| @atlas_pagename ||'_1.jpeg' IS NULL or so? > > I do not know what is expected to be returned that this option will > trigger. There seems not to be a boolean type or so. The documentation does > not tell what to do there. > > If you click the data-defined button, the description menu explains what is expected; in this case a boolean so, though not tested, I'd say case when '/mypath/'|| @atlas_pagename ||'_1.jpeg' IS NULL then 1 else 0 end (or perhaps inverse 1 and 0) Still confused, but there might be a solution... > > Bernd > > Am 26.10.2016, 22:19 Uhr, schrieb DelazJ : > > Hi, > what about using the data-defined option near the "Exclude items from > export" in the items properties --> Rendering (with a case when expression)? > http://docs.qgis.org/2.14/en/docs/user_manual/print_ > composer/composer_items/composer_items_options.html#rendering-mode > > HTH, > Harrissou > > 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : > >> Hi, >> I set up a neat atlas for displaying a row of 50 sample plots. On a >> second page, I want to show 2 pictures taken of these plots automatically >> with an expression including the path || @atlas_pagenumber || '_1.jpeg' or >> '_2.jpeg' to display up to two photos named e.g. 1_1.jpeg, 1_2.jpeg. >> >> This works really great! The problem is, that for some plots, we do not >> and have any picture or only one. In composer, these missing images are >> marked with a big red cross. >> Unfortunately, these red crosses are also exported, which looks quite >> shitty. >> >> Is there any clever way of forcing QGIS not to export these place holders >> but just not to print anything at this place? >> >> The only (boring) idea I came up with till now, was to create empty white >> images and name them accordingly to avoid the red crosses. >> >> Thanx >> Bernd >> >> -- >> Bernd Vogelgesang >> Siedlerstraße 2 >> 91083 Baiersdorf/Igelsdorf >> Tel: 09133-825374 >> ___ >> Qgis-user mailing list >> Qgis-user@lists.osgeo.org >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user > > > > > > -- > Bernd Vogelgesang > Siedlerstraße 2 > 91083 Baiersdorf/Igelsdorf > Tel: 09133-825374 > ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
Hi Harrissou, thanx for the hint. I already saw the checkbox, but had no idea what to do with it. My problem now is, that I have really no idea what to put in the "case when" Maybe something like '/mypath/'|| @atlas_pagename ||'_1.jpeg' IS NULL or so? I do not know what is expected to be returned that this option will trigger. There seems not to be a boolean type or so. The documentation does not tell what to do there. Still confused, but there might be a solution... Bernd Am 26.10.2016, 22:19 Uhr, schrieb DelazJ: Hi, what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a case when >expression)? http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode HTH, Harrissou 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang : Hi, I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these plots >>automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos >>named e.g. 1_1.jpeg, 1_2.jpeg. This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these >>missing images are marked with a big red cross. Unfortunately, these red crosses are also exported, which looks quite shitty. Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red >>crosses. Thanx Bernd --Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
Hi, what about using the data-defined option near the "Exclude items from export" in the items properties --> Rendering (with a case when expression)? http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/composer_items/composer_items_options.html#rendering-mode HTH, Harrissou 2016-10-26 22:10 GMT+02:00 Bernd Vogelgesang: > Hi, > I set up a neat atlas for displaying a row of 50 sample plots. On a second > page, I want to show 2 pictures taken of these plots automatically with an > expression including the path || @atlas_pagenumber || '_1.jpeg' or > '_2.jpeg' to display up to two photos named e.g. 1_1.jpeg, 1_2.jpeg. > > This works really great! The problem is, that for some plots, we do not > and have any picture or only one. In composer, these missing images are > marked with a big red cross. > Unfortunately, these red crosses are also exported, which looks quite > shitty. > > Is there any clever way of forcing QGIS not to export these place holders > but just not to print anything at this place? > > The only (boring) idea I came up with till now, was to create empty white > images and name them accordingly to avoid the red crosses. > > Thanx > Bernd > > -- > Bernd Vogelgesang > Siedlerstraße 2 > 91083 Baiersdorf/Igelsdorf > Tel: 09133-825374 > ___ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?
Hi, I set up a neat atlas for displaying a row of 50 sample plots. On a second page, I want to show 2 pictures taken of these plots automatically with an expression including the path || @atlas_pagenumber || '_1.jpeg' or '_2.jpeg' to display up to two photos named e.g. 1_1.jpeg, 1_2.jpeg. This works really great! The problem is, that for some plots, we do not and have any picture or only one. In composer, these missing images are marked with a big red cross. Unfortunately, these red crosses are also exported, which looks quite shitty. Is there any clever way of forcing QGIS not to export these place holders but just not to print anything at this place? The only (boring) idea I came up with till now, was to create empty white images and name them accordingly to avoid the red crosses. Thanx Bernd -- Bernd Vogelgesang Siedlerstraße 2 91083 Baiersdorf/Igelsdorf Tel: 09133-825374 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Difference and Selection errors
Dear all, Working with the wonderful Processing Modeler of QGis 2.18, I found two strange errors. 1) On an normal intersect request, the SAGA Difference tool worked perfectly, while the QGis Difference resulted in an error: "Error executing algorithm Difference global name 'QgsWKBTypes' is not defined" 2) Also I found that a QGis Select by location with the Within condition checked, results in 0 selections, whereas the v.select (Selects features from vector map (A) by features from other vector map (B)) with a Within setting, produces the - tested - correct selection of 1. Does anybody else has the same experience with those tools? Kind regards, Pim Verver ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS crashes when loading / unloading raster layers using Python
Nudge... Is there anyone out there with knowledge of RasterLayer, MapLayerRegistry, layerTreeRoot etc who can shed any light on the issues described below please? Even just to know that there are no obvious errors or omissions in my approach would be useful (so that I can direct my investigations elsewhere). Many thanks, Dan -Original Message- From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Hollis, Dan Sent: 19 October 2016 16:37 To: 'qgis-user@lists.osgeo.org' Subject: [Qgis-user] QGIS crashes when loading / unloading raster layers using Python Hi, I'm really hoping someone can help me with this. I'm trying to write a Python script to batch process the loading of rasters into QGIS. This script will be run in the Python Console. The rasters are geotiffs created using some separate software that we have been developing. As far as I can tell there are no problems with the rasters themselves i.e. I can load and unload them using the standard buttons in the QGIS interface without running into problems. The rasters contain temperature data. There are two rasters for each day - one containing actual values and one containing anomalies from the long-term average. The aim is to load all of the data for one month such that there is a separate group for each day in the Layers Panel (table of contents). In the full version of my script each group contains the two rasters for that day, plus some vector layers overlaid on top (point temperature data, coastline etc). I don't think the vector data are the cause of the problems I'm encountering so I'm ignoring these in the rest of this posting. I'm working on Windows 7. Until recently I was using QGIS 2.4 Chugiak. My script worked well enough in that it would load all the layers as required and the user could mostly interact with them without generating any errors i.e. they could pan, zoom, identify, switch layers on/off, expand/contract groups. However when the user tried to close down QGIS, or if they tried to remove the layers prior to loading a different set of data, then the software would always crash ("qgis-bin.exe has stopped working", "Crash dumped - minidump written to C:" etc). This only happened when the layers had been loaded using my script. The obvious conclusion was that there was something wrong / incomplete about how my script loaded the layers. I've recently had QGIS 2.14 Essen installed so I thought I'd take another look and see if I could work out what was wrong but so far I've not had much success. The full version of my script now crashes QGIS as the layers are loaded (a step backwards!). The strangest thing is that it doesn't always fail in the same place - often it's while loading the layers for the first group, but occasionally it loads up 2 or 3 groups before crashing. There are no useful error messages or trace back to go on, only "stopped working" and "minidump" messages. If I load only the vector layers then it works, but as soon as I include the raster layers then things start failing. I've added numerous print statements and done all sorts of refactoring but to no avail. I've now tried to come at this from a different angle - starting with the simplest possible script and building it up until it fails. The code pasted below shows where I've got to. The various functions reflect the structure of my full script. I _think_ the problem must be something to do with the functions - objects are possibly getting destroyed or corrupted as a result of passing them around - but I just cannot work it out. NB I started out with the simplest possible code i.e. no functions or loops of any kind - just a sequential series of instructions. This works! I then introduced the add_grid() function and it still worked, then add_layers() and it also still worked. Finally I introduced add_groups() - it still loaded the layers without crashing, but then I was back to the situation where QGIS would crash when I remove the layers added by the script. This is different to my full script (which crashes as the layers are loaded) despite one being a simplified version of the other. I then reverted the last change (getting rid of add_groups()) and it's crashing again i.e. what was working is no longer working! Aaaaggghhh!! If anyone can shed any light at all on this I would be very grateful. I have spent many hours trying to unpick this without success. The most frustrating thing is the lack of any useful error messages and the fact that the crashes seem somewhat random (clearly connected with my script, but not entirely reproducible). Thanks, Dan import os def add_grid(layer_path, layer_name, grp): rlayer = QgsRasterLayer(layer_path, layer_name) QgsMapLayerRegistry.instance().addMapLayer(rlayer, False) grp.addLayer(rlayer) def add_layers(grp, data_folder, date, short_name): # Add first layer type = 'anomaly' fn = '_'.join((date, short_name,
Re: [Qgis-user] Question about results of Union in QGIS
Hi Graeme, There is an issue open about it: https://hub.qgis.org/issues/14846 I wanted to have a look into it in the bugfixing sprint for 2.18 but ran out of time after looking into the intersection algorithm. Having a small set of features as input with a known-good expected result would have helped me to work on the issue. Would it be ok for you to prepare this and attach it to the issue above to help fixing it? Thanks in advance Matthias On 10/26/2016 12:43 AM, SEGGIE Graeme wrote: > Thanks Luigi, > > > That doesn't seem to help unfortunately. > > > I tried with the same two shapefiles in 2.14 and in both cases get 463 > zones unioned to 463 resulting in over 4000 features with nulls in > attributes and lots of features which seem to not highlight any polygon > when selected. > > > Simplifying things, I created a new polygon shapefile with just three > polygons - one overlapping each of the other two. Result of unioning > this with itself is 17 features. Doing same on two copies of same > shapefile also results in 17 features. However, two different > shapefiles, same 3 features in one and a single feature in another, > which overlaps two of the 3, results in 6 features when unioning which > makes some sense. > > > Graeme > > > *From:* Luigi Pirelli> *Sent:* 25 October 2016 20:46:42 > *To:* SEGGIE Graeme > *Cc:* Qgis-user@lists.osgeo.org > *Subject:* Re: [Qgis-user] Question about results of Union in QGIS > > may you test using 2.14? if I well remember that version suffered a > severe regression on ftools geoprocessing modules due the introduction > of the new 3d geometry. During the hackmeeting in Gran Canaria we > seriously though to announce the deprecation of that version, but a > fix was found => and a new qgis version + processing tests where > introduced. > > regards > Luigi Pirelli > > ** > * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com > * LinkedIn: https://www.linkedin.com/in/luigipirelli > * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli > * GitHub: https://github.com/luipir > * Mastering QGIS 2nd Edition: > * > https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition > ** > > > On 25 October 2016 at 10:44, SEGGIE Graeme wrote: >> Hello, >> >> I was doing some analysis on UNION against the same feature (on itself) to >> get an understanding of what happens with slivers and overlaps. I started in >> ArcGIS and was able to understand what happened with the combinations >> available there as follows: >> >> Zone system used as input features composed of 463 zones including some >> accidental overlap. >> >> File with accidental overlaps: >> Case 1 - self union, 1 ref to source, no gaps - Generates 525 - due to >> lakes (3) and slivers (16) and overlaps (43) >> -- overlaps times number of contributors i.e. two zones overlap, two overlap >> features with same area but different source zone >> -- slivers -1 as source (since there is none) and single feature. >> Case 2 - self union, 1 gaps - 506 >> - due to overlaps >> Case 3 - self union, 2 refs to source, no gaps - 577 >> Case 4 - self union, 2 gaps - 558 >> >> Having done all this in Arc, I now wanted to check that QGIS produced the >> same thing. I could not check for gaps / no gaps as there is no setting to >> select regarding this. Also, the two tools I used via (1) menu Vector --> >> Geoprocessing --> Union and (2) Toolbox Geoalgorithms --> Vector --> >> Polygons --> Union do not allow > for a single reference to the source feature set. >> >> What puzzles me though is that instead of feature counts of the order listed >> above, I get much more features and many, but not enough with nulls and 0 >> for source ID fields etc. I cannot see an obvious way to get the resultant >> 4,139 features (with tool 2) down to approx 500 or so. Tool 1, returns >> 3,950 features on the same > input feature set. >> >> I also when selecting features in the area with overlaps return normal >> counts of features i.e. 2, not multiple orders higher as I'd expect given >> the count of features in the attribute table. Do some (lots) of them have no >> geometry? - Actually having just added a field of area, I see this is not >> the case either as too many > have geometry on that basis. >> >> Am I missing a key difference employed in the processing of QGIS union and a >> way to get to the relevant features which approximate to the 500+ I expect? >> >> Am using 2.12 on Windows if that has a bearing on this. >> >> Graeme. >> ___