I am very new to geoserver and SLD.
I am trying to put labels on my heatmap layer using SLD but the labels are not showing up in the preview. I found this example to implement it which looked straight forward yet it is not showing up.
Developing a Web Map Server Using GeoServer
I have been searching online and i haven't seen anything to help me troubleshoot this problem.
Here is my SLD:
<Rule>
<RasterSymbolizer>
<!-- specify geometry attribute to pass validation -->
<Geometry>
<ogc:PropertyName>wkb_geometry</ogc:PropertyName></Geometry>
<Opacity>0.6</Opacity>
<ColorMap type="ramp" >
<ColorMapEntry color="#FFFFFF" quantity="0"
opacity="0"/>
<ColorMapEntry color="#FFFFFF" quantity="0.02" label="nodata"
opacity="0"/>
<ColorMapEntry color="#4444FF" quantity=".1" label="nodata"/>
<ColorMapEntry color="#FF0000" quantity=".5" label="values" />
<ColorMapEntry color="#FFFF00" quantity="1.0" label="values" />
</ColorMap>
</RasterSymbolizer>
<TextSymbolizer>
<label>
<ogc:PropertyName>aqi</ogc:PropertyName>
</label>
</TextSymbolizer>
</Rule>
Here is a screenshot of the layer attributes: