Skip to content

Instantly share code, notes, and snippets.

@uilian
Created May 20, 2014 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uilian/2e69c778a5e0f7312e24 to your computer and use it in GitHub Desktop.
Save uilian/2e69c778a5e0f7312e24 to your computer and use it in GitHub Desktop.
Oracle Spatial - Scripts
-- calcular centroide
select SDO_GEOM.SDO_CENTROID(tb.geom, '0.000005')
from tabela tb;
-- converter para outra projecao
EXECUTE SDO_CS.TRANSFORM_LAYER('TABLE_ORIGINAL','GEOM_COL','TABLE_DESTINATION',3857);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment