How to transform a distance from degrees to metres?

前端 未结 3 1422
醉酒成梦
醉酒成梦 2021-02-04 06:31

I\'m using OpenLayers with an ordinary mercator map and I\'m trying to sample a bounding box by finding a grid of points in latlong. The bbox is expressed in latlon, e.g.

<
3条回答
  •  不要未来只要你来
    2021-02-04 07:35

    Without allowing for the slightly non-spherical shape of the earth,

    One minute of latitude North to south = 1 Nautical Mile = 6075 feet So One degree = 60 Minutes = 60 * 6075 feet There are 3.28 Feet in a meter so One degree = 60 * 6075 / 3.28 Meters = 111,128 meters

    Alternatively, one minute of Latitude = 1,852 Meters So One degree = 60 * 1852 meters = 111,120 meters

    I'm not sure which is more accurate...

    For One degree of Longitude, do the same thing, but Multiply by the Cosine (Latitude) since the Longitude lines get closer together as you move north.

提交回复
热议问题