Maven module :un.api : api-geometry :
Class : un.api.geometry.Geometry
Extends/Implements : -
Subclasses : -

Top level interface for all geometry type.
This package contain the merge result of several specifications :


Variables : -
Functions : getDimension, getBoundingBox, getCentroid, getUserProperties, buffer, contains, getConvexhull, crosses, difference, disjoint, distance, intersection, intersects, nearest, overlaps, symDifference, touches, union, within




Get the geometry number of dimensions.
return  number of dimension
int getDimension ()


Get this geometry BoundingBox.
return  BoundingBox
BBox getBoundingBox ()


Calculate geometry centroid.
return  centroid point
Point getCentroid ()


Index which may be used to store additional user informations.
return  Index, never null
Dictionary getUserProperties ()



Geometry buffer (double distance)


Test if given geometry is contained in this one.
param  geometry
return  true if contained, false otherwise
throws  un.api.geometry.operation.OperationException
boolean contains (Geometry geometry)

Geometry getConvexhull ()

boolean crosses (Geometry geometry)

Geometry difference (Geometry geometry)

boolean disjoint (Geometry geometry)

double distance (Geometry geometry)

Geometry intersection (Geometry geometry)

boolean intersects (Geometry geometry)

Geometry[] nearest (Geometry geometry)

boolean overlaps (Geometry geometry)

Geometry symDifference (Geometry geometry)

boolean touches (Geometry geometry)

Geometry union (Geometry geometry)

boolean within (Geometry geometry)