Live Aug 13: Build a real-time context layer for models and agents
Aug 13: Context layer webinar
Chalk home page
Search...
Try Chalk
Book Demo
Theme
Navigation
Navigation
Chalk SQL
Geometry Functions | Chalk SQL
Documentation
References
Tutorials
Updates
Introduction
Documentation Home
What is Chalk?
Core Concepts
Platform Architecture
Chalk Serverless
Billing
Choosing Where to Run Code
Installation
Editor setup
Development with LLMs
Feature Engine
Getting Started
Features
Aggregations
Streaming
Resolvers
Integrations
Testing
Time
Deployment
Queries
Scheduling and Workflows
Model Platform
Notebooks
Sandboxes
Evaluations
Functions and Scaling Groups
Runtime Environment
Chalk SQL
Developer Interface
Observability
Infrastructure
Security
Geometry Functions
Copy for LLM
View as Markdown
geometry_as_geojson(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
geometry_from_geojson(geojson)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geojson:
large_string
The geometry as a GeoJSON string.
geometry_nearest_points(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_area(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_astext(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_boundary(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_buffer(geometry, distance)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
distance:
double
The buffer
distance
.
st_centroid(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_contains(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_convexhull(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_crosses(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_difference(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_dimension(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_disjoint(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_distance(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_endpoint(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_envelope(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_envelopeaspts(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_equals(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_exteriorring(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_geometries(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_geometryfromtext(wkt)
Geospatial (Presto-flavored Velox geometry function).
Parameters
wkt:
large_string
The geometry in WKT format.
st_geometryn(geometry, index)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
index:
int32
The
index
to read.
st_geometrytype(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_interiorringn(geometry, index)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
index:
int32
The
index
to read.
st_interiorrings(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_intersection(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_intersects(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_isclosed(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_isempty(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_isring(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_issimple(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_isvalid(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_length(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_linefromtext(wkt)
Geospatial (Presto-flavored Velox geometry function).
Parameters
wkt:
large_string
The geometry in WKT format.
st_linestring(points)
Geospatial (Presto-flavored Velox geometry function).
Parameters
points:
large_list<item: large_binary>
The array of point geometries.
st_multipoint(points)
Geospatial (Presto-flavored Velox geometry function).
Parameters
points:
large_list<item: large_binary>
The array of point geometries.
st_numgeometries(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_numinteriorring(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_numpoints(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_overlaps(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_point(x, y)
Geospatial (Presto-flavored Velox geometry function).
Parameters
x:
double
The input value.
y:
double
The second input value.
st_pointn(geometry, index)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
index:
int32
The
index
to read.
st_points(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_polygon(wkt)
Geospatial (Presto-flavored Velox geometry function).
Parameters
wkt:
large_string
The geometry in WKT format.
st_relate(geometry1, geometry2, relation)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
relation:
large_string
The DE-9IM intersection matrix pattern.
st_startpoint(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_symdifference(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_touches(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_union(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_within(geometry1, geometry2)
Geospatial (Presto-flavored Velox geometry function).
Parameters
geometry1:
large_binary
The first input geometry, as WKB.
geometry2:
large_binary
The second input geometry, as WKB.
st_x(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_xmax(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_xmin(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_y(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_ymax(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
st_ymin(geometry)
Geospatial (Presto-flavored Velox
geometry
function).
Parameters
geometry:
large_binary
The input
geometry
, as WKB.
On this page
geometry_as_geojson
geometry_from_geojson
geometry_nearest_points
st_area
st_astext
st_boundary
st_buffer
st_centroid
st_contains
st_convexhull
st_crosses
st_difference
st_dimension
st_disjoint
st_distance
st_endpoint
st_envelope
st_envelopeaspts
st_equals
st_exteriorring
st_geometries
st_geometryfromtext
st_geometryn
st_geometrytype
st_interiorringn
st_interiorrings
st_intersection
st_intersects
st_isclosed
st_isempty
st_isring
st_issimple
st_isvalid
st_length
st_linefromtext
st_linestring
st_multipoint
st_numgeometries
st_numinteriorring
st_numpoints
st_overlaps
st_point
st_pointn
st_points
st_polygon
st_relate
st_startpoint
st_symdifference
st_touches
st_union
st_within
st_x
st_xmax
st_xmin
st_y
st_ymax
st_ymin