[Qgis-user] Atlas generation - can added images change?

Pietro Rossin pierigis at gmail.com
Tue Apr 8 05:47:38 PDT 2014


Hello Vincent Picavet, hello all
I am not really familiar with HTML coding.
I am trying to add pictures changing according to my atlas feature.
My atlas feature layer has a field called picture with the name of a
picture that is inside a pictures folder ( windows).

Let's say I have a path like
C:\gis\monitoring\swim\pictures\

the path in the html label should be written relative to the qgis project
or mut it be absolute?

must it be something like

<style>

* {margin: 0px; padding: 0px}

</style>

<img src="file://../pictures/[% "picture" %]"

style="width: auto; height: 100%; display: block; margin: 0px 0px 0px
auto;" />



or

<style>

* {margin: 0px; padding: 0px}

</style>

<img src="file://C:/gis/monitoring/swim/pictures/[% "picture" %]"

style="width: auto; height: 100%; display: block; margin: 0px 0px 0px
auto;" />


are there errors in my path?

Thanks

Pietro


2014-02-28 12:08 GMT+01:00 Vincent Picavet <vincent.ml at oslandia.com>:

> Hello,
>
> Le vendredi 28 février 2014 12:02:20, Pietro Rossin a écrit :
> > Hello everybody
> > I am starting to use the Atlas generator in qgis, It's really Nice and
> time
> > saving tool!
> >
> > I was able to add a main map and an overview that change according to the
> > feature showed.
> > I'm asking if it's possible to add a picture placeholder to show a
> > different picture (ex photograph) according to the feature mapped.
> >
> > Is it possible?
>
> Yes you can.
> Just follow this blog post :
> http://nyalldawson.net/2013/04/a-neat-trick-in-qgis-2-0-images-in-atlas-
> prints/
>
> Vincent
>
> > And if positive, how can I do that?
> > Thanks
> > Pietro
> >
> >
> >
> > --
> > View this message in context:
> >
> http://osgeo-org.1560.x6.nabble.com/Atlas-generation-can-added-images-chan
> > ge-tp5106567.html Sent from the Quantum GIS - User mailing list archive
> at
> > Nabble.com. _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140408/358cd686/attachment.html>


More information about the Qgis-user mailing list