[QGIS-Developer] QgsLayout LoadFromTemplate & substitutionMap
Tim Sutton
tim at kartoza.com
Wed Feb 7 14:21:02 PST 2018
Hi
> On 08 Feb 2018, at 00:10, Marc Ducobu <marc.ducobu at champs-libres.coop> wrote:
>
> Hello,
>
> With QgsComposition, it was possible to pass a "substitution map" to the
> method loadFromTemplate : the substitution map was a map/associative
> array such that when loading the template, strings like "[key]" were
> replaced by the value associated to the key ( see
> https://qgis.org/api/2.18/qgscomposition_8cpp_source.html#l01107 ).
>
> With QgsLayout, I have the impression that this feature has disappear.
> Do you know if it exists an alternative way to obtain an equivalent result ?
Eish I hope we didn't lose it too ... we use this heavily….though I guess you could do similar things with variables and expressions now…
Regards
Tim
>
> Thanks a lot.
>
> Marc
>
>
>
>
> On 2018-02-07 22:53, Nyall Dawson wrote:
>> 2018-02-08 0:22 GMT+10:00 Marc Ducobu <marc.ducobu at champs-libres.coop>:
>>> -----BEGIN PGP MESSAGE-----
>>>
>>> hQEMAwq3T6TpWbvPAQf+N5YzqrBzxjmEIwEjuodMGCOvUtoaxlzbt91dV7sWOxm9
>>> -----END PGP MESSAGE-----
>> Can you send a non-encoded version of this message please? The subject
>> looks interesting, but I can't read it.
>>
>> Nyall
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
—
Tim Sutton
Co-founder: Kartoza
Project chair: QGIS.org
Visit http://kartoza.com <http://kartoza.com/> to find out about open source:
Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services
Skype: timlinux
IRC: timlinux on #qgis at freenode.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180208/b58baf3f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180208/b58baf3f/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180208/b58baf3f/attachment-0001.sig>
More information about the QGIS-Developer
mailing list