Class GeometryCombiner
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.geom.GeometryCombiner
-
public class GeometryCombiner extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private GeometryFactory
geomFactory
-
Constructor Summary
Constructors Constructor Description GeometryCombiner(GeometryFactory geomFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Polygon
addHole(Polygon poly, LinearRing hole)
Geometry
addLineString(Geometry orig, Coordinate[] pts)
Geometry
addPoint(Geometry orig, Coordinate pt)
Geometry
addPolygonRing(Geometry orig, Coordinate[] pts)
Geometry
combine(Geometry orig, Geometry geom)
static java.util.List
extractElements(Geometry geom, boolean skipEmpty)
private static Polygon
findPolygonContaining(Geometry geom, Coordinate pt)
static Geometry
replace(Geometry parent, Geometry original, Geometry replacement)
-
-
-
Field Detail
-
geomFactory
private GeometryFactory geomFactory
-
-
Constructor Detail
-
GeometryCombiner
public GeometryCombiner(GeometryFactory geomFactory)
-
-
Method Detail
-
addPolygonRing
public Geometry addPolygonRing(Geometry orig, Coordinate[] pts)
-
addLineString
public Geometry addLineString(Geometry orig, Coordinate[] pts)
-
addPoint
public Geometry addPoint(Geometry orig, Coordinate pt)
-
findPolygonContaining
private static Polygon findPolygonContaining(Geometry geom, Coordinate pt)
-
addHole
public Polygon addHole(Polygon poly, LinearRing hole)
-
extractElements
public static java.util.List extractElements(Geometry geom, boolean skipEmpty)
-
-