
org.geojson.MultiPolygon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geojson-jackson Show documentation
Show all versions of geojson-jackson Show documentation
A collection of Java POJOs for GeoJson
package org.geojson;
import java.util.List;
public class MultiPolygon extends Geometry>> {
public MultiPolygon() {
}
public MultiPolygon(Polygon polygon) {
add(polygon);
}
public MultiPolygon add(Polygon polygon) {
coordinates.add(polygon.getCoordinates());
return this;
}
@Override
public T accept(GeoJsonObjectVisitor geoJsonObjectVisitor) {
return geoJsonObjectVisitor.visit(this);
}
@Override
public String toString() {
return "MultiPolygon{} " + super.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy