Geospatial operations.
Classes
GeoArea |
Area of the geo spatial data. |
GeoAsBinary |
Return the Well-Known Binary (WKB) representation of the input, without SRID meta data. |
GeoAsEWKB |
Return the Well-Known Binary representation of the input, with SRID meta data. |
GeoAsEWKT |
Return the Well-Known Text representation of the input, with SRID meta data. |
GeoAsText |
Return the Well-Known Text (WKT) representation of the input, without SRID metadata. |
GeoAzimuth |
Return the angle in radians from the horizontal of the vector defined by the two inputs. |
GeoBuffer |
Return all points whose distance from this geometry is less than or equal to radius . |
GeoCentroid |
Returns the geometric center of a geometry. |
GeoContains |
Check if the first geo spatial data contains the second one. |
GeoContainsProperly |
Check if the left value contains the right one, with no shared no boundary points. |
GeoConvert |
Returns a transformed version of the given geometry from source crs/srid to a target crs/srid. |
GeoCoveredBy |
Check if no point in the left operand is outside that of the right. |
GeoCovers |
Check if no point in the right operand is outside that of the left. |
GeoCrosses |
Check if the inputs have some but not all interior points in common. |
GeoDFullyWithin |
Check if the geometries are fully within distance of one another. |
GeoDWithin |
Check if the geometries are within distance of one another. |
GeoDifference |
Return a geometry that is the delta between the left and right inputs. |
GeoDisjoint |
Check if the Geometries do not spatially intersect. |
GeoDistance |
Returns minimum distance between two geospatial operands. |
GeoEndPoint |
Return the last point of a LINESTRING geometry as a POINT. |
GeoEnvelope |
The bounding box of the supplied geometry. |
GeoEquals |
Returns True if the given geometries represent the same geometry. |
GeoFlipCoordinates |
Returns a new geometry with the coordinates of the input geometry “flipped” so that x = y and y = x. |
GeoGeometryN |
Returns the Nth Geometry of a Multi geometry. |
GeoGeometryType |
Returns the type of the geometry. |
GeoIntersection |
Return a geometry that represents the point-set intersection of the inputs. |
GeoIntersects |
Returns True if the Geometries/Geography “spatially intersect in 2D”. |
GeoIsValid |
Returns true if the geometry is well-formed. |
GeoLength |
Length of geo spatial data. |
GeoLineLocatePoint |
Locate the distance a point falls along the length of a line. |
GeoLineMerge |
Merge a MultiLineString into a LineString. |
GeoLineSubstring |
Clip a substring from a LineString. |
GeoMaxDistance |
Returns the 2-dimensional max distance between two geometries in projected units. |
GeoNPoints |
Return the number of points in a geometry. |
GeoNRings |
Return the number of rings for polygons or multipolygons. |
GeoOrderingEquals |
Check if two geometries are equal and have the same point ordering. |
GeoOverlaps |
Check if the inputs are of the same dimension but are not completely contained by each other. |
GeoPerimeter |
Perimeter of the geo spatial data. |
GeoPoint |
Return a point constructed from the input coordinate values. |
GeoPointN |
Return the Nth point in a single linestring in the geometry. |
GeoSRID |
Returns the spatial reference identifier for the ST_Geometry. |
GeoSetSRID |
Set the spatial reference identifier for the ST_Geometry. |
GeoSimplify |
Returns a simplified version of the given geometry. |
GeoSpatialBinOp |
Geo Spatial base binary. |
GeoSpatialUnOp |
Geo Spatial base unary. |
GeoStartPoint |
Return the first point of a LINESTRING geometry as a POINT. |
GeoTouches |
Check if the inputs have at least one point in common but their interiors do not intersect. |
GeoTransform |
Returns a transformed version of the given geometry into a new SRID. |
GeoUnaryUnion |
Returns the pointwise union of the geometries in the column. |
GeoUnion |
Returns the pointwise union of the two geometries. |
GeoWithin |
Returns True if the geometry A is completely inside geometry B. |
GeoX |
Return the X coordinate of the point, or NULL if not available. |
GeoXMax |
Returns X maxima of a bounding box 2d or 3d or a geometry. |
GeoXMin |
Returns Y minima of a bounding box 2d or 3d or a geometry. |
GeoY |
Return the Y coordinate of the point, or NULL if not available. |
GeoYMax |
Returns Y maxima of a bounding box 2d or 3d or a geometry. |
GeoYMin |
Returns Y minima of a bounding box 2d or 3d or a geometry. |
GeoArea
GeoArea(self, **kwargs)
Area of the geo spatial data.
GeoAsBinary
GeoAsBinary(self, **kwargs)
Return the Well-Known Binary (WKB) representation of the input, without SRID meta data.
GeoAsEWKB
GeoAsEWKB(self, **kwargs)
Return the Well-Known Binary representation of the input, with SRID meta data.
GeoAsEWKT
GeoAsEWKT(self, **kwargs)
Return the Well-Known Text representation of the input, with SRID meta data.
GeoAsText
GeoAsText(self, **kwargs)
Return the Well-Known Text (WKT) representation of the input, without SRID metadata.
GeoAzimuth
GeoAzimuth(self, **kwargs)
Return the angle in radians from the horizontal of the vector defined by the two inputs.
Angle is computed clockwise from down-to-up: on the clock: 12=0; 3=PI/2; 6=PI; 9=3PI/2.
GeoBuffer
GeoBuffer(self, **kwargs)
Return all points whose distance from this geometry is less than or equal to radius
.
Calculations are in the Spatial Reference System of this geometry.
GeoCentroid
GeoCentroid(self, **kwargs)
Returns the geometric center of a geometry.
GeoContains
GeoContains(self, **kwargs)
Check if the first geo spatial data contains the second one.
GeoContainsProperly
GeoContainsProperly(self, **kwargs)
Check if the left value contains the right one, with no shared no boundary points.
GeoConvert
GeoConvert(self, **kwargs)
Returns a transformed version of the given geometry from source crs/srid to a target crs/srid.
GeoCoveredBy
GeoCoveredBy(self, **kwargs)
Check if no point in the left operand is outside that of the right.
GeoCovers
GeoCovers(self, **kwargs)
Check if no point in the right operand is outside that of the left.
GeoCrosses
GeoCrosses(self, **kwargs)
Check if the inputs have some but not all interior points in common.
GeoDFullyWithin
GeoDFullyWithin(self, **kwargs)
Check if the geometries are fully within distance
of one another.
GeoDWithin
GeoDWithin(self, **kwargs)
Check if the geometries are within distance
of one another.
GeoDifference
GeoDifference(self, **kwargs)
Return a geometry that is the delta between the left and right inputs.
GeoDisjoint
GeoDisjoint(self, **kwargs)
Check if the Geometries do not spatially intersect.
GeoDistance
GeoDistance(self, **kwargs)
Returns minimum distance between two geospatial operands.
GeoEndPoint
GeoEndPoint(self, **kwargs)
Return the last point of a LINESTRING
geometry as a POINT.
Returns NULL
if the input is not a LINESTRING.
GeoEnvelope
GeoEnvelope(self, **kwargs)
The bounding box of the supplied geometry.
GeoEquals
GeoEquals(self, **kwargs)
Returns True if the given geometries represent the same geometry.
GeoFlipCoordinates
GeoFlipCoordinates(self, **kwargs)
Returns a new geometry with the coordinates of the input geometry “flipped” so that x = y and y = x.
GeoGeometryN
GeoGeometryN(self, **kwargs)
Returns the Nth Geometry of a Multi geometry.
GeoGeometryType
GeoGeometryType(self, **kwargs)
Returns the type of the geometry.
GeoIntersection
GeoIntersection(self, **kwargs)
Return a geometry that represents the point-set intersection of the inputs.
GeoIntersects
GeoIntersects(self, **kwargs)
Returns True if the Geometries/Geography “spatially intersect in 2D”.
- (share any portion of space) and False if they don`t (they are Disjoint).
GeoIsValid
GeoIsValid(self, **kwargs)
Returns true if the geometry is well-formed.
GeoLength
GeoLength(self, **kwargs)
Length of geo spatial data.
GeoLineLocatePoint
GeoLineLocatePoint(self, **kwargs)
Locate the distance a point falls along the length of a line.
Returns a float between zero and one representing the location of the closest point on the linestring to the given point, as a fraction of the total 2d line length.
GeoLineMerge
GeoLineMerge(self, **kwargs)
Merge a MultiLineString into a LineString.
Returns a (set of) LineString(s) formed by sewing together the constituent line work of a multilinestring. If a geometry other than a linestring or multilinestring is given, this will return an empty geometry collection.
GeoLineSubstring
GeoLineSubstring(self, **kwargs)
Clip a substring from a LineString.
Returns a linestring that is a substring of the input one, starting and ending at the given fractions of the total 2d length. The second and third arguments are floating point values between zero and one. This only works with linestrings.
GeoMaxDistance
GeoMaxDistance(self, **kwargs)
Returns the 2-dimensional max distance between two geometries in projected units.
If g1 and g2 is the same geometry the function will return the distance between the two vertices most far from each other in that geometry
GeoNPoints
GeoNPoints(self, **kwargs)
Return the number of points in a geometry.
GeoNRings
GeoNRings(self, **kwargs)
Return the number of rings for polygons or multipolygons.
Outer rings are counted.
GeoOrderingEquals
GeoOrderingEquals(self, **kwargs)
Check if two geometries are equal and have the same point ordering.
Returns true if the two geometries are equal and the coordinates are in the same order.
GeoOverlaps
GeoOverlaps(self, **kwargs)
Check if the inputs are of the same dimension but are not completely contained by each other.
GeoPerimeter
GeoPerimeter(self, **kwargs)
Perimeter of the geo spatial data.
GeoPoint
GeoPoint(self, **kwargs)
Return a point constructed from the input coordinate values.
Constant coordinates result in construction of a POINT literal.
GeoPointN
GeoPointN(self, **kwargs)
Return the Nth point in a single linestring in the geometry.
Negative values are counted backwards from the end of the LineString, so that -1 is the last point. Returns NULL if there is no linestring in the geometry
GeoSRID
GeoSRID(self, **kwargs)
Returns the spatial reference identifier for the ST_Geometry.
GeoSetSRID
GeoSetSRID(self, **kwargs)
Set the spatial reference identifier for the ST_Geometry.
GeoSimplify
GeoSimplify(self, **kwargs)
Returns a simplified version of the given geometry.
GeoSpatialBinOp
GeoSpatialBinOp(self, **kwargs)
Geo Spatial base binary.
GeoSpatialUnOp
GeoSpatialUnOp(self, **kwargs)
Geo Spatial base unary.
GeoStartPoint
GeoStartPoint(self, **kwargs)
Return the first point of a LINESTRING
geometry as a POINT.
Returns NULL
if the input is not a LINESTRING.
GeoTouches
GeoTouches(self, **kwargs)
Check if the inputs have at least one point in common but their interiors do not intersect.
GeoUnaryUnion
GeoUnaryUnion(self, **kwargs)
Returns the pointwise union of the geometries in the column.
GeoUnion
GeoUnion(self, **kwargs)
Returns the pointwise union of the two geometries.
GeoWithin
GeoWithin(self, **kwargs)
Returns True if the geometry A is completely inside geometry B.
GeoX
GeoX(self, **kwargs)
Return the X coordinate of the point, or NULL if not available.
Input must be a point
GeoXMax
GeoXMax(self, **kwargs)
Returns X maxima of a bounding box 2d or 3d or a geometry.
GeoXMin
GeoXMin(self, **kwargs)
Returns Y minima of a bounding box 2d or 3d or a geometry.
GeoY
GeoY(self, **kwargs)
Return the Y coordinate of the point, or NULL if not available.
Input must be a point
GeoYMax
GeoYMax(self, **kwargs)
Returns Y maxima of a bounding box 2d or 3d or a geometry.
GeoYMin
GeoYMin(self, **kwargs)
Returns Y minima of a bounding box 2d or 3d or a geometry.