Class SpatialTypeFunctions

java.lang.Object
org.apache.calcite.runtime.SpatialTypeFunctions

public class SpatialTypeFunctions extends Object
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 Classes
    Modifier and Type
    Class
    Description
    static class 
    Used at run time by the ST_MakeGrid(org.locationtech.jts.geom.Geometry, java.math.BigDecimal, java.math.BigDecimal) and ST_MakeGridPoints(org.locationtech.jts.geom.Geometry, java.math.BigDecimal, java.math.BigDecimal) functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    Returns the position of a point on the Hilbert curve.
    static @Nullable Long
    hilbert(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.Geometry
    ST_AddPoint(org.locationtech.jts.geom.Geometry linestring, org.locationtech.jts.geom.Geometry point)
    Adds point to linestring at the end.
    static org.locationtech.jts.geom.Geometry
    ST_AddPoint(org.locationtech.jts.geom.Geometry linestring, org.locationtech.jts.geom.Geometry point, int index)
    Adds point to linestring at a given index.
    static org.locationtech.jts.geom.Geometry
    ST_AddZ(org.locationtech.jts.geom.Geometry geom, BigDecimal zToAdd)
    Adds zToAdd to the z-coordinate of the geom.
    static @Nullable Double
    ST_Area(org.locationtech.jts.geom.Geometry geom)
    Returns the area of the geom.
    static @Nullable org.apache.calcite.avatica.util.ByteString
    ST_AsBinary(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable org.apache.calcite.avatica.util.ByteString
    ST_AsEWKB(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable String
    ST_AsEWKT(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable String
    ST_AsGeoJSON(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable String
    ST_AsGML(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable String
    ST_AsText(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable org.apache.calcite.avatica.util.ByteString
    ST_AsWKB(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable String
    ST_AsWKT(org.locationtech.jts.geom.Geometry geometry)
     
    static org.locationtech.jts.geom.Geometry
    ST_Boundary(org.locationtech.jts.geom.Geometry geom)
    Returns the boundary of geom.
    static org.locationtech.jts.geom.Geometry
    ST_BoundingCircle(org.locationtech.jts.geom.Geometry geom)
    Returns the minimum bounding circle of geom.
    static org.locationtech.jts.geom.Geometry
    ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance)
    Computes a buffer around geom.
    static org.locationtech.jts.geom.Geometry
    ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs)
    Computes a buffer around geom.
    static org.locationtech.jts.geom.Geometry
    ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs, int endCapStyle)
    Computes a buffer around geom.
    static org.locationtech.jts.geom.Geometry
    ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, String bufferStyle)
    Computes a buffer around geom.
    static org.locationtech.jts.geom.Geometry
    ST_Centroid(org.locationtech.jts.geom.Geometry geom)
    Returns the centroid of geom.
    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) of geom closest to point.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_ClosestPoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns the point of geom1 closest to geom2.
    static org.locationtech.jts.geom.Geometry
    ST_ConstrainedDelaunay(org.locationtech.jts.geom.Geometry geom)
    Computes a constrained Delaunay triangulation based on points in geom.
    static org.locationtech.jts.geom.Geometry
    ST_ConstrainedDelaunay(org.locationtech.jts.geom.Geometry geom, int flag)
    Computes a constrained Delaunay triangulation based on points in geom.
    static boolean
    ST_Contains(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 contains geom2.
    static boolean
    ST_ContainsProperly(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 contains geom2 but does not intersect its boundary.
    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.
    static int
    ST_CoordDim(org.locationtech.jts.geom.Geometry geom)
    Returns the dimension of the coordinates of geom.
    static boolean
    ST_CoveredBy(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether no point in geom1 is outside geom2.
    static boolean
    ST_Covers(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether no point in geom2 is outside geom1.
    static boolean
    ST_Crosses(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 crosses geom2.
    static org.locationtech.jts.geom.Geometry
    ST_Delaunay(org.locationtech.jts.geom.Geometry geom)
    Computes a Delaunay triangulation based on points in geom.
    static org.locationtech.jts.geom.Geometry
    ST_Delaunay(org.locationtech.jts.geom.Geometry geom, int flag)
    Computes a Delaunay triangulation based on points in geom.
    static org.locationtech.jts.geom.Geometry
    ST_Densify(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance)
    Densifies a geom by inserting extra vertices along the line segments.
    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.
    static int
    ST_Dimension(org.locationtech.jts.geom.Geometry geom)
    Returns the dimension of geom.
    static boolean
    ST_Disjoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 and geom2 are disjoint.
    static double
    ST_Distance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns the distance between geom1 and geom2.
    static boolean
    ST_DWithin(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, double distance)
    Returns whether geom1 and geom2 are within distance of each other.
    static org.locationtech.jts.geom.Geometry
    ST_EndPoint(org.locationtech.jts.geom.Geometry geom)
    Returns the first point of geom.
    static org.locationtech.jts.geom.Geometry
    ST_Envelope(org.locationtech.jts.geom.Geometry geom)
    Returns the minimum bounding box of geom (which may be a GEOMETRYCOLLECTION).
    static boolean
    ST_EnvelopesIntersect(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether the envelope of geom1 intersects the envelope of geom2.
    static boolean
    ST_Equals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 equals geom2.
    static org.locationtech.jts.geom.Geometry
    ST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal distance)
    Expands geom's envelope.
    static org.locationtech.jts.geom.Geometry
    ST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal deltaX, BigDecimal deltaY)
    Expands geom's envelope.
    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.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_ExteriorRing(org.locationtech.jts.geom.Geometry geom)
    Returns the exterior ring of geom, or null if geom is not a polygon.
    static org.locationtech.jts.geom.Geometry
    ST_FlipCoordinates(org.locationtech.jts.geom.Geometry geom)
    Flips the X and Y coordinates of the geom.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_Force2D(org.locationtech.jts.geom.Geometry geometry)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_Force3D(org.locationtech.jts.geom.Geometry geometry)
     
    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) of geom furthest from point.
    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.
    static String
    ST_GeometryType(org.locationtech.jts.geom.Geometry geom)
    Returns the type of geom.
    static int
    ST_GeometryTypeCode(org.locationtech.jts.geom.Geometry geom)
    Returns the OGC SFS type code of geom.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_GeomFromEWKB(org.apache.calcite.avatica.util.ByteString ewkb)
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_GeomFromGML(String gml, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_GeomFromText(String wkt, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_GeomFromWKB(org.apache.calcite.avatica.util.ByteString wkb)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_GeomFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_GeomFromWKT(String wkt, int srid)
     
    static org.locationtech.jts.geom.Geometry
    ST_Holes(org.locationtech.jts.geom.Geometry geom)
    Returns the holes in the geom (which may be a GEOMETRYCOLLECTION).
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_InteriorRing(org.locationtech.jts.geom.Geometry geom, int n)
    Returns the nth interior ring of geom, or null if geom is not a polygon.
    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.
    static boolean
    ST_Intersects(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 intersects geom2.
    static boolean
    ST_Is3D(org.locationtech.jts.geom.Geometry geom)
    Returns whether geom has at least one z-coordinate.
    static boolean
    ST_IsClosed(org.locationtech.jts.geom.Geometry geom)
    Returns whether geom is a closed LINESTRING or MULTILINESTRING.
    static boolean
    ST_IsEmpty(org.locationtech.jts.geom.Geometry geom)
    Returns true if geom is empty.
    static boolean
    ST_IsRectangle(org.locationtech.jts.geom.Geometry geom)
    Returns true if geom is rectangle.
    static boolean
    ST_IsRing(org.locationtech.jts.geom.Geometry geom)
    Returns whether geom is a closed and simple linestring or multi-linestring.
    static boolean
    ST_IsSimple(org.locationtech.jts.geom.Geometry geom)
    Returns true if geom is simple.
    static boolean
    ST_IsValid(org.locationtech.jts.geom.Geometry geom)
    Returns true if geom is valid.
    static @Nullable Double
    ST_Length(org.locationtech.jts.geom.Geometry geom)
    Returns the length of the geom.
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_LineFromText(String wkt, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_LineFromWKB(org.apache.calcite.avatica.util.ByteString wkb)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_LineFromWKB(org.apache.calcite.avatica.util.ByteString wkt, int srid)
     
    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.
    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 of geom at segmentLengthFraction and offsetDistance.
    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 of geom1 and geom2.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MakeEllipse(org.locationtech.jts.geom.Geometry point, BigDecimal width, BigDecimal height)
    Makes an ellipse.
    static org.locationtech.jts.geom.Geometry
    Creates a rectangular Polygon.
    static org.locationtech.jts.geom.Geometry
    ST_MakeEnvelope(BigDecimal xMin, BigDecimal yMin, BigDecimal xMax, BigDecimal yMax, int srid)
    Creates a rectangular Polygon.
    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).
    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)
     
    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)
     
    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)
     
    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)
     
    static org.locationtech.jts.geom.Geometry
    static org.locationtech.jts.geom.Geometry
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MakePolygon(org.locationtech.jts.geom.Geometry shell)
    Makes a polygon.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MakePolygon(org.locationtech.jts.geom.Geometry shell, org.locationtech.jts.geom.Geometry hole0)
    Makes a polygon.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    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.
    static org.locationtech.jts.geom.Geometry
    ST_MakeValid(org.locationtech.jts.geom.Geometry geometry)
    Makes a valid geometry of a given invalid geometry.
    static @Nullable Double
    ST_MaxDistance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Computes the maximum distance between geom1 and geom2.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MinimumDiameter(org.locationtech.jts.geom.Geometry geom)
    Returns the minimum diameter of geom.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MinimumRectangle(org.locationtech.jts.geom.Geometry geom)
    Returns the minimum rectangle enclosing geom.
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MLineFromText(String wkt, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MPointFromText(String wkt, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_MPolyFromText(String wkt, int srid)
     
    static org.locationtech.jts.geom.Geometry
    ST_Normalize(org.locationtech.jts.geom.Geometry geom)
    Converts the geom to normal form.
    static int
    ST_NPoints(org.locationtech.jts.geom.Geometry geom)
    Returns the number of points in geom.
    static int
    ST_NumGeometries(org.locationtech.jts.geom.Geometry geom)
    Returns the number of geometries in geom (1 if it is not a GEOMETRYCOLLECTION).
    static int
    ST_NumInteriorRing(org.locationtech.jts.geom.Geometry geom)
    Returns the number of interior rings of geom.
    static int
    ST_NumInteriorRings(org.locationtech.jts.geom.Geometry geom)
    Returns the number of interior rings of geom.
    static int
    ST_NumPoints(org.locationtech.jts.geom.Geometry geom)
    Returns the number of points in geom.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_OctagonalEnvelope(org.locationtech.jts.geom.Geometry geom)
    Returns the octagonal envelope of geom.
    static org.locationtech.jts.geom.Geometry
    ST_OffsetCurve(org.locationtech.jts.geom.Geometry linestring, double distance, String bufferStyle)
    Computes an offset line for linestring.
    static boolean
    ST_OrderingEquals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 equals geom2 and their coordinates and component Geometries are listed in the same order.
    static boolean
    ST_Overlaps(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns geom1 overlaps geom2.
    static @Nullable Double
    ST_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.Geometry
    Constructs a 2D point from coordinates.
    static org.locationtech.jts.geom.Geometry
    Constructs a 3D point from coordinates.
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_PointFromText(String wkt, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_PointFromWKB(org.apache.calcite.avatica.util.ByteString wkb)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_PointFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid)
     
    static org.locationtech.jts.geom.Geometry
    ST_PointN(org.locationtech.jts.geom.Geometry geom, int n)
    Returns the nth point of a geom.
    static org.locationtech.jts.geom.Geometry
    ST_PointOnSurface(org.locationtech.jts.geom.Geometry geom)
    Returns an interior or boundary point of geom.
    static @Nullable org.locationtech.jts.geom.Geometry
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_PolyFromText(String wkt, int srid)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_PolyFromWKB(org.apache.calcite.avatica.util.ByteString wkb)
     
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_PolyFromWKB(org.apache.calcite.avatica.util.ByteString wkb, int srid)
     
    static org.locationtech.jts.geom.Geometry
    ST_Polygonize(org.locationtech.jts.geom.Geometry geometry)
    Creates a multipolygon from the geometry.
    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.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_ProjectPoint(org.locationtech.jts.geom.Geometry point, org.locationtech.jts.geom.Geometry lineString)
    Projects point onto a lineString (which may be a MULTILINESTRING).
    static org.locationtech.jts.geom.Geometry
    ST_ReducePrecision(org.locationtech.jts.geom.Geometry geom, BigDecimal gridSize)
    Reduces the precision of a geom to the provided gridSize.
    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.
    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.
    static org.locationtech.jts.geom.Geometry
    ST_RemoveHoles(org.locationtech.jts.geom.Geometry geom)
    Removes the holes of the geom.
    static org.locationtech.jts.geom.Geometry
    ST_RemovePoint(org.locationtech.jts.geom.Geometry linestring, int index)
    Remove point at given index in linestring.
    static org.locationtech.jts.geom.Geometry
    ST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom)
    Removes duplicated coordinates from the geom.
    static org.locationtech.jts.geom.Geometry
    ST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance)
    Removes duplicated coordinates from the geom.
    static org.locationtech.jts.geom.Geometry
    ST_Reverse(org.locationtech.jts.geom.Geometry geom)
    Reverses the order of the coordinates of the geom.
    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.
    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.
    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.
    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.
    static org.locationtech.jts.geom.Geometry
    ST_SetSRID(org.locationtech.jts.geom.Geometry geom, int srid)
    Returns a copy of geom with a new SRID.
    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.
    static org.locationtech.jts.geom.Geometry
    ST_SimplifyPreserveTopology(org.locationtech.jts.geom.Geometry geom, BigDecimal distance)
    Simplifies a geometry and preserves its topology.
    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.
    static org.locationtech.jts.geom.Geometry
    ST_Split(org.locationtech.jts.geom.Geometry geom, org.locationtech.jts.geom.Geometry blade)
    Splits geom by blade.
    static int
    ST_SRID(org.locationtech.jts.geom.Geometry geom)
    Returns SRID value or 0 if input Geometry does not have one.
    static org.locationtech.jts.geom.Geometry
    ST_StartPoint(org.locationtech.jts.geom.Geometry geom)
    Returns the first point of geom.
    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.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_ToMultiLine(org.locationtech.jts.geom.Geometry geom)
    Converts the a geom into a MULTILINESTRING.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_ToMultiPoint(org.locationtech.jts.geom.Geometry geom)
    Converts the coordinates of a geom into a MULTIPOINT.
    static @Nullable org.locationtech.jts.geom.Geometry
    ST_ToMultiSegments(org.locationtech.jts.geom.Geometry geom)
    Converts a geom into a set of distinct segments stored in a MULTILINESTRING.
    static boolean
    ST_Touches(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 touches geom2.
    static org.locationtech.jts.geom.Geometry
    ST_Transform(org.locationtech.jts.geom.Geometry geom, int srid)
    Transforms geom from one coordinate reference system (CRS) to the CRS specified by srid.
    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).
    static org.locationtech.jts.geom.Geometry
    ST_UnaryUnion(org.locationtech.jts.geom.Geometry geomCollection)
    Computes the union of the geometries in geomCollection.
    static org.locationtech.jts.geom.Geometry
    ST_UnaryUnion(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Computes the union of geom1 and geom2.
    static boolean
    ST_Within(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
    Returns whether geom1 is within geom2.
    static @Nullable Double
    ST_X(org.locationtech.jts.geom.Geometry geom)
    Return the X coordinate of the point, or NULL if not available.
    static @Nullable Double
    ST_XMax(org.locationtech.jts.geom.Geometry geom)
    Returns the X maxima of a 2D or 3D bounding box or a geometry.
    static @Nullable Double
    ST_XMin(org.locationtech.jts.geom.Geometry geom)
    Returns the X minima of a 2D or 3D bounding box or a geometry.
    static @Nullable Double
    ST_Y(org.locationtech.jts.geom.Geometry geom)
    Returns the y-value of the first coordinate of geom.
    static @Nullable Double
    ST_YMax(org.locationtech.jts.geom.Geometry geom)
    Returns the Y maxima of a 2D or 3D bounding box or a geometry.
    static @Nullable Double
    ST_YMin(org.locationtech.jts.geom.Geometry geom)
    Returns the Y minima of a 2D or 3D bounding box or a geometry.
    static Double
    ST_Z(org.locationtech.jts.geom.Geometry geom)
    Returns the z-value of the first coordinate of geom.
    static Double
    ST_ZMax(org.locationtech.jts.geom.Geometry geom)
    Returns the maximum z-value of geom.
    static Double
    ST_ZMin(org.locationtech.jts.geom.Geometry geom)
    Returns the minimum z-value of geom.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ST_AsBinary

      public static @Nullable org.apache.calcite.avatica.util.ByteString ST_AsBinary(org.locationtech.jts.geom.Geometry geometry)
    • ST_AsEWKT

      public static @Nullable String ST_AsEWKT(org.locationtech.jts.geom.Geometry geometry)
    • ST_AsGeoJSON

      public static @Nullable String ST_AsGeoJSON(org.locationtech.jts.geom.Geometry geometry)
    • ST_AsGML

      public static @Nullable String ST_AsGML(org.locationtech.jts.geom.Geometry geometry)
    • ST_AsText

      public static @Nullable String ST_AsText(org.locationtech.jts.geom.Geometry geometry)
    • 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

      public static @Nullable String ST_AsWKT(org.locationtech.jts.geom.Geometry geometry)
    • 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

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromEWKT(String ewkt)
    • ST_GeomFromGeoJSON

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromGeoJSON(String geojson)
    • ST_GeomFromGML

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromGML(String gml)
    • ST_GeomFromGML

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromGML(String gml, int srid)
    • ST_GeomFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromText(String wkt)
    • ST_GeomFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromText(String wkt, int srid)
    • 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

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromWKT(String wkt)
    • ST_GeomFromWKT

      public static @Nullable org.locationtech.jts.geom.Geometry ST_GeomFromWKT(String wkt, int srid)
    • ST_LineFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_LineFromText(String wkt)
    • ST_LineFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_LineFromText(String wkt, int srid)
    • 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

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MLineFromText(String wkt)
    • ST_MLineFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MLineFromText(String wkt, int srid)
    • ST_MPointFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MPointFromText(String wkt)
    • ST_MPointFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MPointFromText(String wkt, int srid)
    • ST_MPolyFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MPolyFromText(String wkt)
    • ST_MPolyFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MPolyFromText(String wkt, int srid)
    • ST_PointFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_PointFromText(String wkt)
    • ST_PointFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_PointFromText(String wkt, int srid)
    • 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

      public static @Nullable org.locationtech.jts.geom.Geometry ST_PolyFromText(String wkt)
    • ST_PolyFromText

      public static @Nullable org.locationtech.jts.geom.Geometry ST_PolyFromText(String wkt, int srid)
    • 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 a geom to the provided gridSize.
    • ST_ToMultiPoint

      public static @Nullable org.locationtech.jts.geom.Geometry ST_ToMultiPoint(org.locationtech.jts.geom.Geometry geom)
      Converts the coordinates of a geom into a MULTIPOINT.
    • ST_ToMultiLine

      public static @Nullable org.locationtech.jts.geom.Geometry ST_ToMultiLine(org.locationtech.jts.geom.Geometry geom)
      Converts the a geom into a MULTILINESTRING.
    • ST_ToMultiSegments

      public static @Nullable org.locationtech.jts.geom.Geometry ST_ToMultiSegments(org.locationtech.jts.geom.Geometry geom)
      Converts a geom into 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 of geom.
    • ST_Expand

      public static org.locationtech.jts.geom.Geometry ST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal distance)
      Expands geom'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 of geom.
    • ST_MinimumRectangle

      public static @Nullable org.locationtech.jts.geom.Geometry ST_MinimumRectangle(org.locationtech.jts.geom.Geometry geom)
      Returns the minimum rectangle enclosing geom.
    • ST_OctagonalEnvelope

      public static @Nullable org.locationtech.jts.geom.Geometry ST_OctagonalEnvelope(org.locationtech.jts.geom.Geometry geom)
      Returns the octagonal envelope of geom.
    • ST_Expand

      public static org.locationtech.jts.geom.Geometry ST_Expand(org.locationtech.jts.geom.Geometry geom, BigDecimal deltaX, BigDecimal deltaY)
      Expands geom'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

      public static org.locationtech.jts.geom.Geometry ST_MakePoint(BigDecimal x, BigDecimal y)
    • ST_MakePoint

      public static org.locationtech.jts.geom.Geometry ST_MakePoint(BigDecimal x, BigDecimal y, BigDecimal z)
    • ST_Point

      public static org.locationtech.jts.geom.Geometry ST_Point(BigDecimal x, BigDecimal y)
      Constructs a 2D point from coordinates.
    • ST_Point

      public static org.locationtech.jts.geom.Geometry ST_Point(BigDecimal x, BigDecimal y, BigDecimal z)
      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 of geom, or null if geom is not a polygon.
    • ST_EndPoint

      public static org.locationtech.jts.geom.Geometry ST_EndPoint(org.locationtech.jts.geom.Geometry geom)
      Returns the first point of geom.
    • 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 of geom, or null if geom is not a polygon.
    • ST_IsClosed

      public static boolean ST_IsClosed(org.locationtech.jts.geom.Geometry geom)
      Returns whether geom is a closed LINESTRING or MULTILINESTRING.
    • ST_Is3D

      public static boolean ST_Is3D(org.locationtech.jts.geom.Geometry geom)
      Returns whether geom has 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 whether geom is 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 in geom.
    • ST_NumGeometries

      public static int ST_NumGeometries(org.locationtech.jts.geom.Geometry geom)
      Returns the number of geometries in geom (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 of geom.
    • ST_NumInteriorRings

      public static int ST_NumInteriorRings(org.locationtech.jts.geom.Geometry geom)
      Returns the number of interior rings of geom.
    • ST_NumPoints

      public static int ST_NumPoints(org.locationtech.jts.geom.Geometry geom)
      Returns the number of points in geom.
    • ST_PointN

      public static org.locationtech.jts.geom.Geometry ST_PointN(org.locationtech.jts.geom.Geometry geom, int n)
      Returns the nth point of a geom.
    • ST_PointOnSurface

      public static org.locationtech.jts.geom.Geometry ST_PointOnSurface(org.locationtech.jts.geom.Geometry geom)
      Returns an interior or boundary point of geom.
    • 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 of geom.
    • ST_X

      public static @Nullable Double ST_X(org.locationtech.jts.geom.Geometry geom)
      Return the X coordinate of the point, or NULL if not available. Input must be a point..
    • ST_XMax

      public static @Nullable Double ST_XMax(org.locationtech.jts.geom.Geometry geom)
      Returns the X maxima of a 2D or 3D bounding box or a geometry.
    • ST_XMin

      public static @Nullable Double ST_XMin(org.locationtech.jts.geom.Geometry geom)
      Returns the X minima of a 2D or 3D bounding box or a geometry.
    • ST_Y

      public static @Nullable Double ST_Y(org.locationtech.jts.geom.Geometry geom)
      Returns the y-value of the first coordinate of geom.
    • ST_YMax

      public static @Nullable Double ST_YMax(org.locationtech.jts.geom.Geometry geom)
      Returns the Y maxima of a 2D or 3D bounding box or a geometry.
    • ST_YMin

      public static @Nullable Double ST_YMin(org.locationtech.jts.geom.Geometry geom)
      Returns the Y minima of a 2D or 3D bounding box or a geometry.
    • ST_Z

      public static Double ST_Z(org.locationtech.jts.geom.Geometry geom)
      Returns the z-value of the first coordinate of geom.
    • ST_ZMax

      public static Double ST_ZMax(org.locationtech.jts.geom.Geometry geom)
      Returns the maximum z-value of geom.
    • ST_ZMin

      public static Double ST_ZMin(org.locationtech.jts.geom.Geometry geom)
      Returns the minimum z-value of geom.
    • ST_Boundary

      public static org.locationtech.jts.geom.Geometry ST_Boundary(org.locationtech.jts.geom.Geometry geom)
      Returns the boundary of geom.
    • ST_Centroid

      public static org.locationtech.jts.geom.Geometry ST_Centroid(org.locationtech.jts.geom.Geometry geom)
      Returns the centroid of geom.
    • ST_CoordDim

      public static int ST_CoordDim(org.locationtech.jts.geom.Geometry geom)
      Returns the dimension of the coordinates of geom.
    • ST_Dimension

      public static int ST_Dimension(org.locationtech.jts.geom.Geometry geom)
      Returns the dimension of geom.
    • ST_Distance

      public static double ST_Distance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns the distance between geom1 and geom2.
    • ST_GeometryType

      public static String ST_GeometryType(org.locationtech.jts.geom.Geometry geom)
      Returns the type of geom.
    • ST_GeometryTypeCode

      public static int ST_GeometryTypeCode(org.locationtech.jts.geom.Geometry geom)
      Returns the OGC SFS type code of geom.
    • ST_Envelope

      public static org.locationtech.jts.geom.Geometry ST_Envelope(org.locationtech.jts.geom.Geometry geom)
      Returns the minimum bounding box of geom (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 whether geom1 contains geom2.
    • ST_ContainsProperly

      public static boolean ST_ContainsProperly(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 contains geom2 but 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 in geom1 is outside geom2.
    • ST_Covers

      public static boolean ST_Covers(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether no point in geom2 is outside geom1.
    • ST_Crosses

      public static boolean ST_Crosses(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 crosses geom2.
    • ST_Disjoint

      public static boolean ST_Disjoint(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 and geom2 are disjoint.
    • ST_EnvelopesIntersect

      public static boolean ST_EnvelopesIntersect(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether the envelope of geom1 intersects the envelope of geom2.
    • ST_Equals

      public static boolean ST_Equals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 equals geom2.
    • ST_Intersects

      public static boolean ST_Intersects(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 intersects geom2.
    • ST_OrderingEquals

      public static boolean ST_OrderingEquals(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 equals geom2 and 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)
      Returns geom1 overlaps geom2.
    • ST_Touches

      public static boolean ST_Touches(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 touches geom2.
    • ST_Within

      public static boolean ST_Within(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Returns whether geom1 is within geom2.
    • ST_DWithin

      public static boolean ST_DWithin(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2, double distance)
      Returns whether geom1 and geom2 are within distance of 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 around geom.
    • ST_Buffer

      public static org.locationtech.jts.geom.Geometry ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance)
      Computes a buffer around geom.
    • ST_Buffer

      public static org.locationtech.jts.geom.Geometry ST_Buffer(org.locationtech.jts.geom.Geometry geom, double distance, int quadSegs)
      Computes a buffer around geom.
    • 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 around geom.
    • 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 for linestring.
    • 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 of geom1 and geom2.
    • ST_UnaryUnion

      public static org.locationtech.jts.geom.Geometry ST_UnaryUnion(org.locationtech.jts.geom.Geometry geomCollection)
      Computes the union of the geometries in geomCollection.
    • ST_Transform

      public static org.locationtech.jts.geom.Geometry ST_Transform(org.locationtech.jts.geom.Geometry geom, int srid)
      Transforms geom from one coordinate reference system (CRS) to the CRS specified by srid.
    • ST_SetSRID

      public static org.locationtech.jts.geom.Geometry ST_SetSRID(org.locationtech.jts.geom.Geometry geom, int srid)
      Returns a copy of geom with 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)
      Splits geom by blade.
    • 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)
      Adds point to linestring at 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)
      Adds point to linestring at a given index.
    • ST_Densify

      public static org.locationtech.jts.geom.Geometry ST_Densify(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance)
      Densifies a geom by 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 the geom.
    • ST_Holes

      public static org.locationtech.jts.geom.Geometry ST_Holes(org.locationtech.jts.geom.Geometry geom)
      Returns the holes in the geom (which may be a GEOMETRYCOLLECTION).
    • ST_Normalize

      public static org.locationtech.jts.geom.Geometry ST_Normalize(org.locationtech.jts.geom.Geometry geom)
      Converts the geom to normal form.
    • ST_RemoveRepeatedPoints

      public static org.locationtech.jts.geom.Geometry ST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom)
      Removes duplicated coordinates from the geom.
    • ST_RemoveRepeatedPoints

      public static org.locationtech.jts.geom.Geometry ST_RemoveRepeatedPoints(org.locationtech.jts.geom.Geometry geom, BigDecimal tolerance)
      Removes duplicated coordinates from the geom.
    • ST_RemoveHoles

      public static org.locationtech.jts.geom.Geometry ST_RemoveHoles(org.locationtech.jts.geom.Geometry geom)
      Removes the holes of the geom.
    • ST_RemovePoint

      public static org.locationtech.jts.geom.Geometry ST_RemovePoint(org.locationtech.jts.geom.Geometry linestring, int index)
      Remove point at given index in linestring.
    • ST_Reverse

      public static org.locationtech.jts.geom.Geometry ST_Reverse(org.locationtech.jts.geom.Geometry geom)
      Reverses the order of the coordinates of the geom.
    • ST_AddZ

      public static org.locationtech.jts.geom.Geometry ST_AddZ(org.locationtech.jts.geom.Geometry geom, BigDecimal zToAdd)
      Adds zToAdd to the z-coordinate of the geom.
    • ST_Area

      public static @Nullable Double ST_Area(org.locationtech.jts.geom.Geometry geom)
      Returns the area of the geom.
    • 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) of geom closest to point.
    • 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 of geom1 closest to geom2.
    • 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) of geom furthest from point.
    • ST_Length

      public static @Nullable Double ST_Length(org.locationtech.jts.geom.Geometry geom)
      Returns the length of the geom.
    • 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 of geom at segmentLengthFraction and offsetDistance.
    • 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 of geom1 and geom2.
    • ST_MaxDistance

      public static @Nullable Double ST_MaxDistance(org.locationtech.jts.geom.Geometry geom1, org.locationtech.jts.geom.Geometry geom2)
      Computes the maximum distance between geom1 and geom2.
    • ST_Perimeter

      public static @Nullable Double ST_Perimeter(org.locationtech.jts.geom.Geometry geom)
      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)
      Projects point onto a lineString (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 in geom.
    • 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 in geom.
    • ST_Delaunay

      public static org.locationtech.jts.geom.Geometry ST_Delaunay(org.locationtech.jts.geom.Geometry geom)
      Computes a Delaunay triangulation based on points in geom.
    • 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 in geom.
    • hilbert

      public static @Nullable Long hilbert(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.
    • hilbert

      public static long hilbert(BigDecimal x, BigDecimal y)
      Returns the position of a point on the Hilbert curve.