I am trying to create a new point geometry field from this command:
UPDATE cat.datos_parcelas
SET arb_geom = ST_SetSRID(ST_Project(geom, arbdist, radians(arbrumbo)), 32631)::geometry;
-- geom: contains the geometry of the origin point in 32631
-- arbdist: contains the distance from the origin to the new point
-- arbrumbo: contains the bearing.
However, I get the following error:
ERROR: Only lon/lat coordinate systems are supported in geography. SQL state: 22023
Any clue how to solve this? Shall I convert first my origin geometry to lat/long?