pub fn create_cot_polygon_message(
callsign: &str,
root: Element,
point: Element,
polygon_shape: Element,
polygon_color: (Element, Element, Element),
) -> Element
Expand description
Assembles a complete CoT message for a polygon feature.
This function takes pre-constructed CoT elements (root, point, shape, colors) and combines them with a callsign to form a CoT message representing a polygon.
§Arguments
callsign
: The callsign to be used in the<contact>
element.root
: The base<event>
element, typically created bycreate_cot_root_fields
. This element will be modified by adding child elements.point
: The<point>
element, often representing the centroid or a label point for the polygon.polygon_shape
: The<shape>
element containing the polygon geometry, created bycreate_cot_polygon_shape
.polygon_color
: A tuple of threeElement
s (fillColor
,strokeColor
,strokeWeight
), typically created bycreate_cot_colors
.
§Returns
An xmltree::Element
representing the complete CoT polygon message.