Most Used Spatial Functions
Most Used Spatial Functions
Geometry Constructors:
ST_MakePoint: Creates a point geometry from X and Y coordinates.
ST_GeomFromText: Creates a geometry from a well-known text
representation.
ST_GeomFromEWKT: Creates a geometry from an extended well-known
text representation.
ST_GeomFromGeoJSON: Creates a geometry from a GeoJSON
representation.
Geometry Accessors:
ST_GeometryType: Returns the geometry type.
ST_SRID: Returns the spatial reference identifier of a geometry.
ST_X: Returns the X coordinate of a point.
ST_Y: Returns the Y coordinate of a point.
ST_Transform: Transforms a geometry from one spatial reference system
(SRS) to another.
Geometry Measurements:
ST_Area: Computes the area of a geometry.
ST_Length: Computes the length of a linestring.
ST_Distance: Computes the distance between two geometries.