2016-10-26 22:36 GMT+02:00 Bernd Vogelgesang <bernd.vogelges...@gmx.de>:

> 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 <del...@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.vogelges...@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@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

Reply via email to