Is there a way to obtain the bounding boxes of each TextSymbolizer present on the map? For now, I'm using mapnik 3 and I create a map using a custom XML containing TextSymbolizer. I want to have something like xmin, ymin and xmax, ymax of every labels.
Here is a sample of my XML file:
<Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>34000</MaxScaleDenominator>
<Filter>([symbo] = "100") and ([placement_ok] = "true")</Filter>
<TextSymbolizer
face-name="DejaVu Sans Book" size="14.29"
label-position-tolerance="0" fill="black"
placement="point" allow-overlap="false"
halo-fill="white" halo-radius="1.5">
[ref_label]
</TextSymbolizer>
</Rule>