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 double
area(Geometry geom)
static Geometry
boundary(Geometry geom)
static Geometry
buffer(Geometry geom, double distance, Integer quadrantSegments, GeometryFunctions.BufferCapStyle capStyle)
static Geometry
centroid(Geometry geom)
static boolean
contains(Geometry a, Geometry b)
static Geometry
convexHull(Geometry geom)
static boolean
crosses(Geometry a, Geometry b)
static Geometry
densify(Geometry geom, double distance)
static Geometry
difference(Geometry a, Geometry b)
static int
dimension(Geometry geom)
static boolean
disjoint(Geometry a, Geometry b)
static double
distance(Geometry a, Geometry b)
static Point
endPoint(LineString line)
static Geometry
envelope(Geometry geom)
static boolean
equalsExact(Geometry a, Geometry b)
static boolean
equalsExactTolerance(Geometry a, Geometry b, double tolerance)
static Geometry
exteriorRing(Polygon polygon)
static String
geometryType(Geometry geom)
static Geometry
getGeometryN(GeometryCollection collection, int index)
static double
getX(Point point)
static double
getY(Point point)
static Geometry
interiorPoint(Geometry geom)
static Geometry
interiorRingN(Polygon polygon, int index)
static Geometry
intersection(Geometry a, Geometry b)
static boolean
intersects(Geometry a, Geometry b)
static boolean
isClosed(LineString line)
static boolean
isEmpty(Geometry geom)
static boolean
isRing(LineString line)
static boolean
isSimple(Geometry geom)
static boolean
isValid(Geometry geom)
static boolean
isWithinDistance(Geometry a, Geometry b, double distance)
static double
length(Geometry geom)
static int
numGeometries(Geometry collection)
static int
numInteriorRing(Polygon polygon)
static int
numPoints(Geometry geom)
static boolean
overlaps(Geometry a, Geometry b)
static Point
pointN(LineString line, int index)
static Geometry
polygonize(Geometry geom)
static String
relate(Geometry a, Geometry b)
static boolean
relatePattern(Geometry a, Geometry b, String pattern)
static Geometry
reproject(Geometry geometry, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS)
Will reproject a geometry to another CRS.static Geometry
simplify(Geometry geom, double distance)
static Geometry
splitPolygon(Geometry polygon, LineString line)
static Point
startPoint(LineString line)
static Geometry
symDifference(Geometry a, Geometry b)
static boolean
touches(Geometry a, Geometry b)
static Geometry
union(Geometry... geoms)
static boolean
within(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.
-
-