&& ((MultiPoint) geometry).getNumPoints() == 1;
// if is not a single point and is description enabled, we
// add and extrude a centroid together with the geometry
if (!isSinglePoint && context.isDescriptionEnabled()) {
MultiGeometry mg = new MultiGeometry();
// centroid + full geometry
Coordinate c = CENTROIDS.geometryCentroid(geometry);
if(!Double.isNaN(height)) {
c.setOrdinate(2, height);
}
de.micromata.opengis.kml.v_2_2_0.Point kmlPoint = toKmlPoint(c);
mg.addToGeometry(kmlPoint);
// encode the full geometry
mg.addToGeometry(kmlGeometry);
kmlGeometry = mg;
}
if(hasHeightTemplate) {