how to caculate geographic extension

Hi,ALLI have a question,PLZ heip me.I have a geographic coordinates(-79.65231,43.682334),treat this coordinates as centerpoint.I want to cacluate the rect with width (100m),height(150m)so I want to cacluate corner geographic coordinates.Thanks
[292 byte] By [lvguangchuana] at [2007-10-2 13:36:17]
# 1

> I have a geographic

> coordinates(-79.65231,43.682334),

> treat this coordinates as centerpoint.

> I want to cacluate the rect with width

> (100m),height(150m)

>

> so I want to cacluate corner geographic coordinates.

I don't understand you, what are "corner geographic coordinates" and what rect (rectangle?) do you want to calculate.

You also havn't asked a question.

prometheuzza at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 2

I assume there's a point with the given coordinates, and it's at the centre of a rectangle with the given dimensions. And the poster wants to find the coordinates of the rectangle's coordinates.

(There must be another assumption about the orientation of that rectangle, otherwise there would be infinitely many possible answers.)

(And there must be some assumptions about what "rectangle" means. Evidently it's four lines on a spherical surface that meet at four corners, like its plane counterpart. But it isn't possible for all those corners to be right angles, since the sum of the angles of a quadrilateral on a sphere does not have to be 360 degrees and quadrilaterals whose angles are all 90 degrees do not have to have opposite sides with the length equal.)

DrClapa at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 3
Thanks DrClapyou are right.Your assume is perfect.sorry my poor English
lvguangchuana at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 4
Sorry, I check it again.Yes, I want to find the coordinates of the rectangle's coordinates.
lvguangchuana at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 5
How accurate is this supposed to be? Is this a school assignment?Also, you haven't answered DrClap's question about what a rectangle is.
RadcliffePikea at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 6
It is not a school assignment.the rectangle :it's four lines on a spherical surface that meet at four corners, like its plane counterpart.About the accurate, I do not know how to say it.It does not need perfect.Thanks your guys answer
lvguangchuana at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 7
My guess: the desired rectangle will be small enough that the curvature of the surface can be ignored. Sorry but I have to leave the spherical trigonometry to somebody else.
DrClapa at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 8

DrClap is right, the curvature can be ignored, and in general life is, otherwise there would be no maps.

earth circumference D = 2*pi*R = 40 000 000 m, so R = ca. 11 000 000 m.

100 m bend on the surface woud give an angle in radians of 2pi * 100 / D.

If you would go straightlined to the other corner, digging earth, the distance would be:

2 * R * sin(100/(2D)) = 2D/2pi . sin(2pi * 100/2D)

you can simplify sin(x) to x as the other terms are powers of x,

so:

= 100 m

joop_eggena at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...
# 9

Thanks joop_eggen.

I have used your algorithms to cacluate the corner coordinates.

However, I can not get it.

After using format :2*R*sin(100/(2D)) = 2D/2pi.sin(2pi*100/2D)

(I am not sure ? "."means mutiply or divided)

If I use 2*R*sin(100/(2D)) = 0.48

So the corner coordinates is:(center is x,y)

southWest: x-0.48,y-0.48

NorthEst: x+0.48,y+0.48

However,When I reverse to cacluate distance:

It is not right.

would minding telling me more detail.

sorry about my knowledge.

lvguangchuana at 2007-7-13 11:25:20 > top of Java-index,Other Topics,Algorithms...