public class GeometryUtil extends Object
Constructor and Description |
---|
GeometryUtil() |
Modifier and Type | Method and Description |
---|---|
static Geometry |
geometryUnion(List geometries,
int geometryType)
Joins the list of geometries
|
static Geometry |
geomToJTS(Geometry g)
Gets a JTS geometry from a DAL geometry
|
static Geometry |
jtsToGeom(Geometry g)
Gets a DAL geometry from a JTS geometry
|
static LineString |
removeDuplicates(LineString line) |
static MultiPolygon |
removeDuplicates(MultiPolygon multiPolygon) |
static Polygon |
removeDuplicates(Polygon polygon) |
static Geometry |
removeDuplicatesFrom(Geometry geometry) |
public static Geometry geomToJTS(Geometry g)
g
- public static Geometry jtsToGeom(Geometry g)
g
- public static Geometry geometryUnion(List geometries, int geometryType)
geometries
- geometryType
- public static Polygon removeDuplicates(Polygon polygon)
public static MultiPolygon removeDuplicates(MultiPolygon multiPolygon)
public static Geometry removeDuplicatesFrom(Geometry geometry)
public static LineString removeDuplicates(LineString line)