Skip to main content
Question

Color feature with HEX value in a column

  • August 16, 2023
  • 2 replies
  • 151 views

tigercole

Hi.. I have an FMW workflow that reads a shapefile with H3 polygons. Each polygon has a HEX color attribute (eg #000000). I need to do 2 operations:

 

  1. Style the shapefile filling each polygon with color using the HEX attribute
  2. Render and write the layer as a raster image (Geotiff or JPG)

Can this be done, and how?

 

Thanks,

 

tC/.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

I think you need the MapnikRasterizer for this. No expert in this. Not sure if anything exists to go from hex colors to fme colors. You can always try and reverse the HTMLColorCalculator.


redgeographics
Celebrity
Forum|alt.badge.img+62

To go from Hex colors to FME colors you can use my ColorConverter custom transformer