Submitted Successfully!
To reward your contribution, here is a gift for you: A free trial for our video production service.
Thank you for your contribution! You can also upload a video entry or images related to this topic.
Version Summary Created by Modification Content Size Created at Operation
1 handwiki -- 1456 2022-11-25 01:45:47

Video Upload Options

Do you have a full video?

Confirm

Are you sure to Delete?
Cite
If you have any further questions, please contact Encyclopedia Editorial Office.
HandWiki. Restrictions on Geographic Data in China. Encyclopedia. Available online: https://encyclopedia.pub/entry/36454 (accessed on 20 June 2024).
HandWiki. Restrictions on Geographic Data in China. Encyclopedia. Available at: https://encyclopedia.pub/entry/36454. Accessed June 20, 2024.
HandWiki. "Restrictions on Geographic Data in China" Encyclopedia, https://encyclopedia.pub/entry/36454 (accessed June 20, 2024).
HandWiki. (2022, November 25). Restrictions on Geographic Data in China. In Encyclopedia. https://encyclopedia.pub/entry/36454
HandWiki. "Restrictions on Geographic Data in China." Encyclopedia. Web. 25 November, 2022.
Restrictions on Geographic Data in China
Edit

Due to national security concerns, the use of geographic information in China is restricted to entities that obtain a special authorization from the administrative department for surveying and mapping under the State Council. Consequences of the restriction include fines for unauthorized surveys, lack of geotagging information on many cameras when the GPS chip detects a location within China, incorrect alignment of street maps with satellite maps in various applications, and seeming unlawfulness of crowdsourced mapping efforts such as OpenStreetMap.

national security surveying and mapping openstreetmap

1. Legislation

According to articles 7, 26, 40 and 42 of the Surveying and Mapping Law of the People's Republic of China, private surveying and mapping activities have been illegal in mainland China since 2002. The law prohibits

Fines range from 10,000 to 500,000 CNY (1447 – 72359 USD). Foreign individuals or organizations that wish to conduct surveying must form a Chinese-foreign joint venture.[1]

Between 2006 and 2011, the authorities pursued nearly 40 illegal cases of mapping and surveying.[2] The media has reported on other cases of unlawful surveys:

  • March 7, 2007 - Japanese and Korean scholars fined; joint-venture Weihai hired foreign surveyors without approval from the government[3]
  • March 25, 2008 - China's State Bureau of Surveying and Mapping cracks down on some of the 10,000 websites that publish maps in China, most without authorization.[4]
  • January 6, 2009 - Chinese authorities fine UK students for “illegal map-making activities”.[5]
  • 2010 - Chinese authorities to crack down on the unregistered or illegal among 42,000 online map providers, targeting incorrect information and leaks of sensitive information involving state secrets. New standards require all Internet map providers to keep servers storing map data inside China.[6]
  • March 14, 2014 - Coca-Cola is accused of illegal mapping.[7]

As a consequence, major digital camera manufacturers including Panasonic, Leica, FujiFilm, Nikon and Samsung restrict location information within China.[8]

OpenStreetMap, the crowdsourced project to assemble a map of the world, advises that "private surveying and mapping activities are illegal in China".[9]

2. Coordinate Systems

JavaScript implementation of coordinate "processing" methods used in China. File:PRcoords Cheatsheet.pdf - HandWiki

Chinese regulations mandate that approved map service providers in China use a specific coordinate system, called GCJ-02. Baidu Maps uses yet another coordinate system - BD-09,[10][11] which seems to be based on GCJ-02.[12]

2.1. GCJ-02

GCJ-02 (colloquially Mars Coordinates) is a geodetic datum formulated by the Chinese State Bureau of Surveying and Mapping (Chinese: 国测局; pinyin: guó-cè-jú), and based on WGS-84.[13] It uses an obfuscation algorithm[14] which adds apparently random offsets to both the latitude and longitude, with the alleged goal of improving national security.[12][15]

A marker with GCJ-02 coordinates will be displayed at the correct location on a GCJ-02 map. However, the offsets can result in a 100 - 700 meter error from the actual location if a WGS-84 marker (such as a GPS location) is placed on a GCJ-02 map, or vice versa. The Google.com street map is offset by 50–500 meters from its satellite imagery,[7][16] while the Google.cn map is not.[17] Yahoo! Maps also displays the street map without major errors when compared to the satellite imagery.[18] MapQuest overlays OpenStreetMap data perfectly as well.[19]

Despite the secrecy surrounding the GCJ-02 obfuscation, several open-source projects exist that provide conversions between GCJ-02 and WGS-84, for languages including C#,[20] C, Go, Java, JavaScript, PHP,[21] Python,[22] R,[12] and Ruby.[23][24] They appear to be based on leaked code for the WGS to GCJ part.[25] Other solutions to the conversion involve interpolating coordinates based on regression from a data set of Google China and satellite imagery coordinates.[26] An attempt by Wu Yongzheng using FFT analysis gave a result much like the leaked code.[27]

From the leaked code,[20] GCJ-02 uses parameters from the SK-42 reference system. The parameters were used to calculate lengths of one degree of latitude and longitude, so that offsets in meters previously calculated can be converted to degrees for the WGS-84 input coordinates.

2.2. BD-09

BD-09 is a geographic coordinate system used by Baidu Maps, adding further obfuscation to the already cryptic GCJ-02 "to better protect users' privacy".[11][28] Baidu provides an API call to convert from Google or GPS (WGS-84) coordinates into Baidu coordinates.[10] Similar to GCJ-02, there are no APIs to convert in the other direction, but open source implementations in R[12] and various other languages[21] exist.

2.3. Reverse Transformation

GCJ-02 appears to use multiple high-frequency noises of the form [math]\displaystyle{ 20n \sin{}(180 k \times lat_{rad}) }[/math], effectively generating a transcendental equation and thus eliminating analytical solutions. However, the open-source "reverse" transformations make use of the properties of GCJ-02 that the transformed coordinates are not too far from WGS-84 and are mostly monotonic related to corresponding WGS-84 coordinates:[12][29]

from typing import Callable # Represent coordinates with complex numbers for simplicity coords = complex # Coords-to-coords function C2C = Callable[[coords], coords] def rev_transform_rough(bad: coords, worsen: C2C) -> coords: """ Roughly reverse the ``worsen`` transformation. Since ``bad = worsen(good)`` is close to ``good``, ``worsen(bad) - bad`` can be used to approximate ``bad - good``. First seen in eviltransform. """ return bad - (worsen(bad) - bad) def rev_transform(bad: coords, worsen: C2C) -> coords: """ More precisely reverse the ``worsen`` transformation. Similar to ``rev_transform_rough``, ``worsen(a) - worsen(b)`` can be used to approximate ``a - b``. First seen in geoChina/R/cst.R (caijun 2014). Iteration-only version (without rough initialization) has been known since fengzee-me/ChinaMapShift (November 2013). """ eps = 1e-6 wgs = rev_transform_rough(bad, worsen) improvement = (99+99j) # dummy value while abs(improvement) > eps: improvement = worsen(wgs) - bad wgs = wgs - improvement return wgs

The rough method is reported to give some 1~2 meter accuracy for wgs2gcj,[21] while the exact (fixed point iteration) method is able to get "centimeter accuracy" in two calls to the forward function.[29][30][31] Since the two properties ensure some basic functionality of the coordinate system, it's unlikely that the methods will change with new coordinate systems. The BD-to-GCJ code works in a manner much like the rough method, except that it removes the explicitly-applied constant shift of ~20 seconds of arc on both coordinates first and works in polar coordinates like the forward function does.[12]

The establishment of working conversion methods both ways largely obsoletes datasets for deviations mentioned below.[32]

3. The China GPS Shift Problem

Google Maps displays satellite imagery using the WGS-84 coordinate system, and street maps using the GCJ-02 datum. https://handwiki.org/wiki/index.php?curid=1437630

The China GPS shift (or offset) problem is a class of issues stemming from the difference between the GCJ-02 and WGS-84 datums. Global Positioning System coordinates are expressed using the WGS-84 standard and when plotted on street maps of China that follow the GCJ-02 coordinates, they appear off by a large (often over 500 meters) and variable amount. Authorized providers of location-based services and digital maps (such as AutoNavi or NavInfo) must purchase a "shift correction" algorithm that enables plotting GPS locations correctly on the map.[32] Satellite imagery and user-contributed street map data sets, such as those from OpenStreetMap also display correctly because they have been collected using GPS devices (albeit technically illegally - see Legislation).

Some map providers, such as Here, choose to also offset their satellite imagery layer to match the GCJ-02 street map.[33]

Google has worked with Chinese LBS provider AutoNavi since 2006 to source its maps in China.[34] google.cn/maps (formerly Google Ditu) uses the GCJ-02 system for both its street maps[35] and satellite imagery.[36] However, the WGS-84 positions reported by a browser are depicted at the wrong positions. On the contrary, google.com/maps also uses GCJ-02 data for the street map, but doesn't shift the satellite imagery layer, which continues to use WGS-84 coordinates,[37] with the benefit that WGS-84 positions can still be overlaid correctly on the satellite image (but not the street map). Google Earth also uses WGS-84 to display the satellite imagery.[38]

Overlaying GPS tracks on Google.com Maps and any street maps sourced from Google.com via its API, will lead to a similar display offset problem, because GPS tracks use WGS-84, and Google.com maps use GCJ-02. The issue has been reported numerous times on the Google Product Forums since 2009,[39] with 3rd party applications emerging to fix it.[40] Data sets with offsets for large lists of Chinese cities existed for sale.[41] The problem was observed as early as 2008, and the causes were unclear, with (misguided) speculation that imported GPS chips were tampered with code that caused incorrect reporting of coordinates.[42]

3.1. Hong Kong and Macau

Under One Country Two Systems, legislation in mainland China does not apply in Hong Kong and Macau SARs and there are no similar restrictions in the SARs. Therefore, the GPS shift problem does not apply. However, at the border between the SARs and mainland China, the data shown by online maps are broken[43] where the shifted data and correct data overlap. This poses problems to users travelling across the border, especially visitors not aware of the issue.

References

  1. "Surveying and Mapping Law of the People’s Republic of China". National Administration of Surveying, Mapping and Geoinformation of China. http://en.nasg.gov.cn/article/Lawsandregulations/201312/20131200005471.shtml. 
  2. Hvistendahl, M. (24 January 2013). "Foreigners Run Afoul of China's Tightening Secrecy Rules". Science 339 (6118): 384–385. doi:10.1126/science.339.6118.384. PMID 23349263.  https://dx.doi.org/10.1126%2Fscience.339.6118.384
  3. Dingding, Xin (7 March 2007). "Unlawful surveys to be dealt severely". China Daily. http://www.chinadaily.com.cn/china/2007-03/07/content_821274.htm. 
  4. Liang, Yan (25 March 2008). "China cracks down on illegal online map services to protect state security". Xinhua News Agency. Beijing. http://news.xinhuanet.com/english/2008-03/25/content_7858467.htm. 
  5. "China fines UK students for 'illegal map-making'". AFP. 6 January 2009. http://www.chinapost.com.tw/china/national-news/2009/01/06/190764/China-fines.htm. 
  6. Wang, Guanqun (19 May 2010). "China issues new rules on Internet map publishing". Xinhua News Agency. http://news.xinhuanet.com/english2010/china/2010-05/19/c_13302696.htm. 
  7. Pasternack, Alex (14 March 2013). "If You're a Foreigner Using GPS in China, You Could Be a Spy". Vice. https://motherboard.vice.com/en_us/article/3ddmzv/if-youre-a-foreigner-in-china-it-is-illegal-to-use-gps. 
  8. Doctorow, Cory (23 May 2015). "Why your camera's GPS won't work in China (maybe)". Boing Boing. Archived from the original on 24 May 2015. http://boingboing.net/2012/05/24/why-your-cameras-gps-wont.html. 
  9. "Legality". OpenStreetMap. https://wiki.openstreetmap.org/wiki/WikiProject_China#Legality. Retrieved 7 April 2015. 
  10. "Coordinate conversion" (in zh). Baidu Maps. http://developer.baidu.com/map/jsdemo.htm#a5_1. Retrieved 7 April 2015. 
  11. "坐标转换API" (in zh). Baidu. http://developer.baidu.com/map/changeposition.htm. 
  12. "A package for geocoding, reverse geocoding and coordinate transformations between WGS-84, GCJ-02 and BD-09 coordinate systems". 15 February 2014. https://github.com/caijun/geoChina. 
  13. "Quickstart". https://angular-ui.github.io/angular-google-maps/#!/use. Retrieved 7 April 2015. 
  14. "手机地理轨迹取证步骤大解密". IT168. http://m.it168.com/article_1778861.html. 
  15. "国内常见的电子地图坐标介绍". 鲲鹏Web数据抓取. http://www.site-digger.com/html/articles/20140115/72.html. 
  16. "Google.com hybrid map of The Bund". https://www.google.com/maps/place/The+Bund/@31.2417003,121.49003,1096m/data=!3m1!1e3!4m2!3m1!1s0x35b270578b874861:0x4d56fbed10d1af64. Retrieved 7 April 2015. 
  17. "Google.cn map of The Bund". Google China. http://www.google.cn/maps/@31.2397367,121.4946247,1097m/data=!3m1!1e3. 
  18. "Yahoo! Map of The Bund". https://maps.yahoo.com/place/?lat=31.24175591400924&lon=121.49212718009949&q=shanghai&bb=31.24629644%2C121.48394644%2C31.23721516%2C121.50030792&addr=shanghai. Retrieved 7 April 2015. 
  19. "MapQuest map of The Bund". http://mapq.st/1C9QlaP. Retrieved 7 April 2015. 
  20. "EvilTransform.cs". 2 February 2013. https://on4wp7.codeplex.com/SourceControl/changeset/view/21455#EvilTransform.cs. 
  21. "Transform coordinates between Earth (WGS-84) and Mars in China (GCJ-02)". https://github.com/googollee/eviltransform. 
  22. "China GPS offset problem". http://blog.snapdragon.cc/2013/07/17/china-gps-offset-problem/. 
  23. "MarsGeo". Omniref. Archived from the original on 16 April 2015. https://web.archive.org/web/20150416161655/https://www.omniref.com/ruby/gems/mars_geo/0.0.1. 
  24. "EvilTransform Ruby gem". https://rubygems.org/gems/evil_transform/versions/0.0.1. 
  25. FENG, Zili (6 April 2015). "ChinaMapDeviation". Archived from the original on 7 April 2015. https://web.archive.org/web/20150407111031/https://github.com/maxime/ChinaMapDeviation/issues/1. 
  26. Guilbot, Maxime (28 May 2013). "ChinaMapDeviation". https://github.com/maxime/ChinaMapDeviation. 
  27. Wu, Yongzheng. "The Deviation of China Map as a Regression Problem". https://wuyongzheng.github.io/china-map-deviation/paper.html. Retrieved 1 February 2016. 
  28. "Baidu LBS Open Platform FAQ". Baidu Developer. http://developer.baidu.com/map/question.htm#qa0023. Retrieved 2016-12-19. 
  29. "中国地图偏移算法" (in zh). Archived from the original on 2017-02-21. https://gist.github.com/anonymous/e7c6f67555099180ce1ae8da4ba2c513. 
  30. i.e. wgs -= worsen(wgs) - bad done twice, with wgs initialized as bad so that the first iteration is equivalent to a rough pass.
  31. "make gcj2wgs_exact() much faster, by using fixed…". https://github.com/bewantbe/eviltransform/commit/86ae326. Retrieved 29 February 2016. 
  32. Feng, Zili (7 April 2015). "The government charges Chinese companies for the "shift correction" feature". https://github.com/maxime/ChinaMapDeviation/issues/1#issuecomment-90462107. 
  33. "Nokia Here street map and satellite map both use GCJ-02 coordinates". https://www.here.com/?map=31.24427,121.48695,18. Retrieved 8 April 2015. 
  34. Lee, Mark (6 July 2012). "Apple Shares Google China Map Partner in Win for AutoNavi: Tech". Bloomberg. https://www.bloomberg.com/news/articles/2012-07-05/apple-shares-google-china-map-partner-in-win-for-autonavi. 
  35. "Google China street map uses GCJ-02 coordinates". http://google.cn/maps/@31.2423,121.4914,20z. Retrieved 8 April 2015. 
  36. "Google China satellite imagery uses GCJ-02 coordinates". http://google.cn/maps/@31.24228,121.49142,137m/data=!3m1!1e3. Retrieved 8 April 2015. 
  37. "Google.com satellite imagery uses WGS-84 coordinates". https://www.google.com/maps/@31.2423,121.4914,267m/data=!3m1!1e3. Retrieved 8 April 2015. 
  38. "Could you please correct the offset in China due to GCJ-02 coordinate?". Google Product Forums. 6 April 2014. https://productforums.google.com/forum/#!topic/earth/4PPOyz5YA8g. 
  39. "OFFSET MAPPING ISSUE IN CHINA". 5 March 2012. https://productforums.google.com/d/msg/maps/zVmRao1Im3w/bvk-n_jgPvQJ. 
  40. "ABCMaps application to fix the China GPS offset". 24 July 2010. https://productforums.google.com/d/msg/maps/4betfwupNjE/IEUe3x5oPpAJ. 
  41. Pasden, John (23 December 2014). "A More Complete iOS Solution to the China GPS Offset Problem". http://www.sinosplice.com/life/archives/2013/07/16/a-more-complete-ios-solution-to-the-china-gps-offset-problem. 
  42. Wang, Jian Shuo. "All Maps in China are Transformed". Archived from the original on 16 January 2014. https://web.archive.org/web/20140116215242/http://home.wangjianshuo.com/archives/20081109_all_maps_in_china_are_transformed.htm. 
  43. "Google Maps near Hong Kong-Shenzhen border". Google Maps. https://www.google.com.hk/maps/@22.5274336,114.0849645,14z. Retrieved 2016-12-19. 
More
Information
Subjects: Others
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 2.5K
Entry Collection: HandWiki
Revision: 1 time (View History)
Update Date: 25 Nov 2022
1000/1000
Video Production Service