About Area

18 views
Skip to first unread message

Jose Luis Torres

unread,
Nov 26, 2014, 5:42:25 PM11/26/14
to rgeo-...@googlegroups.com
Hi everyone,

Is there a way to calculate the area using ::geographic, like this:

select st_area(map_coords::geography) from fields where id=24;

If I run:

f = Field.find(24)

for area I get:

f.map_coords.area
=> 4.163333706927397e-05

this is the same than running

select st_area(map_coords) from fields where id=24;

how can I make it as geography?

Thanks in advance

PD I check the documentation and group before posting the question.

JL
Reply all
Reply to author
Forward
0 new messages