作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (15): 28-30. doi: 10.3969/j.issn.1000-3428.2012.15.008

• 软件技术与数据库 • 上一篇    下一篇

基于简单访问接口的GML数据解析方法

焦东来1,3,张书亮2,朱彩英3   

  1. (1. 南京邮电大学地理与生物信息学院,南京 210046;2. 南京师范大学虚拟地理环境教育部重点实验室,南京 210046; 3. 苏州市数字城市工程研究中心有限公司,江苏 苏州 215021)
  • 收稿日期:2011-09-27 出版日期:2012-08-05 发布日期:2012-08-05
  • 作者简介:焦东来(1977-),男,博士,主研方向:地理信息共享与互操作,空间信息可视化;张书亮,教授;朱彩英,博士
  • 基金资助:

    国家自然科学基金资助项目(41101358);国家“863”计划基金资助项目(2006AA12Z221);苏州工业园区科技发展局基金资助项目(SG201030);南京邮电大学科研启动基金资助项目(NY209026)

GML Data Parsing Method Based on Simple Access Interface

JIAO Dong-lai   1,3, ZHANG Shu-liang   2, ZHU Cai-ying   3   

  1. (1. College of Geographic and Biologic Information, Nanjing University of Posts and Telecommunications, Nanjing 210046, China; 2. Key Laboratory of Virtual Geographical Environment, Ministry of Education, Nanjing Normal University, Nanjing 210046, China; 3. Suzhou Digital City Engineering Research Center Co., Ltd., Suzhou 215021, China)
  • Received:2011-09-27 Online:2012-08-05 Published:2012-08-05

摘要: 根据地理标记语言(GML)的应用需求,设计一种基于简单访问接口的GML数据解析方法。定义GML应用语义块,借助Xerces软件包分析GML模式,通过递归算法对GML标签进行语义判读。基于Adapter模式构建事件解析驱动,实现GML语义块数据的读取。实验结果表明,该方法可实现GML数据的查询、索引和可视化。

关键词: 地理标记语言, 应用模式, 数据解析, SAG技术, 事件驱动

Abstract: According to the Geography Markup Language(GML) application requirements, this paper designs a GML data parsing method based on simple API. It defines the GML application semantics, and analyzes the GML mode with Xerces. Through recursive algorithm to determine the semantics of GML tags, it builds the parser based on the adapter pattern and event-driven, and extracts GML data of semantic block. Experimental results show that this method can realize the query, index and visualization of GML data.

Key words: Geography Markup Language(GML), application mode, data parsing, Simple API for GML(SAG) technology, event driven

中图分类号: