That solved my problem, but i still dont quite understand why I can`t find the name of the spesific rulestyle when going into the properties palette and browsing rule styles.
Should`nt I be able to find my style "3_trees_style" by browsing the properties palette? And If I have several tree styles, how does the program know which of the rules to use when i cannot define or locate the Rule Style by name in the propertis palette?
Unfortunately this was not the solution for me. As far as I can se, I have the same issue as Thomas, but when I clear the manual style in properties, nothing happens. I commit and refresh my style rule again and manual style is applied again.
Has anyone got some pointers?
At rimvydas.sabonis: What does it say in your expression?
I am having issues with a style rule for trees as well. I have a shp file of multiple polygon areas for forested areas, and I want randomize type, size and spacing of trees in each individual polygon.
I have a style rule created with several different tree types, but it is only picking one of the tree types per polygon, instead of randomizing many types in a single polygon.
I have played with the expressions of the Style rule, and nothing seems to get applied to the properties of the polygon.
Any help would be appreciated.
Hi, the important thing to know here is, that style rules are working on a collection of features and assign exactly one style to each of the features. When drawing a forest with the draw tool, there are single point features created for each of the trees, while you have just a number of polygons when importing a shp file containing forest areas. I.e. you get only one style assigned to each of the polygons.
I'd propose to import the same shp file multiple times, once for each tree type, and to define different values for 'Object Spacing' and 'Object Spacing Variance' in the 'Table' tab of the 'Data Source Configuration' Dialog. This way you are also able to mimic the weight value of a style rule, i.e. a lower object scpacing value results in higher occurrence of a type of trees.
Hope this helps.
Access a broad range of knowledge to help get the most out of your products and services.