Redivis Documentation
API DocumentationRedivis Home
  • Introduction
  • Redivis for open science
    • FAIR data practices
    • Open access
    • Data repository characteristics
    • Data retention policy
    • Citations
  • Guides
    • Getting started
    • Discover & access data
      • Discover datasets
      • Apply to access restricted data
      • Create a study
    • Analyze data in a workflow
      • Reshape data in transforms
      • Work with data in notebooks
      • Running ML workloads
      • Example workflows
        • Analyzing large tabular data
        • Create an image classification model
        • Fine tuning a Large Language Model (LLM)
        • No-code visualization
        • Continuous enrollment
        • Select first/last encounter
    • Export & publish your work
      • Export to other environments
      • Build your own site with Observable
    • Create & manage datasets
      • Create and populate a dataset
      • Upload tabular data as tables
      • Upload unstructured data as files
      • Cleaning tabular data
    • Administer an organization
      • Configure access systems
      • Grant access to data
      • Generate a report
      • Example tasks
        • Emailing subsets of members
    • Video guides
  • Reference
    • Your account
      • Creating an account
      • Managing logins
      • Single Sign-On (SSO)
      • Workspace
      • Studies
      • Compute credits and billing
    • Datasets
      • Documentation
      • Tables
      • Variables
      • Files
      • Creating & editing datasets
      • Uploading data
        • Tabular data
        • Geospatial data
        • Unstructured data
        • Metadata
        • Data sources
        • Programmatic uploads
      • Version control
      • Sampling
      • Exporting data
        • Download
        • Programmatic
        • Google Data Studio
        • Google Cloud Storage
        • Google BigQuery
        • Embedding tables
    • Workflows
      • Workflow concepts
      • Documentation
      • Data sources
      • Tables
      • Transforms
        • Transform concepts
        • Step: Aggregate
        • Step: Create variables
        • Step: Filter
        • Step: Join
        • Step: Limit
        • Step: Stack
        • Step: Order
        • Step: Pivot
        • Step: Rename
        • Step: Retype
        • Step: SQL query
        • Variable selection
        • Value lists
        • Optimization and errors
        • Variable creation methods
          • Common elements
          • Aggregate
          • Case (if/else)
          • Date
          • DateTime
          • Geography
          • JSON
          • Math
          • Navigation
          • Numbering
          • Other
          • Statistical
          • String
          • Time
      • Notebooks
        • Notebook concepts
        • Compute resources
        • Python notebooks
        • R notebooks
        • Stata notebooks
        • SAS notebooks
        • Using the Jupyter interface
      • Access and privacy
    • Data access
      • Access levels
      • Configuring access
      • Requesting access
      • Approving access
      • Usage rules
      • Data access in workflows
    • Organizations
      • Administrator panel
      • Members
      • Studies
      • Workflows
      • Datasets
      • Permission groups
      • Requirements
      • Reports
      • Logs
      • Billing
      • Settings and branding
        • Account
        • Public profile
        • Membership
        • Export environments
        • Advanced: DOI configuration
        • Advanced: Stata & SAS setup
        • Advanced: Data storage locations
        • Advanced: Data egress configuration
    • Institutions
      • Administrator panel
      • Organizations
      • Members
      • Datasets
      • Reports
      • Settings and branding
    • Quotas and limits
    • Glossary
  • Additional Resources
    • Events and press
    • API documentation
    • Redivis Labs
    • Office hours
    • Contact us
    • More information
      • Product updates
      • Roadmap
      • System status
      • Security
      • Feature requests
      • Report a bug
Powered by GitBook
On this page
  • Angle
  • Area
  • As GeoJSON
  • As text
  • Azimuth
  • Boundary
  • Buffer
  • Buffer with tolerance
  • Centroid
  • Closest point
  • Contains
  • Convex hull
  • Covered by
  • Covers
  • Difference
  • Dimension
  • Disjoint
  • Distance
  • DWithin
  • Endpoint
  • Equals
  • Exterior ring
  • Geo from
  • Geo from GeoJSON
  • Geo from text
  • Geo from wkb
  • Geogpoint
  • Geogpoint from Geohash
  • Geohash
  • Geometry type
  • Intersection
  • Intersects
  • Intersects box
  • Is collection
  • Is empty
  • Length
  • Make line
  • Make polygon
  • Max distance
  • Num geometries
  • Num points
  • Perimeter
  • Point N
  • Simplify
  • Snap to grid
  • Start point
  • Touches
  • Union
  • Within
  • X Min
  • X Max
  • Point X
  • Point Y
  • Y Min
  • Y Max
  • Centroid aggregate
  • Geo aggregate
  • DBSCAN clustering

Was this helpful?

Export as PDF
  1. Reference
  2. Workflows
  3. Transforms
  4. Variable creation methods

Geography

Last updated 1 year ago

Was this helpful?

Angle

Takes three point GEOGRAPHY values, which represent two intersecting lines. Returns the angle between these lines. Point 2 and point 1 represent the first line and point 2 and point 3 represent the second line. The angle between these lines is in radians, in the range [0, 2pi). The angle is measured clockwise from the first line to the second line. –>

ST_ANGLE(@geography, @geography_2, @geography_3)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

@geography_3

true

-

Area

Returns the area in square meters covered by the polygons in the input GEOGRAPHY –>

ST_AREA(@geography)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

As GeoJSON

ST_ASGEOJSON(@geography)

Return type

string

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

As text

ST_ASTEXT(@geography)

Return type

string

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Azimuth

ST_ANGLE(@geography, @geography_2)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Boundary

ST_BOUNDARY(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Buffer

ST_BUFFER(@geography, @buffer_radius[, num_seg_quarter_circle => @num_seg_quarter_circle][, endcap => @endcap][, side => @side])

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@buffer_radius

true

-

@num_seg_quarter_circle

true

-

@endcap

any of: ROUND, FLAT

false

(Round (default))

@side

any of: BOTH, LEFT, RIGHT

false

(Both (default))

Buffer with tolerance

ST_BUFFERWITHTOLERANCE(@geography, @buffer_radius, @tolerance_meters[, endcap => @endcap][, side => @side])

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@buffer_radius

true

-

@tolerance_meters

true

-

@endcap

any of: ROUND, FLAT

false

(Round (default))

@side

any of: BOTH, LEFT, RIGHT

false

(Both (default))

Centroid

ST_CENTROID(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Closest point

ST_CLOSESTPOINT(@geography, @geography_2)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Contains

ST_CONTAINS(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Convex hull

ST_CONVEXHULL(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Covered by

ST_COVEREDBY(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Covers

ST_COVERS(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Difference

ST_DIFFERENCE(@geography, @geography_2)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Dimension

ST_DIMENSION(@geography)

Return type

integer

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Disjoint

ST_DISJOINT(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Distance

ST_DISTANCE(@geography, @geography_2)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

DWithin

ST_DWITHIN(@geography, @geography_2, @distance)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

@distance

true

-

Endpoint

[@safe]ST_ENDPOINT(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@safe

true

-

Equals

ST_EQUALS(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Exterior ring

[@safe]ST_EXTERIORRING(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@safe

true

-

Geo from

ST_GEOGFROM(@expression)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@expression

true

-

Geo from GeoJSON

ST_GEOGFROMGEOJSON(@geojson[, @make_valid])

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geojson

true

-

@make_valid

true

-

Geo from text

ST_GEOGFROMTEXT(@wkt[, @oriented][, @planar][, @make_valid])

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@wkt

true

-

@oriented

true

-

@planar

true

-

@make_valid

true

-

Geo from wkb

ST_GEOGFROMWKB(@wkb)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@wkb

true

-

Geogpoint

ST_GEOGPOINT(@longitude, @latitude)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@longitude

true

-

@latitude

true

-

Geogpoint from Geohash

ST_GEOGPOINTFROMGEOHASH(@geohash)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geohash

true

-

Geohash

ST_GEOHASH(@geography, @maxchars)

Return type

string

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@maxchars

true

-

Geometry type

ST_GEOMETRYTYPE(@geography)

Return type

string

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Intersection

ST_INTERSECTION(@geography, @geography_2)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Intersects

ST_INTERSECTS(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Intersects box

ST_INTERSECTSBOX(@geography, @lng1, @lat1, @lng2, @lat2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@lng1

true

-

@lat1

true

-

@lng2

true

-

@lat2

true

-

Is collection

ST_ISCOLLECTION(@geography)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Is empty

ST_ISEMPTY(@geography)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Length

ST_LENGTH(@geography)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Make line

ST_MAKELINE(@geography, @geography_2)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Make polygon

ST_MAKEPOLYGON(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Max distance

ST_MAXDISTANCE(@geography, @geography_2)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Num geometries

ST_NUMGEOMETRIES(@geography)

Return type

integer

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Num points

ST_NUMPOINTS(@geography)

Return type

integer

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Perimeter

ST_PERIMETER(@geography)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Point N

[@safe]ST_POINTN(@geography, @index)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@index

true

-

@geography

true

-

@safe

true

-

Simplify

ST_SIMPLIFY(@geography, @tolerance_meters)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@tolerance_meters

true

-

Snap to grid

ST_SNAPTOGRID(@geography, @grid_size)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@grid_size

true

-

Start point

[@safe]ST_STARTPOINT(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@safe

true

-

Touches

ST_TOUCHES(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Union

ST_UNION(@geography, @geography_2)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

Within

ST_WITHIN(@geography, @geography_2)

Return type

boolean

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@geography_2

true

-

X Min

ST_BOUNDINGBOX(@geography).xmin

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

X Max

ST_BOUNDINGBOX(@geography).xmax

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Point X

[@safe]ST_X(@geography)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@safe

true

-

Point Y

[@safe]ST_Y(@geography)

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@safe

true

-

Y Min

ST_BOUNDINGBOX(@geography).ymin

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Y Max

ST_BOUNDINGBOX(@geography).ymax

Return type

float

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Centroid aggregate

ST_CENTROID_AGG(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

Geo aggregate

ST_UNION_AGG(@geography)

Return type

geography

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

DBSCAN clustering

ST_CLUSTERDBSCAN(@geography, @epsilon, @minimum_geographies)

Return type

integer

Parameters

Name
Type
Allowed values
Required
Placeholder (in UI)

@geography

true

-

@epsilon

true

-

@minimum_geographies

true

-

any

any

any

any

Returns the RFC 7946 compliant GeoJSON representation of the input GEOGRAPHY –>

any

Returns the WKT representation of an input GEOGRAPHY –>

any

Takes two point GEOGRAPHY values, and returns the azimuth of the line segment formed by points 1 and 2. The azimuth is the angle in radians measured between the line from point 1 facing true North to the line segment from point 1 to point 2. –>

any

any

Returns a single GEOGRAPHY that contains the union of the boundaries of each component in the given input GEOGRAPHY. –>

any

Returns a GEOGRAPHY that represents the buffer around the input GEOGRAPHY. This function is similar to ST_BUFFERWITHTOLERANCE, but you specify the number of segments instead of providing tolerance to determine how much the resulting geography can deviate from the ideal buffer radius. –>

any

or

any ,

or

any ,

Returns a GEOGRAPHY that represents the buffer around the input GEOGRAPHY. This function is similar to ST_BUFFER, but you provide tolerance instead of segments to determine how much the resulting geography can deviate from the ideal buffer radius. –>

any

or

any ,

or

any ,

Returns the centroid of the input GEOGRAPHY as a single point GEOGRAPHY. –>

any

Returns a GEOGRAPHY containing a point on Geography 1 with the smallest possible distance to Geography 2. This implies that the distance between the point returned by ST_CLOSESTPOINT and Geography 2 is less than or equal to the distance between any other point on Geography 1 and Geography 2. –>

any

any

Returns TRUE if no point of Geography 2 is outside Geography 1, and the interiors intersect; returns FALSE otherwise. –>

any

any

Returns the convex hull for the input GEOGRAPHY. The convex hull is the smallest convex GEOGRAPHY that covers the input. A GEOGRAPHY is convex if for every pair of points in the GEOGRAPHY, the geodesic edge connecting the points are also contained in the same GEOGRAPHY. –>

any

Returns FALSE if Geography 1 or Geography 2 is empty. Returns TRUE if no points of Geography 1 lie in the exterior of Geography 2. –>

any

any

Returns FALSE if Geography 1 or Geography 2 is empty. Returns TRUE if no points of Geography 2 lie in the exterior of Geography 1. –>

any

any

Returns a GEOGRAPHY that represents the point set difference of Geography 1 and Geography 2. Therefore, the result consists of the part of Geography 1 that does not intersect with Geography 2. –>

any

any

Returns the dimension of the highest-dimensional element in the input GEOGRAPHY. –>

any

Returns TRUE if the intersection of Geography 1 and Geography 2 is empty, that is, no point in Geography 1 also appears in Geography 2. –>

any

any

Returns the shortest distance in meters between two non-empty GEOGRAPHYs. –>

any

any

Returns TRUE if the distance between at least one point in Geography 1 and one point in Geography 2 is less than or equal to the Distance argument, otherwise, returns FALSE –>

any

any

or

any ,

Returns the last point of a linestring geography as a point geography. Returns an error if the input is not a linestring or if the input is empty. Use the SAFE prefix to obtain NULL for invalid input instead of an error. –>

any

any

Returns TRUE if Geography 1 and Geography 2 represent the same GEOGRAPHY value. More precisely, this means that one of the following conditions holds: + ST_COVERS(geography, geography_2) = TRUE and ST_COVERS(geography_2, geography) = TRUE + Both Geography 1 and Geography 2 are empty. –>

any

any

Returns a linestring geography that corresponds to the outermost ring of a polygon geography. If the input geography is a polygon, gets the outermost ring of the polygon geography and returns the corresponding linestring. If the input is the full GEOGRAPHY, returns an empty geography. Returns an error if the input is not a single polygon. Use the SAFE prefix to obtain NULL for invalid input instead of an error. –>

any

any

Converts an expression for a STRING or BYTES value into a GEOGRAPHY value. If expression represents a STRING value, it must be a valid GEOGRAPHY representation in one of the following formats: WKT, WKB, GeoJSON –>

or

any

Returns a GEOGRAPHY value that corresponds to the input GeoJSON representation. –>

or

any

any

Returns a GEOGRAPHY value that corresponds to the input WKT representation. –>

or

any

any

any

any

Converts an expression for a hexadecimal-text STRING or BYTES value into a GEOGRAPHY value. The expression must be in WKB format –>

or

any

Creates a GEOGRAPHY with a single point. ST_GEOGPOINT creates a point from the specified FLOAT64 longitude and latitude parameters and returns that point in a GEOGRAPHY value. –>

or

any ,

or

any ,

Returns a GEOGRAPHY value that corresponds to a point in the middle of a bounding box defined in the GeoHash –>

or

any

Returns a GeoHash representation of geography_expression. The resulting GeoHash will contain at most Max chars characters. Fewer characters corresponds to lower precision (or, described differently, to a bigger bounding box) –>

any

or

any

Returns the Open Geospatial Consortium (OGC) geometry type that describes the input GEOGRAPHY as a STRING. The OGC geometry type matches the types that are used in WKT and GeoJSON formats and printed for ST_ASTEXT and ST_ASGEOJSON. ST_GEOMETRYTYPE returns the OGC geometry type with the "ST_" prefix. –>

any

Returns a GEOGRAPHY that represents the point set intersection of the two input GEOGRAPHYs. Thus, every point in the intersection appears in both Geography 1 and Geography 2 –>

any

any

Returns TRUE if the point set intersection of Geography 1 and Geography 2 is non-empty. Thus, this function returns TRUE if there is at least one point that appears in both input GEOGRAPHYs. If ST_INTERSECTS returns TRUE, it implies that ST_DISJOINT returns FALSE. –>

any

any

Returns TRUE if geography intersects the rectangle between [lng1, lng2] and [lat1, lat2]. The edges of the rectangle follow constant lines of longitude and latitude. lng1 and lng2 specify the westmost and eastmost constant longitude lines that bound the rectangle, and lat1 and lat2 specify the minimum and maximum constant latitude lines that bound the rectangle. –>

any

or

any ,

or

any ,

or

any ,

or

any ,

Returns TRUE if the total number of points, linestrings, and polygons is greater than one. An empty GEOGRAPHY is not a collection. –>

any

Returns TRUE if the given GEOGRAPHY is empty; that is, the GEOGRAPHY does not contain any points, lines, or polygons. –>

any

Returns the total length in meters of the lines in the input GEOGRAPHY. –>

any

Creates a GEOGRAPHY with a single linestring by concatenating the point or line vertices of each of the input GEOGRAPHYs in the order they are given. –>

any

any

Creates a GEOGRAPHY containing a single polygon from a linestring input, where the input linestring is used to construct a polygon ring. –>

any

Returns the longest distance in meters between two non-empty GEOGRAPHYs; that is, the distance between two vertices where the first vertex is in the first GEOGRAPHY, and the second vertex is in the second GEOGRAPHY. If Geography 1 and Geography 2 are the same GEOGRAPHY, the function returns the distance between the two most distant vertices in that GEOGRAPHY. –>

any

any

Returns the number of geometries in the input GEOGRAPHY. For a single point, linestring, or polygon, ST_NUMGEOMETRIES returns 1. For any collection of geometries, ST_NUMGEOMETRIES returns the number of geometries making up the collection. ST_NUMGEOMETRIES returns 0 if the input is the empty GEOGRAPHY. –>

any

Returns the number of vertices in the input GEOGRAPHY. This includes the number of points, the number of linestring vertices, and the number of polygon vertices. –>

any

Returns the length in meters of the boundary of the polygons in the input GEOGRAPHY. –>

any

Returns the Nth point of a linestring geography as a point geography, where N is the index. The index is 1-based. Negative values are counted backwards from the end of the linestring, so that -1 is the last point. Returns an error if the input is not a linestring, if the input is empty, or if there is no vertex at the given index. Use the SAFE prefix to obtain NULL for invalid input instead of an error. –>

or

any

any

any

Returns a simplified version of geography, the given input GEOGRAPHY. The input GEOGRAPHY is simplified by replacing nearly straight chains of short edges with a single long edge. The input geography will not change by more than the tolerance specified by tolerance_meters. Thus, simplified edges are guaranteed to pass within tolerance_meters of the original positions of all vertices that were removed from that edge. The given tolerance_meters is in meters on the surface of the Earth. –>

any

or

any ,

Returns the input GEOGRAPHY, where each vertex has been snapped to a longitude/latitude grid. The grid size is determined by the grid_size parameter which is given in degrees. –>

any

or

any ,

Returns the first point of a linestring geography as a point geography. Returns an error if the input is not a linestring or if the input is empty. Use the SAFE prefix to obtain NULL for invalid input instead of an error. –>

any

any

Returns TRUE provided the following two conditions are satisfied: (1) Geography 1 intersects Geography 2 and (2) the interior of Geography 1 and the interior of Geography 2 are disjoint. –>

any

any

Returns a GEOGRAPHY that represents the point set union of all input GEOGRAPHYs. –>

any

any

Returns TRUE if no point of Geography 1 is outside of Geography 2 and the interiors of Geography 1 and Geography 2 intersect. Given two geographies a and b, ST_WITHIN(a, b) returns the same result as ST_CONTAINS(b, a). Note the opposite order of arguments. –>

any

any

Returns a float representing the west-most constant longitude line that bounds the geometry –>

any

Returns a float representing the east-most constant longitude line that bounds the geometry –>

any

Returns the longitude in degrees of the single-point input GEOGRAPHY –>

any

any

Returns the latitude in degrees of the single-point input GEOGRAPHY –>

any

any

Returns a float representing the minimum constant latitude line that bounds the geometry. –>

any

Returns a float representing the maximum constant latitude line that bounds the geometry. –>

any

Computes the centroid of the set of input GEOGRAPHYs as a single point GEOGRAPHY. –>

any

Returns a geography variable that represents the point set union of all input geographies. –>

any

Identifies high-density geography clusters and marks outliers in low-density areas of noise –>

any

any ,

any

learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
learn more
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
literal
integer
float
variable
literal
integer
float
enum
enum
variable
geography
variable
literal
integer
float
variable
literal
integer
float
enum
enum
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
literal
integer
float
variable
geography
boolean
boolean
variable
geography
variable
geography
variable
geography
boolean
boolean
variable
literal
string
variable
literal
string
boolean
boolean
variable
literal
string
boolean
boolean
boolean
boolean
boolean
boolean
variable
literal
string
variable
literal
integer
float
variable
literal
integer
float
variable
literal
string
variable
geography
variable
literal
integer
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
literal
integer
float
variable
literal
integer
float
variable
literal
integer
float
variable
literal
integer
float
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
literal
integer
variable
geography
boolean
boolean
variable
geography
variable
literal
integer
float
variable
geography
variable
literal
integer
float
variable
geography
boolean
boolean
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
boolean
boolean
variable
geography
boolean
boolean
variable
geography
variable
geography
variable
geography
variable
geography
variable
geography
literal
integer
float
literal
integer