Hi,
I am using a pythoncaller in FME to convert the KML color from the linestyle (a string, hex ABGR) to a C# Color (ARGB 32 bits integer) (see workbench)
KML doc Colorstyle (https://developers.google.com/kml/documentation/kmlreference#colorstyle):
For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following:
<color>7fff0000</color>, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00. (ABGR !)
With FME Desktop under Windows (2021.2.4), this works well.
=> 2022-03-29 18:00:28| 0.6| 0.0|INFORM|Attribute(32 bit integer) : `line_color' has value `-16733441'
Running this workbench on the Linux FME server (docker install!) gives different results.
=> 2022-03-29 16:01:14| 0.2| 0.0|INFORM|Attribute(64 bit integer) : `line_color' has value `4278233855'
I have some questions here:
1) Why does this happen?
2) How do I solve this?
3) Is there a more elegant and consistent way to accomplish this conversion? I do need to process the kml style element, and cannot rely on the fme_color attribute...
Thanks,
Richard.