org.openstreetmap.atlas.geography.WktPrintable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.geography;
import org.openstreetmap.atlas.utilities.collections.StringList;
/**
* @author matthieun
*/
public interface WktPrintable
{
static String toWktCollection(final Iterable extends WktPrintable> input)
{
final StringList wktList = new StringList();
input.forEach(wktPrintable -> wktList.add(wktPrintable.toWkt()));
final StringBuilder builder = new StringBuilder();
builder.append("GEOMETRYCOLLECTION (");
builder.append(wktList.join(", "));
builder.append(")");
return builder.toString();
}
String toWkt();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy