[GIS] How to calculate area or centroid of the_geom in CartoDB

cartopostgis

Is it possible to calculate area or centroid of the_geom in cartoDB?

It would not be a huge time saver, and I am doubtful that it is an option but figured I would ask.

Best Answer

Using spatial SQL:

SELECT *, ST_Area(the_geom) FROM Table

more info

SELECT *, ST_AsText(ST_Centroid(the_geom)) FROM Table

more info