I have a shapefile that contains fields for land use type, building height, and roof slope. I've imported the shapefile and assigned the height and and roof slope just fine but I'm trying to assign a specific color to land use type (i.e. single family, multi-family, commercial, etc). I can manually select buildings and change their colors but Ideally this would be part of a style rule. I've been digging for information on creating custom styles and I haven't found what I need. I'm hoping someone can guide me in this task. Thanks for your help.
Hi there,
to color your buildigns according to your attributes you can do two things:
Style Rules:
Create a new rule and enter a expression "color" = red, blue or whatever is stored in you shape file
Close teh expression editor and go to material and select a color.
Done
Now you need to create a rule for every color.
During import:
Make sure your attribute collumn contains the colors in this way xFF0000FF, etc....
In the import dialog select the attribute within the drop down list of the roof type or base color.
you can create different settings in your import dialog via script:
you need to map your attribute to a field like description if it is a string for example.
if( BUILDINGS.DESCRIPTION = "your attribute")
{
BUILDINGS.BASE_COLOR = "xFFFFFF00";
Hope this helps
Andreas
I think that solution is feature themes.
In configuration when import, map your object data (type, purpose, whatever, ...) to let's say field description. You can than make feature theme based on that value, as shown in attached pictures.
Is that what you want?
Regards,
Drazen