API reference#
Geography properties#
The enumeration of Geography types |
|
|
Returns True if the object is a |
|
Returns the inherent dimensionality of a geography. |
|
Returns the type ID of a geography. |
|
Returns the longitude value of the Point (in degrees). |
|
Returns the latitude value of the Point (in degrees). |
|
Returns True if the geography object is "prepared", False otherwise. |
|
Prepare a geography, improving performance of other operations. |
|
Destroy the prepared part of a geography, freeing up memory. |
Geography creation#
|
Create a POINT geography. |
|
Create a MULTIPOINT geography. |
|
Create a LINESTRING geography. |
|
Create a MULTILINESTRING geography. |
|
Create a POLYGON geography. |
|
Create a MULTIPOLYGON geography. |
|
Create a GEOMETRYCOLLECTION geography from arbitrary geographies. |
Input/Output#
|
Creates geographies from the Well-Known Text (WKT) representation. |
|
Returns the WKT representation of each geography. |
|
Creates geographies from the Well-Known Bytes (WKB) representation. |
|
Returns the WKB representation of each geography. |
|
Create an array of geographies from an Arrow array object with a GeoArrow extension type. |
|
Convert an array of geographies to an Arrow array object with a GeoArrow extension type. |
Measurement#
|
Calculate the area of the geography. |
|
Calculate the distance between two geographies. |
|
Calculates the length of a line geography, returning zero for other types. |
|
Calculates the perimeter of a polygon geography, returning zero for other types. |
Predicates#
|
Returns True if A and B are spatially equal. |
|
Returns True if A and B share any portion of space. |
|
Returns True if A and B intersect, but their interiors do not intersect. |
|
Returns True if B is completely inside A. |
|
Returns True if A is completely inside B. |
|
Returns True if A boundaries and interior does not intersect at all with those of B. |
|
Returns True if every point in B lies inside the interior or boundary of A. |
|
Returns True if every point in A lies inside the interior or boundary of B. |
Overlays (boolean operations)#
|
Computes the union of both geographies. |
|
Computes the intersection of both geographies. |
|
Computes the difference of both geographies. |
|
Computes the symmetric difference of both geographies. |
Constructive operations#
|
Computes the centroid of each geography. |
|
Computes the boundary of each geography. |
|
Computes the convex hull of each geography. |