public class GeometryFunctions extends Object
GeometryProcessFactory
.Constructor and Description |
---|
GeometryFunctions() |
Modifier and Type | Method and 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) |
public static boolean contains(Geometry a, Geometry b)
public static boolean isEmpty(Geometry geom)
public static double length(Geometry geom)
public static boolean intersects(Geometry a, Geometry b)
public static boolean isValid(Geometry geom)
public static String geometryType(Geometry geom)
public static int numPoints(Geometry geom)
public static boolean isSimple(Geometry geom)
public static double distance(Geometry a, Geometry b)
public static boolean isWithinDistance(Geometry a, Geometry b, double distance)
public static double area(Geometry geom)
public static Geometry centroid(Geometry geom)
public static Geometry interiorPoint(Geometry geom)
public static int dimension(Geometry geom)
public static Geometry boundary(Geometry geom)
public static Geometry envelope(Geometry geom)
public static boolean disjoint(Geometry a, Geometry b)
public static boolean touches(Geometry a, Geometry b)
public static boolean crosses(Geometry a, Geometry b)
public static boolean within(Geometry a, Geometry b)
public static boolean overlaps(Geometry a, Geometry b)
public static boolean relatePattern(Geometry a, Geometry b, String pattern)
public static String relate(Geometry a, Geometry b)
public static Geometry buffer(Geometry geom, double distance, Integer quadrantSegments, GeometryFunctions.BufferCapStyle capStyle)
public static Geometry convexHull(Geometry geom)
public static Geometry intersection(Geometry a, Geometry b)
public static Geometry union(Geometry... geoms)
public static Geometry difference(Geometry a, Geometry b)
public static Geometry symDifference(Geometry a, Geometry b)
public static boolean equalsExactTolerance(Geometry a, Geometry b, double tolerance)
public static boolean equalsExact(Geometry a, Geometry b)
public static int numGeometries(Geometry collection)
public static Geometry getGeometryN(GeometryCollection collection, int index)
public static double getX(Point point)
public static double getY(Point point)
public static boolean isClosed(LineString line)
public static Point pointN(LineString line, int index)
public static Point startPoint(LineString line)
public static Point endPoint(LineString line)
public static boolean isRing(LineString line)
public static Geometry exteriorRing(Polygon polygon)
public static int numInteriorRing(Polygon polygon)
public static Geometry interiorRingN(Polygon polygon, int index)
public static Geometry simplify(Geometry geom, double distance)
public static Geometry densify(Geometry geom, double distance)
public static Geometry polygonize(Geometry geom)
public static Geometry splitPolygon(Geometry polygon, LineString line)
public static Geometry reproject(Geometry geometry, CoordinateReferenceSystem sourceCRS, CoordinateReferenceSystem targetCRS)
Copyright © 1996–2019 Geotools. All rights reserved.