Create a rectangle with coordinates (latitude and longitude) I have two points on a map, I want to create a rectangle where the two points are the line that intersect the rectangle. I understand that there is no true rectangle on a sphere, but the areas I am dealing with are small, the length of the rectangles are no more than a few km and the heights a few hundred meters. So if the calculation is approximate that's fine. Any help appreciated! Thanks,
Philip

The simplest case: Let the two points be $(x_1,y_1)$ and $(x_2,y_1)$ and the thickness of rectangle is $t$. The coordinates of the rectangle are:
$(x_1,y_1+t/2),(x_1,y_1-t/2),(x_2,y_1-t/2),(x_2,y_1+t/2)$
