[postgis-users] Lat/lon bounding box to area?
Paul Ramsey
pramsey at refractions.net
Fri Feb 2 11:11:20 PST 2007
How accurate do you need your area to be? Best bet would be to treat the
lat/lon "box" as a trapezoid (which more closely approximates its
"ground shape"). Use distance_sphere or distance_spheroid to calculate
the metric length of the top and bottom and the height, then basic math
to calculate the area.
P
Steve Benzo wrote:
> Hi,
>
> This might be a stupid question, but is there a way using PostGIS that I
> can take a bounding box (polyline) supplied by a user (they're drawing a
> box on the map, from which I get the xmin/ymin/etc from), which I'd like
> to use to get an area from (utlimately acres). My first step will be to
> get that polyline into PostGIS (struggling, but should be able to figure
> it out) and then apply a trigger which populates an area field from
> that. Thanks in advance.
>
> SB
>
> ------------------------------------------------------------------------
> Check out the all-new Yahoo! Mail beta
> <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta>
> - Fire up a more powerful email and get things done faster.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
--
Paul Ramsey
Refractions Research
http://www.refractions.net
pramsey at refractions.net
Phone: 250-383-3022
Cell: 250-885-0632
More information about the postgis-users
mailing list