private void drawPoint(Coordinate coord, SymbolInfo symbol) {
if (symbol.getImage() != null) {
try {
Image pointImage = Image.getInstance(symbol.getImage().getHref());
template.addImage(pointImage, symbol.getImage().getWidth(), 0, 0, symbol.getImage().getHeight()
, origX + (float) coord.x, origY + (float) coord.y);
} catch (Exception ex) {
log.error("Not able to create POINT image for rendering", ex);
}
} else if (symbol.getCircle() != null) {
float radius = symbol.getCircle().getR();
template.circle(origX + (float) coord.x, origY + (float) coord.y, radius);
} else if (symbol.getRect() != null) {
float width = symbol.getRect().getW();
float height = symbol.getRect().getW();
template.rectangle(origX + (float) coord.x - (width / 2), origY + (float) coord.y - (height / 2), width,
height);
}
}