}
writer.writeEndElement();
} else if (g instanceof LineString) {
writeRte(writer, (LineString) g, f);
} else if (g instanceof MultiPoint) {
MultiPoint mpt = (MultiPoint) g;
int numGeometries = mpt.getNumGeometries();
for (int i = 0; i < numGeometries; i++) {
Point pt = (Point) mpt.getGeometryN(i);
writeWpt(writer, pt, f);
}
} else if (g instanceof Point) {
writeWpt(writer, (Point) g, f);
} else {