comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: area enclosed by a polygon on a sphere
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: area enclosed by a polygon on a sphere [message #16536] Wed, 04 August 1999 00:00
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
In article <7o74n7$aa7$1@news.lth.se>,
Struan Gray <struan.gray@sljus.lu.se> wrote:

> No code, but an idea which essentially uses Green's Theorem.
>
> 1) convert lat/lon to cartesian coords
> 2) use them to make an IDLgrPolygon object
> 3) use the IDLgrTessellator object to turn that
> into a set of triangles
> 4) for each triangle work out the solid angle it
> subtends from the centre of the earth
> 5) add up the solid angles and convert to an
> area.
>
> Working out the solid angle subtended by an arbitrary
> triangle of points on the surface of a sphere is left as an
> exercise for the reader (watch out for triplets of points on
> the same great circle :-).
>
> Struan
>

I found out how to do this today. For a spherical triangle the solid
angle subtended is the sum (in radians) of the interior angles - Pi.
This can be generalized to any polygon as

Area = (sum of all interior angles) - (n-2)*Pi

Where n is the number of points.

-Ronn

--
Ronn Kling
Ronn Kling Consulting
www.rlkling.com


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problem: Filled contour Plots
Next Topic: New procedure to save image files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:13:40 PDT 2025

Total time taken to generate the page: 0.72132 seconds