The latitude and longitude of GPs coordinate conversion and its conversion method

Source: Internet
Author: User
Tags in degrees
Original source: http://blog.sina.com.cn/s/blog_7b0807af0101lh3n.html

GPS coordinates and latitude and longitude of the algorithm and the probability is not the same, but we may be able to connect them to use, the following first affixed to my conversion tool: Http://map.yanue.net/gps.html. Inside the implementation of the GPS to Google Maps Baidu map latitude and longitude conversion. Unambiguous, and below will be the connection between them.

GPS coordinate system I don't know how much it's different from Google maps, so I searched and looked at the difference:

Topographic map coordinate system: The topographic map of our country adopts Gauss-gram Lugeping plane Cartesian coordinate system. In this coordinate system, the horizontal axis: the equator, denoted by y, longitudinal axis: The central meridian, denoted by x, coordinates origin: the intersection point of the central Meridian and the equator, expressed in 0. South of the equator is negative, North is positive, east of the central meridian is positive, and West is negative. China is located in the Northern hemisphere, so the ordinate is positive, but in order to avoid the central longitude line to the west of the case of negative, the coordinate longitudinal axis 500 km west.

Beijing 54 coordinate system: 1954 China set up a geodetic origin in Beijing, using the Krasovsky ellipsoid, the coordinates of each Earth control point calculated by this, called the Beijing 54 coordinate system.
GS84 coordinate system: the universal latitude and longitude coordinate system.

Latitude: The 1884 International Longitude Conference stipulates that the meridian is 0° meridian at the center of Wedge Meridian, London's Green Observatory. From the 0° meridian to the east is called longitude, westward called West longitude, east and west of the 180 °. It is customary to divide the Earth into two hemispheres by the boundary between 20 ° and longitude 160 °. If the earth is cut into the north and the South in the middle of the axis, half of it is called the Northern Hemisphere, and half is called the southern hemisphere. The plane that is cut is called the equatorial plane. The equatorial plane intersects the Earth's surface with a line called the equator. Parallels are getting shorter from the equator to the poles, narrowing to a point at the poles. The scientists have set the equator at 0° latitude, dividing it from the equator to 90 °, south of the equator and north of the equator to northern latitudes. On the computer or GPS, latitude and longitude are often used in degrees, minutes, seconds and degrees. degrees, minutes, minutes, seconds. The mixture of degrees, minutes, and seconds is 60 degrees, degrees, minutes and seconds. The binary system of seconds is 100, and the conversion must be noted. It is possible to think approximately that the distance between each latitude is constant 111KM, 1.85KM per minute, 31.8M per second. The distance between the longitude and latitude increases gradually and decreases, which can be calculated according to the following formula:

Longitude 1° length =111.413cosφ a 0.094cos3φ km (latitude φ).
The general data obtained from GPS is latitude and longitude. There are many ways to express the latitude.
1.) ddd.ddddd, degrees. Decimal fractional portion of degrees (5 bits) for example: 31.12035º
2.) ddd.mm.mmm, degrees. Score of. Decimal Fractional part (3-bit) for example 31º10.335′
3.) DDD.MM.SS, degrees. Score of. Seconds such as 31º12 ' 42″
Any fixed point on the earth can be expressed with a definite latitude and longitude.

On the method of latitude-longitude coordinate transformation
One or 10 binary conversion to Latitude
The method of converting longitude to decimal is simple
As you can see below.
Decimal Degrees = Degrees + minutes/60 + seconds/3600
Example: 57°55 ' 56.6″=57+55/60+56.6/3600=57.9323888888888
114°65 ' 24.6″=114+65/60+24.6/3600= the results of their own calculation!

such as the Latitude (longitude,latitude) (205.395583333332,57.9323888888888)
Convert the data into coordinates (degrees,minutes,seconds) (205°23 ' 44.1″,57°55 ' 56.6″).
The steps are as follows:

1, direct read "degrees": 205
2, (205.395583333332-205) *60=23.734999999920 get "cent": 23
3, (23.734999999920-23) *60=44.099999995200 get "seconds": 44.1

The same method can be used to get latitude coordinates: 57°55 ' 56.6″

Good freshman, it is copied from other places.

I use the GPS module to return the data format is 0183GPS protocol, return the decimal latitude and longitude, in the map display need to convert above

The end

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.