gpxType.getRte().add(rte);
} else if (go instanceof MultiPoint) {
int nrpt = ((MultiPoint) go).getNumGeometries();
for (int pi = 0; pi < nrpt; pi++) {
Geometry pt = ((MultiPoint) go).getGeometryN(pi);
WptType wpt = toWpt((Point) pt);
if (nameStr != null)
wpt.setName(nameStr);
if (commentStr != null)
wpt.setCmt(commentStr);
if (descriptionStr != null)
wpt.setDesc(descriptionStr);
gpxType.getWpt().add(wpt);
}
} else if (go instanceof Point) {
WptType wpt = toWpt((Point) go);
if (nameStr != null)
wpt.setName(nameStr);
if (commentStr != null)
wpt.setCmt(commentStr);
if (descriptionStr != null)
wpt.setDesc(descriptionStr);
gpxType.getWpt().add(wpt);
} else {
// no useful geometry, no feature!
return;
}