LatLon l = (LatLon)o;
builder.append(String.format("\"%f,%f\"", l.getLat(), l.getLon()));
}
else if (o instanceof Point2D)
{
Point2D l = (Point2D)o;
String twoDoubleFormat = "\"%f,%f\"";
builder.append(String.format(twoDoubleFormat, l.getX(), l.getY()));
}
else if (o instanceof Point3D)
{
Point3D p = (Point3D)o;
builder.append(String.format("\"%f,%f,%f\"", p.getX(), p.getY(), p.getZ()));