Skip to main content
Question

Change color on faces by attributes

  • Aug 23, 2023 9:18 AM UTC
  • 4 replies
  • 250 views

Hi! I have a big Workbench which does a slope and aspect calculation on roofs to evaluate the potential of solar panels.

 

I have solved everything except setting different colours on my faces based on the calculated effect by a colour-range. I want to export the extruded 3D polygons to Cesium ION as Cesium 3D tileset to minimize loading time.

 

See print screens on my workspace below, i have tried maybe 100 different settings on AppearanceSetter and AppearanceStyler without result the only colour visible in the Inspector is the default grey. 4321

4 replies

daveatsafe
Safer
Forum|alt.badge.img+24
  • Safer
  • Aug 23, 2023 8:43 PM UTC

Hi @amajeptroll​,

It would be helpful to have a screenshot of the Geometry Xquery dialog in the AppearanceSetter, and the Feature Information window when you click on a resulting geometry in the Data Inspector.


Hi! @daveatsafe​ 

 

I have not done anything with Geometry XQuery but i added a screen shot of it aswell as the feature information. 65


daveatsafe
Safer
Forum|alt.badge.img+24
  • Safer
  • Aug 24, 2023 5:10 PM UTC

Hi! @daveatsafe​ 

 

I have not done anything with Geometry XQuery but i added a screen shot of it aswell as the feature information. 65

The AppearanceStyler is basing the appearance color on the 'fill' attribute, but this attribute is empty on your feature. Please try changing the conditional to be based on 'fme_fill_color' instead.


@daveatsafe​ 

Ah! I had accidentally deleted that info in an attribute manager, that explains the matter, thank you very much for your help!