Oharra
Orrialde honetara sartzeak baimena behar du. Saioa hasteko edo direktorioak aldatzen saia zaitezke.
Orrialde honetara sartzeak baimena behar du. Direktorioak aldatzen saia zaitezke.
Se aplica a:
Databricks SQL
Databricks Runtime 17.1 y versiones posteriores
Important
Esta característica está en versión preliminar pública.
Nota:
Esta característica no está disponible en almacenes clásicos de Databricks SQL. Para más información sobre los almacenes de SQL de Databricks, consulte Tipos de almacenamiento de SQL.
Devuelve un nuevo GEOMETRY valor cuyo SRID es el valor SRID especificado.
Syntax
st_setsrid ( geo, srid )
Arguments
-
geo: UnGEOMETRYvalor. -
srid: El nuevo valor SRID de la geometría.
Returns
Valor de tipo GEOMETRY, que representa un nuevo valor de geometría cuyo SRID es el valor SRID especificado.
La función devuelve NULL si alguna de las entradas es NULL.
Examples
-- Sets SRID to 3857 and returns the new SRID value.
> SELECT st_srid(st_setsrid(ST_GeomFromText('POINT(4 5)', 4326), 3857));
3857
-- Returns the original geometry with new SRID.
> SELECT st_asewkt(st_setsrid(st_geomfromtext('POINT(1 2)'), 4326));
SRID=4326;POINT(1 2)