Data-defined properties in QGIS 2.0

In QGIS 2.0, the old “size scale” field has been replaced by data-defined properties which enable us to control many more properties than jut size and rotation. One of the often requested features – for example – is the possibility for data-defined colors:

datadefinedproperties

Today’s example map visualizes a dataset of known meteorite landings published on http://visualizing.org/datasets/meteorite-landings. I didn’t clean the data, so there is quite a bunch of meteorites at 0/0.

To create the map, I used QGIS 2.0 feature blending mode “multiply” as well as data-defined size based on meteorite mass:

meteorites1

Background oceans and graticule by NaturalEarthData.

About these ads
8 comments
  1. tobi said:

    Pretty neat, thanks!

  2. Alex Borrell said:

    Where can I download qgis 2.0 for testing? It really looks promising! Thanks

    • Depending on your operating system, you can find the current development version (which will be released as 2.0 soon) from http://download.qgis.org.

  3. Tnunes said:

    Lovely!
    Do you have a good example with the color attribute? I’m trying to use it for line and cannot get it to work.

  4. Gideon said:

    I am trying to follow your example with some earthqauke data but I am struggling to find the right expression for the data defined size of each element. Can you recommend me some source where I can learn more about it?
    I copied your expression without knowing anything about it and tried to insert some random numbers and my size-defining field. Up to now, it only changes the size of every symbol to one same size without any connection to my size-defining field.

    • The expression above maps values between 0 and 1,000,000 to sizes between 0 and 2,000. If the random numbers you put into the size-defining field are rather small, that would result in almost no discernible symbol size difference. If you keep having problems, please post details and screenshots on http://gis.stackexchange.com for support.

      • Gideon said:

        Ah, thank you very much! There was no difference to realize beacuse the difference of the numbers in the data defining field were very small compared to the mean of these numbers.
        Go on with your blog! i love it and it helps me very much to motivate for GIS self training.

Follow

Get every new post delivered to your Inbox.

Join 3,187 other followers

%d bloggers like this: