Geospatial Functions
h3_cell_to_boundary
Returns a polygon containing the h3 integer cell boundaries Supported Signatures
h3_cell_to_children
Returns the H3 children cells as integers for a given H3 index Supported Signatures
h3_cell_to_children_string
Returns the H3 children cells as strings for a given H3 index Supported Signatures
h3_cell_to_parent
Returns the H3 parent cell as an integer for a given H3 index Supported Signatures
h3_cell_to_point
Returns a point (geography) corresponding to the center of the h3 integer cell passed Supported Signatures
h3_coverage
Returns the full spherical based covering of H3 cells as integers for any geography type Supported Signatures
h3_coverage_strings
Returns the full spherical based covering of H3 cells as strings for any geography type Supported Signatures
h3_get_resolution
Returns the cell resolution for a given H3 integer cell Supported Signatures
h3_grid_disk
Returns all H3 cells that are at most k steps away from the input cell Supported Signatures
h3_grid_distance
Returns the number of H3 cells that are betweem two input cells Supported Signatures
h3_grid_path
Returns all H3 cells that are along the straight line connecting both cells Supported Signatures
h3_int_to_string
Returns the H3 cell formatted as a string given its integer representation Supported Signatures
h3_latlng_to_cell
Returns an H3 index as an integer that corresponds to a given point (lat/lng) and resolution Supported Signatures
h3_latlng_to_cell_string
Returns an H3 index as a string that corresponds to a given point (lat/lng) and resolution Supported Signatures
h3_point_to_cell
Returns an H3 integer cell that corresponds to a given point (geography) and resolution Supported Signatures
h3_point_to_cell_string
Returns an H3 string cell that corresponds to a given point (geography) and resolution Supported Signatures
h3_polygon_to_cells
Returns the planar centroid based covering of H3 cells as integers for a polygon/multipolygon Supported Signatures
h3_polygon_to_cells_strings
Returns the planar centroid based covering of H3 cells as strings for a polygon/multipolygon Supported Signatures
h3_string_to_int
Returns the H3 cell formatted as an integer given its string representation Supported Signatures
haversine
Calculate great circle distance (in km) from two (lat, lon) locations (degrees). Supported Signatures
st_area
Area of the object in square meters Supported Signatures
st_asbinary
Return the WKB representation of the GEOGRAPHY object Supported Signatures
st_asewkb
Return the EWKB representation of the GEOGRAPHY object Supported Signatures
st_asewkt
Return the WKB representation of the GEOGRAPHY object Supported Signatures
st_asgeojson
Return the GeoJSON representation of the GEOGRAPHY object Supported Signatures
st_astext
Return the WKT representation of the GEOGRAPHY object Supported Signatures
st_aswkb
Return the WKB representation of the GEOGRAPHY object Supported Signatures
st_aswkt
Return the WKB representation of the GEOGRAPHY object Supported Signatures
st_azimuth
Returns the azimuth in radians of the segment defined by the given point Supported Signatures
st_buffer
Returns the geometry generated by the buffer operation upon the given input geometry using the diven distance Supported Signatures
st_centroid
The centroid of geography Supported Signatures
st_collect
Aggregates all geographies into a GeometryCollection or Multi* geography if they are all of the same single element type (e.g. Point) Supported Signatures
st_contains
True if the first object fully contains the second Supported Signatures
st_coveredby
True if the second object covers the first Supported Signatures
st_covers
True if the first object covers the second Supported Signatures
st_difference
Geometry representing the set difference a minus b Supported Signatures
st_dimension
The dimension of the input geography Supported Signatures
st_disjoint
True if the two objects not intersect Supported Signatures
st_distance
Distance between two geography objects in meters Supported Signatures
st_dwithin
True if the minimum distance between two objects is smaller than or equal to the specified distance in meters Supported Signatures
st_endpoint
The last point in the geography, only supports LineStrings Supported Signatures
st_envelope
the double-precision (float8) minimum bounding box for the supplied geometry Supported Signatures
st_geogfromgeohash
The geography represented by the geohash Supported Signatures
st_geogpointfromgeohash
The point represented by the geohash Supported Signatures
st_geographyfromwkb
Parse WKB or EWKB Supported Signatures
st_geographyfromwkt
Alias of ST_GEOGRAPHYFROMTEXT Supported Signatures
st_geohash
The geohash of a geography Supported Signatures
st_geometryfromwkb
Parse WKB or EWKB from binary Supported Signatures
st_geometryfromwkt
Alias of ST_GEOMETRYFROMTEXT Supported Signatures
st_hausdorffdistance
the Hausdorff distance between two geometries Supported Signatures
st_intersection
Geometry representing the intersection of a and b Supported Signatures
st_intersects
True if the two objects intersect Supported Signatures
st_isvalid
True if g has an internal representation Supported Signatures
st_length
Length or perimeter of the object in meters Supported Signatures
st_makegeompoint
Creates a point with the given x and y Supported Signatures
st_makeline
Create a Line out of the points in the input geographies Supported Signatures
st_makepoint
Creates a point with the given longitude and latitude Supported Signatures
st_makepolygon
The Polygon consisting of the LineString as outer shell Supported Signatures
st_makepolygonoriented
The Polygon consisting of the LineString as outer shell, with unmodified orientation Supported Signatures
st_npoints
The number of points in the object’s definition Supported Signatures
st_numpoints
Alias for ST_NPOINTS Supported Signatures
st_perimeter
Perimeter of the object in meters Supported Signatures
st_point
Creates a point with the given longitude and latitude Supported Signatures
st_pointn
The nth point in the geography, only supports LineStrings Supported Signatures
st_polygon
Alias for ST_MAKEPOLYGON Supported Signatures
st_setsrid
Returns a geometry same as input geometry but with SRID set to the given value Supported Signatures
st_simplify
Simplified version of the given geometry Supported Signatures
st_srid
Returns the SRID of a geography if present. Otherwise 4326 Supported Signatures
st_startpoint
The first point in the geography, only supports LineStrings Supported Signatures
st_symdifference
Geometry representing the set symmetric difference a minus b Supported Signatures
st_transform
Returns the geometry transformed from one SRID to another SRID. Supported Signatures
st_union
Geometry representing the union of a and b Supported Signatures
st_within
True if the second object fully contains the first Supported Signatures
st_x
The longitude of a point Supported Signatures
st_xmax
The maximum longitude Supported Signatures
st_xmin
The minimum longitude Supported Signatures
st_y
The latitude of a point Supported Signatures
st_ymax
The maximum latitude Supported Signatures
st_ymin
The minimum latitude Supported Signatures
to_geography
No-op; prevents us from re-packaging GEOGRAPHY during input Supported Signatures
to_geometry
No-op; prevents us from re-packaging GEOMETRY during input Supported Signatures
try_to_geography
No-op; prevents us from re-packaging GEOGRAPHY during input Supported Signatures
try_to_geometry
No-op; prevents us from re-packaging GEOMETRY during input Supported Signatures