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 GeometryFactorygeomFactory
-
Constructor Summary
Constructors Constructor Description GeometryCombiner(GeometryFactory geomFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PolygonaddHole(Polygon poly, LinearRing hole)GeometryaddLineString(Geometry orig, Coordinate[] pts)GeometryaddPoint(Geometry orig, Coordinate pt)GeometryaddPolygonRing(Geometry orig, Coordinate[] pts)Geometrycombine(Geometry orig, Geometry geom)static java.util.ListextractElements(Geometry geom, boolean skipEmpty)private static PolygonfindPolygonContaining(Geometry geom, Coordinate pt)static Geometryreplace(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)
-
-