Package org.geotools.process.geometry
Class GeometryFunctions
- Object
-
- GeometryFunctions
-
public class GeometryFunctions extends Object
A set of static functions providing the implementation of processes exposed by theGeometryProcessFactory.- Author:
- Andrea Aime
-
-
Constructor Summary
Constructors Constructor Description GeometryFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublearea(Geometry geom)static Geometryboundary(Geometry geom)static Geometrybuffer(Geometry geom, double distance, Integer quadrantSegments, GeometryFunctions.BufferCapStyle capStyle)static Geometrycentroid(Geometry geom)static booleancontains(Geometry a, Geometry b)static GeometryconvexHull(Geometry geom)static booleancrosses(Geometry a, Geometry b)static Geometrydensify(Geometry geom, double distance)static Geometrydifference(Geometry a, Geometry b)static intdimension(Geometry geom)static booleandisjoint(Geometry a, Geometry b)static doubledistance(Geometry a, Geometry b)static PointendPoint(LineString line)static Geometryenvelope(Geometry geom)static booleanequalsExact(Geometry a, Geometry b)static booleanequalsExactTolerance(Geometry a, Geometry b, double tolerance)static GeometryexteriorRing(Polygon polygon)static StringgeometryType(Geometry geom)static GeometrygetGeometryN(GeometryCollection collection, int index)static doublegetX(Point point)static doublegetY(Point point)static GeometryinteriorPoint(Geometry geom)static GeometryinteriorRingN(Polygon polygon, int index)static Geometryintersection(Geometry a, Geometry b)static booleanintersects(Geometry a, Geometry b)static booleanisClosed(LineString line)static booleanisEmpty(Geometry geom)static booleanisRing(LineString line)static booleanisSimple(Geometry geom)static booleanisValid(Geometry geom)static booleanisWithinDistance(Geometry a, Geometry b, double distance)static doublelength(Geometry geom)static intnumGeometries(Geometry collection)static intnumInteriorRing(Polygon polygon)static intnumPoints(Geometry geom)static booleanoverlaps(Geometry a, Geometry b)static PointpointN(LineString line, int index)static Geometrypolygonize(Geometry geom)static Stringrelate(Geometry a, Geometry b)static booleanrelatePattern(Geometry a, Geometry b, String pattern)static Geometryreproject(Geometry geometry, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS)Will reproject a geometry to another CRS.static Geometrysimplify(Geometry geom, double distance)static GeometrysplitPolygon(Geometry polygon, LineString line)static PointstartPoint(LineString line)static GeometrysymDifference(Geometry a, Geometry b)static booleantouches(Geometry a, Geometry b)static Geometryunion(Geometry... geoms)static booleanwithin(Geometry a, Geometry b)
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(Geometry geom)
-
length
public static double length(Geometry geom)
-
isValid
public static boolean isValid(Geometry geom)
-
numPoints
public static int numPoints(Geometry geom)
-
isSimple
public static boolean isSimple(Geometry geom)
-
area
public static double area(Geometry geom)
-
dimension
public static int dimension(Geometry geom)
-
buffer
public static Geometry buffer(Geometry geom, double distance, Integer quadrantSegments, GeometryFunctions.BufferCapStyle capStyle)
-
equalsExactTolerance
public static boolean equalsExactTolerance(Geometry a, Geometry b, double tolerance)
-
numGeometries
public static int numGeometries(Geometry collection)
-
getGeometryN
public static Geometry getGeometryN(GeometryCollection collection, int index)
-
getX
public static double getX(Point point)
-
getY
public static double getY(Point point)
-
isClosed
public static boolean isClosed(LineString line)
-
pointN
public static Point pointN(LineString line, int index)
-
startPoint
public static Point startPoint(LineString line)
-
endPoint
public static Point endPoint(LineString line)
-
isRing
public static boolean isRing(LineString line)
-
numInteriorRing
public static int numInteriorRing(Polygon polygon)
-
splitPolygon
public static Geometry splitPolygon(Geometry polygon, LineString line)
-
reproject
public static Geometry reproject(Geometry geometry, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS)
Will reproject a geometry to another CRS.
-
-