QGIS Atlas Tutorial – Material Design

This is a guest post by Mickael HOARAU @Oneil974

For people who are working on QGIS Atlas feature, I worked on an Atlas version of the last tutorial I have made. The difficulty level is a little bit more consequente then last tutorial but there are features that you could appreciate. So I’m happy to share with you and I hope this would be helpful.

This slideshow requires JavaScript.

You can download tutorial here:

Material Design – QGIS Atlas Tutorial

And sources here:

https://drive.google.com/file/d/0B37RnaYSMWAZUUJ2NUxhZC1TNmM/view?usp=sharing

 

PS : I’m looking for job offers, feel free to contact me on twitter @Oneil974

Advertisements
14 comments
  1. Totò said:

    I played the tutorial win with 10 64-bit, chrome:
    I found any errors, perhaps related to the operating system, eg in win $ id = @atlas_featureid AND @map_id = ‘ZOOM’;

    NOT can not play pie charts, it depends on the operating system and the browser?

    • It does not depend on the operating system. The syntax depends on the QGIS version. Current versions, at least from 2.14 and newer, use @atlas_featureid.

      • Totò said:

        thank you,
        I use 64-bit OSGeo4W 2.16.3

    • Totò said:

      resolved:
      copy paste from PDF is missing a “-” in ‘data-value’

      thank you!!

      test 64-bit OSGeo4W 2.16.3

  2. Paulo Martinho said:

    Very nice…

  3. Jadwiga Trojak said:

    Hi, I can’t download data from the url which Mickael added to Material Design Atlas, this page not found. Please, share me correct link.

    • Hi Jadwiga,
      Tested in two browsers, link works for me. Could you try again.

  4. Jadwiga Trojak said:

    Hi, I tested in Chrome and Mozzilla, and both browsers display message “the page not found (Error 404)”. But I did this tutorial on my own data:)
    I have a different problem – the html code for “add statistics” didn’t work (QGIS 2.18, Windows 7 Pro).
    I have no idea where is the problem, because I don’t know HTML language.

      • Jadwiga Trojak said:

        I followed by tutorial and I used CSS file and pasted css code in source in user style-sheet.
        I think that the problem is the HTML code which I adjusted to my data and it looks like this:

        I noticed that the expresion
        [% to_int( (( “pow” *100 ) / 1516603 ) )%]
        didn’t work in “Insert an expresion” tool (Output value displayed: “expresion is invalid”)
        and I modified them like this:
        [% to_int( “pow” *100 ) / 1516603 %]. The output valid is ok but html code still didn’t work.
        I see grey color pie…

  5. Jadwiga said:

    uff… I found a solution for html code’s problem. I used field calculator and calculate percentage values and insert appropriate field in Insert an expression window .. and it works. thanks for help.

    • Aurélien said:

      Do you have an exemple of the html code you use ? I have the same problem, but I don’t find a solution. thanks for help.

  6. Aurélien said:

    Hi, I’m trying to follow your tutorial, everything is fine except of pie chart at the end. I have a grey pie chart for both superficie and population, without any red part. I’m using qgis 2.18.3, Any syntax change since qgis 2.14 when using html or css code ? Maybe do you know where I can find a simple css sheet ? (I didn’t know the syntax of css language).

    Thanks for your time, and for your tutorial nice explain and easy to use it.

    Aurélien.

    • Aurélien said:

      I found a solution to my problem, this both code work :

      [%to_int( (( “SUPERFICIE” *100 ) / 250308 ) )%]

      I don’t understand why the “-” of the second data-value is drop during copy past, but this is the problem. We don’t need to calculate percentage values.
      For using expression in the field calculator you need to drop [% %], this code is added for the html content.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: