[QGIS-Developer] Compositions/Layouts - Subsitution map in QGIS 3

Adam Borczyk adam.borczyk at gis-support.pl
Thu May 17 03:37:33 PDT 2018


Thanks a lot, Alessandro, I didn't know this.

* Adam Borczyk*

*---------------------------------GIS Support Sp. z o.o.DobrzaƄskiego 3,
Lublin 20-262
<https://maps.google.com/?q=Dobrza%C5%84skiego+3,+Lublin+20-262&entry=gmail&source=g>tel.
+48 81 451 14 90, NIP: 9462641761*

On 16 May 2018 at 22:02, Alessandro Pasotti <apasotti at gmail.com> wrote:

>
> In qgis3 you must use string search and replace, that is what the qgis2
> implementation was doing.
>
>
> On Wed, May 16, 2018, 17:30 Adam Borczyk <adam.borczyk at gis-support.pl>
> wrote:
>
>> Hi everyone,
>>
>> In QGIS 2 there was this handy function to load a Python dict with string
>> mapping into a QgsComposition object, so each string (not only label, also
>> eg. HTML) inside a given .qpt project was substituted accordingly ->
>> https://qgis.org/api/2.18/classQgsComposition.html#
>> ac147dd9e3ee689a7fdfdca58743e7be8
>>
>> I know Composition stuff was moved to QgsLayout in Q 3. In the
>> documentation I found only this one: https://qgis.org/api/
>> classQgsLayout.html#ad84ff95e98598ed3c29eef973d7b4bff but it doesn't
>> seem to support the substitution map. What is the way to substitute string
>> in Q 3?
>>
>> Best regards
>>
>> * Adam Borczyk*
>>
>> *---------------------------------GIS Support Sp. z o.o.DobrzaƄskiego 3,
>> Lublin 20-262
>> <https://maps.google.com/?q=Dobrza%C5%84skiego+3,+Lublin+20-262&entry=gmail&source=g>tel.
>> +48 81 451 14 90, NIP: 9462641761*
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180517/53f3cb6a/attachment-0001.html>


More information about the QGIS-Developer mailing list