地球信息科学学报 ›› 2012, Vol. 14 ›› Issue (2): 192-198.doi: 10.3724/SP.J.1047.2012.00192

• 地理信息系统平台开发 • 上一篇    下一篇

基于SilverLight和REST的富网络地理信息系统框架设计

陆亚刚1, 邱知2, 游先祥1, 张红梅3, 陈丽1   

  1. 1. 北京林业大学林学院, 北京 100083;
    2. 国家林业局调查规划设计院, 北京 100714;
    3. 杭州市园林文物局钱江管理处, 杭州 310008
  • 收稿日期:2012-04-24 修回日期:2012-04-24 出版日期:2012-04-25 发布日期:2012-04-24
  • 作者简介:陆亚刚(1986-),男,硕士研究生,研究方向:富网络地理信息系统的开发与应用。E-mail:lightgis@gmail.com
  • 基金资助:

    北京林业大学自主项目"数字鹫峰教学实验林场信息管理系统的研制"。

Design and Implementation of Rich WebGIS Application Framework Based on SilverLight and REST Services

LU Yagang1, QIU Zhi2, YOU Xianxiang1, ZHANG Hongmei3, CHEN Li1   

  1. 1. Forestry College, Beijing Forestry University, Beijing 100083, China;
    2. Academy of Forest Inventory and Planning, SFA, Beijing 100714, China;
    3. Management Department of Qianjiang, The Landscape Area of the West Lake of Hangzhou, Hangzhou 310008, China
  • Received:2012-04-24 Revised:2012-04-24 Online:2012-04-25 Published:2012-04-24

摘要: 在WebGIS的快速发展过程中,其架构方法和实现技术的研究一直是人们关注的热点。本文针对传统WebGIS开发复杂度高、交互体验性贫乏、运行效率低等不足,在对RIA/SilverLight和REST技术的研究基础上,以整体结构模块化,开发行为统一化,代码可复用及经验可复用的指导思路下,提出由空间数据服务器(数据访问层DAL)、GIS服务和Web服务服务器(业务逻辑层BLL)及部署有SilverLight插件的浏览器(表现层UI)组成的3层架构式富网络地理信息系统,并阐述了数据层中空间属性数据库的设计和建立步骤以及优化经验,分析了业务逻辑层的构成和运行机制,为提高系统开发效率使用MVVM(Model-View-View Model,模型-视图-视图模型)设计模式,将表现层分为前端用户界面和后台逻辑两部分,并描述了用户熟悉的Office Ribbon设计样式的开发方法,说明了后台逻辑架构组件各自功能及通讯路径。最后,为验证此框架能够有效提高系统开发效率、丰富用户体验和改善系统运行性能表现等优势,利用SilverLight(C#)实现了应用实例——LightGIS。系统开发和运行实验表明,该框架能够很好地达成以下目的:(1)实现优美的用户操作界面和丰富的互操作性体验;(2)提供平滑、流畅的地图服务和高响应性空间分析;(3)具备优秀的系统可扩展潜力和可配置性。

关键词: 富网络地理信息系统, SilverLight, REST, 框架设计, LightGIS

Abstract: The architecture and implementation technique of WebGIS are always the focus of scholars in its rapid developing process. Aiming at disadvantages of high complexity,poor interactive experience,and low response efficiency in "traditional" WebGIS application,this paper proposes a rich WebGIS application framework based on RIA/SilverLight and REST technologies which was divided into data access layer(DAL),business logic layer(BLL) and user interface layer(UI). Silverlight is an application framework for creating and delivering rich internet applications (RIA) and media experiences on the Web,which combining with the representational state transfer (REST) software architecture style can significantly remedy these shortages of "traditional" WebGIS application mentioned above. Firstly,in this paper the detailed description on designing and building steps of spatial databases were given,and the optimization experiences on spatial database were shared. Then the composition of business logic layer and its operating mechanism had been analyzed. To improve the efficiency of the user interface layer,the Model-View-ViewModel (MVVM) architectural pattern had been adopted. And to follow the user's habit,the office ribbon style had been used visually. The code-behind was programmed with.NET C#,and according to different function types,it was designed into event center component,configuration management component,UI interactive component,map container component,control management component,auxiliary function component,and the event center component is the communication hub. Finally,based on this framework,a rich WebGIS application which named LightGIS had been developed. It showed that the applied framework can effectively improve the efficiency,enrich user’s experience and enhance the system capability.

Key words: RIA WebGIS, SilverLight, REST, framework design, LightGIS