public class GeoFunctions
extends java.lang.Object
Remaining tasks:
ExtraSqlTypes.GEOMETRY
ST_MakeLine(Geom, Geom)
varargsModifier and Type | Class and Description |
---|---|
(package private) static class |
GeoFunctions.CapStyle
How the "buffer" command terminates the end of a line.
|
static interface |
GeoFunctions.Geom
Geometry.
|
(package private) static class |
GeoFunctions.JoinStyle
How the "buffer" command decorates junctions between line segments.
|
(package private) static class |
GeoFunctions.MapGeom
Sub-class of geometry that has a spatial reference.
|
(package private) static class |
GeoFunctions.SimpleGeom
Sub-class of geometry that has no spatial reference.
|
(package private) static class |
GeoFunctions.Type
Geometry types, with the names and codes assigned by OGC.
|
Modifier and Type | Field and Description |
---|---|
private static int |
NO_SRID |
private static com.esri.core.geometry.SpatialReference |
SPATIAL_REFERENCE |
Modifier | Constructor and Description |
---|---|
private |
GeoFunctions() |
Modifier and Type | Method and Description |
---|---|
protected static GeoFunctions.Geom |
bind(com.esri.core.geometry.Geometry geometry,
int srid) |
private static GeoFunctions.MapGeom |
bind(com.esri.core.geometry.Geometry geometry,
com.esri.core.geometry.SpatialReference sr) |
private static GeoFunctions.Geom |
buffer(GeoFunctions.Geom geom,
double bufferSize,
int quadSegCount,
GeoFunctions.CapStyle endCapStyle,
GeoFunctions.JoinStyle joinStyle,
float mitreLimit) |
private static com.esri.core.geometry.Envelope |
envelope(com.esri.core.geometry.Geometry g) |
private static boolean |
intersects(com.esri.core.geometry.Geometry g1,
com.esri.core.geometry.Geometry g2,
com.esri.core.geometry.SpatialReference sr) |
private static GeoFunctions.Geom |
makeLine(GeoFunctions.Geom... geoms) |
private static GeoFunctions.Geom |
point(double x,
double y) |
static java.lang.String |
ST_AsText(GeoFunctions.Geom g) |
static java.lang.String |
ST_AsWKT(GeoFunctions.Geom g) |
static GeoFunctions.Geom |
ST_Boundary(GeoFunctions.Geom geom)
Returns the boundary of
geom . |
static GeoFunctions.Geom |
ST_Buffer(GeoFunctions.Geom geom,
double distance)
Computes a buffer around
geom . |
static GeoFunctions.Geom |
ST_Buffer(GeoFunctions.Geom geom,
double distance,
int quadSegs)
Computes a buffer around
geom with . |
static GeoFunctions.Geom |
ST_Buffer(GeoFunctions.Geom geom,
double bufferSize,
java.lang.String style)
Computes a buffer around
geom . |
static boolean |
ST_Contains(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 contains geom2 . |
static boolean |
ST_ContainsProperly(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 contains geom2 but does not
intersect its boundary. |
private static boolean |
ST_Covers(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether no point in
geom2 is outside geom1 . |
static boolean |
ST_Crosses(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 crosses geom2 . |
static boolean |
ST_Disjoint(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 and geom2 are disjoint. |
static double |
ST_Distance(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns the distance between
geom1 and geom2 . |
static boolean |
ST_DWithin(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2,
double distance)
Returns whether
geom1 and geom2 are within
distance of each other. |
static GeoFunctions.Geom |
ST_Envelope(GeoFunctions.Geom geom)
Returns the minimum bounding box of
geom (which may be a
GEOMETRYCOLLECTION). |
static boolean |
ST_EnvelopesIntersect(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether the envelope of
geom1 intersects the envelope of
geom2 . |
static boolean |
ST_Equals(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 equals geom2 . |
static java.lang.String |
ST_GeometryType(GeoFunctions.Geom geom)
Returns the type of
geom . |
static int |
ST_GeometryTypeCode(GeoFunctions.Geom geom)
Returns the OGC SFS type code of
geom . |
static GeoFunctions.Geom |
ST_GeomFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_GeomFromText(java.lang.String s,
int srid) |
static boolean |
ST_Intersects(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 intersects geom2 . |
static boolean |
ST_Is3D(GeoFunctions.Geom geom)
Returns whether
geom has at least one z-coordinate. |
static GeoFunctions.Geom |
ST_LineFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_LineFromText(java.lang.String wkt,
int srid) |
static GeoFunctions.Geom |
ST_MakeLine(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Creates a line-string from the given POINTs (or MULTIPOINTs).
|
static GeoFunctions.Geom |
ST_MakeLine(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2,
GeoFunctions.Geom geom3) |
static GeoFunctions.Geom |
ST_MakeLine(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2,
GeoFunctions.Geom geom3,
GeoFunctions.Geom geom4) |
static GeoFunctions.Geom |
ST_MakeLine(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2,
GeoFunctions.Geom geom3,
GeoFunctions.Geom geom4,
GeoFunctions.Geom geom5) |
static GeoFunctions.Geom |
ST_MakeLine(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2,
GeoFunctions.Geom geom3,
GeoFunctions.Geom geom4,
GeoFunctions.Geom geom5,
GeoFunctions.Geom geom6) |
static GeoFunctions.Geom |
ST_MakePoint(java.math.BigDecimal x,
java.math.BigDecimal y)
Alias for
ST_Point(BigDecimal, BigDecimal) . |
static GeoFunctions.Geom |
ST_MakePoint(java.math.BigDecimal x,
java.math.BigDecimal y,
java.math.BigDecimal z)
Alias for
ST_Point(BigDecimal, BigDecimal, BigDecimal) . |
static GeoFunctions.Geom |
ST_MLineFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_MLineFromText(java.lang.String wkt,
int srid) |
static GeoFunctions.Geom |
ST_MPointFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_MPointFromText(java.lang.String wkt,
int srid) |
static GeoFunctions.Geom |
ST_MPolyFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_MPolyFromText(java.lang.String wkt,
int srid) |
static boolean |
ST_OrderingEquals(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 equals geom2 and their coordinates
and component Geometries are listed in the same order. |
static boolean |
ST_Overlaps(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns
geom1 overlaps geom2 . |
static GeoFunctions.Geom |
ST_Point(java.math.BigDecimal x,
java.math.BigDecimal y)
Constructs a 2D point from coordinates.
|
static GeoFunctions.Geom |
ST_Point(java.math.BigDecimal x,
java.math.BigDecimal y,
java.math.BigDecimal z)
Constructs a 3D point from coordinates.
|
static GeoFunctions.Geom |
ST_PointFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_PointFromText(java.lang.String wkt,
int srid) |
static GeoFunctions.Geom |
ST_PolyFromText(java.lang.String s) |
static GeoFunctions.Geom |
ST_PolyFromText(java.lang.String wkt,
int srid) |
static GeoFunctions.Geom |
ST_SetSRID(GeoFunctions.Geom geom,
int srid)
Returns a copy of
geom with a new SRID. |
static boolean |
ST_Touches(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 touches geom2 . |
static GeoFunctions.Geom |
ST_Transform(GeoFunctions.Geom geom,
int srid)
Transforms
geom from one coordinate reference
system (CRS) to the CRS specified by srid . |
static GeoFunctions.Geom |
ST_Union(GeoFunctions.Geom geomCollection)
Computes the union of the geometries in
geomCollection . |
static GeoFunctions.Geom |
ST_Union(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Computes the union of
geom1 and geom2 . |
static boolean |
ST_Within(GeoFunctions.Geom geom1,
GeoFunctions.Geom geom2)
Returns whether
geom1 is within geom2 . |
static java.lang.Double |
ST_X(GeoFunctions.Geom geom)
Returns the x-value of the first coordinate of
geom . |
static java.lang.Double |
ST_Y(GeoFunctions.Geom geom)
Returns the y-value of the first coordinate of
geom . |
static java.lang.Double |
ST_Z(GeoFunctions.Geom geom)
Returns the z-value of the first coordinate of
geom . |
private static java.lang.UnsupportedOperationException |
todo() |
private static GeoFunctions.Type |
type(com.esri.core.geometry.Geometry g)
Returns the OGC type of a geometry.
|
private static final int NO_SRID
private static final com.esri.core.geometry.SpatialReference SPATIAL_REFERENCE
private static java.lang.UnsupportedOperationException todo()
protected static GeoFunctions.Geom bind(com.esri.core.geometry.Geometry geometry, int srid)
private static GeoFunctions.MapGeom bind(com.esri.core.geometry.Geometry geometry, com.esri.core.geometry.SpatialReference sr)
public static java.lang.String ST_AsText(GeoFunctions.Geom g)
public static java.lang.String ST_AsWKT(GeoFunctions.Geom g)
public static GeoFunctions.Geom ST_GeomFromText(java.lang.String s)
public static GeoFunctions.Geom ST_GeomFromText(java.lang.String s, int srid)
public static GeoFunctions.Geom ST_LineFromText(java.lang.String s)
public static GeoFunctions.Geom ST_LineFromText(java.lang.String wkt, int srid)
public static GeoFunctions.Geom ST_MPointFromText(java.lang.String s)
public static GeoFunctions.Geom ST_MPointFromText(java.lang.String wkt, int srid)
public static GeoFunctions.Geom ST_PointFromText(java.lang.String s)
public static GeoFunctions.Geom ST_PointFromText(java.lang.String wkt, int srid)
public static GeoFunctions.Geom ST_PolyFromText(java.lang.String s)
public static GeoFunctions.Geom ST_PolyFromText(java.lang.String wkt, int srid)
public static GeoFunctions.Geom ST_MLineFromText(java.lang.String s)
public static GeoFunctions.Geom ST_MLineFromText(java.lang.String wkt, int srid)
public static GeoFunctions.Geom ST_MPolyFromText(java.lang.String s)
public static GeoFunctions.Geom ST_MPolyFromText(java.lang.String wkt, int srid)
public static GeoFunctions.Geom ST_MakeLine(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
public static GeoFunctions.Geom ST_MakeLine(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2, GeoFunctions.Geom geom3)
public static GeoFunctions.Geom ST_MakeLine(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2, GeoFunctions.Geom geom3, GeoFunctions.Geom geom4)
public static GeoFunctions.Geom ST_MakeLine(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2, GeoFunctions.Geom geom3, GeoFunctions.Geom geom4, GeoFunctions.Geom geom5)
public static GeoFunctions.Geom ST_MakeLine(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2, GeoFunctions.Geom geom3, GeoFunctions.Geom geom4, GeoFunctions.Geom geom5, GeoFunctions.Geom geom6)
private static GeoFunctions.Geom makeLine(GeoFunctions.Geom... geoms)
public static GeoFunctions.Geom ST_MakePoint(java.math.BigDecimal x, java.math.BigDecimal y)
ST_Point(BigDecimal, BigDecimal)
.public static GeoFunctions.Geom ST_MakePoint(java.math.BigDecimal x, java.math.BigDecimal y, java.math.BigDecimal z)
ST_Point(BigDecimal, BigDecimal, BigDecimal)
.public static GeoFunctions.Geom ST_Point(java.math.BigDecimal x, java.math.BigDecimal y)
public static GeoFunctions.Geom ST_Point(java.math.BigDecimal x, java.math.BigDecimal y, java.math.BigDecimal z)
private static GeoFunctions.Geom point(double x, double y)
public static boolean ST_Is3D(GeoFunctions.Geom geom)
geom
has at least one z-coordinate.public static java.lang.Double ST_X(GeoFunctions.Geom geom)
geom
.public static java.lang.Double ST_Y(GeoFunctions.Geom geom)
geom
.public static java.lang.Double ST_Z(GeoFunctions.Geom geom)
geom
.public static GeoFunctions.Geom ST_Boundary(GeoFunctions.Geom geom)
geom
.public static double ST_Distance(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
and geom2
.public static java.lang.String ST_GeometryType(GeoFunctions.Geom geom)
geom
.public static int ST_GeometryTypeCode(GeoFunctions.Geom geom)
geom
.private static GeoFunctions.Type type(com.esri.core.geometry.Geometry g)
public static GeoFunctions.Geom ST_Envelope(GeoFunctions.Geom geom)
geom
(which may be a
GEOMETRYCOLLECTION).private static com.esri.core.geometry.Envelope envelope(com.esri.core.geometry.Geometry g)
public static boolean ST_Contains(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
contains geom2
.public static boolean ST_ContainsProperly(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
contains geom2
but does not
intersect its boundary.private static boolean ST_Covers(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom2
is outside geom1
.public static boolean ST_Crosses(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
crosses geom2
.public static boolean ST_Disjoint(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
and geom2
are disjoint.public static boolean ST_EnvelopesIntersect(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
intersects the envelope of
geom2
.public static boolean ST_Equals(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
equals geom2
.public static boolean ST_Intersects(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
intersects geom2
.private static boolean intersects(com.esri.core.geometry.Geometry g1, com.esri.core.geometry.Geometry g2, com.esri.core.geometry.SpatialReference sr)
public static boolean ST_OrderingEquals(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
equals geom2
and their coordinates
and component Geometries are listed in the same order.public static boolean ST_Overlaps(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
overlaps geom2
.public static boolean ST_Touches(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
touches geom2
.public static boolean ST_Within(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
is within geom2
.public static boolean ST_DWithin(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2, double distance)
geom1
and geom2
are within
distance
of each other.public static GeoFunctions.Geom ST_Buffer(GeoFunctions.Geom geom, double distance)
geom
.public static GeoFunctions.Geom ST_Buffer(GeoFunctions.Geom geom, double distance, int quadSegs)
geom
with .public static GeoFunctions.Geom ST_Buffer(GeoFunctions.Geom geom, double bufferSize, java.lang.String style)
geom
.private static GeoFunctions.Geom buffer(GeoFunctions.Geom geom, double bufferSize, int quadSegCount, GeoFunctions.CapStyle endCapStyle, GeoFunctions.JoinStyle joinStyle, float mitreLimit)
public static GeoFunctions.Geom ST_Union(GeoFunctions.Geom geom1, GeoFunctions.Geom geom2)
geom1
and geom2
.public static GeoFunctions.Geom ST_Union(GeoFunctions.Geom geomCollection)
geomCollection
.public static GeoFunctions.Geom ST_Transform(GeoFunctions.Geom geom, int srid)
geom
from one coordinate reference
system (CRS) to the CRS specified by srid
.public static GeoFunctions.Geom ST_SetSRID(GeoFunctions.Geom geom, int srid)
geom
with a new SRID.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.