Hi,
Yes for the distance, as Postgis provides both distance_sphere and
distance_spheroid functions (distance_spheroid is more accurate, taken
the "real" shape of earth into account, but takes a longer time to
execute.)
Distance is computed between points, not between geometries, so will
either have to take the centroid of your geometry, or compute the
distance for individual coordinates).
No for surfaces. You will have to project your data into a planar
projection system to do so (UTM for instance). This thread may be
useful in your case to find the correct UTM zone according to your
objects coordinates:
http://www.nabble.com/function-to-find-UTM-zone-SRID-from-POINT-td1772300.html
Nicolas
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
No for surfaces. You will have to project your data into a planarprojection system to do so (UTM for instance). This thread may be
useful in your case to find the correct UTM zone according to your
objects coordinates:
select sum(area(transform(glacier_polys,32767))) FROM glacier_polygons ...
Note that the EPSG code here is one I defined. I think the current
version of PostGIS might have CEA projection defined in some proper
location.
Bruce
> _______________________________________________
> postgis-users mailing list
> postgi...@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
--
Bruce Raup
http://cires.colorado.edu/~braup/
>A global equal-area projection would
>be better, in that you can use the same parameters regardless of where
>on the globe you're working. I have a similar application, and use
>Cylindrical Equal Area. I use something like (with an old version of
>PostGIS -- I think the function names all start with ST_ now):
>
>select sum(area(transform(glacier_polys,32767))) FROM glacier_polygons ...
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users