本文针对基于可扩展标记语言(XML)的地理信息数据存在数据冗余量大,而传统XML数据压缩方法具有普适性低,难以在网络地理信息系统中应用等问题,提出一种基于JSON的地理信息数据交换新方法,该方法相对于传统的基于XML结构的地理数据具有更为精简的结构,并且能够直接被客户端程序利用,具有很高的普适性和实用价值。该方法利用JSON以值对方式表现数据的优点,将XML的基本结构进行分解,在分析XML语言结构特点的基础上,制定了XML格式与JSON格式的转换规则。通过对标准的XML数据集进行仿真实验说明JSON数据格式有效地提高了地理信息数据交换的效率。
Extensible MarkupLanguage (XML) of GIS data exist large amount of data redundancy. The traditional XML data compression method has a low universal application, and it is hard to be used in the application of WebGIS and other issues. This paper presents a geographical-based JSON new method for the exchange of information and data. Comparing with the traditional structure of the XML-based geographic data, the structure based on JSON is more streamlined, and can be used directly by the client, with the universal application of high and practical value. With the advantage of JSON that the data is expressed by a collection of name/value pairs, this method decomposed and analyzed basic structure of XML data, and makes the conversion rules of XML format and JSON format. Simulation test shows that JSON data format can improve GIS data exchange efficiency.