this.coordHeight = coordHeight;
}
public void writeObject(Object object, GraphicsDocument document, boolean asChild) throws RenderException {
try {
InternalFeature feature = (InternalFeature) object;
Geometry geom = feature.getGeometry();
if (feature.isClipped()) {
geom = feature.getClippedGeometry();
}
geom = transformer.transform(geom);
if (isPointLike(feature)) {
if (feature.getStyleInfo().getSymbol() != null) {
SymbolInfo info = feature.getStyleInfo().getSymbol();
for (Coordinate coordinate : geom.getCoordinates()) {
if (info.getRect() != null) {
writeRectangle(document, coordinate, feature, info.getRect());
} else if (info.getCircle() != null) {
RectInfo rectInfo = new RectInfo();
rectInfo.setW(info.getCircle().getR() * 2);
rectInfo.setH(info.getCircle().getR() * 2);
writeRectangle(document, coordinate, feature, rectInfo);
} else if (info.getImage() != null) {
writeImage(document, coordinate, feature, info.getImage());
}
}
}
} else {
document.writeObject(geom, asChild);
document.writeAttribute("style", "WIDTH: 100%; HEIGHT: 100%");
document.writeAttribute("coordsize", coordWidth + "," + coordHeight);
document.writeAttribute("type", "#" + feature.getStyleInfo().getStyleId());
document.writeAttribute("id", feature.getId());
}
} catch (TransformException e) {
log.warn("could not render feature");
}
}