From: Andrea A. <aa...@op...> - 2009-10-26 07:49:00
|
Christian Müller ha scritto: > A possibility would be > > 1) Get the exterior ring of the polygon > 2) get the points of the exterior ring, I think the should be ordered > anti-clockwise, please check this in advance > 3) use the good old pythagoras, a*a + b*b = c*c Assuming the spatial reference system is not geodetic (e.g, WGS84). If it is, you'll have to use the GeodeticCalculator to get discances between the points. Pythagoras is a nice guy, but works fine only when the reference surface is planar ;-) Cheers Andrea |