Package org.apache.calcite.runtime
Class SpatialTypeFunctions
java.lang.Object
org.apache.calcite.runtime.SpatialTypeFunctions
Helper methods to implement spatial type (ST) functions in generated code.
Remaining tasks:
- Determine type code for
ExtraSqlTypes.GEOMETRY - Should we create aliases for functions in upper-case? Without ST_ prefix?
- Consider adding spatial literals, e.g. `GEOMETRY 'POINT (30 10)'`
- Integer arguments, e.g. SELECT ST_MakePoint(1, 2, 1.5), ST_MakePoint(1, 2)
- Are GEOMETRY values comparable? If so add ORDER BY test
- We have to add 'Z' to create 3D objects. This is inconsistent with PostGIS. Who is right? At least document the difference.
- Should add GeometryEngine.intersects; similar to disjoint etc.
- Make
ST_MakeLine(Geometry, Geometry)varargs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed at run time by theST_MakeGrid(org.locationtech.jts.geom.Geometry, java.math.BigDecimal, java.math.BigDecimal)andST_MakeGridPoints(org.locationtech.jts.geom.Geometry, java.math.BigDecimal, java.math.BigDecimal)functions. -
Method Summary
Modifier and TypeMethodDescriptionstatic longhilbert(BigDecimal x, BigDecimal y) Returns the position of a point on the Hilbert curve.static @Nullable Longhilbert(org.locationtech.jts.geom.Geometry geom) Returns the position of a point on the Hilbert curve, or null if it is not a 2-dimensional point.static org.locationtech.jts.geom.GeometryST_AddPoint(org.locationtech.jts.geom.Geometry linestring, org.locationtech.jts.geom.Geometry point) Addspointtolinestringat the end.static org.locationtech.jts.geom.GeometryST_AddPoint(org.locationtech.jts.geom.Geometry linestring, org.locationtech.jts.geom.Geometry point, int index) Addspointtolinestringat a givenindex.static org.locationtech.jts.geom.GeometryST_AddZ(org.locationtech.jts.geom.Geometry geom, BigDecimal zToAdd) AddszToAddto the z-coordinate of thegeom.static @Nullable DoubleST_Area(org.locationtech.jts.geom.Geometry geom) Returns the area of thegeom.static @Nullable org.apache.calcite.avatica.util.ByteStringST_AsBinary(org.locationtech.jts.geom.Geometry geometry) static @Nullable org.apache.calcite.avatica.util.ByteStringST_AsEWKB(org.locationtech.jts.geom.Geometry geometry) static @Nullable StringST_AsEWKT(org.locationtech.jts.geom.Geometry geometry) static @Nullable StringST_AsGeoJSON(org.locationtech.jts.geom.Geometry geometry) static @Nullable StringST_AsGML(org.locationtech.jts.geom.Geometry geometry) static @Nullable StringST_AsText(org.locationtech.jts.geom.Geometry geometry) static @Nullable org.apache.calcite.avatica.util.ByteStringST_AsWKB(org.locationtech.jts.geom.Geometry geometry) static @Nullable StringST_AsWKT(org.locationtech.jts.geom.Geometry geometry) static org.locationtech.jts.geom.GeometryST_Boundary(org.locationtech.jts.geom.Geometry geom) Returns the boundary ofgeom.static org.locationtech.jts.geom.GeometryST_BoundingCircle(org.locationtech.jts.geom.Geometry geom) Returns the minimum bounding circle ofgeom.static org.locationtech.jts.geom.GeometryST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance) Computes a buffer aroundgeom.static org.locationtech.jts.geom.GeometryST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs) Computes a buffer aroundgeom.static org.locationtech.jts.geom.GeometryST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs, int endCapStyle) Computes a buffer aroundgeom.static org.locationtech.jts.geom.GeometryComputes a buffer aroundgeom.static org.locationtech.jts.geom.GeometryST_Centroid(org.locationtech.jts.geom.Geometry geom) Returns the centroid ofgeom.static @Nullable org.locationtech.jts.geom.GeometryST_ClosestCoordinate(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry geom) Returns the coordinate(s) ofgeomclosest topoint.static @Nullable org.locationtech.jts.geom.GeometryST_ClosestPoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the point ofgeom1closest togeom2.static org.locationtech.jts.geom.GeometryST_ConstrainedDelaunay(org.locationtech.jts.geom.Geometry geom) Computes a constrained Delaunay triangulation based on points ingeom.static org.locationtech.jts.geom.GeometryST_ConstrainedDelaunay(org.locationtech.jts.geom.Geometry geom, int flag) Computes a constrained Delaunay triangulation based on points ingeom.static booleanST_Contains(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1containsgeom2.static booleanST_ContainsProperly(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1containsgeom2but does not intersect its boundary.static org.locationtech.jts.geom.GeometryST_ConvexHull(org.locationtech.jts.geom.Geometry geom) Computes the smallest convex POLYGON that contains all the points of geom.static intST_CoordDim(org.locationtech.jts.geom.Geometry geom) Returns the dimension of the coordinates ofgeom.static booleanST_CoveredBy(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whether no point ingeom1is outsidegeom2.static booleanST_Covers(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whether no point ingeom2is outsidegeom1.static booleanST_Crosses(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1crossesgeom2.static org.locationtech.jts.geom.GeometryST_Delaunay(org.locationtech.jts.geom.Geometry geom) Computes a Delaunay triangulation based on points ingeom.static org.locationtech.jts.geom.GeometryST_Delaunay(org.locationtech.jts.geom.Geometry geom, int flag) Computes a Delaunay triangulation based on points ingeom.static org.locationtech.jts.geom.GeometryST_Densify(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance) Densifies ageomby inserting extra vertices along the line segments.static org.locationtech.jts.geom.GeometryST_Difference(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the difference between geom1 and geom2.static intST_Dimension(org.locationtech.jts.geom.Geometry geom) Returns the dimension ofgeom.static booleanST_Disjoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1andgeom2are disjoint.static doubleST_Distance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the distance betweengeom1andgeom2.static booleanST_DWithin(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, double distance) Returns whethergeom1andgeom2are withindistanceof each other.static org.locationtech.jts.geom.GeometryST_EndPoint(org.locationtech.jts.geom.Geometry geom) Returns the first point ofgeom.static org.locationtech.jts.geom.GeometryST_Envelope(org.locationtech.jts.geom.Geometry geom) Returns the minimum bounding box ofgeom(which may be a GEOMETRYCOLLECTION).static booleanST_EnvelopesIntersect(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whether the envelope ofgeom1intersects the envelope ofgeom2.static booleanST_Equals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1equalsgeom2.static org.locationtech.jts.geom.GeometryST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal distance) Expandsgeom's envelope.static org.locationtech.jts.geom.GeometryST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal deltaX, BigDecimal deltaY) Expandsgeom's envelope.static @Nullable org.locationtech.jts.geom.GeometryST_Extent(org.locationtech.jts.geom.Geometry geom) Returns the minimum bounding box that encloses geom as a Geometry.static @Nullable org.locationtech.jts.geom.GeometryST_ExteriorRing(org.locationtech.jts.geom.Geometry geom) Returns the exterior ring ofgeom, or null ifgeomis not a polygon.static org.locationtech.jts.geom.GeometryST_FlipCoordinates(org.locationtech.jts.geom.Geometry geom) Flips the X and Y coordinates of thegeom.static @Nullable org.locationtech.jts.geom.GeometryST_Force2D(org.locationtech.jts.geom.Geometry geometry) static @Nullable org.locationtech.jts.geom.GeometryST_Force3D(org.locationtech.jts.geom.Geometry geometry) static @Nullable org.locationtech.jts.geom.GeometryST_FurthestCoordinate(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry geom) Returns the coordinate(s) ofgeomfurthest frompoint.static @Nullable org.locationtech.jts.geom.GeometryST_GeometryN(org.locationtech.jts.geom.Geometry geom, int n) Returns the nth geometry of a geometry collection.static StringST_GeometryType(org.locationtech.jts.geom.Geometry geom) Returns the type ofgeom.static intST_GeometryTypeCode(org.locationtech.jts.geom.Geometry geom) Returns the OGC SFS type code ofgeom.static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromEWKB(org.apache.calcite.avatica.util.ByteString ewkb) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromEWKT(String ewkt) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromGeoJSON(String geojson) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromGML(String gml) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromGML(String gml, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromText(String wkt, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromWKB(org.apache.calcite.avatica.util.ByteString wkb) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromWKT(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_GeomFromWKT(String wkt, int srid) static org.locationtech.jts.geom.GeometryST_Holes(org.locationtech.jts.geom.Geometry geom) Returns the holes in thegeom(which may be a GEOMETRYCOLLECTION).static @Nullable org.locationtech.jts.geom.GeometryST_InteriorRing(org.locationtech.jts.geom.Geometry geom, int n) Returns the nth interior ring ofgeom, or null ifgeomis not a polygon.static org.locationtech.jts.geom.GeometryST_Intersection(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the intersection between geom1 and geom2.static booleanST_Intersects(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1intersectsgeom2.static booleanST_Is3D(org.locationtech.jts.geom.Geometry geom) Returns whethergeomhas at least one z-coordinate.static booleanST_IsClosed(org.locationtech.jts.geom.Geometry geom) Returns whethergeomis a closed LINESTRING or MULTILINESTRING.static booleanST_IsEmpty(org.locationtech.jts.geom.Geometry geom) Returns true if geom is empty.static booleanST_IsRectangle(org.locationtech.jts.geom.Geometry geom) Returns true if geom is rectangle.static booleanST_IsRing(org.locationtech.jts.geom.Geometry geom) Returns whethergeomis a closed and simple linestring or multi-linestring.static booleanST_IsSimple(org.locationtech.jts.geom.Geometry geom) Returns true if geom is simple.static booleanST_IsValid(org.locationtech.jts.geom.Geometry geom) Returns true if geom is valid.static @Nullable DoubleST_Length(org.locationtech.jts.geom.Geometry geom) Returns the length of thegeom.static @Nullable org.locationtech.jts.geom.GeometryST_LineFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_LineFromText(String wkt, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_LineFromWKB(org.apache.calcite.avatica.util.ByteString wkb) static @Nullable org.locationtech.jts.geom.GeometryST_LineFromWKB(org.apache.calcite.avatica.util.ByteString wkt, int srid) static org.locationtech.jts.geom.GeometryST_LineMerge(org.locationtech.jts.geom.Geometry geom) Merges a collection of linear components to form a line-string of maximal length.static @Nullable org.locationtech.jts.geom.GeometryST_LocateAlong(org.locationtech.jts.geom.Geometry geom, BigDecimal segmentLengthFraction, BigDecimal offsetDistance) Returns a MULTIPOINT containing points along the line segments ofgeomatsegmentLengthFractionandoffsetDistance.static @Nullable org.locationtech.jts.geom.GeometryST_LongestLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the 2-dimensional longest line-string between the points ofgeom1andgeom2.static @Nullable org.locationtech.jts.geom.GeometryST_MakeEllipse(org.locationtech.jts.geom.Geometry point, BigDecimal width, BigDecimal height) Makes an ellipse.static org.locationtech.jts.geom.GeometryST_MakeEnvelope(BigDecimal xMin, BigDecimal yMin, BigDecimal xMax, BigDecimal yMax) Creates a rectangular Polygon.static org.locationtech.jts.geom.GeometryST_MakeEnvelope(BigDecimal xMin, BigDecimal yMin, BigDecimal xMax, BigDecimal yMax, int srid) Creates a rectangular Polygon.static org.locationtech.jts.geom.GeometryST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Creates a line-string from the given POINTs (or MULTIPOINTs).static org.locationtech.jts.geom.GeometryST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3) static org.locationtech.jts.geom.GeometryST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3, org.locationtech.jts.geom.Geometry geom4) static org.locationtech.jts.geom.GeometryST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3, org.locationtech.jts.geom.Geometry geom4, org.locationtech.jts.geom.Geometry geom5) static org.locationtech.jts.geom.GeometryST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3, org.locationtech.jts.geom.Geometry geom4, org.locationtech.jts.geom.Geometry geom5, org.locationtech.jts.geom.Geometry geom6) static org.locationtech.jts.geom.GeometryST_MakePoint(BigDecimal x, BigDecimal y) Alias forST_Point(BigDecimal, BigDecimal).static org.locationtech.jts.geom.GeometryST_MakePoint(BigDecimal x, BigDecimal y, BigDecimal z) Alias forST_Point(BigDecimal, BigDecimal, BigDecimal).static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6, org.locationtech.jts.geom.Geometry hole7) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6, org.locationtech.jts.geom.Geometry hole7, org.locationtech.jts.geom.Geometry hole8) Makes a polygon.static @Nullable org.locationtech.jts.geom.GeometryST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6, org.locationtech.jts.geom.Geometry hole7, org.locationtech.jts.geom.Geometry hole8, org.locationtech.jts.geom.Geometry hole9) Makes a polygon.static org.locationtech.jts.geom.GeometryST_MakeValid(org.locationtech.jts.geom.Geometry geometry) Makes a valid geometry of a given invalid geometry.static @Nullable DoubleST_MaxDistance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the maximum distance betweengeom1andgeom2.static @Nullable org.locationtech.jts.geom.GeometryST_MinimumDiameter(org.locationtech.jts.geom.Geometry geom) Returns the minimum diameter ofgeom.static @Nullable org.locationtech.jts.geom.GeometryST_MinimumRectangle(org.locationtech.jts.geom.Geometry geom) Returns the minimum rectangle enclosinggeom.static @Nullable org.locationtech.jts.geom.GeometryST_MLineFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_MLineFromText(String wkt, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_MPointFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_MPointFromText(String wkt, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_MPolyFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_MPolyFromText(String wkt, int srid) static org.locationtech.jts.geom.GeometryST_Normalize(org.locationtech.jts.geom.Geometry geom) Converts thegeomto normal form.static intST_NPoints(org.locationtech.jts.geom.Geometry geom) Returns the number of points ingeom.static intST_NumGeometries(org.locationtech.jts.geom.Geometry geom) Returns the number of geometries ingeom(1 if it is not a GEOMETRYCOLLECTION).static intST_NumInteriorRing(org.locationtech.jts.geom.Geometry geom) Returns the number of interior rings ofgeom.static intST_NumInteriorRings(org.locationtech.jts.geom.Geometry geom) Returns the number of interior rings ofgeom.static intST_NumPoints(org.locationtech.jts.geom.Geometry geom) Returns the number of points ingeom.static @Nullable org.locationtech.jts.geom.GeometryST_OctagonalEnvelope(org.locationtech.jts.geom.Geometry geom) Returns the octagonal envelope ofgeom.static org.locationtech.jts.geom.GeometryST_OffsetCurve(org.locationtech.jts.geom.Geometry linestring, double distance, String bufferStyle) Computes an offset line forlinestring.static booleanST_OrderingEquals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1equalsgeom2and their coordinates and component Geometries are listed in the same order.static booleanST_Overlaps(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returnsgeom1overlapsgeom2.static @Nullable DoubleST_Perimeter(org.locationtech.jts.geom.Geometry geom) Returns the length of the perimeter of *polygon* (which may be a MULTIPOLYGON).static org.locationtech.jts.geom.GeometryST_Point(BigDecimal x, BigDecimal y) Constructs a 2D point from coordinates.static org.locationtech.jts.geom.GeometryST_Point(BigDecimal x, BigDecimal y, BigDecimal z) Constructs a 3D point from coordinates.static @Nullable org.locationtech.jts.geom.GeometryST_PointFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_PointFromText(String wkt, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_PointFromWKB(org.apache.calcite.avatica.util.ByteString wkb) static @Nullable org.locationtech.jts.geom.GeometryST_PointFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid) static org.locationtech.jts.geom.GeometryST_PointN(org.locationtech.jts.geom.Geometry geom, int n) Returns the nth point of ageom.static org.locationtech.jts.geom.GeometryST_PointOnSurface(org.locationtech.jts.geom.Geometry geom) Returns an interior or boundary point ofgeom.static @Nullable org.locationtech.jts.geom.GeometryST_PolyFromText(String wkt) static @Nullable org.locationtech.jts.geom.GeometryST_PolyFromText(String wkt, int srid) static @Nullable org.locationtech.jts.geom.GeometryST_PolyFromWKB(org.apache.calcite.avatica.util.ByteString wkb) static @Nullable org.locationtech.jts.geom.GeometryST_PolyFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid) static org.locationtech.jts.geom.GeometryST_Polygonize(org.locationtech.jts.geom.Geometry geometry) Creates a multipolygon from the geometry.static org.locationtech.jts.geom.GeometryST_PrecisionReducer(org.locationtech.jts.geom.Geometry geometry, BigDecimal decimal) Reduces the geometry's precision to n decimal places.static @Nullable org.locationtech.jts.geom.GeometryST_ProjectPoint(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry lineString) Projectspointonto alineString(which may be a MULTILINESTRING).static org.locationtech.jts.geom.GeometryST_ReducePrecision(org.locationtech.jts.geom.Geometry geom, BigDecimal gridSize) Reduces the precision of ageomto the providedgridSize.static StringST_Relate(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the DE-9IM intersection matrix for geom1 and geom2.static booleanST_Relate(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, String iMatrix) Returns true if geom1 and geom2 are related by the intersection matrix specified by iMatrix.static org.locationtech.jts.geom.GeometryST_RemoveHoles(org.locationtech.jts.geom.Geometry geom) Removes the holes of thegeom.static org.locationtech.jts.geom.GeometryST_RemovePoint(org.locationtech.jts.geom.Geometry linestring, int index) Removepointat givenindexinlinestring.static org.locationtech.jts.geom.GeometryST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom) Removes duplicated coordinates from thegeom.static org.locationtech.jts.geom.GeometryST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance) Removes duplicated coordinates from thegeom.static org.locationtech.jts.geom.GeometryST_Reverse(org.locationtech.jts.geom.Geometry geom) Reverses the order of the coordinates of thegeom.static org.locationtech.jts.geom.GeometryST_Rotate(org.locationtech.jts.geom.Geometry geom, BigDecimal angle) Rotates geom counter-clockwise by angle (in radians) about the point origin.static org.locationtech.jts.geom.GeometryST_Rotate(org.locationtech.jts.geom.Geometry geom, BigDecimal angle, BigDecimal x, BigDecimal y) Rotates geom counter-clockwise by angle (in radians) about the point origin.static org.locationtech.jts.geom.GeometryST_Rotate(org.locationtech.jts.geom.Geometry geom, BigDecimal angle, org.locationtech.jts.geom.Geometry origin) Rotates geom counter-clockwise by angle (in radians) about the point origin.static org.locationtech.jts.geom.GeometryST_Scale(org.locationtech.jts.geom.Geometry geom, BigDecimal xFactor, BigDecimal yFactor) Scales geom Geometry by multiplying the ordinates by the indicated scale factors.static org.locationtech.jts.geom.GeometryST_SetSRID(org.locationtech.jts.geom.Geometry geom, int srid) Returns a copy ofgeomwith a new SRID.static org.locationtech.jts.geom.GeometryST_Simplify(org.locationtech.jts.geom.Geometry geom, BigDecimal distance) Simplifies geom a geometry using the Douglas-Peuker algorithm.static org.locationtech.jts.geom.GeometryST_SimplifyPreserveTopology(org.locationtech.jts.geom.Geometry geom, BigDecimal distance) Simplifies a geometry and preserves its topology.static org.locationtech.jts.geom.GeometryST_Snap(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, BigDecimal snapTolerance) Snaps geom1 and geom2 together with the given snapTolerance.static org.locationtech.jts.geom.GeometryST_Split(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.geom.Geometry blade) Splitsgeombyblade.static intST_SRID(org.locationtech.jts.geom.Geometry geom) Returns SRID value or 0 if input Geometry does not have one.static org.locationtech.jts.geom.GeometryST_StartPoint(org.locationtech.jts.geom.Geometry geom) Returns the first point ofgeom.static org.locationtech.jts.geom.GeometryST_SymDifference(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the symmetric difference between geom1 and geom2.static @Nullable org.locationtech.jts.geom.GeometryST_ToMultiLine(org.locationtech.jts.geom.Geometry geom) Converts the ageominto a MULTILINESTRING.static @Nullable org.locationtech.jts.geom.GeometryST_ToMultiPoint(org.locationtech.jts.geom.Geometry geom) Converts the coordinates of ageominto a MULTIPOINT.static @Nullable org.locationtech.jts.geom.GeometryST_ToMultiSegments(org.locationtech.jts.geom.Geometry geom) Converts ageominto a set of distinct segments stored in a MULTILINESTRING.static booleanST_Touches(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1touchesgeom2.static org.locationtech.jts.geom.GeometryST_Transform(org.locationtech.jts.geom.Geometry geom, int srid) Transformsgeomfrom one coordinate reference system (CRS) to the CRS specified bysrid.static org.locationtech.jts.geom.GeometryST_Translate(org.locationtech.jts.geom.Geometry geom, BigDecimal x, BigDecimal y) Translates geom by the vector (x, y).static org.locationtech.jts.geom.GeometryST_UnaryUnion(org.locationtech.jts.geom.Geometry geomCollection) Computes the union of the geometries ingeomCollection.static org.locationtech.jts.geom.GeometryST_UnaryUnion(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the union ofgeom1andgeom2.static booleanST_Within(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1is withingeom2.static @Nullable DoubleST_X(org.locationtech.jts.geom.Geometry geom) Return the X coordinate of the point, or NULL if not available.static @Nullable DoubleST_XMax(org.locationtech.jts.geom.Geometry geom) Returns the X maxima of a 2D or 3D bounding box or a geometry.static @Nullable DoubleST_XMin(org.locationtech.jts.geom.Geometry geom) Returns the X minima of a 2D or 3D bounding box or a geometry.static @Nullable DoubleST_Y(org.locationtech.jts.geom.Geometry geom) Returns the y-value of the first coordinate ofgeom.static @Nullable DoubleST_YMax(org.locationtech.jts.geom.Geometry geom) Returns the Y maxima of a 2D or 3D bounding box or a geometry.static @Nullable DoubleST_YMin(org.locationtech.jts.geom.Geometry geom) Returns the Y minima of a 2D or 3D bounding box or a geometry.static DoubleST_Z(org.locationtech.jts.geom.Geometry geom) Returns the z-value of the first coordinate ofgeom.static DoubleST_ZMax(org.locationtech.jts.geom.Geometry geom) Returns the maximum z-value ofgeom.static DoubleST_ZMin(org.locationtech.jts.geom.Geometry geom) Returns the minimum z-value ofgeom.
-
Method Details
-
ST_AsBinary
public static @Nullable org.apache.calcite.avatica.util.ByteString ST_AsBinary(org.locationtech.jts.geom.Geometry geometry) -
ST_AsEWKT
-
ST_AsGeoJSON
-
ST_AsGML
-
ST_AsText
-
ST_AsEWKB
public static @Nullable org.apache.calcite.avatica.util.ByteString ST_AsEWKB(org.locationtech.jts.geom.Geometry geometry) -
ST_AsWKB
public static @Nullable org.apache.calcite.avatica.util.ByteString ST_AsWKB(org.locationtech.jts.geom.Geometry geometry) -
ST_AsWKT
-
ST_Force2D
public static @Nullable org.locationtech.jts.geom.Geometry ST_Force2D(org.locationtech.jts.geom.Geometry geometry) -
ST_GeomFromEWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromEWKB(org.apache.calcite.avatica.util.ByteString ewkb) -
ST_GeomFromEWKT
-
ST_GeomFromGeoJSON
-
ST_GeomFromGML
-
ST_GeomFromGML
-
ST_GeomFromText
-
ST_GeomFromText
-
ST_GeomFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromWKB(org.apache.calcite.avatica.util.ByteString wkb) -
ST_GeomFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid) -
ST_GeomFromWKT
-
ST_GeomFromWKT
-
ST_LineFromText
-
ST_LineFromText
-
ST_LineFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_LineFromWKB(org.apache.calcite.avatica.util.ByteString wkb) -
ST_LineFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_LineFromWKB(org.apache.calcite.avatica.util.ByteString wkt, int srid) -
ST_MLineFromText
-
ST_MLineFromText
-
ST_MPointFromText
-
ST_MPointFromText
-
ST_MPolyFromText
-
ST_MPolyFromText
-
ST_PointFromText
-
ST_PointFromText
-
ST_PointFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_PointFromWKB(org.apache.calcite.avatica.util.ByteString wkb) -
ST_PointFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_PointFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid) -
ST_PolyFromText
-
ST_PolyFromText
-
ST_PolyFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_PolyFromWKB(org.apache.calcite.avatica.util.ByteString wkb) -
ST_PolyFromWKB
public static @Nullable org.locationtech.jts.geom.Geometry ST_PolyFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid) -
ST_ReducePrecision
public static org.locationtech.jts.geom.Geometry ST_ReducePrecision(org.locationtech.jts.geom.Geometry geom, BigDecimal gridSize) Reduces the precision of ageomto the providedgridSize. -
ST_ToMultiPoint
public static @Nullable org.locationtech.jts.geom.Geometry ST_ToMultiPoint(org.locationtech.jts.geom.Geometry geom) Converts the coordinates of ageominto a MULTIPOINT. -
ST_ToMultiLine
public static @Nullable org.locationtech.jts.geom.Geometry ST_ToMultiLine(org.locationtech.jts.geom.Geometry geom) Converts the ageominto a MULTILINESTRING. -
ST_ToMultiSegments
public static @Nullable org.locationtech.jts.geom.Geometry ST_ToMultiSegments(org.locationtech.jts.geom.Geometry geom) Converts ageominto a set of distinct segments stored in a MULTILINESTRING. -
ST_Force3D
public static @Nullable org.locationtech.jts.geom.Geometry ST_Force3D(org.locationtech.jts.geom.Geometry geometry) -
ST_BoundingCircle
public static org.locationtech.jts.geom.Geometry ST_BoundingCircle(org.locationtech.jts.geom.Geometry geom) Returns the minimum bounding circle ofgeom. -
ST_Expand
public static org.locationtech.jts.geom.Geometry ST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal distance) Expandsgeom's envelope. -
ST_MakeEllipse
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakeEllipse(org.locationtech.jts.geom.Geometry point, BigDecimal width, BigDecimal height) Makes an ellipse. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6, org.locationtech.jts.geom.Geometry hole7) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6, org.locationtech.jts.geom.Geometry hole7, org.locationtech.jts.geom.Geometry hole8) Makes a polygon. -
ST_MakePolygon
public static @Nullable org.locationtech.jts.geom.Geometry ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0, org.locationtech.jts.geom.Geometry hole1, org.locationtech.jts.geom.Geometry hole2, org.locationtech.jts.geom.Geometry hole3, org.locationtech.jts.geom.Geometry hole4, org.locationtech.jts.geom.Geometry hole5, org.locationtech.jts.geom.Geometry hole6, org.locationtech.jts.geom.Geometry hole7, org.locationtech.jts.geom.Geometry hole8, org.locationtech.jts.geom.Geometry hole9) Makes a polygon. -
ST_MinimumDiameter
public static @Nullable org.locationtech.jts.geom.Geometry ST_MinimumDiameter(org.locationtech.jts.geom.Geometry geom) Returns the minimum diameter ofgeom. -
ST_MinimumRectangle
public static @Nullable org.locationtech.jts.geom.Geometry ST_MinimumRectangle(org.locationtech.jts.geom.Geometry geom) Returns the minimum rectangle enclosinggeom. -
ST_OctagonalEnvelope
public static @Nullable org.locationtech.jts.geom.Geometry ST_OctagonalEnvelope(org.locationtech.jts.geom.Geometry geom) Returns the octagonal envelope ofgeom. -
ST_Expand
public static org.locationtech.jts.geom.Geometry ST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal deltaX, BigDecimal deltaY) Expandsgeom's envelope. -
ST_MakeEnvelope
public static org.locationtech.jts.geom.Geometry ST_MakeEnvelope(BigDecimal xMin, BigDecimal yMin, BigDecimal xMax, BigDecimal yMax, int srid) Creates a rectangular Polygon. -
ST_MakeEnvelope
public static org.locationtech.jts.geom.Geometry ST_MakeEnvelope(BigDecimal xMin, BigDecimal yMin, BigDecimal xMax, BigDecimal yMax) Creates a rectangular Polygon. -
ST_MakeLine
public static org.locationtech.jts.geom.Geometry ST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Creates a line-string from the given POINTs (or MULTIPOINTs). -
ST_MakeLine
public static org.locationtech.jts.geom.Geometry ST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3) -
ST_MakeLine
public static org.locationtech.jts.geom.Geometry ST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3, org.locationtech.jts.geom.Geometry geom4) -
ST_MakeLine
public static org.locationtech.jts.geom.Geometry ST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3, org.locationtech.jts.geom.Geometry geom4, org.locationtech.jts.geom.Geometry geom5) -
ST_MakeLine
public static org.locationtech.jts.geom.Geometry ST_MakeLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, org.locationtech.jts.geom.Geometry geom3, org.locationtech.jts.geom.Geometry geom4, org.locationtech.jts.geom.Geometry geom5, org.locationtech.jts.geom.Geometry geom6) -
ST_MakePoint
Alias forST_Point(BigDecimal, BigDecimal). -
ST_MakePoint
public static org.locationtech.jts.geom.Geometry ST_MakePoint(BigDecimal x, BigDecimal y, BigDecimal z) Alias forST_Point(BigDecimal, BigDecimal, BigDecimal). -
ST_Point
Constructs a 2D point from coordinates. -
ST_Point
Constructs a 3D point from coordinates. -
ST_Extent
public static @Nullable org.locationtech.jts.geom.Geometry ST_Extent(org.locationtech.jts.geom.Geometry geom) Returns the minimum bounding box that encloses geom as a Geometry. -
ST_GeometryN
public static @Nullable org.locationtech.jts.geom.Geometry ST_GeometryN(org.locationtech.jts.geom.Geometry geom, int n) Returns the nth geometry of a geometry collection. -
ST_ExteriorRing
public static @Nullable org.locationtech.jts.geom.Geometry ST_ExteriorRing(org.locationtech.jts.geom.Geometry geom) Returns the exterior ring ofgeom, or null ifgeomis not a polygon. -
ST_EndPoint
public static org.locationtech.jts.geom.Geometry ST_EndPoint(org.locationtech.jts.geom.Geometry geom) Returns the first point ofgeom. -
ST_InteriorRing
public static @Nullable org.locationtech.jts.geom.Geometry ST_InteriorRing(org.locationtech.jts.geom.Geometry geom, int n) Returns the nth interior ring ofgeom, or null ifgeomis not a polygon. -
ST_IsClosed
public static boolean ST_IsClosed(org.locationtech.jts.geom.Geometry geom) Returns whethergeomis a closed LINESTRING or MULTILINESTRING. -
ST_Is3D
public static boolean ST_Is3D(org.locationtech.jts.geom.Geometry geom) Returns whethergeomhas at least one z-coordinate. -
ST_IsEmpty
public static boolean ST_IsEmpty(org.locationtech.jts.geom.Geometry geom) Returns true if geom is empty. -
ST_IsRectangle
public static boolean ST_IsRectangle(org.locationtech.jts.geom.Geometry geom) Returns true if geom is rectangle. -
ST_IsRing
public static boolean ST_IsRing(org.locationtech.jts.geom.Geometry geom) Returns whethergeomis a closed and simple linestring or multi-linestring. -
ST_IsSimple
public static boolean ST_IsSimple(org.locationtech.jts.geom.Geometry geom) Returns true if geom is simple. -
ST_IsValid
public static boolean ST_IsValid(org.locationtech.jts.geom.Geometry geom) Returns true if geom is valid. -
ST_NPoints
public static int ST_NPoints(org.locationtech.jts.geom.Geometry geom) Returns the number of points ingeom. -
ST_NumGeometries
public static int ST_NumGeometries(org.locationtech.jts.geom.Geometry geom) Returns the number of geometries ingeom(1 if it is not a GEOMETRYCOLLECTION). -
ST_NumInteriorRing
public static int ST_NumInteriorRing(org.locationtech.jts.geom.Geometry geom) Returns the number of interior rings ofgeom. -
ST_NumInteriorRings
public static int ST_NumInteriorRings(org.locationtech.jts.geom.Geometry geom) Returns the number of interior rings ofgeom. -
ST_NumPoints
public static int ST_NumPoints(org.locationtech.jts.geom.Geometry geom) Returns the number of points ingeom. -
ST_PointN
public static org.locationtech.jts.geom.Geometry ST_PointN(org.locationtech.jts.geom.Geometry geom, int n) Returns the nth point of ageom. -
ST_PointOnSurface
public static org.locationtech.jts.geom.Geometry ST_PointOnSurface(org.locationtech.jts.geom.Geometry geom) Returns an interior or boundary point ofgeom. -
ST_SRID
public static int ST_SRID(org.locationtech.jts.geom.Geometry geom) Returns SRID value or 0 if input Geometry does not have one. -
ST_StartPoint
public static org.locationtech.jts.geom.Geometry ST_StartPoint(org.locationtech.jts.geom.Geometry geom) Returns the first point ofgeom. -
ST_X
Return the X coordinate of the point, or NULL if not available. Input must be a point.. -
ST_XMax
Returns the X maxima of a 2D or 3D bounding box or a geometry. -
ST_XMin
Returns the X minima of a 2D or 3D bounding box or a geometry. -
ST_Y
Returns the y-value of the first coordinate ofgeom. -
ST_YMax
Returns the Y maxima of a 2D or 3D bounding box or a geometry. -
ST_YMin
Returns the Y minima of a 2D or 3D bounding box or a geometry. -
ST_Z
Returns the z-value of the first coordinate ofgeom. -
ST_ZMax
Returns the maximum z-value ofgeom. -
ST_ZMin
Returns the minimum z-value ofgeom. -
ST_Boundary
public static org.locationtech.jts.geom.Geometry ST_Boundary(org.locationtech.jts.geom.Geometry geom) Returns the boundary ofgeom. -
ST_Centroid
public static org.locationtech.jts.geom.Geometry ST_Centroid(org.locationtech.jts.geom.Geometry geom) Returns the centroid ofgeom. -
ST_CoordDim
public static int ST_CoordDim(org.locationtech.jts.geom.Geometry geom) Returns the dimension of the coordinates ofgeom. -
ST_Dimension
public static int ST_Dimension(org.locationtech.jts.geom.Geometry geom) Returns the dimension ofgeom. -
ST_Distance
public static double ST_Distance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the distance betweengeom1andgeom2. -
ST_GeometryType
Returns the type ofgeom. -
ST_GeometryTypeCode
public static int ST_GeometryTypeCode(org.locationtech.jts.geom.Geometry geom) Returns the OGC SFS type code ofgeom. -
ST_Envelope
public static org.locationtech.jts.geom.Geometry ST_Envelope(org.locationtech.jts.geom.Geometry geom) Returns the minimum bounding box ofgeom(which may be a GEOMETRYCOLLECTION). -
ST_Contains
public static boolean ST_Contains(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1containsgeom2. -
ST_ContainsProperly
public static boolean ST_ContainsProperly(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1containsgeom2but does not intersect its boundary. -
ST_CoveredBy
public static boolean ST_CoveredBy(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whether no point ingeom1is outsidegeom2. -
ST_Covers
public static boolean ST_Covers(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whether no point ingeom2is outsidegeom1. -
ST_Crosses
public static boolean ST_Crosses(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1crossesgeom2. -
ST_Disjoint
public static boolean ST_Disjoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1andgeom2are disjoint. -
ST_EnvelopesIntersect
public static boolean ST_EnvelopesIntersect(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whether the envelope ofgeom1intersects the envelope ofgeom2. -
ST_Equals
public static boolean ST_Equals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1equalsgeom2. -
ST_Intersects
public static boolean ST_Intersects(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1intersectsgeom2. -
ST_OrderingEquals
public static boolean ST_OrderingEquals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1equalsgeom2and their coordinates and component Geometries are listed in the same order. -
ST_Overlaps
public static boolean ST_Overlaps(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returnsgeom1overlapsgeom2. -
ST_Touches
public static boolean ST_Touches(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1touchesgeom2. -
ST_Within
public static boolean ST_Within(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns whethergeom1is withingeom2. -
ST_DWithin
public static boolean ST_DWithin(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, double distance) Returns whethergeom1andgeom2are withindistanceof each other. -
ST_Buffer
public static org.locationtech.jts.geom.Geometry ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, String bufferStyle) Computes a buffer aroundgeom. -
ST_Buffer
public static org.locationtech.jts.geom.Geometry ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance) Computes a buffer aroundgeom. -
ST_Buffer
public static org.locationtech.jts.geom.Geometry ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs) Computes a buffer aroundgeom. -
ST_Buffer
public static org.locationtech.jts.geom.Geometry ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs, int endCapStyle) Computes a buffer aroundgeom. -
ST_ConvexHull
public static org.locationtech.jts.geom.Geometry ST_ConvexHull(org.locationtech.jts.geom.Geometry geom) Computes the smallest convex POLYGON that contains all the points of geom. -
ST_Difference
public static org.locationtech.jts.geom.Geometry ST_Difference(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the difference between geom1 and geom2. -
ST_SymDifference
public static org.locationtech.jts.geom.Geometry ST_SymDifference(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the symmetric difference between geom1 and geom2. -
ST_Intersection
public static org.locationtech.jts.geom.Geometry ST_Intersection(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the intersection between geom1 and geom2. -
ST_OffsetCurve
public static org.locationtech.jts.geom.Geometry ST_OffsetCurve(org.locationtech.jts.geom.Geometry linestring, double distance, String bufferStyle) Computes an offset line forlinestring. -
ST_Relate
public static String ST_Relate(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the DE-9IM intersection matrix for geom1 and geom2. -
ST_Relate
public static boolean ST_Relate(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, String iMatrix) Returns true if geom1 and geom2 are related by the intersection matrix specified by iMatrix. -
ST_UnaryUnion
public static org.locationtech.jts.geom.Geometry ST_UnaryUnion(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the union ofgeom1andgeom2. -
ST_UnaryUnion
public static org.locationtech.jts.geom.Geometry ST_UnaryUnion(org.locationtech.jts.geom.Geometry geomCollection) Computes the union of the geometries ingeomCollection. -
ST_Transform
public static org.locationtech.jts.geom.Geometry ST_Transform(org.locationtech.jts.geom.Geometry geom, int srid) Transformsgeomfrom one coordinate reference system (CRS) to the CRS specified bysrid. -
ST_SetSRID
public static org.locationtech.jts.geom.Geometry ST_SetSRID(org.locationtech.jts.geom.Geometry geom, int srid) Returns a copy ofgeomwith a new SRID. -
ST_LineMerge
public static org.locationtech.jts.geom.Geometry ST_LineMerge(org.locationtech.jts.geom.Geometry geom) Merges a collection of linear components to form a line-string of maximal length. -
ST_MakeValid
public static org.locationtech.jts.geom.Geometry ST_MakeValid(org.locationtech.jts.geom.Geometry geometry) Makes a valid geometry of a given invalid geometry. -
ST_Polygonize
public static org.locationtech.jts.geom.Geometry ST_Polygonize(org.locationtech.jts.geom.Geometry geometry) Creates a multipolygon from the geometry. -
ST_PrecisionReducer
public static org.locationtech.jts.geom.Geometry ST_PrecisionReducer(org.locationtech.jts.geom.Geometry geometry, BigDecimal decimal) Reduces the geometry's precision to n decimal places. -
ST_Simplify
public static org.locationtech.jts.geom.Geometry ST_Simplify(org.locationtech.jts.geom.Geometry geom, BigDecimal distance) Simplifies geom a geometry using the Douglas-Peuker algorithm. -
ST_SimplifyPreserveTopology
public static org.locationtech.jts.geom.Geometry ST_SimplifyPreserveTopology(org.locationtech.jts.geom.Geometry geom, BigDecimal distance) Simplifies a geometry and preserves its topology. -
ST_Snap
public static org.locationtech.jts.geom.Geometry ST_Snap(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, BigDecimal snapTolerance) Snaps geom1 and geom2 together with the given snapTolerance. -
ST_Split
public static org.locationtech.jts.geom.Geometry ST_Split(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.geom.Geometry blade) Splitsgeombyblade. -
ST_Rotate
public static org.locationtech.jts.geom.Geometry ST_Rotate(org.locationtech.jts.geom.Geometry geom, BigDecimal angle) Rotates geom counter-clockwise by angle (in radians) about the point origin. -
ST_Rotate
public static org.locationtech.jts.geom.Geometry ST_Rotate(org.locationtech.jts.geom.Geometry geom, BigDecimal angle, org.locationtech.jts.geom.Geometry origin) Rotates geom counter-clockwise by angle (in radians) about the point origin. -
ST_Rotate
public static org.locationtech.jts.geom.Geometry ST_Rotate(org.locationtech.jts.geom.Geometry geom, BigDecimal angle, BigDecimal x, BigDecimal y) Rotates geom counter-clockwise by angle (in radians) about the point origin. -
ST_Scale
public static org.locationtech.jts.geom.Geometry ST_Scale(org.locationtech.jts.geom.Geometry geom, BigDecimal xFactor, BigDecimal yFactor) Scales geom Geometry by multiplying the ordinates by the indicated scale factors. -
ST_Translate
public static org.locationtech.jts.geom.Geometry ST_Translate(org.locationtech.jts.geom.Geometry geom, BigDecimal x, BigDecimal y) Translates geom by the vector (x, y). -
ST_AddPoint
public static org.locationtech.jts.geom.Geometry ST_AddPoint(org.locationtech.jts.geom.Geometry linestring, org.locationtech.jts.geom.Geometry point) Addspointtolinestringat the end. -
ST_AddPoint
public static org.locationtech.jts.geom.Geometry ST_AddPoint(org.locationtech.jts.geom.Geometry linestring, org.locationtech.jts.geom.Geometry point, int index) Addspointtolinestringat a givenindex. -
ST_Densify
public static org.locationtech.jts.geom.Geometry ST_Densify(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance) Densifies ageomby inserting extra vertices along the line segments. -
ST_FlipCoordinates
public static org.locationtech.jts.geom.Geometry ST_FlipCoordinates(org.locationtech.jts.geom.Geometry geom) Flips the X and Y coordinates of thegeom. -
ST_Holes
public static org.locationtech.jts.geom.Geometry ST_Holes(org.locationtech.jts.geom.Geometry geom) Returns the holes in thegeom(which may be a GEOMETRYCOLLECTION). -
ST_Normalize
public static org.locationtech.jts.geom.Geometry ST_Normalize(org.locationtech.jts.geom.Geometry geom) Converts thegeomto normal form. -
ST_RemoveRepeatedPoints
public static org.locationtech.jts.geom.Geometry ST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom) Removes duplicated coordinates from thegeom. -
ST_RemoveRepeatedPoints
public static org.locationtech.jts.geom.Geometry ST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance) Removes duplicated coordinates from thegeom. -
ST_RemoveHoles
public static org.locationtech.jts.geom.Geometry ST_RemoveHoles(org.locationtech.jts.geom.Geometry geom) Removes the holes of thegeom. -
ST_RemovePoint
public static org.locationtech.jts.geom.Geometry ST_RemovePoint(org.locationtech.jts.geom.Geometry linestring, int index) Removepointat givenindexinlinestring. -
ST_Reverse
public static org.locationtech.jts.geom.Geometry ST_Reverse(org.locationtech.jts.geom.Geometry geom) Reverses the order of the coordinates of thegeom. -
ST_AddZ
public static org.locationtech.jts.geom.Geometry ST_AddZ(org.locationtech.jts.geom.Geometry geom, BigDecimal zToAdd) AddszToAddto the z-coordinate of thegeom. -
ST_Area
Returns the area of thegeom. -
ST_ClosestCoordinate
public static @Nullable org.locationtech.jts.geom.Geometry ST_ClosestCoordinate(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry geom) Returns the coordinate(s) ofgeomclosest topoint. -
ST_ClosestPoint
public static @Nullable org.locationtech.jts.geom.Geometry ST_ClosestPoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the point ofgeom1closest togeom2. -
ST_FurthestCoordinate
public static @Nullable org.locationtech.jts.geom.Geometry ST_FurthestCoordinate(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry geom) Returns the coordinate(s) ofgeomfurthest frompoint. -
ST_Length
Returns the length of thegeom. -
ST_LocateAlong
public static @Nullable org.locationtech.jts.geom.Geometry ST_LocateAlong(org.locationtech.jts.geom.Geometry geom, BigDecimal segmentLengthFraction, BigDecimal offsetDistance) Returns a MULTIPOINT containing points along the line segments ofgeomatsegmentLengthFractionandoffsetDistance. -
ST_LongestLine
public static @Nullable org.locationtech.jts.geom.Geometry ST_LongestLine(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Returns the 2-dimensional longest line-string between the points ofgeom1andgeom2. -
ST_MaxDistance
public static @Nullable Double ST_MaxDistance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2) Computes the maximum distance betweengeom1andgeom2. -
ST_Perimeter
Returns the length of the perimeter of *polygon* (which may be a MULTIPOLYGON). -
ST_ProjectPoint
public static @Nullable org.locationtech.jts.geom.Geometry ST_ProjectPoint(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry lineString) Projectspointonto alineString(which may be a MULTILINESTRING). -
ST_ConstrainedDelaunay
public static org.locationtech.jts.geom.Geometry ST_ConstrainedDelaunay(org.locationtech.jts.geom.Geometry geom) Computes a constrained Delaunay triangulation based on points ingeom. -
ST_ConstrainedDelaunay
public static org.locationtech.jts.geom.Geometry ST_ConstrainedDelaunay(org.locationtech.jts.geom.Geometry geom, int flag) Computes a constrained Delaunay triangulation based on points ingeom. -
ST_Delaunay
public static org.locationtech.jts.geom.Geometry ST_Delaunay(org.locationtech.jts.geom.Geometry geom) Computes a Delaunay triangulation based on points ingeom. -
ST_Delaunay
public static org.locationtech.jts.geom.Geometry ST_Delaunay(org.locationtech.jts.geom.Geometry geom, int flag) Computes a Delaunay triangulation based on points ingeom. -
hilbert
Returns the position of a point on the Hilbert curve, or null if it is not a 2-dimensional point. -
hilbert
Returns the position of a point on the Hilbert curve.
-