Sunday, 5 April 2015

Prioritising polygons in QGIS


I just created a layer in which I hand drew a lot of polygons.


Now I want to fill out the Attribute table through commands since it will save me a bunch of time.


Therefore, I calculated the area of each polygon using $area/10000 to have the size in ha.



I want to prioritize each area



  • above 10 ha as Prio 1

  • each below 1 ha as Prio 3

  • each in between as Prio 2


Does anyone have a smart solution to the problem?


My closest approach is: IF ("Size ha" > 10, 1, 2)


That however still leaves me with having to distinguish the areas of Prio 2 to Prio 3 manually.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...