This topic describes the ST_Project function. This function reprojects a point based on a distance measured in meters and an azimuth. North is azimuth 0, east is azimuth 90, south is azimuth 180, and west is azimuth 270.

Syntax

geography  ST_Project(geography  g1 , float  distance , float  azimuth);

Parameters

Parameter Description
g1 The geography object that you want to specify.
distance The distance that you want to specify. Unit: meters.
azimuth The heading or bearing in navigation.

Description

This function supports negative distances and non-normalized azimuths.

Examples

Reproject a point by using the default parameter settings.
SELECT ST_AsText(ST_Project('POINT(0 0)'::geography, 10, pi()));
          st_astext
-----------------------------
 POINT(0 -0.000090436947705)
(1 row)