Search
ctrl+/
Ask AI
ctrl+.
Light
Dark
System
Sign in

ext::postgisNew

This extension exposes the functionality of the PostGIS library. It is a vast library dedicated to handling geographic and various geometric data. The scope of the EdgeDB extension is to mainly adapt the types and functions used in this library with minimal changes.

As a rule, many of the functions in PostGIS library have a ST_` prefix, however, we omitted it since in EdgeDB all these functions would already be in the ext::postgis namespace and additional disambiguation is unnecessary.

There are four basic scalar types introduced by this extension:

type

geometry

The type representing 2- or 3-dimensional spatial features.

By default most of the geometry values are assumed to be representing planar geometry in a Cartesian coordinate system.

Every other ext::postgis scalar type is castable into geometry. Many of the PostGIS functions only accept geometry as input.

type

geography

The type representing spatial features with geodetic coordinate systems.

The PostGIS geography data type provides native support for spatial features represented on "geographic" coordinates (sometimes called "geodetic" coordinates, or "lat/lon", or "lon/lat"). Geographic coordinates are spherical coordinates expressed in angular units (degrees).

type

box2d

The type representing a 2-dimensional bounding box.

type

box3d

The type representing a 3-dimensional bounding box.

There are many functions available for processing all this geometric and geographic data. Of note are the functions that represent operations affected by the indexes (pg::gist, pg::brin, and pg::spgist). These functions all have a op_ prefix to help identify them.

function

ext::postgis::op_above()
ext::postgis::op_above( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the |>> operator.

function

ext::postgis::op_below()
ext::postgis::op_below( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the <<| operator.

function

ext::postgis::op_contained_3d()
ext::postgis::op_contained_3d( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the <<@ operator.

function

ext::postgis::op_contains()
ext::postgis::op_contains( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the ~ operator.

function

ext::postgis::op_contains_2d()
ext::postgis::op_contains_2d( a: ext::postgis::box2d, b: ext::postgis::box2d, ) -> std::boolext::postgis::op_contains_2d( a: ext::postgis::box2d, b: ext::postgis::geometry, ) -> std::boolext::postgis::op_contains_2d( a: ext::postgis::geometry, b: ext::postgis::box2d, ) -> std::bool

This is exposing the ~ operator.

function

ext::postgis::op_contains_3d()
ext::postgis::op_contains_3d( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the @>> operator.

function

ext::postgis::op_contains_nd()
ext::postgis::op_contains_nd( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the ~~ operator.

function

ext::postgis::op_distance_box()
ext::postgis::op_distance_box( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::float64

This is exposing the <#> operator.

function

ext::postgis::op_distance_centroid()
ext::postgis::op_distance_centroid( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::float64

This is exposing the <-> operator.

function

ext::postgis::op_distance_centroid_nd()
ext::postgis::op_distance_centroid_nd( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::float64

This is exposing the <<->> operator.

function

ext::postgis::op_distance_cpa()
ext::postgis::op_distance_cpa( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::float64

This is exposing the |=| operator.

function

ext::postgis::op_distance_knn()
ext::postgis::op_distance_knn( a: ext::postgis::geography, b: ext::postgis::geography, ) -> std::float64

This is exposing the <-> operator.

function

ext::postgis::op_is_contained_2d()
ext::postgis::op_is_contained_2d( a: ext::postgis::box2d, b: ext::postgis::box2d, ) -> std::boolext::postgis::op_is_contained_2d( a: ext::postgis::box2d, b: ext::postgis::geometry, ) -> std::boolext::postgis::op_is_contained_2d( a: ext::postgis::geometry, b: ext::postgis::box2d, ) -> std::bool

This is exposing the @ operator.

function

ext::postgis::op_left()
ext::postgis::op_left( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the << operator.

function

ext::postgis::op_neq()
ext::postgis::op_neq( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the <> operator.

function

ext::postgis::op_overabove()
ext::postgis::op_overabove( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the |&> operator.

function

ext::postgis::op_overbelow()
ext::postgis::op_overbelow( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the &<| operator.

function

ext::postgis::op_overlaps()
ext::postgis::op_overlaps( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::boolext::postgis::op_overlaps( a: ext::postgis::geography, b: ext::postgis::geography, ) -> std::bool

This is exposing the && operator.

function

ext::postgis::op_overlaps_2d()
ext::postgis::op_overlaps_2d( a: ext::postgis::box2d, b: ext::postgis::box2d, ) -> std::boolext::postgis::op_overlaps_2d( a: ext::postgis::box2d, b: ext::postgis::geometry, ) -> std::boolext::postgis::op_overlaps_2d( a: ext::postgis::geometry, b: ext::postgis::box2d, ) -> std::bool

This is exposing the && operator.

function

ext::postgis::op_overlaps_3d()
ext::postgis::op_overlaps_3d( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the &/& operator.

function

ext::postgis::op_overlaps_nd()
ext::postgis::op_overlaps_nd( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the &&& operator.

function

ext::postgis::op_overleft()
ext::postgis::op_overleft( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the &< operator.

function

ext::postgis::op_overright()
ext::postgis::op_overright( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the &> operator.

function

ext::postgis::op_right()
ext::postgis::op_right( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the >> operator.

function

ext::postgis::op_same()
ext::postgis::op_same( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the ~= operator.

function

ext::postgis::op_same_3d()
ext::postgis::op_same_3d( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the ~== operator.

function

ext::postgis::op_same_nd()
ext::postgis::op_same_nd( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the ~~= operator.

function

ext::postgis::op_within()
ext::postgis::op_within( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the @ operator.

function

ext::postgis::op_within_nd()
ext::postgis::op_within_nd( a: ext::postgis::geometry, b: ext::postgis::geometry, ) -> std::bool

This is exposing the @@ operator.

The core functions can be roughly grouped into the following categories.

ext::postgis::collect() (added in 6.0)

This is exposing st_collect.

ext::postgis::hexagon() (added in 6.0)

This is exposing st_hexagon.

ext::postgis::linefrommultipoint() (added in 6.0)

This is exposing st_linefrommultipoint.

ext::postgis::makeenvelope() (added in 6.0)

This is exposing st_makeenvelope.

ext::postgis::makeline() (added in 6.0)

This is exposing st_makeline.

ext::postgis::makepoint() (added in 6.0)

This is exposing st_makepoint.

ext::postgis::makepointm() (added in 6.0)

This is exposing st_makepointm.

ext::postgis::makepolygon() (added in 6.0)

This is exposing st_makepolygon.

ext::postgis::point() (added in 6.0)

This is exposing st_point.

ext::postgis::pointm() (added in 6.0)

This is exposing st_pointm.

ext::postgis::pointz() (added in 6.0)

This is exposing st_pointz.

ext::postgis::pointzm() (added in 6.0)

This is exposing st_pointzm.

ext::postgis::polygon() (added in 6.0)

This is exposing st_polygon.

ext::postgis::square() (added in 6.0)

This is exposing st_square.

ext::postgis::tileenvelope() (added in 6.0)

This is exposing st_tileenvelope.

ext::postgis::boundary() (added in 6.0)

This is exposing st_boundary.

ext::postgis::boundingdiagonal() (added in 6.0)

This is exposing st_boundingdiagonal.

ext::postgis::coorddim() (added in 6.0)

This is exposing st_coorddim.

ext::postgis::dimension() (added in 6.0)

This is exposing st_dimension.

ext::postgis::endpoint() (added in 6.0)

This is exposing st_endpoint.

ext::postgis::envelope() (added in 6.0)

This is exposing st_envelope.

ext::postgis::exteriorring() (added in 6.0)

This is exposing st_exteriorring.

ext::postgis::geometryn() (added in 6.0)

This is exposing st_geometryn.

ext::postgis::geometrytype() (added in 6.0)

This is exposing geometrytype.

ext::postgis::hasarc() (added in 6.0)

This is exposing st_hasarc.

ext::postgis::interiorringn() (added in 6.0)

This is exposing st_interiorringn.

ext::postgis::isclosed() (added in 6.0)

Tests if a geometry in 2D or 3D is closed.

ext::postgis::iscollection() (added in 6.0)

This is exposing st_iscollection.

ext::postgis::isempty() (added in 6.0)

This is exposing st_isempty.

ext::postgis::ispolygonccw() (added in 6.0)

Tests counter-clockwise poligonal orientation of a geometry.

ext::postgis::ispolygoncw() (added in 6.0)

Tests clockwise poligonal orientation of a geometry.

ext::postgis::isring() (added in 6.0)

This is exposing st_isring.

ext::postgis::issimple() (added in 6.0)

This is exposing st_issimple.

ext::postgis::m() (added in 6.0)

This is exposing st_m.

ext::postgis::memsize() (added in 6.0)

This is exposing st_memsize.

ext::postgis::ndims() (added in 6.0)

This is exposing st_ndims.

ext::postgis::npoints() (added in 6.0)

This is exposing st_npoints.

ext::postgis::nrings() (added in 6.0)

This is exposing st_nrings.

ext::postgis::numgeometries() (added in 6.0)

This is exposing st_numgeometries.

ext::postgis::numinteriorring() (added in 6.0)

This is exposing st_numinteriorring.

ext::postgis::numinteriorrings() (added in 6.0)

This is exposing st_numinteriorrings.

ext::postgis::numpatches() (added in 6.0)

Return the number of faces on a Polyhedral Surface.

ext::postgis::numpoints() (added in 6.0)

This is exposing st_numpoints.

ext::postgis::patchn() (added in 6.0)

This is exposing st_patchn.

ext::postgis::pointn() (added in 6.0)

Returns the Nth point in the first LineString in a geometry.

ext::postgis::points() (added in 6.0)

This is exposing st_points.

ext::postgis::startpoint() (added in 6.0)

This is exposing st_startpoint.

ext::postgis::summary() (added in 6.0)

This is exposing st_summary.

ext::postgis::x() (added in 6.0)

This is exposing st_x.

ext::postgis::y() (added in 6.0)

This is exposing st_y.

ext::postgis::z() (added in 6.0)

This is exposing st_z.

ext::postgis::zmflag() (added in 6.0)

This is exposing st_zmflag.

ext::postgis::addpoint() (added in 6.0)

This is exposing st_addpoint.

ext::postgis::collectionextract() (added in 6.0)

This is exposing st_collectionextract.

ext::postgis::collectionhomogenize() (added in 6.0)

This is exposing st_collectionhomogenize.

ext::postgis::curvetoline() (added in 6.0)

This is exposing st_curvetoline.

ext::postgis::flipcoordinates() (added in 6.0)

This is exposing st_flipcoordinates.

ext::postgis::force2d() (added in 6.0)

This is exposing st_force2d.

ext::postgis::force3d() (added in 6.0)

This is exposing st_force3d.

ext::postgis::force3dm() (added in 6.0)

This is exposing st_force3dm.

ext::postgis::force3dz() (added in 6.0)

This is exposing st_force3dz.

ext::postgis::force4d() (added in 6.0)

This is exposing st_force4d.

ext::postgis::forcecollection() (added in 6.0)

This is exposing st_forcecollection.

ext::postgis::forcecurve() (added in 6.0)

This is exposing st_forcecurve.

ext::postgis::forcepolygonccw() (added in 6.0)

This is exposing st_forcepolygonccw.

ext::postgis::forcepolygoncw() (added in 6.0)

This is exposing st_forcepolygoncw.

ext::postgis::forcerhr() (added in 6.0)

Forces the orientation of the vertices in a polygon to follow the RHR.

ext::postgis::forcesfs() (added in 6.0)

This is exposing st_forcesfs.

ext::postgis::lineextend() (added in 6.0)

This is exposing st_lineextend.

ext::postgis::linetocurve() (added in 6.0)

This is exposing st_linetocurve.

ext::postgis::multi() (added in 6.0)

This is exposing st_multi.

ext::postgis::normalize() (added in 6.0)

This is exposing st_normalize.

ext::postgis::project() (added in 6.0)

Returns a point projected from a start point by a distance and bearing.

ext::postgis::quantizecoordinates() (added in 6.0)

This is exposing st_quantizecoordinates.

ext::postgis::removepoint() (added in 6.0)

This is exposing st_removepoint.

ext::postgis::removerepeatedpoints() (added in 6.0)

This is exposing st_removerepeatedpoints.

ext::postgis::reverse() (added in 6.0)

This is exposing st_reverse.

ext::postgis::scroll() (added in 6.0)

This is exposing st_scroll.

ext::postgis::segmentize() (added in 6.0)

Makes a new geometry/geography with no segment longer than a given distance.

ext::postgis::setpoint() (added in 6.0)

This is exposing st_setpoint.

ext::postgis::shiftlongitude() (added in 6.0)

This is exposing st_shiftlongitude.

ext::postgis::snap() (added in 6.0)

This is exposing st_snap.

ext::postgis::snaptogrid() (added in 6.0)

This is exposing st_snaptogrid.

ext::postgis::wrapx() (added in 6.0)

This is exposing st_wrapx.

ext::postgis::isvalid() (added in 6.0)

This is exposing st_isvalid.

ext::postgis::isvalidreason() (added in 6.0)

This is exposing st_isvalidreason.

ext::postgis::makevalid() (added in 6.0)

This is exposing st_makevalid.

ext::postgis::inversetransformpipeline() (added in 6.0)

This is exposing st_inversetransformpipeline.

ext::postgis::postgis_srs_codes() (added in 6.0)

This is exposing postgis_srs_codes.

ext::postgis::setsrid() (added in 6.0)

This is exposing st_setsrid.

ext::postgis::srid() (added in 6.0)

This is exposing st_srid.

ext::postgis::transform() (added in 6.0)

Transforms a geometry to a different spatial reference system.

ext::postgis::transformpipeline() (added in 6.0)

This is exposing st_transformpipeline.

ext::postgis::asewkt() (added in 6.0)

Returns a geometry in WKT format with SRID meta data.

ext::postgis::astext() (added in 6.0)

Returns a geometry/geography in WKT format without SRID metadata.

ext::postgis::bdmpolyfromtext() (added in 6.0)

This is exposing st_bdmpolyfromtext.

ext::postgis::bdpolyfromtext() (added in 6.0)

This is exposing st_bdpolyfromtext.

ext::postgis::geogfromtext() (added in 6.0)

Creates a geography value from WKT or EWTK.

ext::postgis::geomcollfromtext() (added in 6.0)

Makes a collection Geometry from collection WKT.

ext::postgis::geomfromewkt() (added in 6.0)

Creates a geometry value from EWKT representation.

ext::postgis::geomfrommarc21() (added in 6.0)

This is exposing st_geomfrommarc21.

ext::postgis::geomfromtext() (added in 6.0)

Creates a geometry value from WKT representation.

ext::postgis::linefromtext() (added in 6.0)

Creates a geometry from WKT LINESTRING.

ext::postgis::mlinefromtext() (added in 6.0)

This is exposing st_mlinefromtext.

ext::postgis::mpointfromtext() (added in 6.0)

Creates a geometry from WKT MULTIPOINT.

ext::postgis::mpolyfromtext() (added in 6.0)

Creates a geometry from WKT MULTIPOLYGON.

ext::postgis::pointfromtext() (added in 6.0)

Makes a POINT geometry from WKT.

ext::postgis::polygonfromtext() (added in 6.0)

Creates a geometry from WKT POLYGON.

ext::postgis::asbinary() (added in 6.0)

Returns a geometry/geography in WKB format without SRID meta data.

ext::postgis::asewkb() (added in 6.0)

Returns a geometry in EWKB format with SRID meta data.

ext::postgis::ashexewkb() (added in 6.0)

Returns a geometry in HEXEWKB format (as text).

ext::postgis::geogfromwkb() (added in 6.0)

Creates a geography value from WKB or EWKB.

ext::postgis::geomfromewkb() (added in 6.0)

Creates a geometry value from EWKB.

ext::postgis::geomfromwkb() (added in 6.0)

Creates a geometry value from WKB representation.

ext::postgis::linefromwkb() (added in 6.0)

This is exposing st_linefromwkb.

ext::postgis::linestringfromwkb() (added in 6.0)

This is exposing st_linestringfromwkb.

ext::postgis::pointfromwkb() (added in 6.0)

This is exposing st_pointfromwkb.

ext::postgis::asencodedpolyline() (added in 6.0)

This is exposing st_asencodedpolyline.

ext::postgis::asgeojson() (added in 6.0)

This is exposing st_asgeojson.

ext::postgis::asgml() (added in 6.0)

This is exposing st_asgml.

ext::postgis::askml() (added in 6.0)

This is exposing st_askml.

ext::postgis::aslatlontext() (added in 6.0)

This is exposing st_aslatlontext.

ext::postgis::asmarc21() (added in 6.0)

This is exposing st_asmarc21.

ext::postgis::asmvtgeom() (added in 6.0)

This is exposing st_asmvtgeom.

ext::postgis::assvg() (added in 6.0)

This is exposing st_assvg.

ext::postgis::astwkb() (added in 6.0)

This is exposing st_astwkb.

ext::postgis::asx3d() (added in 6.0)

Returns a geometry in X3D format.

ext::postgis::box2dfromgeohash() (added in 6.0)

This is exposing st_box2dfromgeohash.

ext::postgis::geohash() (added in 6.0)

This is exposing st_geohash.

ext::postgis::geomfromgeohash() (added in 6.0)

This is exposing st_geomfromgeohash.

ext::postgis::geomfromgeojson() (added in 6.0)

Creates a geometry value from a geojson representation of a geometry.

ext::postgis::geomfromgml() (added in 6.0)

Creates a geometry value from GML representation of a geometry.

ext::postgis::geomfromkml() (added in 6.0)

Creates a geometry value from KML representation of a geometry.

ext::postgis::geomfromtwkb() (added in 6.0)

This is exposing st_geomfromtwkb.

ext::postgis::linefromencodedpolyline() (added in 6.0)

This is exposing st_linefromencodedpolyline.

ext::postgis::pointfromgeohash() (added in 6.0)

This is exposing st_pointfromgeohash.

ext::postgis::contains() (added in 6.0)

This is exposing st_contains.

ext::postgis::containsproperly() (added in 6.0)

Tests if every point of geom2 lies in the interior of geom1.

ext::postgis::coveredby() (added in 6.0)

This is exposing st_coveredby.

ext::postgis::covers() (added in 6.0)

This is exposing st_covers.

ext::postgis::crosses() (added in 6.0)

This is exposing st_crosses.

ext::postgis::disjoint() (added in 6.0)

This is exposing st_disjoint.

ext::postgis::equals() (added in 6.0)

This is exposing st_equals.

ext::postgis::intersects() (added in 6.0)

This is exposing st_intersects.

ext::postgis::intersects3d() (added in 6.0)

Tests if two geometries spatially intersect in 3D.

ext::postgis::linecrossingdirection() (added in 6.0)

This is exposing st_linecrossingdirection.

ext::postgis::orderingequals() (added in 6.0)

Tests if two geometries are the same geometry including points order.

ext::postgis::overlaps() (added in 6.0)

Tests if two geometries overlap.

ext::postgis::relate() (added in 6.0)

Tests if two geometries have a topological relationship.

ext::postgis::relatematch() (added in 6.0)

This is exposing st_relatematch.

ext::postgis::touches() (added in 6.0)

Tests if two geometries touch without intersecting interiors.

ext::postgis::within() (added in 6.0)

This is exposing st_within.

ext::postgis::dfullywithin() (added in 6.0)

Tests if two geometries are entirely within a given distance.

ext::postgis::dfullywithin3d() (added in 6.0)

This is exposing st_3ddfullywithin.

ext::postgis::dwithin() (added in 6.0)

This is exposing st_dwithin.

ext::postgis::dwithin3d() (added in 6.0)

This is exposing st_3ddwithin.

ext::postgis::pointinsidecircle() (added in 6.0)

This is exposing st_pointinsidecircle.

ext::postgis::angle() (added in 6.0)

This is exposing st_angle.

ext::postgis::area() (added in 6.0)

This is exposing st_area.

ext::postgis::azimuth() (added in 6.0)

This is exposing st_azimuth.

ext::postgis::closestpoint() (added in 6.0)

Returns the 2D point of the first geometry closest to the second.

ext::postgis::closestpoint3d() (added in 6.0)

Returns the 3D point of the first geometry closest to the second.

ext::postgis::distance() (added in 6.0)

This is exposing st_distance.

ext::postgis::distance3d() (added in 6.0)

Returns the 3D cartesian minimum distance between two geometries.

ext::postgis::distancesphere() (added in 6.0)

This is exposing st_distancesphere.

ext::postgis::distancespheroid() (added in 6.0)

This is exposing st_distancespheroid.

ext::postgis::frechetdistance() (added in 6.0)

This is exposing st_frechetdistance.

ext::postgis::hausdorffdistance() (added in 6.0)

This is exposing st_hausdorffdistance.

ext::postgis::length() (added in 6.0)

This is exposing st_length.

ext::postgis::length2d() (added in 6.0)

This is exposing st_length2d.

ext::postgis::length3d() (added in 6.0)

This is exposing st_3dlength.

ext::postgis::longestline() (added in 6.0)

This is exposing st_longestline.

ext::postgis::longestline3d() (added in 6.0)

This is exposing st_3dlongestline.

ext::postgis::maxdistance() (added in 6.0)

This is exposing st_maxdistance.

ext::postgis::maxdistance3d() (added in 6.0)

Returns the 3D cartesian maximum distance between two geometries.

ext::postgis::minimumclearance() (added in 6.0)

This is exposing st_minimumclearance.

ext::postgis::minimumclearanceline() (added in 6.0)

This is exposing st_minimumclearanceline.

ext::postgis::perimeter() (added in 6.0)

This is exposing st_perimeter.

ext::postgis::perimeter2d() (added in 6.0)

This is exposing st_perimeter2d.

ext::postgis::perimeter3d() (added in 6.0)

This is exposing st_3dperimeter.

ext::postgis::shortestline() (added in 6.0)

This is exposing st_shortestline.

ext::postgis::shortestline3d() (added in 6.0)

This is exposing st_3dshortestline.

ext::postgis::clipbybox2d() (added in 6.0)

This is exposing st_clipbybox2d.

ext::postgis::difference() (added in 6.0)

Computes a geometry resulting from removing all points in geom2 from geom1.

ext::postgis::intersection() (added in 6.0)

This is exposing st_intersection.

ext::postgis::node() (added in 6.0)

This is exposing st_node.

ext::postgis::split() (added in 6.0)

This is exposing st_split.

ext::postgis::subdivide() (added in 6.0)

This is exposing st_subdivide.

ext::postgis::symdifference() (added in 6.0)

Merges two geometries excluding where they intersect.

ext::postgis::unaryunion() (added in 6.0)

This is exposing st_unaryunion.

ext::postgis::union() (added in 6.0)

This is exposing st_union.

ext::postgis::buffer() (added in 6.0)

Returns a geometry covering all points within a given distance from a geometry.

ext::postgis::buildarea() (added in 6.0)

This is exposing st_buildarea.

ext::postgis::centroid() (added in 6.0)

This is exposing st_centroid.

ext::postgis::chaikinsmoothing() (added in 6.0)

This is exposing st_chaikinsmoothing.

ext::postgis::concavehull() (added in 6.0)

This is exposing st_concavehull.

ext::postgis::convexhull() (added in 6.0)

This is exposing st_convexhull.

ext::postgis::delaunaytriangles() (added in 6.0)

This is exposing st_delaunaytriangles.

ext::postgis::filterbym() (added in 6.0)

This is exposing st_filterbym.

ext::postgis::generatepoints() (added in 6.0)

This is exposing st_generatepoints.

ext::postgis::geometricmedian() (added in 6.0)

This is exposing st_geometricmedian.

ext::postgis::linemerge() (added in 6.0)

This is exposing st_linemerge.

ext::postgis::minimumboundingcircle() (added in 6.0)

This is exposing st_minimumboundingcircle.

ext::postgis::offsetcurve() (added in 6.0)

This is exposing st_offsetcurve.

ext::postgis::orientedenvelope() (added in 6.0)

This is exposing st_orientedenvelope.

ext::postgis::pointonsurface() (added in 6.0)

This is exposing st_pointonsurface.

ext::postgis::polygonize() (added in 6.0)

Computes a collection of polygons formed from a set of linework.

ext::postgis::reduceprecision() (added in 6.0)

This is exposing st_reduceprecision.

ext::postgis::seteffectivearea() (added in 6.0)

This is exposing st_seteffectivearea.

ext::postgis::sharedpaths() (added in 6.0)

This is exposing st_sharedpaths.

ext::postgis::simplify() (added in 6.0)

This is exposing st_simplify.

ext::postgis::simplifypolygonhull() (added in 6.0)

This is exposing st_simplifypolygonhull.

ext::postgis::simplifypreservetopology() (added in 6.0)

This is exposing st_simplifypreservetopology.

ext::postgis::simplifyvw() (added in 6.0)

This is exposing st_simplifyvw.

ext::postgis::triangulatepolygon() (added in 6.0)

This is exposing st_triangulatepolygon.

ext::postgis::voronoilines() (added in 6.0)

This is exposing st_voronoilines.

ext::postgis::voronoipolygons() (added in 6.0)

This is exposing st_voronoipolygons.

ext::postgis::coverageunion() (added in 6.0)

Computes polygonal coverage from a set of polygons.

ext::postgis::affine() (added in 6.0)

This is exposing st_affine.

ext::postgis::rotate() (added in 6.0)

This is exposing st_rotate.

ext::postgis::rotatex() (added in 6.0)

This is exposing st_rotatex.

ext::postgis::rotatey() (added in 6.0)

This is exposing st_rotatey.

ext::postgis::rotatez() (added in 6.0)

This is exposing st_rotatez.

ext::postgis::scale() (added in 6.0)

This is exposing st_scale.

ext::postgis::translate() (added in 6.0)

This is exposing st_translate.

ext::postgis::transscale() (added in 6.0)

This is exposing st_transscale.

ext::postgis::clusterintersecting() (added in 6.0)

This is exposing st_clusterintersecting.

ext::postgis::clusterwithin() (added in 6.0)

This is exposing st_clusterwithin.

ext::postgis::expand() (added in 6.0)

This is exposing st_expand.

ext::postgis::makebox2d() (added in 6.0)

This is exposing st_makebox2d.

ext::postgis::makebox3d() (added in 6.0)

This is exposing st_3dmakebox.

ext::postgis::to_box2d() (added in 6.0)

This is exposing box2d.

ext::postgis::to_box3d() (added in 6.0)

This is exposing box3d.

ext::postgis::xmax() (added in 6.0)

This is exposing st_xmax.

ext::postgis::xmin() (added in 6.0)

This is exposing st_xmin.

ext::postgis::ymax() (added in 6.0)

This is exposing st_ymax.

ext::postgis::ymin() (added in 6.0)

This is exposing st_ymin.

ext::postgis::zmax() (added in 6.0)

This is exposing st_zmax.

ext::postgis::zmin() (added in 6.0)

This is exposing st_zmin.

ext::postgis::addmeasure() (added in 6.0)

This is exposing st_addmeasure.

ext::postgis::interpolatepoint() (added in 6.0)

This is exposing st_interpolatepoint.

ext::postgis::lineinterpolatepoint() (added in 6.0)

This is exposing st_lineinterpolatepoint.

ext::postgis::lineinterpolatepoint3d() (added in 6.0)

This is exposing st_3dlineinterpolatepoint.

ext::postgis::lineinterpolatepoints() (added in 6.0)

This is exposing st_lineinterpolatepoints.

ext::postgis::linelocatepoint() (added in 6.0)

This is exposing st_linelocatepoint.

ext::postgis::linesubstring() (added in 6.0)

This is exposing st_linesubstring.

ext::postgis::locatealong() (added in 6.0)

This is exposing st_locatealong.

ext::postgis::locatebetween() (added in 6.0)

This is exposing st_locatebetween.

ext::postgis::locatebetweenelevations() (added in 6.0)

This is exposing st_locatebetweenelevations.

ext::postgis::closestpointofapproach() (added in 6.0)

This is exposing st_closestpointofapproach.

ext::postgis::cpawithin() (added in 6.0)

Tests if two trajectoriesis approach within the specified distance.

ext::postgis::distancecpa() (added in 6.0)

This is exposing st_distancecpa.

ext::postgis::isvalidtrajectory() (added in 6.0)

This is exposing st_isvalidtrajectory.

ext::postgis::area2d() (added in 6.0)

This is exposing st_area2d.

ext::postgis::cleangeometry() (added in 6.0)

This is exposing st_cleangeometry.

ext::postgis::combinebbox() (added in 6.0)

This is exposing st_combinebbox.

ext::postgis::curven() (added in 6.0)

This is exposing st_curven.

ext::postgis::geography_cmp() (added in 6.0)

This is exposing geography_cmp.

ext::postgis::geomcollfromwkb() (added in 6.0)

This is exposing st_geomcollfromwkb.

ext::postgis::geometry_cmp() (added in 6.0)

This is exposing geometry_cmp.

ext::postgis::geometry_hash() (added in 6.0)

This is exposing geometry_hash.

ext::postgis::get_proj4_from_srid() (added in 6.0)

This is exposing get_proj4_from_srid.

ext::postgis::hasm() (added in 6.0)

This is exposing st_hasm.

ext::postgis::hasz() (added in 6.0)

This is exposing st_hasz.

ext::postgis::mlinefromwkb() (added in 6.0)

This is exposing st_mlinefromwkb.

ext::postgis::mpointfromwkb() (added in 6.0)

This is exposing st_mpointfromwkb.

ext::postgis::mpolyfromwkb() (added in 6.0)

This is exposing st_mpolyfromwkb.

ext::postgis::multilinefromwkb() (added in 6.0)

This is exposing st_multilinefromwkb.

ext::postgis::multilinestringfromtext() (added in 6.0)

This is exposing st_multilinestringfromtext.

ext::postgis::multipointfromtext() (added in 6.0)

This is exposing st_multipointfromtext.

ext::postgis::multipointfromwkb() (added in 6.0)

This is exposing st_multipointfromwkb.

ext::postgis::multipolyfromwkb() (added in 6.0)

This is exposing st_multipolyfromwkb.

ext::postgis::multipolygonfromtext() (added in 6.0)

This is exposing st_multipolygonfromtext.

ext::postgis::numcurves() (added in 6.0)

This is exposing st_numcurves.

ext::postgis::polyfromtext() (added in 6.0)

This is exposing st_polyfromtext.

ext::postgis::polyfromwkb() (added in 6.0)

This is exposing st_polyfromwkb.

ext::postgis::polygonfromwkb() (added in 6.0)

This is exposing st_polygonfromwkb.

ext::postgis::postgis_addbbox() (added in 6.0)

This is exposing postgis_addbbox.

ext::postgis::postgis_constraint_dims() (added in 6.0)

This is exposing postgis_constraint_dims.

ext::postgis::postgis_constraint_srid() (added in 6.0)

This is exposing postgis_constraint_srid.

ext::postgis::postgis_dropbbox() (added in 6.0)

This is exposing postgis_dropbbox.

ext::postgis::postgis_full_version() (added in 6.0)

This is exposing postgis_full_version.

ext::postgis::postgis_geos_compiled_version() (added in 6.0)

This is exposing postgis_geos_compiled_version.

ext::postgis::postgis_geos_noop() (added in 6.0)

This is exposing postgis_geos_noop.

ext::postgis::postgis_geos_version() (added in 6.0)

This is exposing postgis_geos_version.

ext::postgis::postgis_getbbox() (added in 6.0)

This is exposing postgis_getbbox.

ext::postgis::postgis_hasbbox() (added in 6.0)

This is exposing postgis_hasbbox.

ext::postgis::postgis_lib_build_date() (added in 6.0)

This is exposing postgis_lib_build_date.

ext::postgis::postgis_lib_revision() (added in 6.0)

This is exposing postgis_lib_revision.

ext::postgis::postgis_lib_version() (added in 6.0)

This is exposing postgis_lib_version.

ext::postgis::postgis_libjson_version() (added in 6.0)

This is exposing postgis_libjson_version.

ext::postgis::postgis_liblwgeom_version() (added in 6.0)

This is exposing postgis_liblwgeom_version.

ext::postgis::postgis_libprotobuf_version() (added in 6.0)

This is exposing postgis_libprotobuf_version.

ext::postgis::postgis_libxml_version() (added in 6.0)

This is exposing postgis_libxml_version.

ext::postgis::postgis_noop() (added in 6.0)

This is exposing postgis_noop.

ext::postgis::postgis_proj_compiled_version() (added in 6.0)

This is exposing postgis_proj_compiled_version.

ext::postgis::postgis_proj_version() (added in 6.0)

This is exposing postgis_proj_version.

ext::postgis::postgis_scripts_build_date() (added in 6.0)

This is exposing postgis_scripts_build_date.

ext::postgis::postgis_scripts_installed() (added in 6.0)

This is exposing postgis_scripts_installed.

ext::postgis::postgis_scripts_released() (added in 6.0)

This is exposing postgis_scripts_released.

ext::postgis::postgis_svn_version() (added in 6.0)

This is exposing postgis_svn_version.

ext::postgis::postgis_transform_geometry() (added in 6.0)

This is exposing postgis_transform_geometry.

ext::postgis::postgis_transform_pipeline_geometry() (added in 6.0)

This is exposing postgis_transform_pipeline_geometry.

ext::postgis::postgis_typmod_dims() (added in 6.0)

This is exposing postgis_typmod_dims.

ext::postgis::postgis_typmod_srid() (added in 6.0)

This is exposing postgis_typmod_srid.

ext::postgis::postgis_typmod_type() (added in 6.0)

This is exposing postgis_typmod_type.

ext::postgis::postgis_version() (added in 6.0)

This is exposing postgis_version.

ext::postgis::postgis_wagyu_version() (added in 6.0)

This is exposing postgis_wagyu_version.

ext::postgis::removeirrelevantpointsforview() (added in 6.0)

This is exposing st_removeirrelevantpointsforview.

ext::postgis::removesmallparts() (added in 6.0)

This is exposing st_removesmallparts.

ext::postgis::symmetricdifference() (added in 6.0)

This is exposing st_symmetricdifference.

ext::postgis::to_geography() (added in 6.0)

This is exposing geography.

ext::postgis::to_geometry() (added in 6.0)

This is exposing geometry.

function

ext::postgis::addmeasure()
ext::postgis::addmeasure( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometry

This is exposing st_addmeasure.

function

ext::postgis::addpoint()
ext::postgis::addpoint( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometryext::postgis::addpoint( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::int64, ) -> ext::postgis::geometry

This is exposing st_addpoint.

function

ext::postgis::affine()
ext::postgis::affine( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, a4: std::float64, a5: std::float64, a6: std::float64, ) -> ext::postgis::geometryext::postgis::affine( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, a4: std::float64, a5: std::float64, a6: std::float64, a7: std::float64, a8: std::float64, a9: std::float64, a10: std::float64, a11: std::float64, a12: std::float64, ) -> ext::postgis::geometry

This is exposing st_affine.

function

ext::postgis::angle()
ext::postgis::angle( line1: ext::postgis::geometry, line2: ext::postgis::geometry, ) -> std::float64ext::postgis::angle( pt1: ext::postgis::geometry, pt2: ext::postgis::geometry, pt3: ext::postgis::geometry, pt4: ext::postgis::geometry = <ext::postgis::geometry>'POINT EMPTY', ) -> std::float64

This is exposing st_angle.

function

ext::postgis::area()
ext::postgis::area( a0: std::str ) -> std::float64ext::postgis::area( a0: ext::postgis::geometry ) -> std::float64ext::postgis::area( geog: ext::postgis::geography, use_spheroid: std::bool = true, ) -> std::float64

This is exposing st_area.

function

ext::postgis::area2d()
ext::postgis::area2d( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_area2d.

function

ext::postgis::asbinary()
ext::postgis::asbinary( a0: ext::postgis::geometry ) -> std::bytesext::postgis::asbinary( a0: ext::postgis::geography ) -> std::bytesext::postgis::asbinary( a0: ext::postgis::geometry, a1: std::str, ) -> std::bytesext::postgis::asbinary( a0: optional ext::postgis::geography, a1: optional std::str, ) -> optional std::bytes

Returns a geometry/geography in WKB format without SRID meta data.

Returns the OGC/ISO Well-Known Binary (WKB) representation of the geometry/geography without SRID meta data.

This is exposing st_asbinary.

function

ext::postgis::asencodedpolyline()
ext::postgis::asencodedpolyline( geom: ext::postgis::geometry, nprecision: std::int64 = 5, ) -> std::str

This is exposing st_asencodedpolyline.

function

ext::postgis::asewkb()
ext::postgis::asewkb( a0: ext::postgis::geometry ) -> std::bytesext::postgis::asewkb( a0: ext::postgis::geometry, a1: std::str, ) -> std::bytes

Returns a geometry in EWKB format with SRID meta data.

Returns the Extended Well-Known Binary (EWKB) representation of the geometry with SRID meta data.

This is exposing st_asewkb.

function

ext::postgis::asewkt()
ext::postgis::asewkt( a0: std::str ) -> std::strext::postgis::asewkt( a0: ext::postgis::geometry ) -> std::strext::postgis::asewkt( a0: ext::postgis::geography ) -> std::strext::postgis::asewkt( a0: ext::postgis::geometry, a1: std::int64, ) -> std::strext::postgis::asewkt( a0: ext::postgis::geography, a1: std::int64, ) -> std::str

Returns a geometry in WKT format with SRID meta data.

Returns the Well-Known Text (WKT) representation of the geometry with SRID meta data.

This is exposing st_asewkt.

function

ext::postgis::asgeojson()
ext::postgis::asgeojson( a0: std::str ) -> std::strext::postgis::asgeojson( geom: ext::postgis::geometry, maxdecimaldigits: std::int64 = 9, options: std::int64 = 8, ) -> std::strext::postgis::asgeojson( geog: ext::postgis::geography, maxdecimaldigits: std::int64 = 9, options: std::int64 = 0, ) -> std::str

This is exposing st_asgeojson.

function

ext::postgis::asgml()
ext::postgis::asgml( a0: std::str ) -> std::strext::postgis::asgml( geom: optional ext::postgis::geometry, maxdecimaldigits: optional std::int64 = 15, options: optional std::int64 = 0, ) -> optional std::strext::postgis::asgml( geog: ext::postgis::geography, maxdecimaldigits: std::int64 = 15, options: std::int64 = 0, nprefix: std::str = 'gml', id: std::str = '', ) -> std::strext::postgis::asgml( version: std::int64, geog: ext::postgis::geography, maxdecimaldigits: std::int64 = 15, options: std::int64 = 0, nprefix: std::str = 'gml', id: std::str = '', ) -> std::strext::postgis::asgml( version: optional std::int64, geom: optional ext::postgis::geometry, maxdecimaldigits: optional std::int64 = 15, options: optional std::int64 = 0, nprefix: optional std::str = {}, id: optional std::str = {}, ) -> optional std::str

This is exposing st_asgml.

function

ext::postgis::ashexewkb()
ext::postgis::ashexewkb( a0: ext::postgis::geometry ) -> std::strext::postgis::ashexewkb( a0: ext::postgis::geometry, a1: std::str, ) -> std::str

Returns a geometry in HEXEWKB format (as text).

Returnss a geometry in HEXEWKB format (as text) using either little-endian (NDR) or big-endian (XDR) encoding.

This is exposing st_ashexewkb.

function

ext::postgis::askml()
ext::postgis::askml( a0: std::str ) -> std::strext::postgis::askml( geom: ext::postgis::geometry, maxdecimaldigits: std::int64 = 15, nprefix: std::str = '', ) -> std::strext::postgis::askml( geog: ext::postgis::geography, maxdecimaldigits: std::int64 = 15, nprefix: std::str = '', ) -> std::str

This is exposing st_askml.

function

ext::postgis::aslatlontext()
ext::postgis::aslatlontext( geom: ext::postgis::geometry, tmpl: std::str = '', ) -> std::str

This is exposing st_aslatlontext.

function

ext::postgis::asmarc21()
ext::postgis::asmarc21( geom: ext::postgis::geometry, format: std::str = 'hdddmmss', ) -> std::str

This is exposing st_asmarc21.

function

ext::postgis::asmvtgeom()
ext::postgis::asmvtgeom( geom: optional ext::postgis::geometry, bounds: optional ext::postgis::box2d, extent: optional std::int64 = 4096, buffer: optional std::int64 = 256, clip_geom: optional std::bool = true, ) -> optional ext::postgis::geometry

This is exposing st_asmvtgeom.

function

ext::postgis::assvg()
ext::postgis::assvg( a0: std::str ) -> std::strext::postgis::assvg( geom: ext::postgis::geometry, rel: std::int64 = 0, maxdecimaldigits: std::int64 = 15, ) -> std::strext::postgis::assvg( geog: ext::postgis::geography, rel: std::int64 = 0, maxdecimaldigits: std::int64 = 15, ) -> std::str

This is exposing st_assvg.

function

ext::postgis::astext()
ext::postgis::astext( a0: std::str ) -> std::strext::postgis::astext( a0: ext::postgis::geometry ) -> std::strext::postgis::astext( a0: ext::postgis::geography ) -> std::strext::postgis::astext( a0: ext::postgis::geometry, a1: std::int64, ) -> std::strext::postgis::astext( a0: ext::postgis::geography, a1: std::int64, ) -> std::str

Returns a geometry/geography in WKT format without SRID metadata.

Returns the Well-Known Text (WKT) representation of the geometry/geography without SRID metadata.

This is exposing st_astext.

function

ext::postgis::astwkb()
ext::postgis::astwkb( geom: optional ext::postgis::geometry, prec: optional std::int64 = {}, prec_z: optional std::int64 = {}, prec_m: optional std::int64 = {}, with_sizes: optional std::bool = {}, with_boxes: optional std::bool = {}, ) -> optional std::bytesext::postgis::astwkb( geom: optional array<ext::postgis::geometry>, ids: optional array<std::int64>, prec: optional std::int64 = {}, prec_z: optional std::int64 = {}, prec_m: optional std::int64 = {}, with_sizes: optional std::bool = {}, with_boxes: optional std::bool = {}, ) -> optional std::bytes

This is exposing st_astwkb.

function

ext::postgis::asx3d()
ext::postgis::asx3d( geom: optional ext::postgis::geometry, maxdecimaldigits: optional std::int64 = 15, options: optional std::int64 = 0, ) -> optional std::str

Returns a geometry in X3D format.

Returns a geometry in X3D xml node element format: ISO-IEC-19776-1.2-X3DEncodings-XML.

This is exposing st_asx3d.

function

ext::postgis::azimuth()
ext::postgis::azimuth( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64ext::postgis::azimuth( geog1: ext::postgis::geography, geog2: ext::postgis::geography, ) -> std::float64

This is exposing st_azimuth.

function

ext::postgis::bdmpolyfromtext()
ext::postgis::bdmpolyfromtext( a0: std::str, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_bdmpolyfromtext.

function

ext::postgis::bdpolyfromtext()
ext::postgis::bdpolyfromtext( a0: std::str, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_bdpolyfromtext.

function

ext::postgis::boundary()
ext::postgis::boundary( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_boundary.

function

ext::postgis::boundingdiagonal()
ext::postgis::boundingdiagonal( geom: ext::postgis::geometry, fits: std::bool = false, ) -> ext::postgis::geometry

This is exposing st_boundingdiagonal.

function

ext::postgis::box2dfromgeohash()
ext::postgis::box2dfromgeohash( a0: optional std::str, a1: optional std::int64 = {}, ) -> optional ext::postgis::box2d

This is exposing st_box2dfromgeohash.

function

ext::postgis::buffer()
ext::postgis::buffer( a0: std::str, a1: std::float64, ) -> ext::postgis::geometryext::postgis::buffer( a0: std::str, a1: std::float64, a2: std::str, ) -> ext::postgis::geometryext::postgis::buffer( a0: ext::postgis::geography, a1: std::float64, ) -> ext::postgis::geographyext::postgis::buffer( a0: std::str, a1: std::float64, a2: std::int64, ) -> ext::postgis::geometryext::postgis::buffer( a0: ext::postgis::geography, a1: std::float64, a2: std::str, ) -> ext::postgis::geographyext::postgis::buffer( a0: ext::postgis::geography, a1: std::float64, a2: std::int64, ) -> ext::postgis::geographyext::postgis::buffer( geom: ext::postgis::geometry, radius: std::float64, quadsegs: std::int64, ) -> ext::postgis::geometryext::postgis::buffer( geom: ext::postgis::geometry, radius: std::float64, options: std::str = '', ) -> ext::postgis::geometry

Returns a geometry covering all points within a given distance from a geometry.

This is exposing st_buffer.

function

ext::postgis::buildarea()
ext::postgis::buildarea( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_buildarea.

function

ext::postgis::centroid()
ext::postgis::centroid( a0: std::str ) -> ext::postgis::geometryext::postgis::centroid( a0: ext::postgis::geometry ) -> ext::postgis::geometryext::postgis::centroid( a0: ext::postgis::geography, use_spheroid: std::bool = true, ) -> ext::postgis::geography

This is exposing st_centroid.

function

ext::postgis::chaikinsmoothing()
ext::postgis::chaikinsmoothing( a0: ext::postgis::geometry, a1: std::int64 = 1, a2: std::bool = false, ) -> ext::postgis::geometry

This is exposing st_chaikinsmoothing.

function

ext::postgis::cleangeometry()
ext::postgis::cleangeometry( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_cleangeometry.

function

ext::postgis::clipbybox2d()
ext::postgis::clipbybox2d( geom: ext::postgis::geometry, box: ext::postgis::box2d, ) -> ext::postgis::geometry

This is exposing st_clipbybox2d.

function

ext::postgis::closestpoint()
ext::postgis::closestpoint( a0: optional std::str, a1: optional std::str, ) -> optional ext::postgis::geometryext::postgis::closestpoint( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometryext::postgis::closestpoint( a0: ext::postgis::geography, a1: ext::postgis::geography, use_spheroid: std::bool = true, ) -> ext::postgis::geography

Returns the 2D point of the first geometry closest to the second.

Returns the 2D point of the first geometry/geography that is closest to the second geometry/geography. This is the first point of the shortest line from one geometry to the other.

This is exposing st_closestpoint.

function

ext::postgis::closestpoint3d()
ext::postgis::closestpoint3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

Returns the 3D point of the first geometry closest to the second.

Returns the 3D point of the first geometry/geography that is closest to the second geometry/geography. This is the first point of the 3D shortest line.

This is exposing st_3dclosestpoint.

function

ext::postgis::closestpointofapproach()
ext::postgis::closestpointofapproach( a0: ext::postgis::geometry, a1: ext::postgis::geometry, ) -> std::float64

This is exposing st_closestpointofapproach.

function

ext::postgis::clusterintersecting()
ext::postgis::clusterintersecting( a0: array<ext::postgis::geometry> ) -> array<ext::postgis::geometry>

This is exposing st_clusterintersecting.

function

ext::postgis::clusterwithin()
ext::postgis::clusterwithin( a0: array<ext::postgis::geometry>, a1: std::float64, ) -> array<ext::postgis::geometry>

This is exposing st_clusterwithin.

function

ext::postgis::collect()
ext::postgis::collect( a0: array<ext::postgis::geometry> ) -> ext::postgis::geometryext::postgis::collect( geom1: optional ext::postgis::geometry, geom2: optional ext::postgis::geometry, ) -> optional ext::postgis::geometry

This is exposing st_collect.

function

ext::postgis::collectionextract()
ext::postgis::collectionextract( a0: ext::postgis::geometry ) -> ext::postgis::geometryext::postgis::collectionextract( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_collectionextract.

function

ext::postgis::collectionhomogenize()
ext::postgis::collectionhomogenize( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_collectionhomogenize.

function

ext::postgis::combinebbox()
ext::postgis::combinebbox( a0: optional ext::postgis::box3d, a1: optional ext::postgis::box3d, ) -> optional ext::postgis::box3dext::postgis::combinebbox( a0: optional ext::postgis::box2d, a1: optional ext::postgis::geometry, ) -> optional ext::postgis::box2dext::postgis::combinebbox( a0: optional ext::postgis::box3d, a1: optional ext::postgis::geometry, ) -> optional ext::postgis::box3d

This is exposing st_combinebbox.

function

ext::postgis::concavehull()
ext::postgis::concavehull( param_geom: ext::postgis::geometry, param_pctconvex: std::float64, param_allow_holes: std::bool = false, ) -> ext::postgis::geometry

This is exposing st_concavehull.

function

ext::postgis::contains()
ext::postgis::contains( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

This is exposing st_contains.

function

ext::postgis::containsproperly()
ext::postgis::containsproperly( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

Tests if every point of geom2 lies in the interior of geom1.

This is exposing st_containsproperly.

function

ext::postgis::convexhull()
ext::postgis::convexhull( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_convexhull.

function

ext::postgis::coorddim()
ext::postgis::coorddim( geometry: ext::postgis::geometry ) -> std::int16

This is exposing st_coorddim.

function

ext::postgis::coverageunion()
ext::postgis::coverageunion( a0: array<ext::postgis::geometry> ) -> ext::postgis::geometry

Computes polygonal coverage from a set of polygons.

Computes the union of a set of polygons forming a coverage by removing shared edges.

This is exposing st_coverageunion.

function

ext::postgis::coveredby()
ext::postgis::coveredby( a0: optional std::str, a1: optional std::str, ) -> optional std::boolext::postgis::coveredby( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::boolext::postgis::coveredby( geog1: ext::postgis::geography, geog2: ext::postgis::geography, ) -> std::bool

This is exposing st_coveredby.

function

ext::postgis::covers()
ext::postgis::covers( a0: optional std::str, a1: optional std::str, ) -> optional std::boolext::postgis::covers( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::boolext::postgis::covers( geog1: ext::postgis::geography, geog2: ext::postgis::geography, ) -> std::bool

This is exposing st_covers.

function

ext::postgis::cpawithin()
ext::postgis::cpawithin( a0: ext::postgis::geometry, a1: ext::postgis::geometry, a2: std::float64, ) -> std::bool

Tests if two trajectoriesis approach within the specified distance.

Tests if the closest point of approach of two trajectoriesis within the specified distance.

This is exposing st_cpawithin.

function

ext::postgis::crosses()
ext::postgis::crosses( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

This is exposing st_crosses.

function

ext::postgis::curven()
ext::postgis::curven( geometry: ext::postgis::geometry, i: std::int64, ) -> ext::postgis::geometry

This is exposing st_curven.

function

ext::postgis::curvetoline()
ext::postgis::curvetoline( geom: ext::postgis::geometry, tol: std::float64 = 32, toltype: std::int64 = 0, flags: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_curvetoline.

function

ext::postgis::delaunaytriangles()
ext::postgis::delaunaytriangles( g1: ext::postgis::geometry, tolerance: std::float64 = 0.0, flags: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_delaunaytriangles.

function

ext::postgis::dfullywithin()
ext::postgis::dfullywithin( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, ) -> std::bool

Tests if two geometries are entirely within a given distance.

This is exposing st_dfullywithin.

function

ext::postgis::dfullywithin3d()
ext::postgis::dfullywithin3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, ) -> std::bool

This is exposing st_3ddfullywithin.

function

ext::postgis::difference()
ext::postgis::difference( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, gridsize: std::float64 = -1.0, ) -> ext::postgis::geometry

Computes a geometry resulting from removing all points in geom2 from geom1.

Computes a geometry representing the part of geometry geom1 that does not intersect geometry geom2.

This is exposing st_difference.

function

ext::postgis::dimension()
ext::postgis::dimension( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_dimension.

function

ext::postgis::disjoint()
ext::postgis::disjoint( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

This is exposing st_disjoint.

function

ext::postgis::distance()
ext::postgis::distance( a0: std::str, a1: std::str, ) -> std::float64ext::postgis::distance( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64ext::postgis::distance( geog1: ext::postgis::geography, geog2: ext::postgis::geography, use_spheroid: std::bool = true, ) -> std::float64

This is exposing st_distance.

function

ext::postgis::distance3d()
ext::postgis::distance3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64

Returns the 3D cartesian minimum distance between two geometries.

Returns the 3D cartesian minimum distance (based on spatial ref) between two geometries in projected units.

This is exposing st_3ddistance.

function

ext::postgis::distancecpa()
ext::postgis::distancecpa( a0: ext::postgis::geometry, a1: ext::postgis::geometry, ) -> std::float64

This is exposing st_distancecpa.

function

ext::postgis::distancesphere()
ext::postgis::distancesphere( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64ext::postgis::distancesphere( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, radius: std::float64, ) -> std::float64

This is exposing st_distancesphere.

function

ext::postgis::distancespheroid()
ext::postgis::distancespheroid( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64

This is exposing st_distancespheroid.

function

ext::postgis::dwithin()
ext::postgis::dwithin( a0: optional std::str, a1: optional std::str, a2: optional std::float64, ) -> optional std::boolext::postgis::dwithin( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, ) -> std::boolext::postgis::dwithin( geog1: ext::postgis::geography, geog2: ext::postgis::geography, tolerance: std::float64, use_spheroid: std::bool = true, ) -> std::bool

This is exposing st_dwithin.

function

ext::postgis::dwithin3d()
ext::postgis::dwithin3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, ) -> std::bool

This is exposing st_3ddwithin.

function

ext::postgis::endpoint()
ext::postgis::endpoint( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_endpoint.

function

ext::postgis::envelope()
ext::postgis::envelope( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_envelope.

function

ext::postgis::equals()
ext::postgis::equals( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

This is exposing st_equals.

function

ext::postgis::expand()
ext::postgis::expand( a0: ext::postgis::box2d, a1: std::float64, ) -> ext::postgis::box2dext::postgis::expand( a0: ext::postgis::box3d, a1: std::float64, ) -> ext::postgis::box3dext::postgis::expand( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometryext::postgis::expand( box: ext::postgis::box2d, dx: std::float64, dy: std::float64, ) -> ext::postgis::box2dext::postgis::expand( box: ext::postgis::box3d, dx: std::float64, dy: std::float64, dz: std::float64 = 0, ) -> ext::postgis::box3dext::postgis::expand( geom: ext::postgis::geometry, dx: std::float64, dy: std::float64, dz: std::float64 = 0, dm: std::float64 = 0, ) -> ext::postgis::geometry

This is exposing st_expand.

function

ext::postgis::exteriorring()
ext::postgis::exteriorring( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_exteriorring.

function

ext::postgis::filterbym()
ext::postgis::filterbym( a0: optional ext::postgis::geometry, a1: optional std::float64, a2: optional std::float64 = {}, a3: optional std::bool = false, ) -> optional ext::postgis::geometry

This is exposing st_filterbym.

function

ext::postgis::flipcoordinates()
ext::postgis::flipcoordinates( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_flipcoordinates.

function

ext::postgis::force2d()
ext::postgis::force2d( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_force2d.

function

ext::postgis::force3d()
ext::postgis::force3d( geom: ext::postgis::geometry, zvalue: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_force3d.

function

ext::postgis::force3dm()
ext::postgis::force3dm( geom: ext::postgis::geometry, mvalue: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_force3dm.

function

ext::postgis::force3dz()
ext::postgis::force3dz( geom: ext::postgis::geometry, zvalue: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_force3dz.

function

ext::postgis::force4d()
ext::postgis::force4d( geom: ext::postgis::geometry, zvalue: std::float64 = 0.0, mvalue: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_force4d.

function

ext::postgis::forcecollection()
ext::postgis::forcecollection( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_forcecollection.

function

ext::postgis::forcecurve()
ext::postgis::forcecurve( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_forcecurve.

function

ext::postgis::forcepolygonccw()
ext::postgis::forcepolygonccw( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_forcepolygonccw.

function

ext::postgis::forcepolygoncw()
ext::postgis::forcepolygoncw( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_forcepolygoncw.

function

ext::postgis::forcerhr()
ext::postgis::forcerhr( a0: ext::postgis::geometry ) -> ext::postgis::geometry

Forces the orientation of the vertices in a polygon to follow the RHR.

Forces the orientation of the vertices in a polygon to follow a Right-Hand-Rule, in which the area that is bounded by the polygon is to the right of the boundary. In particular, the exterior ring is orientated in a clockwise direction and the interior rings in a counter-clockwise direction.

This is exposing st_forcerhr.

function

ext::postgis::forcesfs()
ext::postgis::forcesfs( a0: ext::postgis::geometry ) -> ext::postgis::geometryext::postgis::forcesfs( a0: ext::postgis::geometry, version: std::str, ) -> ext::postgis::geometry

This is exposing st_forcesfs.

function

ext::postgis::frechetdistance()
ext::postgis::frechetdistance( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64 = -1, ) -> std::float64

This is exposing st_frechetdistance.

function

ext::postgis::generatepoints()
ext::postgis::generatepoints( area: ext::postgis::geometry, npoints: std::int64, ) -> ext::postgis::geometryext::postgis::generatepoints( area: ext::postgis::geometry, npoints: std::int64, seed: std::int64, ) -> ext::postgis::geometry

This is exposing st_generatepoints.

function

ext::postgis::geogfromtext()
ext::postgis::geogfromtext( a0: std::str ) -> ext::postgis::geography

Creates a geography value from WKT or EWTK.

Creates a geography value from Well-Known Text or Extended Well-Known Text representation.

This is exposing st_geogfromtext.

function

ext::postgis::geogfromwkb()
ext::postgis::geogfromwkb( a0: std::bytes ) -> ext::postgis::geography

Creates a geography value from WKB or EWKB.

Creates a geography value from a Well-Known Binary geometry representation (WKB) or extended Well Known Binary (EWKB).

This is exposing st_geogfromwkb.

function

ext::postgis::geography_cmp()
ext::postgis::geography_cmp( a0: ext::postgis::geography, a1: ext::postgis::geography, ) -> std::int64

This is exposing geography_cmp.

function

ext::postgis::geohash()
ext::postgis::geohash( geom: ext::postgis::geometry, maxchars: std::int64 = 0, ) -> std::strext::postgis::geohash( geog: ext::postgis::geography, maxchars: std::int64 = 0, ) -> std::str

This is exposing st_geohash.

function

ext::postgis::geomcollfromtext()
ext::postgis::geomcollfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::geomcollfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

Makes a collection Geometry from collection WKT.

Makes a collection Geometry from collection WKT with the given SRID. If SRID is not given, it defaults to 0.

This is exposing st_geomcollfromtext.

function

ext::postgis::geomcollfromwkb()
ext::postgis::geomcollfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::geomcollfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_geomcollfromwkb.

function

ext::postgis::geometricmedian()
ext::postgis::geometricmedian( g: optional ext::postgis::geometry, tolerance: optional std::float64 = {}, max_iter: optional std::int64 = 10000, fail_if_not_converged: optional std::bool = false, ) -> optional ext::postgis::geometry

This is exposing st_geometricmedian.

function

ext::postgis::geometry_cmp()
ext::postgis::geometry_cmp( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::int64

This is exposing geometry_cmp.

function

ext::postgis::geometry_hash()
ext::postgis::geometry_hash( a0: ext::postgis::geometry ) -> std::int64

This is exposing geometry_hash.

function

ext::postgis::geometryn()
ext::postgis::geometryn( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_geometryn.

function

ext::postgis::geometrytype()
ext::postgis::geometrytype( a0: ext::postgis::geometry ) -> std::strext::postgis::geometrytype( a0: ext::postgis::geography ) -> std::str

This is exposing geometrytype.

function

ext::postgis::geomfromewkb()
ext::postgis::geomfromewkb( a0: std::bytes ) -> ext::postgis::geometry

Creates a geometry value from EWKB.

Creates a geometry value from Extended Well-Known Binary representation (EWKB).

This is exposing st_geomfromewkb.

function

ext::postgis::geomfromewkt()
ext::postgis::geomfromewkt( a0: std::str ) -> ext::postgis::geometry

Creates a geometry value from EWKT representation.

Creates a geometry value from Extended Well-Known Text representation (EWKT).

This is exposing st_geomfromewkt.

function

ext::postgis::geomfromgeohash()
ext::postgis::geomfromgeohash( a0: optional std::str, a1: optional std::int64 = {}, ) -> optional ext::postgis::geometry

This is exposing st_geomfromgeohash.

function

ext::postgis::geomfromgeojson()
ext::postgis::geomfromgeojson( a0: std::str ) -> ext::postgis::geometryext::postgis::geomfromgeojson( a0: std::json ) -> ext::postgis::geometry

Creates a geometry value from a geojson representation of a geometry.

Takes as input a geojson representation of a geometry and outputs a geometry value.

This is exposing st_geomfromgeojson.

function

ext::postgis::geomfromgml()
ext::postgis::geomfromgml( a0: std::str ) -> ext::postgis::geometryext::postgis::geomfromgml( a0: std::str, a1: std::int64, ) -> ext::postgis::geometry

Creates a geometry value from GML representation of a geometry.

Takes as input GML representation of geometry and outputs a geometry value.

This is exposing st_geomfromgml.

function

ext::postgis::geomfromkml()
ext::postgis::geomfromkml( a0: std::str ) -> ext::postgis::geometry

Creates a geometry value from KML representation of a geometry.

Takes as input KML representation of geometry and outputs a geometry value.

This is exposing st_geomfromkml.

function

ext::postgis::geomfrommarc21()
ext::postgis::geomfrommarc21( marc21xml: std::str ) -> ext::postgis::geometry

This is exposing st_geomfrommarc21.

function

ext::postgis::geomfromtext()
ext::postgis::geomfromtext( a0: std::str ) -> ext::postgis::geometryext::postgis::geomfromtext( a0: std::str, a1: std::int64, ) -> ext::postgis::geometry

Creates a geometry value from WKT representation.

Creates a geometry value from Well-Known Text representation (WKT).

This is exposing st_geomfromtext.

function

ext::postgis::geomfromtwkb()
ext::postgis::geomfromtwkb( a0: std::bytes ) -> ext::postgis::geometry

This is exposing st_geomfromtwkb.

function

ext::postgis::geomfromwkb()
ext::postgis::geomfromwkb( a0: std::bytes ) -> ext::postgis::geometryext::postgis::geomfromwkb( a0: std::bytes, a1: std::int64, ) -> ext::postgis::geometry

Creates a geometry value from WKB representation.

Creates a geometry value from a Well-Known Binary geometry representation (WKB) and optional SRID.

This is exposing st_geomfromwkb.

function

ext::postgis::get_proj4_from_srid()
ext::postgis::get_proj4_from_srid( a0: std::int64 ) -> std::str

This is exposing get_proj4_from_srid.

function

ext::postgis::hasarc()
ext::postgis::hasarc( geometry: ext::postgis::geometry ) -> std::bool

This is exposing st_hasarc.

function

ext::postgis::hasm()
ext::postgis::hasm( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_hasm.

function

ext::postgis::hasz()
ext::postgis::hasz( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_hasz.

function

ext::postgis::hausdorffdistance()
ext::postgis::hausdorffdistance( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64ext::postgis::hausdorffdistance( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, ) -> std::float64

This is exposing st_hausdorffdistance.

function

ext::postgis::hexagon()
ext::postgis::hexagon( size: std::float64, cell_i: std::int64, cell_j: std::int64, origin: ext::postgis::geometry = 'POINT(0 0)', ) -> ext::postgis::geometry

This is exposing st_hexagon.

function

ext::postgis::interiorringn()
ext::postgis::interiorringn( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_interiorringn.

function

ext::postgis::interpolatepoint()
ext::postgis::interpolatepoint( line: ext::postgis::geometry, point: ext::postgis::geometry, ) -> std::float64

This is exposing st_interpolatepoint.

function

ext::postgis::intersection()
ext::postgis::intersection( a0: std::str, a1: std::str, ) -> ext::postgis::geometryext::postgis::intersection( a0: ext::postgis::geography, a1: ext::postgis::geography, ) -> ext::postgis::geographyext::postgis::intersection( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, gridsize: std::float64 = -1, ) -> ext::postgis::geometry

This is exposing st_intersection.

function

ext::postgis::intersects()
ext::postgis::intersects( a0: optional std::str, a1: optional std::str, ) -> optional std::boolext::postgis::intersects( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::boolext::postgis::intersects( geog1: ext::postgis::geography, geog2: ext::postgis::geography, ) -> std::bool

This is exposing st_intersects.

function

ext::postgis::intersects3d()
ext::postgis::intersects3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

Tests if two geometries spatially intersect in 3D.

Tests if two geometries spatially intersect in 3D - only for points, linestrings, polygons, polyhedral surface (area).

This is exposing st_3dintersects.

function

ext::postgis::inversetransformpipeline()
ext::postgis::inversetransformpipeline( geom: ext::postgis::geometry, pipeline: std::str, to_srid: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_inversetransformpipeline.

function

ext::postgis::isclosed()
ext::postgis::isclosed( a0: ext::postgis::geometry ) -> std::bool

Tests if a geometry in 2D or 3D is closed.

Tests if a LineStrings's start and end points are coincident. For a PolyhedralSurface tests if it is closed (volumetric).

This is exposing st_isclosed.

function

ext::postgis::iscollection()
ext::postgis::iscollection( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_iscollection.

function

ext::postgis::isempty()
ext::postgis::isempty( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_isempty.

function

ext::postgis::ispolygonccw()
ext::postgis::ispolygonccw( a0: ext::postgis::geometry ) -> std::bool

Tests counter-clockwise poligonal orientation of a geometry.

Tests if Polygons have exterior rings oriented counter-clockwise and interior rings oriented clockwise.

This is exposing st_ispolygonccw.

function

ext::postgis::ispolygoncw()
ext::postgis::ispolygoncw( a0: ext::postgis::geometry ) -> std::bool

Tests clockwise poligonal orientation of a geometry.

Tests if Polygons have exterior rings oriented clockwise and interior rings oriented counter-clockwise.

This is exposing st_ispolygoncw.

function

ext::postgis::isring()
ext::postgis::isring( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_isring.

function

ext::postgis::issimple()
ext::postgis::issimple( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_issimple.

function

ext::postgis::isvalid()
ext::postgis::isvalid( a0: ext::postgis::geometry ) -> std::boolext::postgis::isvalid( a0: ext::postgis::geometry, a1: std::int64, ) -> std::bool

This is exposing st_isvalid.

function

ext::postgis::isvalidreason()
ext::postgis::isvalidreason( a0: ext::postgis::geometry ) -> std::strext::postgis::isvalidreason( a0: ext::postgis::geometry, a1: std::int64, ) -> std::str

This is exposing st_isvalidreason.

function

ext::postgis::isvalidtrajectory()
ext::postgis::isvalidtrajectory( a0: ext::postgis::geometry ) -> std::bool

This is exposing st_isvalidtrajectory.

function

ext::postgis::length()
ext::postgis::length( a0: std::str ) -> std::float64ext::postgis::length( a0: ext::postgis::geometry ) -> std::float64ext::postgis::length( geog: ext::postgis::geography, use_spheroid: std::bool = true, ) -> std::float64

This is exposing st_length.

function

ext::postgis::length2d()
ext::postgis::length2d( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_length2d.

function

ext::postgis::length3d()
ext::postgis::length3d( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_3dlength.

function

ext::postgis::linecrossingdirection()
ext::postgis::linecrossingdirection( line1: ext::postgis::geometry, line2: ext::postgis::geometry, ) -> std::int64

This is exposing st_linecrossingdirection.

function

ext::postgis::lineextend()
ext::postgis::lineextend( geom: ext::postgis::geometry, distance_forward: std::float64, distance_backward: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_lineextend.

function

ext::postgis::linefromencodedpolyline()
ext::postgis::linefromencodedpolyline( txtin: std::str, nprecision: std::int64 = 5, ) -> ext::postgis::geometry

This is exposing st_linefromencodedpolyline.

function

ext::postgis::linefrommultipoint()
ext::postgis::linefrommultipoint( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_linefrommultipoint.

function

ext::postgis::linefromtext()
ext::postgis::linefromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::linefromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

Creates a geometry from WKT LINESTRING.

Makes a Geometry from WKT representation with the given SRID. If SRID is not given, it defaults to 0.

This is exposing st_linefromtext.

function

ext::postgis::linefromwkb()
ext::postgis::linefromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::linefromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_linefromwkb.

function

ext::postgis::lineinterpolatepoint()
ext::postgis::lineinterpolatepoint( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometryext::postgis::lineinterpolatepoint( a0: optional std::str, a1: optional std::float64, ) -> optional ext::postgis::geometryext::postgis::lineinterpolatepoint( a0: ext::postgis::geography, a1: std::float64, use_spheroid: std::bool = true, ) -> ext::postgis::geography

This is exposing st_lineinterpolatepoint.

function

ext::postgis::lineinterpolatepoint3d()
ext::postgis::lineinterpolatepoint3d( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometry

This is exposing st_3dlineinterpolatepoint.

function

ext::postgis::lineinterpolatepoints()
ext::postgis::lineinterpolatepoints( a0: optional std::str, a1: optional std::float64, ) -> optional ext::postgis::geometryext::postgis::lineinterpolatepoints( a0: ext::postgis::geometry, a1: std::float64, repeat: std::bool = true, ) -> ext::postgis::geometryext::postgis::lineinterpolatepoints( a0: ext::postgis::geography, a1: std::float64, use_spheroid: std::bool = true, repeat: std::bool = true, ) -> ext::postgis::geography

This is exposing st_lineinterpolatepoints.

function

ext::postgis::linelocatepoint()
ext::postgis::linelocatepoint( a0: optional std::str, a1: optional std::str, ) -> optional std::float64ext::postgis::linelocatepoint( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64ext::postgis::linelocatepoint( a0: ext::postgis::geography, a1: ext::postgis::geography, use_spheroid: std::bool = true, ) -> std::float64

This is exposing st_linelocatepoint.

function

ext::postgis::linemerge()
ext::postgis::linemerge( a0: ext::postgis::geometry ) -> ext::postgis::geometryext::postgis::linemerge( a0: ext::postgis::geometry, a1: std::bool, ) -> ext::postgis::geometry

This is exposing st_linemerge.

function

ext::postgis::linestringfromwkb()
ext::postgis::linestringfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::linestringfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_linestringfromwkb.

function

ext::postgis::linesubstring()
ext::postgis::linesubstring( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometryext::postgis::linesubstring( a0: ext::postgis::geography, a1: std::float64, a2: std::float64, ) -> ext::postgis::geographyext::postgis::linesubstring( a0: optional std::str, a1: optional std::float64, a2: optional std::float64, ) -> optional ext::postgis::geometry

This is exposing st_linesubstring.

function

ext::postgis::linetocurve()
ext::postgis::linetocurve( geometry: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_linetocurve.

function

ext::postgis::locatealong()
ext::postgis::locatealong( geometry: ext::postgis::geometry, measure: std::float64, leftrightoffset: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_locatealong.

function

ext::postgis::locatebetween()
ext::postgis::locatebetween( geometry: ext::postgis::geometry, frommeasure: std::float64, tomeasure: std::float64, leftrightoffset: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_locatebetween.

function

ext::postgis::locatebetweenelevations()
ext::postgis::locatebetweenelevations( geometry: ext::postgis::geometry, fromelevation: std::float64, toelevation: std::float64, ) -> ext::postgis::geometry

This is exposing st_locatebetweenelevations.

function

ext::postgis::longestline()
ext::postgis::longestline( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_longestline.

function

ext::postgis::longestline3d()
ext::postgis::longestline3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_3dlongestline.

function

ext::postgis::m()
ext::postgis::m( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_m.

function

ext::postgis::makebox2d()
ext::postgis::makebox2d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::box2d

This is exposing st_makebox2d.

function

ext::postgis::makebox3d()
ext::postgis::makebox3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::box3d

This is exposing st_3dmakebox.

function

ext::postgis::makeenvelope()
ext::postgis::makeenvelope( a0: std::float64, a1: std::float64, a2: std::float64, a3: std::float64, a4: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_makeenvelope.

function

ext::postgis::makeline()
ext::postgis::makeline( a0: array<ext::postgis::geometry> ) -> ext::postgis::geometryext::postgis::makeline( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_makeline.

function

ext::postgis::makepoint()
ext::postgis::makepoint( a0: std::float64, a1: std::float64, ) -> ext::postgis::geometryext::postgis::makepoint( a0: std::float64, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometryext::postgis::makepoint( a0: std::float64, a1: std::float64, a2: std::float64, a3: std::float64, ) -> ext::postgis::geometry

This is exposing st_makepoint.

function

ext::postgis::makepointm()
ext::postgis::makepointm( a0: std::float64, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometry

This is exposing st_makepointm.

function

ext::postgis::makepolygon()
ext::postgis::makepolygon( a0: ext::postgis::geometry ) -> ext::postgis::geometryext::postgis::makepolygon( a0: ext::postgis::geometry, a1: array<ext::postgis::geometry>, ) -> ext::postgis::geometry

This is exposing st_makepolygon.

function

ext::postgis::makevalid()
ext::postgis::makevalid( a0: ext::postgis::geometry ) -> ext::postgis::geometryext::postgis::makevalid( geom: ext::postgis::geometry, params: std::str, ) -> ext::postgis::geometry

This is exposing st_makevalid.

function

ext::postgis::maxdistance()
ext::postgis::maxdistance( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64

This is exposing st_maxdistance.

function

ext::postgis::maxdistance3d()
ext::postgis::maxdistance3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::float64

Returns the 3D cartesian maximum distance between two geometries.

Returns the 3D cartesian maximum distance (based on spatial ref) between two geometries in projected units.

This is exposing st_3dmaxdistance.

function

ext::postgis::memsize()
ext::postgis::memsize( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_memsize.

function

ext::postgis::minimumboundingcircle()
ext::postgis::minimumboundingcircle( inputgeom: ext::postgis::geometry, segs_per_quarter: std::int64 = 48, ) -> ext::postgis::geometry

This is exposing st_minimumboundingcircle.

function

ext::postgis::minimumclearance()
ext::postgis::minimumclearance( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_minimumclearance.

function

ext::postgis::minimumclearanceline()
ext::postgis::minimumclearanceline( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_minimumclearanceline.

function

ext::postgis::mlinefromtext()
ext::postgis::mlinefromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::mlinefromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_mlinefromtext.

function

ext::postgis::mlinefromwkb()
ext::postgis::mlinefromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::mlinefromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_mlinefromwkb.

function

ext::postgis::mpointfromtext()
ext::postgis::mpointfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::mpointfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

Creates a geometry from WKT MULTIPOINT.

Makes a Geometry from WKT with the given SRID. If SRID is not given, it defaults to 0.

This is exposing st_mpointfromtext.

function

ext::postgis::mpointfromwkb()
ext::postgis::mpointfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::mpointfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_mpointfromwkb.

function

ext::postgis::mpolyfromtext()
ext::postgis::mpolyfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::mpolyfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

Creates a geometry from WKT MULTIPOLYGON.

Makes a MultiPolygon Geometry from WKT with the given SRID. If SRID is not given, it defaults to 0.

This is exposing st_mpolyfromtext.

function

ext::postgis::mpolyfromwkb()
ext::postgis::mpolyfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::mpolyfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_mpolyfromwkb.

function

ext::postgis::multi()
ext::postgis::multi( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_multi.

function

ext::postgis::multilinefromwkb()
ext::postgis::multilinefromwkb( a0: std::bytes ) -> optional ext::postgis::geometry

This is exposing st_multilinefromwkb.

function

ext::postgis::multilinestringfromtext()
ext::postgis::multilinestringfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::multilinestringfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_multilinestringfromtext.

function

ext::postgis::multipointfromtext()
ext::postgis::multipointfromtext( a0: std::str ) -> optional ext::postgis::geometry

This is exposing st_multipointfromtext.

function

ext::postgis::multipointfromwkb()
ext::postgis::multipointfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::multipointfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_multipointfromwkb.

function

ext::postgis::multipolyfromwkb()
ext::postgis::multipolyfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::multipolyfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_multipolyfromwkb.

function

ext::postgis::multipolygonfromtext()
ext::postgis::multipolygonfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::multipolygonfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_multipolygonfromtext.

function

ext::postgis::ndims()
ext::postgis::ndims( a0: ext::postgis::geometry ) -> std::int16

This is exposing st_ndims.

function

ext::postgis::node()
ext::postgis::node( g: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_node.

function

ext::postgis::normalize()
ext::postgis::normalize( geom: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_normalize.

function

ext::postgis::npoints()
ext::postgis::npoints( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_npoints.

function

ext::postgis::nrings()
ext::postgis::nrings( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_nrings.

function

ext::postgis::numcurves()
ext::postgis::numcurves( geometry: ext::postgis::geometry ) -> std::int64

This is exposing st_numcurves.

function

ext::postgis::numgeometries()
ext::postgis::numgeometries( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_numgeometries.

function

ext::postgis::numinteriorring()
ext::postgis::numinteriorring( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_numinteriorring.

function

ext::postgis::numinteriorrings()
ext::postgis::numinteriorrings( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_numinteriorrings.

function

ext::postgis::numpatches()
ext::postgis::numpatches( a0: ext::postgis::geometry ) -> std::int64

Return the number of faces on a Polyhedral Surface.

This is exposing st_numpatches.

function

ext::postgis::numpoints()
ext::postgis::numpoints( a0: ext::postgis::geometry ) -> std::int64

This is exposing st_numpoints.

function

ext::postgis::offsetcurve()
ext::postgis::offsetcurve( line: ext::postgis::geometry, distance: std::float64, params: std::str = '', ) -> ext::postgis::geometry

This is exposing st_offsetcurve.

function

ext::postgis::orderingequals()
ext::postgis::orderingequals( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

Tests if two geometries are the same geometry including points order.

Tests if two geometries represent the same geometry and have points in the same directional order.

This is exposing st_orderingequals.

function

ext::postgis::orientedenvelope()
ext::postgis::orientedenvelope( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_orientedenvelope.

function

ext::postgis::overlaps()
ext::postgis::overlaps( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

Tests if two geometries overlap.

Tests if two geometries have the same dimension and intersect, but each has at least one point not in the other.

This is exposing st_overlaps.

function

ext::postgis::patchn()
ext::postgis::patchn( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_patchn.

function

ext::postgis::perimeter()
ext::postgis::perimeter( a0: ext::postgis::geometry ) -> std::float64ext::postgis::perimeter( geog: ext::postgis::geography, use_spheroid: std::bool = true, ) -> std::float64

This is exposing st_perimeter.

function

ext::postgis::perimeter2d()
ext::postgis::perimeter2d( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_perimeter2d.

function

ext::postgis::perimeter3d()
ext::postgis::perimeter3d( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_3dperimeter.

function

ext::postgis::point()
ext::postgis::point( a0: std::float64, a1: std::float64, ) -> ext::postgis::geometryext::postgis::point( a0: std::float64, a1: std::float64, srid: std::int64, ) -> ext::postgis::geometry

This is exposing st_point.

function

ext::postgis::pointfromgeohash()
ext::postgis::pointfromgeohash( a0: optional std::str, a1: optional std::int64 = {}, ) -> optional ext::postgis::geometry

This is exposing st_pointfromgeohash.

function

ext::postgis::pointfromtext()
ext::postgis::pointfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::pointfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

Makes a POINT geometry from WKT.

Makes a POINT geometry from WKT with the given SRID. If SRID is not given, it defaults to unknown.

This is exposing st_pointfromtext.

function

ext::postgis::pointfromwkb()
ext::postgis::pointfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::pointfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_pointfromwkb.

function

ext::postgis::pointinsidecircle()
ext::postgis::pointinsidecircle( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, ) -> std::bool

This is exposing st_pointinsidecircle.

function

ext::postgis::pointm()
ext::postgis::pointm( xcoordinate: std::float64, ycoordinate: std::float64, mcoordinate: std::float64, srid: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_pointm.

function

ext::postgis::pointn()
ext::postgis::pointn( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

Returns the Nth point in the first LineString in a geometry.

Returns the Nth point in the first LineString or circular LineString in a geometry.

This is exposing st_pointn.

function

ext::postgis::pointonsurface()
ext::postgis::pointonsurface( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_pointonsurface.

function

ext::postgis::points()
ext::postgis::points( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_points.

function

ext::postgis::pointz()
ext::postgis::pointz( xcoordinate: std::float64, ycoordinate: std::float64, zcoordinate: std::float64, srid: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_pointz.

function

ext::postgis::pointzm()
ext::postgis::pointzm( xcoordinate: std::float64, ycoordinate: std::float64, zcoordinate: std::float64, mcoordinate: std::float64, srid: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_pointzm.

function

ext::postgis::polyfromtext()
ext::postgis::polyfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::polyfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_polyfromtext.

function

ext::postgis::polyfromwkb()
ext::postgis::polyfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::polyfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_polyfromwkb.

function

ext::postgis::polygon()
ext::postgis::polygon( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_polygon.

function

ext::postgis::polygonfromtext()
ext::postgis::polygonfromtext( a0: std::str ) -> optional ext::postgis::geometryext::postgis::polygonfromtext( a0: std::str, a1: std::int64, ) -> optional ext::postgis::geometry

Creates a geometry from WKT POLYGON.

Makes a Geometry from WKT with the given SRID. If SRID is not given, it defaults to 0.

This is exposing st_polygonfromtext.

function

ext::postgis::polygonfromwkb()
ext::postgis::polygonfromwkb( a0: std::bytes ) -> optional ext::postgis::geometryext::postgis::polygonfromwkb( a0: std::bytes, a1: std::int64, ) -> optional ext::postgis::geometry

This is exposing st_polygonfromwkb.

function

ext::postgis::polygonize()
ext::postgis::polygonize( a0: array<ext::postgis::geometry> ) -> ext::postgis::geometry

Computes a collection of polygons formed from a set of linework.

Computes a collection of polygons formed from the linework of a set of geometries.

This is exposing st_polygonize.

function

ext::postgis::postgis_addbbox()
ext::postgis::postgis_addbbox( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing postgis_addbbox.

function

ext::postgis::postgis_constraint_dims()
ext::postgis::postgis_constraint_dims( geomschema: std::str, geomtable: std::str, geomcolumn: std::str, ) -> std::int64

This is exposing postgis_constraint_dims.

function

ext::postgis::postgis_constraint_srid()
ext::postgis::postgis_constraint_srid( geomschema: std::str, geomtable: std::str, geomcolumn: std::str, ) -> std::int64

This is exposing postgis_constraint_srid.

function

ext::postgis::postgis_dropbbox()
ext::postgis::postgis_dropbbox( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing postgis_dropbbox.

function

ext::postgis::postgis_full_version()
ext::postgis::postgis_full_version( ) -> optional std::str

This is exposing postgis_full_version.

function

ext::postgis::postgis_geos_compiled_version()
ext::postgis::postgis_geos_compiled_version( ) -> optional std::str

This is exposing postgis_geos_compiled_version.

function

ext::postgis::postgis_geos_noop()
ext::postgis::postgis_geos_noop( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing postgis_geos_noop.

function

ext::postgis::postgis_geos_version()
ext::postgis::postgis_geos_version( ) -> optional std::str

This is exposing postgis_geos_version.

function

ext::postgis::postgis_getbbox()
ext::postgis::postgis_getbbox( a0: ext::postgis::geometry ) -> ext::postgis::box2d

This is exposing postgis_getbbox.

function

ext::postgis::postgis_hasbbox()
ext::postgis::postgis_hasbbox( a0: ext::postgis::geometry ) -> std::bool

This is exposing postgis_hasbbox.

function

ext::postgis::postgis_lib_build_date()
ext::postgis::postgis_lib_build_date( ) -> optional std::str

This is exposing postgis_lib_build_date.

function

ext::postgis::postgis_lib_revision()
ext::postgis::postgis_lib_revision( ) -> optional std::str

This is exposing postgis_lib_revision.

function

ext::postgis::postgis_lib_version()
ext::postgis::postgis_lib_version( ) -> optional std::str

This is exposing postgis_lib_version.

function

ext::postgis::postgis_libjson_version()
ext::postgis::postgis_libjson_version( ) -> std::str

This is exposing postgis_libjson_version.

function

ext::postgis::postgis_liblwgeom_version()
ext::postgis::postgis_liblwgeom_version( ) -> optional std::str

This is exposing postgis_liblwgeom_version.

function

ext::postgis::postgis_libprotobuf_version()
ext::postgis::postgis_libprotobuf_version( ) -> std::str

This is exposing postgis_libprotobuf_version.

function

ext::postgis::postgis_libxml_version()
ext::postgis::postgis_libxml_version( ) -> optional std::str

This is exposing postgis_libxml_version.

function

ext::postgis::postgis_noop()
ext::postgis::postgis_noop( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing postgis_noop.

function

ext::postgis::postgis_proj_compiled_version()
ext::postgis::postgis_proj_compiled_version( ) -> optional std::str

This is exposing postgis_proj_compiled_version.

function

ext::postgis::postgis_proj_version()
ext::postgis::postgis_proj_version( ) -> optional std::str

This is exposing postgis_proj_version.

function

ext::postgis::postgis_scripts_build_date()
ext::postgis::postgis_scripts_build_date( ) -> optional std::str

This is exposing postgis_scripts_build_date.

function

ext::postgis::postgis_scripts_installed()
ext::postgis::postgis_scripts_installed( ) -> optional std::str

This is exposing postgis_scripts_installed.

function

ext::postgis::postgis_scripts_released()
ext::postgis::postgis_scripts_released( ) -> optional std::str

This is exposing postgis_scripts_released.

function

ext::postgis::postgis_srs_codes()
ext::postgis::postgis_srs_codes( auth_name: std::str ) -> std::str

This is exposing postgis_srs_codes.

function

ext::postgis::postgis_svn_version()
ext::postgis::postgis_svn_version( ) -> optional std::str

This is exposing postgis_svn_version.

function

ext::postgis::postgis_transform_geometry()
ext::postgis::postgis_transform_geometry( geom: ext::postgis::geometry, a1: std::str, a2: std::str, a3: std::int64, ) -> ext::postgis::geometry

This is exposing postgis_transform_geometry.

function

ext::postgis::postgis_transform_pipeline_geometry()
ext::postgis::postgis_transform_pipeline_geometry( geom: ext::postgis::geometry, pipeline: std::str, forward: std::bool, to_srid: std::int64, ) -> ext::postgis::geometry

This is exposing postgis_transform_pipeline_geometry.

function

ext::postgis::postgis_typmod_dims()
ext::postgis::postgis_typmod_dims( a0: std::int64 ) -> std::int64

This is exposing postgis_typmod_dims.

function

ext::postgis::postgis_typmod_srid()
ext::postgis::postgis_typmod_srid( a0: std::int64 ) -> std::int64

This is exposing postgis_typmod_srid.

function

ext::postgis::postgis_typmod_type()
ext::postgis::postgis_typmod_type( a0: std::int64 ) -> std::str

This is exposing postgis_typmod_type.

function

ext::postgis::postgis_version()
ext::postgis::postgis_version( ) -> optional std::str

This is exposing postgis_version.

function

ext::postgis::postgis_wagyu_version()
ext::postgis::postgis_wagyu_version( ) -> optional std::str

This is exposing postgis_wagyu_version.

function

ext::postgis::project()
ext::postgis::project( geom1: ext::postgis::geometry, distance: std::float64, azimuth: std::float64, ) -> ext::postgis::geometryext::postgis::project( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, distance: std::float64, ) -> ext::postgis::geometryext::postgis::project( geog_from: ext::postgis::geography, geog_to: ext::postgis::geography, distance: std::float64, ) -> ext::postgis::geographyext::postgis::project( geog: optional ext::postgis::geography, distance: optional std::float64, azimuth: optional std::float64, ) -> optional ext::postgis::geography

Returns a point projected from a start point by a distance and bearing.

This is exposing st_project.

function

ext::postgis::quantizecoordinates()
ext::postgis::quantizecoordinates( g: optional ext::postgis::geometry, prec_x: optional std::int64, prec_y: optional std::int64 = {}, prec_z: optional std::int64 = {}, prec_m: optional std::int64 = {}, ) -> optional ext::postgis::geometry

This is exposing st_quantizecoordinates.

function

ext::postgis::reduceprecision()
ext::postgis::reduceprecision( geom: ext::postgis::geometry, gridsize: std::float64, ) -> ext::postgis::geometry

This is exposing st_reduceprecision.

function

ext::postgis::relate()
ext::postgis::relate( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::strext::postgis::relate( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::str, ) -> std::boolext::postgis::relate( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::int64, ) -> std::str

Tests if two geometries have a topological relationship.

Tests if two geometries have a topological relationship matching an Intersection Matrix pattern, or computes their Intersection Matrix.

This is exposing st_relate.

function

ext::postgis::relatematch()
ext::postgis::relatematch( a0: std::str, a1: std::str, ) -> std::bool

This is exposing st_relatematch.

function

ext::postgis::removeirrelevantpointsforview()
ext::postgis::removeirrelevantpointsforview( a0: ext::postgis::geometry, a1: ext::postgis::box2d, a2: std::bool = false, ) -> ext::postgis::geometry

This is exposing st_removeirrelevantpointsforview.

function

ext::postgis::removepoint()
ext::postgis::removepoint( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometry

This is exposing st_removepoint.

function

ext::postgis::removerepeatedpoints()
ext::postgis::removerepeatedpoints( geom: ext::postgis::geometry, tolerance: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_removerepeatedpoints.

function

ext::postgis::removesmallparts()
ext::postgis::removesmallparts( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometry

This is exposing st_removesmallparts.

function

ext::postgis::reverse()
ext::postgis::reverse( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_reverse.

function

ext::postgis::rotate()
ext::postgis::rotate( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometryext::postgis::rotate( a0: ext::postgis::geometry, a1: std::float64, a2: ext::postgis::geometry, ) -> ext::postgis::geometryext::postgis::rotate( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, ) -> ext::postgis::geometry

This is exposing st_rotate.

function

ext::postgis::rotatex()
ext::postgis::rotatex( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometry

This is exposing st_rotatex.

function

ext::postgis::rotatey()
ext::postgis::rotatey( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometry

This is exposing st_rotatey.

function

ext::postgis::rotatez()
ext::postgis::rotatez( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometry

This is exposing st_rotatez.

function

ext::postgis::scale()
ext::postgis::scale( a0: ext::postgis::geometry, a1: ext::postgis::geometry, ) -> ext::postgis::geometryext::postgis::scale( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometryext::postgis::scale( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, ) -> ext::postgis::geometryext::postgis::scale( a0: ext::postgis::geometry, a1: ext::postgis::geometry, origin: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_scale.

function

ext::postgis::scroll()
ext::postgis::scroll( a0: ext::postgis::geometry, a1: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_scroll.

function

ext::postgis::segmentize()
ext::postgis::segmentize( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometryext::postgis::segmentize( geog: ext::postgis::geography, max_segment_length: std::float64, ) -> ext::postgis::geography

Makes a new geometry/geography with no segment longer than a given distance.

This is exposing st_segmentize.

function

ext::postgis::seteffectivearea()
ext::postgis::seteffectivearea( a0: ext::postgis::geometry, a1: std::float64 = -1, a2: std::int64 = 1, ) -> ext::postgis::geometry

This is exposing st_seteffectivearea.

function

ext::postgis::setpoint()
ext::postgis::setpoint( a0: ext::postgis::geometry, a1: std::int64, a2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_setpoint.

function

ext::postgis::setsrid()
ext::postgis::setsrid( geom: ext::postgis::geometry, srid: std::int64, ) -> ext::postgis::geometryext::postgis::setsrid( geog: ext::postgis::geography, srid: std::int64, ) -> ext::postgis::geography

This is exposing st_setsrid.

function

ext::postgis::sharedpaths()
ext::postgis::sharedpaths( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_sharedpaths.

function

ext::postgis::shiftlongitude()
ext::postgis::shiftlongitude( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_shiftlongitude.

function

ext::postgis::shortestline()
ext::postgis::shortestline( a0: optional std::str, a1: optional std::str, ) -> optional ext::postgis::geometryext::postgis::shortestline( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometryext::postgis::shortestline( a0: ext::postgis::geography, a1: ext::postgis::geography, use_spheroid: std::bool = true, ) -> ext::postgis::geography

This is exposing st_shortestline.

function

ext::postgis::shortestline3d()
ext::postgis::shortestline3d( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_3dshortestline.

function

ext::postgis::simplify()
ext::postgis::simplify( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometryext::postgis::simplify( a0: ext::postgis::geometry, a1: std::float64, a2: std::bool, ) -> ext::postgis::geometry

This is exposing st_simplify.

function

ext::postgis::simplifypolygonhull()
ext::postgis::simplifypolygonhull( geom: ext::postgis::geometry, vertex_fraction: std::float64, is_outer: std::bool = true, ) -> ext::postgis::geometry

This is exposing st_simplifypolygonhull.

function

ext::postgis::simplifypreservetopology()
ext::postgis::simplifypreservetopology( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometry

This is exposing st_simplifypreservetopology.

function

ext::postgis::simplifyvw()
ext::postgis::simplifyvw( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometry

This is exposing st_simplifyvw.

function

ext::postgis::snap()
ext::postgis::snap( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, ) -> ext::postgis::geometry

This is exposing st_snap.

function

ext::postgis::snaptogrid()
ext::postgis::snaptogrid( a0: ext::postgis::geometry, a1: std::float64, ) -> ext::postgis::geometryext::postgis::snaptogrid( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometryext::postgis::snaptogrid( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, a4: std::float64, ) -> ext::postgis::geometryext::postgis::snaptogrid( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, a2: std::float64, a3: std::float64, a4: std::float64, a5: std::float64, ) -> ext::postgis::geometry

This is exposing st_snaptogrid.

function

ext::postgis::split()
ext::postgis::split( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometry

This is exposing st_split.

function

ext::postgis::square()
ext::postgis::square( size: std::float64, cell_i: std::int64, cell_j: std::int64, origin: ext::postgis::geometry = 'POINT(0 0)', ) -> ext::postgis::geometry

This is exposing st_square.

function

ext::postgis::srid()
ext::postgis::srid( geom: ext::postgis::geometry ) -> std::int64ext::postgis::srid( geog: ext::postgis::geography ) -> std::int64

This is exposing st_srid.

function

ext::postgis::startpoint()
ext::postgis::startpoint( a0: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_startpoint.

function

ext::postgis::subdivide()
ext::postgis::subdivide( geom: ext::postgis::geometry, maxvertices: std::int64 = 256, gridsize: std::float64 = -1.0, ) -> ext::postgis::geometry

This is exposing st_subdivide.

function

ext::postgis::summary()
ext::postgis::summary( a0: ext::postgis::geometry ) -> std::strext::postgis::summary( a0: ext::postgis::geography ) -> std::str

This is exposing st_summary.

function

ext::postgis::symdifference()
ext::postgis::symdifference( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, gridsize: std::float64 = -1.0, ) -> ext::postgis::geometry

Merges two geometries excluding where they intersect.

This is exposing st_symdifference.

function

ext::postgis::symmetricdifference()
ext::postgis::symmetricdifference( geom1: optional ext::postgis::geometry, geom2: optional ext::postgis::geometry, ) -> optional ext::postgis::geometry

This is exposing st_symmetricdifference.

function

ext::postgis::tileenvelope()
ext::postgis::tileenvelope( zoom: std::int64, x: std::int64, y: std::int64, bounds: ext::postgis::geometry = <ext::postgis::geometry>'SRID=3857;LINESTRING(-20037508.342789244 -20037508.342789244, 20037508.342789244 20037508.342789244)', margin: std::float64 = 0.0, ) -> ext::postgis::geometry

This is exposing st_tileenvelope.

function

ext::postgis::to_box2d()
ext::postgis::to_box2d( a0: ext::postgis::box3d ) -> ext::postgis::box2dext::postgis::to_box2d( a0: ext::postgis::geometry ) -> ext::postgis::box2d

This is exposing box2d.

function

ext::postgis::to_box3d()
ext::postgis::to_box3d( a0: ext::postgis::box2d ) -> ext::postgis::box3dext::postgis::to_box3d( a0: ext::postgis::geometry ) -> ext::postgis::box3d

This is exposing box3d.

function

ext::postgis::to_geography()
ext::postgis::to_geography( a0: std::bytes ) -> ext::postgis::geographyext::postgis::to_geography( a0: ext::postgis::geometry ) -> ext::postgis::geography

This is exposing geography.

function

ext::postgis::to_geometry()
ext::postgis::to_geometry( a0: std::str ) -> ext::postgis::geometryext::postgis::to_geometry( a0: std::bytes ) -> ext::postgis::geometryext::postgis::to_geometry( a0: ext::postgis::box2d ) -> ext::postgis::geometryext::postgis::to_geometry( a0: ext::postgis::box3d ) -> ext::postgis::geometryext::postgis::to_geometry( a0: ext::postgis::geography ) -> ext::postgis::geometry

This is exposing geometry.

function

ext::postgis::touches()
ext::postgis::touches( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

Tests if two geometries touch without intersecting interiors.

Tests if two geometries have at least one point in common, but their interiors do not intersect.

This is exposing st_touches.

function

ext::postgis::transform()
ext::postgis::transform( a0: ext::postgis::geometry, a1: std::int64, ) -> ext::postgis::geometryext::postgis::transform( geom: ext::postgis::geometry, to_proj: std::str, ) -> ext::postgis::geometryext::postgis::transform( geom: ext::postgis::geometry, from_proj: std::str, to_proj: std::str, ) -> ext::postgis::geometryext::postgis::transform( geom: ext::postgis::geometry, from_proj: std::str, to_srid: std::int64, ) -> ext::postgis::geometry

Transforms a geometry to a different spatial reference system.

Returns a new geometry with coordinates transformed to a different spatial reference system.

This is exposing st_transform.

function

ext::postgis::transformpipeline()
ext::postgis::transformpipeline( geom: ext::postgis::geometry, pipeline: std::str, to_srid: std::int64 = 0, ) -> ext::postgis::geometry

This is exposing st_transformpipeline.

function

ext::postgis::translate()
ext::postgis::translate( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, ) -> ext::postgis::geometryext::postgis::translate( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, ) -> ext::postgis::geometry

This is exposing st_translate.

function

ext::postgis::transscale()
ext::postgis::transscale( a0: ext::postgis::geometry, a1: std::float64, a2: std::float64, a3: std::float64, a4: std::float64, ) -> ext::postgis::geometry

This is exposing st_transscale.

function

ext::postgis::triangulatepolygon()
ext::postgis::triangulatepolygon( g1: ext::postgis::geometry ) -> ext::postgis::geometry

This is exposing st_triangulatepolygon.

function

ext::postgis::unaryunion()
ext::postgis::unaryunion( a0: ext::postgis::geometry, gridsize: std::float64 = -1.0, ) -> ext::postgis::geometry

This is exposing st_unaryunion.

function

ext::postgis::union()
ext::postgis::union( a0: array<ext::postgis::geometry> ) -> ext::postgis::geometryext::postgis::union( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> ext::postgis::geometryext::postgis::union( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, gridsize: std::float64, ) -> ext::postgis::geometry

This is exposing st_union.

function

ext::postgis::voronoilines()
ext::postgis::voronoilines( g1: optional ext::postgis::geometry, tolerance: optional std::float64 = 0.0, extend_to: optional ext::postgis::geometry = {}, ) -> optional ext::postgis::geometry

This is exposing st_voronoilines.

function

ext::postgis::voronoipolygons()
ext::postgis::voronoipolygons( g1: optional ext::postgis::geometry, tolerance: optional std::float64 = 0.0, extend_to: optional ext::postgis::geometry = {}, ) -> optional ext::postgis::geometry

This is exposing st_voronoipolygons.

function

ext::postgis::within()
ext::postgis::within( geom1: ext::postgis::geometry, geom2: ext::postgis::geometry, ) -> std::bool

This is exposing st_within.

function

ext::postgis::wrapx()
ext::postgis::wrapx( geom: ext::postgis::geometry, wrap: std::float64, `move`: std::float64, ) -> ext::postgis::geometry

This is exposing st_wrapx.

function

ext::postgis::x()
ext::postgis::x( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_x.

function

ext::postgis::xmax()
ext::postgis::xmax( a0: ext::postgis::box3d ) -> std::float64

This is exposing st_xmax.

function

ext::postgis::xmin()
ext::postgis::xmin( a0: ext::postgis::box3d ) -> std::float64

This is exposing st_xmin.

function

ext::postgis::y()
ext::postgis::y( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_y.

function

ext::postgis::ymax()
ext::postgis::ymax( a0: ext::postgis::box3d ) -> std::float64

This is exposing st_ymax.

function

ext::postgis::ymin()
ext::postgis::ymin( a0: ext::postgis::box3d ) -> std::float64

This is exposing st_ymin.

function

ext::postgis::z()
ext::postgis::z( a0: ext::postgis::geometry ) -> std::float64

This is exposing st_z.

function

ext::postgis::zmax()
ext::postgis::zmax( a0: ext::postgis::box3d ) -> std::float64

This is exposing st_zmax.

function

ext::postgis::zmflag()
ext::postgis::zmflag( a0: ext::postgis::geometry ) -> std::int16

This is exposing st_zmflag.

function

ext::postgis::zmin()
ext::postgis::zmin( a0: ext::postgis::box3d ) -> std::float64

This is exposing st_zmin.

These functions operate of sets of geometric data.

function

ext::postgis::clusterintersecting_agg()
ext::postgis::clusterintersecting_agg( a0: set of ext::postgis::geometry ) -> optional array<ext::postgis::geometry>

This is exposing st_clusterintersecting.

function

ext::postgis::clusterwithin_agg()
ext::postgis::clusterwithin_agg( a0: set of ext::postgis::geometry, a1: std::float64, ) -> optional array<ext::postgis::geometry>

This is exposing st_clusterwithin.

function

ext::postgis::collect_agg()
ext::postgis::collect_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::geometry

This is exposing st_collect.

function

ext::postgis::coverageunion_agg()
ext::postgis::coverageunion_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::geometry

Computes polygonal coverage from a set of polygons.

Computes the union of a set of polygons forming a coverage by removing shared edges.

This is exposing st_coverageunion.

function

ext::postgis::extent3d_agg()
ext::postgis::extent3d_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::box2d

This is exposing st_3dextent.

function

ext::postgis::extent_agg()
ext::postgis::extent_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::box2d

This is exposing st_extent.

function

ext::postgis::makeline_agg()
ext::postgis::makeline_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::geometry

This is exposing st_makeline.

function

ext::postgis::memunion_agg()
ext::postgis::memunion_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::box2d

This is exposing st_memunion.

function

ext::postgis::polygonize_agg()
ext::postgis::polygonize_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::geometry

Computes a collection of polygons formed from a set of linework.

Computes a collection of polygons formed from the linework of a set of geometries.

This is exposing st_polygonize.

function

ext::postgis::union_agg()
ext::postgis::union_agg( a0: set of ext::postgis::geometry ) -> optional ext::postgis::geometryext::postgis::union_agg( a0: set of ext::postgis::geometry, gridsize: std::float64, ) -> optional ext::postgis::geometry

This is exposing st_union.