[Qgis-user] Composer Atlas: How get rid of the big red cross when there is no image?

Bernd Vogelgesang bernd.vogelgesang at gmx.de
Wed Oct 26 13:50:49 PDT 2016


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 <delazj at gmail.com>:

> 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 <bernd.vogelgesang at gmx.de>:
>> 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161026/5f4c7a47/attachment.html>


More information about the Qgis-user mailing list