public class PolygonHelper extends Object
Constructor and Description |
---|
PolygonHelper() |
Modifier and Type | Method and Description |
---|---|
static MultiPolygon |
multipolygonFromRings(Set<LinearRing> rings,
boolean checkValid)
Given a set of LinearRings, create Multipolygon.
|
static Polygon |
polygonFromLinearRing(LinearRing shell,
GeometryFactory factory)
Convenience method for creating a simple polygon from a shell without
holes.
|
public static Polygon polygonFromLinearRing(LinearRing shell, GeometryFactory factory)
shell
- the outline of the polygon.factory
- the factory to use.public static MultiPolygon multipolygonFromRings(Set<LinearRing> rings, boolean checkValid)
rings
- the set of linear rings.