CN101493825A - GIS middleware collocation and management method - Google Patents

GIS middleware collocation and management method Download PDF

Info

Publication number
CN101493825A
CN101493825A CNA2008102368690A CN200810236869A CN101493825A CN 101493825 A CN101493825 A CN 101493825A CN A2008102368690 A CNA2008102368690 A CN A2008102368690A CN 200810236869 A CN200810236869 A CN 200810236869A CN 101493825 A CN101493825 A CN 101493825A
Authority
CN
China
Prior art keywords
data source
data
middleware
interface
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008102368690A
Other languages
Chinese (zh)
Other versions
CN101493825B (en
Inventor
吴信才
谢忠
吴亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN ZONDY CYBER CO Ltd
China University of Geosciences
Original Assignee
WUHAN ZONDY CYBER CO Ltd
China University of Geosciences
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUHAN ZONDY CYBER CO Ltd, China University of Geosciences filed Critical WUHAN ZONDY CYBER CO Ltd
Priority to CN2008102368690A priority Critical patent/CN101493825B/en
Publication of CN101493825A publication Critical patent/CN101493825A/en
Application granted granted Critical
Publication of CN101493825B publication Critical patent/CN101493825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及地理信息系统,尤其是一种GIS中间件配置管理方法,它的步骤如下:1)客户软件创建异构数据源信息并传送给数据源驱动管理器;2)数据源驱动管理器根据所述异构数据源信息加载相应的中间件接口以及异构数据源驱动;3)所述步骤2)中的异构数据源驱动直接访问异构数据源,然后将访问成功的信息返回给数据源驱动管理器,至此数据源和相应的数据源驱动连接成功;4)客户软件发出请求动作,数据源驱动管理器响应其请求,调用相应的数据源驱动完成对数据的实际处理工作后向客户软件返回处理结果;5)客户软件显示结果数据。该方法不需要频繁进行数据格式转换,不需要大量重复性劳动即可实现多源数据的集成。

Figure 200810236869

The present invention relates to geographic information system, especially a kind of GIS middleware configuration management method, its steps are as follows: 1) customer software creates heterogeneous data source information and transmits to data source driver manager; 2) data source driver manager according to The heterogeneous data source information loads the corresponding middleware interface and the heterogeneous data source driver; 3) the heterogeneous data source driver in the step 2) directly accesses the heterogeneous data source, and then returns the successful information to the data source Source driver manager, so far the connection between the data source and the corresponding data source driver is successful; 4) The client software sends out a request action, and the data source driver manager responds to the request, calls the corresponding data source driver to complete the actual processing of the data, and then reports to the client The software returns the processing result; 5) The client software displays the result data. This method does not require frequent data format conversion, and can realize the integration of multi-source data without a lot of repetitive labor.

Figure 200810236869

Description

一种GIS中间件配置管理方法 A GIS Middleware Configuration Management Method

技术领域 technical field

本发明涉及地理信息系统,尤其是一种GIS中间件配置管理方法。The invention relates to a geographic information system, in particular to a GIS middleware configuration management method.

背景技术 Background technique

目前GIS多源空间数据的集成主要有三个模式:一是空间数据交换,通过建立统一的数据交换标准来约束并规范已有的各类地理信息系统,采用数据交换标准来进行空间数据交换;二是数据互操作模式,建立开放式地理数据互操作规范,进行地理信息系统互操作;三是直接操作模式,在一个GIS软件中实现对其他软件数据格式的直接访问、存取和空间分析。At present, there are mainly three modes for the integration of GIS multi-source spatial data: one is spatial data exchange, which constrains and standardizes various existing geographic information systems by establishing a unified data exchange standard, and uses data exchange standards to exchange spatial data; The first is the data interoperability mode, which establishes an open geographic data interoperability specification and performs geographic information system interoperability; the third is the direct operation mode, which implements direct access, storage and spatial analysis of other software data formats in one GIS software.

上述三种集成模式有以下不足:The above three integration modes have the following disadvantages:

数据交换模式就是把其他格式的数据经过专门的数据转换程序转换成该系统的数据格式,并复制到当前系统的数据库或文件中。许多软件为了实现与其他系统交换数据,制订了明码的交换格式,如ArcInfo的E00格式、ArcView的Shapefile格式等。但是由于缺乏对空间对象统一的描述方法,因而转换后不能完全准确地表达原数据的信息,经常造成一些信息丢失。另外,通过交换格式转换数据的过程较为复杂,需要首先使用软件A输出为某种交换格式,然后再使用软件B从该交换格式输入。The data exchange mode is to convert data in other formats into the data format of the system through a special data conversion program, and copy it to the database or file of the current system. In order to exchange data with other systems, many softwares have formulated clear exchange formats, such as ArcInfo's E00 format and ArcView's Shapefile format. However, due to the lack of a unified description method for spatial objects, the information of the original data cannot be completely and accurately expressed after conversion, and some information is often lost. In addition, the process of converting data through the exchange format is relatively complicated. It is necessary to first use software A to output to a certain exchange format, and then use software B to import from the exchange format.

数据互操作模式是OpenGIS Consortium(OGC)制定的数据共享规范。GIS互操作是指在异构数据库和分布计算的情况下,GIS用户在相互理解的基础上,能透明地获取所需的信息。根据OGC颁布的规范,可以把提供数据源的软件称为数据服务器(Data Servers),把使用数据的软件称为数据客户(Data Clients),数据客户使用某种数据的过程就是发出数据请求,由数据服务器提供服务的过程,其最终目的是使数据客户能读取任意数据服务器提供的空间数据。但是,互操作模式在实际应用中存在缺陷,一个软件访问其他软件的数据时,必须同时拥有被访问数据格式的宿主软件,并且两个同时运行,才能完成数据的互操作过程。这将不可避免地增加了用户的负担。The data interoperability mode is a data sharing specification developed by the OpenGIS Consortium (OGC). GIS interoperability means that in the case of heterogeneous databases and distributed computing, GIS users can transparently obtain the required information on the basis of mutual understanding. According to the specifications promulgated by OGC, the software that provides data sources can be called Data Servers, and the software that uses data can be called Data Clients. The process of data clients using certain data is to send data requests. The process of data server providing services, its ultimate goal is to enable data clients to read the spatial data provided by any data server. However, the interoperability mode has flaws in practical applications. When a software accesses the data of other software, it must have the host software in the data format to be accessed at the same time, and both of them run at the same time to complete the data interoperability process. This will inevitably increase the user's burden.

直接数据访问是在一个GIS软件中利用空间数据引擎的方法实现对其他软件数据格式的直接访问、存取和空间分析。直接数据访问不仅避免了烦琐的数据转换,而且不要求用户拥有数据格式的宿主软件,更不需要该软件运行。但是,针对每一种要直接访问的数据格式,客户软件都要编写其读写驱动,所以直接数据访问必须对宿主软件数据格式充分了解。如果宿主软件数据格式不公开,或者数据格式发生变化,客户软件就不得不投入大量的人力和财力去研究该宿主软件数据格式,而且限制了软件的可扩展性。从整个GIS行业来看,这样的模式必然浪费大量的人力物力,无疑也是不可取的。Direct data access is to use the method of spatial data engine in a GIS software to realize direct access, storage and spatial analysis of other software data formats. Direct data access not only avoids cumbersome data conversion, but also does not require the user to own the host software of the data format, let alone run the software. However, for each data format to be directly accessed, the client software must write its read-write driver, so direct data access must fully understand the data format of the host software. If the data format of the host software is not disclosed, or the data format changes, the client software will have to invest a lot of manpower and financial resources in researching the data format of the host software, which limits the scalability of the software. From the perspective of the entire GIS industry, such a model will inevitably waste a lot of manpower and material resources, and it is undoubtedly not advisable.

发明内容 Contents of the invention

本发明所要解决的技术问题是:提供一种GIS中间件配置管理方法,这种方法不需要频繁进行数据格式转换、不需要宿主软件同时运行,并且不需要大量重复性劳动即可实现多源数据的集成。The technical problem to be solved by the present invention is to provide a GIS middleware configuration management method, which does not require frequent data format conversion, does not require host software to run at the same time, and can realize multi-source data without a lot of repetitive labor integration.

本发明解决上述技术问题所采用的技术方案是:The technical solution adopted by the present invention to solve the problems of the technologies described above is:

一种GIS中间件配置管理方法,其不同之处在于:它的步骤如下:A GIS middleware configuration management method, the difference is that its steps are as follows:

1)、客户软件创建异构数据源信息并传送给数据源驱动管理器;1) The client software creates heterogeneous data source information and sends it to the data source driver manager;

2)、数据源驱动管理器根据所述异构数据源信息加载相应的中间件接口以及异构数据源驱动;2), the data source driver manager loads the corresponding middleware interface and heterogeneous data source driver according to the heterogeneous data source information;

3)、所述步骤2)中的异构数据源驱动直接访问异构数据源,然后将访问成功的信息返回给数据源驱动管理器,至此异构数据源和相应的数据源驱动连接成功;3), the heterogeneous data source driver in the step 2) directly accesses the heterogeneous data source, and then returns the successful information to the data source driver manager, so far the heterogeneous data source and the corresponding data source driver are connected successfully;

4)、客户软件发出请求动作,数据源驱动管理器响应其请求,调用相应的数据源驱动完成对数据的实际处理工作后向客户软件返回处理结果;4) The client software sends a request action, the data source driver manager responds to the request, calls the corresponding data source driver to complete the actual processing of the data, and then returns the processing result to the client software;

5)、客户软件显示结果数据。5) The client software displays the result data.

按以上的方案,所述步骤2)的具体步骤为:数据源驱动管理器根据接收到的异构数据源信息来匹配异构数据源驱动,然后数据源驱动管理器根据所述异构数据源信息加载相应的中间件接口以及异构数据源驱动。According to the above scheme, the specific steps of step 2) are: the data source driver manager matches the heterogeneous data source driver according to the received heterogeneous data source information, and then the data source driver manager matches the heterogeneous data source driver according to the heterogeneous data source Information loads the corresponding middleware interface and heterogeneous data source drivers.

所述步骤4)的具体步骤为:客户软件发出请求动作,数据源驱动管理器响应其请求,数据源驱动管理器与步骤2)中所述异构数据源驱动之间通过步骤2)中已经加载的对应中间件接口进行信息交互,数据源驱动管理器完成对数据的实际处理工作后向客户软件返回处理结果。The specific steps of said step 4) are: the client software sends out a request action, the data source driver manager responds to the request, and the data source driver manager and the heterogeneous data source driver described in step 2) pass through step 2). The loaded corresponding middleware interface performs information interaction, and the data source driver manager returns the processing result to the client software after completing the actual processing of the data.

按以上的方案,所述异构数据源信息包括数据类型以及连接属性。According to the solution above, the heterogeneous data source information includes data types and connection attributes.

按以上的方案,所述连接属性是管理、控制、配置3个模块的目录信息。According to the above solution, the connection attribute is the directory information of the three modules of management, control and configuration.

按以上的方案,所述步骤4)中客户软件发出的请求动作包括浏览、更新、重建拓扑、空间分析。According to the above solution, the request actions issued by the client software in step 4) include browsing, updating, rebuilding topology, and spatial analysis.

按以上的方案,所述步骤1)中还包括以下步骤:客户软件创建数据源信息前,先判断所述请求数据是否为异构数据;如果所述请求数据是异构数据,则客户软件创建数据源信息并传送给数据源驱动管理器;否则客户软件自己处理请求数据,不再创建异构数据源信息传送给数据源驱动管理器。According to the above scheme, the step 1) also includes the following steps: before the client software creates the data source information, first judge whether the request data is heterogeneous data; if the request data is heterogeneous data, then the client software creates The data source information is sent to the data source driver manager; otherwise, the client software processes the requested data by itself, and no longer creates heterogeneous data source information and sends it to the data source driver manager.

按以上的方案,所述步骤2)中所述中间件接口的建立过程包括以下具体步骤:According to above scheme, described step 2) the establishment process of middleware interface described in comprises the following specific steps:

2.1)、首先,创建包括管理模块、控制模块、配置模块的模块组,模块组根据GIS中间件模块规范进行配置,其中每个模块下面又按照GIS中间件接口规范配置一系列接口;2.1), first, create a module group including a management module, a control module, and a configuration module. The module group is configured according to the GIS middleware module specification, and a series of interfaces are configured under each module according to the GIS middleware interface specification;

2.2)、然后通过对象实例产生器将异构数据源映射成为系统可操作的地理对象,其中对象实例产生器包括中间件管理模块对象池和中间件控制模块对象池。2.2), and then map the heterogeneous data sources into geographical objects operable by the system through the object instance generator, wherein the object instance generator includes a middleware management module object pool and a middleware control module object pool.

按以上的方案,所述管理模块是负责数据源操作的模块,所述管理模块中包括的接口是:负责管理对象池对象生成和销毁工作的管理对象池对象生命周期控制接口、负责地理服务器对象和地理数据库对象生命周期控制工作的管理对象池对象接口、负责地理服务器对象交互工作的地理服务器对象接口、负责地理数据库对象交互工作的地理数据库对象接口;所述控制模块是负责地理数据的相关操作的模块,控制模块中包括有以下接口:负责控制对象池对象生成和销毁工作的控制对象池对象生命周期控制接口、负责地理数据对象生命周期控制工作的控制对象池对象接口、负责各地理数据模型对象交互工作的地理数据模型对象接口、负责各地理元数据对象交互工作的地理元数据对象接口;所述配置模块是负责中间件界面回调的模块,所述配置模块包括地理数据库创建、地理数据库附加、地理数据库注销、地理数据库删除的界面回调配置接口、自举中间件数据源数目的接口、自举中间件数据源信息的接口、对中间件地理数据源进行配置时回调创建数据源的接口,所述接口供用户在配置的中间件数据源下新建、附加、注销、删除地理数据库时通过数据源驱动管理器调用。According to the above scheme, the management module is a module responsible for data source operations, and the interfaces included in the management module are: the management object pool object life cycle control interface responsible for the management object pool object generation and destruction work, responsible for the geographic server object The management object pool object interface responsible for the geographic database object life cycle control work, the geographic server object interface responsible for the interactive work of geographic server objects, and the geographic database object interface responsible for the interactive work of geographic database objects; the control module is responsible for the related operations of geographic data The control module includes the following interfaces: the control object pool object life cycle control interface responsible for controlling object pool object generation and destruction, the control object pool object interface responsible for geographic data object life cycle control, and responsible for each geographic data model The geographic data model object interface of object interaction, the geographic metadata object interface responsible for the interaction of each geographic metadata object; the configuration module is a module responsible for middleware interface callback, and the configuration module includes geographic database creation, geographic database attachment , interface callback configuration interface for geographic database logout and geographic database deletion, interface for the number of bootstrap middleware data sources, interface for bootstrap middleware data source information, interface for callback creation of data sources when configuring middleware geographic data sources, The interface is for the user to call through the data source driver manager when creating, attaching, canceling, and deleting the geographic database under the configured middleware data source.

按以上的方案,所述地理对象包括简单要素类、注记类、网络类、对象类。According to the above solution, the geographic objects include simple feature classes, annotation classes, network classes, and object classes.

按以上的方案,在步骤1)之前,还包括以下具体步骤:先将中间件相关信息放入客户端的配置文件;然后将配置文件中的中间件相关信息按地理数据源名规范生成地理数据源名连接串,并在服务器端进行解析,从而使客户软件可以识别异构数据源所对应的中间件接口和数据源驱动。According to the above scheme, before step 1), the following specific steps are also included: first put the middleware-related information into the configuration file of the client; then generate the geographic data source according to the geographic data source name specification with the middleware-related information in the configuration file The name connection string is parsed on the server side, so that the client software can identify the middleware interface and data source driver corresponding to the heterogeneous data source.

按以上的方案,所述中间件相关信息包括以下部分:中间件名称、中间件描述、管理模块名称、控制模块名称、配置模块名称。According to the above solution, the middleware-related information includes the following parts: middleware name, middleware description, management module name, control module name, and configuration module name.

本发明的有益效果是:1)、应用GIS中间件配置管理方法,方便了对不同异构数据源驱动的调用及向客户软件提供一致的数据操作接口,客户软件不必关心具体空间数据格式就可以无缝集成多源异构数据;2)、GIS中间件配置管理方法采用对异构空间数据直接读取的方式,避免了空间数据交换模式的频繁进行数据格式转换信息丢失的缺点;3)、GIS软件开发商按照OGC标准编写访问自己数据的数据源驱动,将异构数据源驱动同自己的GIS数据一同开发、发布,一旦其内部数据格式有所变动,相应的异构数据源驱动的修改也可以同步进行,而利用该驱动的GIS客户软件不需作任何变动仍然可以集成多源异构数据,避免了在直接读取模式下,每一个GIS软件都要在其内部实现读取相应数据的驱动程序的重复性劳动的缺点;4)、通过应用GIS中间件配置管理方法,只要异构数据源驱动编写成功,就可以立即注册入GIS中间件,为其它GIS客户软件所利用,使得GIS中间件具有很强的扩展性。The beneficial effects of the present invention are: 1), apply GIS middleware configuration management method, facilitate the calling of different heterogeneous data source drivers and provide consistent data operation interface to client software, client software needn't care about specific spatial data format just can Seamlessly integrate multi-source heterogeneous data; 2), the GIS middleware configuration management method adopts the method of directly reading heterogeneous spatial data, which avoids the shortcomings of frequent data format conversion and information loss in the spatial data exchange mode; 3), GIS software developers write data source drivers to access their own data according to OGC standards, and develop and release heterogeneous data source drivers together with their own GIS data. Once the internal data format changes, the corresponding heterogeneous data source drivers will be modified. It can also be carried out synchronously, and the GIS client software using this driver can still integrate multi-source heterogeneous data without making any changes, avoiding that in the direct reading mode, each GIS software must read the corresponding data internally 4) By applying the GIS middleware configuration management method, as long as the heterogeneous data source driver is successfully written, it can be registered into the GIS middleware immediately and used by other GIS client software, making GIS Middleware is highly scalable.

GIS中间件采用驱动化的设计思想,类似于Windows设备驱动程序设计思想。不同的设备与计算连接,设备管理器动态加载由设备商家提供驱动程序,控制设备的输入输出。设备管理器向OS提供统一的接口,具体的设备对OS来说是透明的。类似的,GIS中间件集成多种数据源驱动,以注册的方式嵌入到客户软件中,当客户软件请求某种数据源时,GIS中间件动态加载所请求的数据源驱动。GIS中间件遵循OGC标准向客户软件提供统一的接口,具体数据源对客户软件来说是透明的。原来客户软件编写被访问的宿主软件数据格式的读写驱动变为由宿主软件编写针对自己数据格式的读写驱动,所有实现的驱动由中间件集成统一管理,以便不同的GIS软件都能利用它实现对多源空间数据访问。当某种数据源的结构改变时,只须改变其数据源驱动。这样即不需要频繁进行数据格式转换又避免了很多重复性劳动。GIS middleware adopts the design idea of driving, which is similar to the design idea of Windows device driver. Different devices are connected to computing, and the device manager dynamically loads the driver provided by the device vendor to control the input and output of the device. The device manager provides a unified interface to the OS, and specific devices are transparent to the OS. Similarly, GIS middleware integrates multiple data source drivers, and embeds them in client software in a registered manner. When client software requests a certain data source, GIS middleware dynamically loads the requested data source driver. GIS middleware follows the OGC standard to provide a unified interface to client software, and the specific data source is transparent to client software. Originally, the client software writes the read-write driver for the data format of the accessed host software, but the host software writes the read-write driver for its own data format, and all the realized drivers are integrated and managed by the middleware, so that different GIS software can use it Realize access to multi-source spatial data. When the structure of a certain data source changes, only its data source driver needs to be changed. In this way, frequent data format conversion is not required and a lot of repetitive labor is avoided.

GIS中间件是在语义层面对异构数据的转换,是数据模型间的映射。它允许用户在转换过程中重新构造数据,使得用户可以根据其特定的要求,提取相同数据源不同层面的内容,而不是以单一的格式输入数据。由于不同的软件采用不同的建模方法来表示现实世界,如在MapGIS中使用封闭的多边形表示房屋、水塘等要素,房屋、水塘的描述信息如房屋层数、面积等则作为属性数据存储,而在CAD中则采用多义线表示房屋、水塘等要素,属性数据则采用分层注记的形式。GIS中间件将语义映射和空间操作相结合,实现空间数据和属性数据的重构,避免由要素语义不同而造成的信息丢失。GIS middleware is the conversion of heterogeneous data at the semantic level and the mapping between data models. It allows users to reconstruct data during the conversion process, so that users can extract different levels of content from the same data source according to their specific requirements, rather than inputting data in a single format. Different software uses different modeling methods to represent the real world. For example, in MapGIS, closed polygons are used to represent elements such as houses and ponds, and the description information of houses and ponds, such as the number of floors and areas of houses, is stored as attribute data. , while in CAD, polylines are used to represent elements such as houses and ponds, and the attribute data is in the form of hierarchical annotation. GIS middleware combines semantic mapping and spatial operations to realize the reconstruction of spatial data and attribute data, and avoid information loss caused by different semantics of elements.

附图说明 Description of drawings

图1为GIS中间件配置管理方法流程示意图;Fig. 1 is a schematic flow chart of a GIS middleware configuration management method;

图2为GIS中间件模块框架示意图;Figure 2 is a schematic diagram of the GIS middleware module framework;

图3为数据源驱动管理器的模块框架示意图;Fig. 3 is a schematic diagram of a module framework of a data source driver manager;

图4为GIS中间件的使用流程示意图。Figure 4 is a schematic diagram of the use flow of GIS middleware.

具体实施方案 specific implementation plan

以下结合附图进一步说明本发明实施方式。The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

图1是GIS中间件配置管理方法流程示意图,如图1所示,一种GIS中间件配置管理方法,它的步骤如下:Fig. 1 is a schematic flow chart of a GIS middleware configuration management method, as shown in Fig. 1, a GIS middleware configuration management method, its steps are as follows:

1)、客户软件创建异构数据源信息并传送给数据源驱动管理器;如1), the client software creates heterogeneous data source information and transmits it to the data source driver manager; for example

2)、数据源驱动管理器根据所述异构数据源信息加载相应的中间件接口以及异构数据源驱动;例如,如果异构数据源是ArcGIS的Shapefile文件数据,则将异构数据源对象传送给Shapefile驱动;2), the data source driver manager loads the corresponding middleware interface and the heterogeneous data source driver according to the heterogeneous data source information; for example, if the heterogeneous data source is the Shapefile file data of ArcGIS, then the heterogeneous data source object Send to Shapefile driver;

3)、所述步骤2)中的异构数据源驱动直接访问异构数据源,然后将访问成功的信息返回给数据源驱动管理器,至此异构数据源和相应的数据源驱动连接成功;3), the heterogeneous data source driver in the step 2) directly accesses the heterogeneous data source, and then returns the successful information to the data source driver manager, so far the heterogeneous data source and the corresponding data source driver are connected successfully;

4)、客户软件发出请求动作,数据源驱动管理器响应其请求,调用相应的数据源驱动完成对数据的实际处理工作后向客户软件返回处理结果;4) The client software sends a request action, the data source driver manager responds to the request, calls the corresponding data source driver to complete the actual processing of the data, and then returns the processing result to the client software;

5)、客户软件显示结果数据。5) The client software displays the result data.

到此已经结束一次信息交互,如果客户软件还需要对该数据源访问,重复2)-5)的步骤。如果不再需要对该数据源访问,用户也可以手动卸载该数据源驱动。具体数据源类型对GIS客户软件是透明的,GIS客户软件不需知道数据具体转换步骤,它只需要判断是否是异构数据源,是则调用中间件接口,否则按照正常步骤访问数据。At this point, an information interaction has been completed. If the client software still needs to access the data source, repeat steps 2)-5). If access to the data source is no longer required, the user can also manually uninstall the data source driver. The specific data source type is transparent to the GIS client software. The GIS client software does not need to know the specific conversion steps of the data. It only needs to judge whether it is a heterogeneous data source, and if so, call the middleware interface; otherwise, access the data according to normal steps.

按以上的实施例,所述步骤2)的具体步骤为:数据源驱动管理器根据接受到的异构数据源信息来匹配异构数据源驱动,然后数据源驱动管理器根据所述异构数据源信息加载相应的中间件接口以及异构数据源驱动。According to the above embodiment, the specific steps of step 2) are: the data source driver manager matches the heterogeneous data source driver according to the received heterogeneous data source information, and then the data source driver manager matches the heterogeneous data source driver according to the heterogeneous data Source information loads the corresponding middleware interface and heterogeneous data source drivers.

按以上的实施例,所述步骤4)的具体步骤为:客户软件发出请求动作,数据源驱动管理器响应其请求,数据源驱动管理器与步骤2)中所述异构数据源驱动之间通过步骤2)中已经加载的对应中间件接口进行信息交互,数据源驱动管理器完成对数据的实际处理工作后向客户软件返回处理结果。According to the above embodiment, the specific steps of step 4) are: the client software sends a request action, the data source driver manager responds to the request, and the data source driver manager and the heterogeneous data source driver described in step 2) Information interaction is performed through the corresponding middleware interface loaded in step 2), and the data source driver manager returns the processing result to the client software after completing the actual processing of the data.

按以上的实施例,所述异构数据源信息包括数据类型以及连接属性。According to the above embodiments, the heterogeneous data source information includes data types and connection attributes.

按以上的实施例,所述连接属性是管理、控制、配置3个模块的目录信息。According to the above embodiment, the connection attribute is the directory information of the three modules of management, control and configuration.

按以上的实施例,所述步骤4)中客户软件发出的请求动作包括浏览、更新、重建拓扑、空间分析。According to the above embodiment, the request actions issued by the client software in step 4) include browsing, updating, topology reconstruction, and spatial analysis.

按以上的实施例,所述步骤1)中还包括以下步骤:客户软件创建数据源信息前,先判断所述请求数据是否为异构数据;如果所述请求数据是异构数据,则客户软件创建数据源信息并传送给数据源驱动管理器;否则客户软件自己处理请求数据,不再创建异构数据源信息传送给数据源驱动管理器。According to the above embodiment, the step 1) also includes the following steps: before the client software creates the data source information, first judge whether the request data is heterogeneous data; if the request data is heterogeneous data, then the client software Create data source information and send it to the data source driver manager; otherwise, the client software processes the requested data by itself, and no longer creates heterogeneous data source information and sends it to the data source driver manager.

按以上的实施例,所述步骤2)中所述中间件接口的建立过程包括以下具体步骤:According to the above embodiment, the establishment process of the middleware interface described in the step 2) includes the following specific steps:

2.1)、首先,创建包括管理模块、控制模块、配置模块的模块组,模块组根据GIS中间件模块规范进行配置,其中每个模块下面又按照GIS中间件接口规范配置一系列接口;2.1), first, create a module group including a management module, a control module, and a configuration module. The module group is configured according to the GIS middleware module specification, and a series of interfaces are configured under each module according to the GIS middleware interface specification;

2.2)、然后通过对象实例产生器将异构数据源映射成为系统可操作的地理对象,其中对象实例产生器包括中间件管理模块对象池和中间件控制模块对象池。2.2), and then map the heterogeneous data sources into geographical objects operable by the system through the object instance generator, wherein the object instance generator includes a middleware management module object pool and a middleware control module object pool.

按以上的实施例,所述管理模块是负责数据源操作的模块,所述管理模块中包括的接口是:负责管理对象池对象生成和销毁工作的管理对象池对象生命周期控制接口、负责地理服务器对象和地理数据库对象的生命周期控制工作的管理对象池对象接口、负责地理服务器对象交互工作的地理服务器对象接口、负责地理数据库对象交互工作的地理数据库对象接口;具体地说,管理模块中包括打开地理数据库的Open接口、取地理数据库名称的GetName接口、关闭地理数据库的Close接口、用于申请地理服务器对象的NewServer接口、用于释放地理服务器对象的DeleteServer接口、用于申请地理数据库对象的NewGDB接口、用于释放地理数据库对象的DeleteGDB接口、……,其中,用于申请地理服务器对象的NewServer接口、用于释放地理服务器对象的DeleteServer接口、用于申请地理数据库对象的NewGDB接口、用于释放地理数据库对象的DeleteGDB接口属于管理对象池对象接口,管理对象池对象生命周期控制接口中有NewMngrIFactory接口、DeleteMngrIFactory接口。According to the above embodiments, the management module is a module responsible for data source operations, and the interfaces included in the management module are: the management object pool object life cycle control interface responsible for the management object pool object generation and destruction work, responsible for the geographical server The management object pool object interface responsible for the lifecycle control of objects and geodatabase objects, the geoserver object interface responsible for the interworking of geoserver objects, and the geodatabase object interface responsible for the interworking of geodatabase objects; specifically, the management module includes open The Open interface of the geographic database, the GetName interface for obtaining the name of the geographic database, the Close interface for closing the geographic database, the NewServer interface for applying for a geographic server object, the DeleteServer interface for releasing a geographic server object, and the NewGDB interface for applying for a geographic database object , the DeleteGDB interface used to release the geographic database object, ..., wherein, the NewServer interface used to apply for the geographic server object, the DeleteServer interface used to release the geographic server object, the NewGDB interface used to apply for the geographic database object, and the geographic database object used to release The DeleteGDB interface of the database object belongs to the management object pool object interface, and the life cycle control interface of the management object pool object includes the NewMngrIFactory interface and the DeleteMngrIFactory interface.

所述控制模块是负责地理数据的相关操作的模块,控制模块中包括有以下接口:负责控制对象池对象生成和销毁工作的控制对象池对象生命周期控制接口、负责地理数据对象的生命周期控制工作的控制对象池对象接口、负责各地理数据模型对象交互工作的地理数据模型对象接口、负责各地理元数据对象交互工作的地理元数据对象接口;具体地说,控制模块中包括取一个要素的Get接口、设置数据集名称的SetName接口、取几何实体的图形信息的GetInfo接口、用于申请要素类对象NewFCls接口、用于释放要素类对象DeleteFCls接口、用于删除要素类对象RemoveFCls接口、……,其中,用于申请要素类对象NewFCls接口、用于释放要素类对象DeleteFCls接口、用于删除要素类对象RemoveFCls接口属于控制对象池对象接口,控制对象池对象生命周期控制接口中有NewXclsIFactory接口、DeleteXclsIFacory接口。The control module is a module responsible for the related operations of geographic data, and the control module includes the following interfaces: the control object pool object life cycle control interface responsible for controlling object pool object generation and destruction work, and responsible for the life cycle control work of geographic data objects The control object pool object interface, the geographic data model object interface responsible for the interactive work of each geographic data model object, and the geographic metadata object interface responsible for the interactive work of each geographic metadata object; specifically, the control module includes the Get Interface, the SetName interface for setting the name of the dataset, the GetInfo interface for obtaining the graphic information of the geometric entity, the NewFCls interface for applying for the feature class object, the DeleteFCls interface for releasing the feature class object, the RemoveFCls interface for deleting the feature class object, ..., Among them, the NewFCls interface used to apply for a feature class object, the DeleteFCls interface used to release a feature class object, and the RemoveFCls interface used to delete a feature class object belong to the control object pool object interface, and the control object pool object lifecycle control interface includes NewXclsIFactory interface and DeleteXclsIFacory interface .

所述配置模块是负责中间件界面回调的模块,所述配置模块包括地理数据库创建、地理数据库附加、地理数据库注销、地理数据库删除的界面回调配置接口、自举中间件数据源数目的接口、自举中间件数据源信息的接口、对中间件地理数据源进行配置时回调创建数据源的接口,所述接口供用户在配置的中间件数据源下新建、附加、注销、删除地理数据库时通过数据源驱动管理器调用。Described configuration module is the module that is responsible for middleware interface callback, and described configuration module comprises the interface callback configuration interface of geographic database creation, geographic database addition, geographic database cancellation, geographic database deletion, the interface of bootstrapping middleware data source number, automatic Give the interface of middleware data source information, and call back the interface of creating data source when configuring the middleware geographic data source. The interface is for users to pass data when creating, attaching, canceling, and deleting geographic databases under the configured middleware data source. Source driver manager call.

按以上的实施例,所述地理对象包括简单要素类、注记类、网络类、对象类。According to the above embodiments, the geographic objects include simple feature classes, annotation classes, network classes, and object classes.

按以上的实施例,按以上的实施例,在步骤1)之前,还包括以下具体步骤:According to the above embodiment, according to the above embodiment, before step 1), the following specific steps are also included:

先将中间件相关信息放入客户端的配置文件;然后将配置文件中的中间件相关信息按地理数据源名规范生成地理数据源名连接串,并在服务器端进行解析,从而使客户软件可以识别异构数据源所对应的中间件接口和数据源驱动。所述中间件相关信息包括以下部分:中间件名称、中间件描述、管理模块名称、控制模块名称、配置模块名称。中间件名称和中间件描述这2项用户可以自定义;管理模块负责数据源的连接和数据库的打开等操作;控制模块负责简单要素类、注记类、网络类等类的相关操作;配置模块负责中间件界面回调。Put the middleware-related information into the configuration file of the client first; then generate the geographic data source name connection string according to the geographic data source name specification according to the middleware-related information in the configuration file, and analyze it on the server side, so that the client software can identify Middleware interfaces and data source drivers corresponding to heterogeneous data sources. The middleware-related information includes the following parts: middleware name, middleware description, management module name, control module name, and configuration module name. The middleware name and middleware description can be customized by the user; the management module is responsible for the connection of the data source and the opening of the database; the control module is responsible for the related operations of simple feature classes, annotation classes, network classes, etc.; the configuration module Responsible for middleware interface callback.

地理数据源名(GDSN)连接字符串规范,第一种方法是按键值对形式来实现,示例如下:Geographic data source name (GDSN) connection string specification, the first method is implemented in the form of key-value pairs, examples are as follows:

GDSN=″DSN=ArcGISLocal;USER=″″;PSW=″″;MANAGERMODULE=esri_Manager.dll;XCLSMODULE=esriMng_XCls.dll;″;GDSN="DSN=ArcGISLocal; USER=""; PSW=""; MANAGERMODULE=esri_Manager.dll; XCLSMODULE=esriMng_XCls.dll;";

其中:a)、关键字GDSN表示地理数据源名称;b)、关键字USER表示用户;c)、关键字PSW表示口令;d)、关键字MANAGERMODULE表示中间件管理模块名称;e)、关键字XCLSMODULE表示中间件控制模块名称;Among them: a), the keyword GDSN indicates the geographic data source name; b), the keyword USER indicates the user; c), the keyword PSW indicates the password; d), the keyword MANAGERMODULE indicates the name of the middleware management module; e), the keyword XCLSMODULE represents the middleware control module name;

地理数据源名(GDSN)连接字符串规范的另外一种实现方法:Another implementation of the Geographic Data Source Name (GDSN) connection string specification:

URL(Uniform Resource Locator)统一资源定位描述资源的真实物理位置,该地址由一系列的段组成,前一段说明了获得下一段需要采用的方法和参数。URL规范在数据中心是统一的,即无论是它寻找哪种特定类型的资源或描述通过哪种机制获取该资源,它们都采用相同的基本语法。URL (Uniform Resource Locator) Uniform Resource Locator describes the real physical location of the resource. The address consists of a series of segments. The previous segment describes the methods and parameters that need to be used to obtain the next segment. A URL specification is uniform across the data center, i.e. it uses the same basic syntax whether it is looking for a particular type of resource or describing the mechanism through which to obtain that resource.

URL的一般格式为:The general format of a URL is:

scheme://host[:port][/path][?query][#fragment]scheme://host[:port][/path][? query][#fragment]

其中,[]内的内容为可选项;每项的表示含义如下所示。Among them, the content in [] is optional; the meaning of each item is as follows.

Scheme:通信协议方案Scheme: communication protocol scheme

Host:主机,指定的服务器的域名系统(DNS)主机名或IP地址Host: Host, Domain Name System (DNS) host name or IP address of the specified server

Port:端口号,整数,可选,省略时使用方案的默认端口,如http的默认端口为80。Port: port number, integer, optional, if omitted, use the default port of the scheme, such as the default port of http is 80.

Path:路径,由零或多个“/”符号隔开的字符串,一般用来表示主机上的一个目录或文件地址。Path: path, a string separated by zero or more "/" symbols, generally used to indicate a directory or file address on the host.

Query:查询,可选,用于给动态网页(如使用CGI、ISAPI、PHP/JSP/ASP/ASP.NET等技术制作的网页)传递参数,可有多个参数,用“&”符号隔开,每个参数的名和值用“=”符号隔开。Query: query, optional, used to pass parameters to dynamic webpages (such as webpages made using CGI, ISAPI, PHP/JSP/ASP/ASP.NET and other technologies), there can be multiple parameters, separated by "&" symbols , the name and value of each parameter are separated by the "=" symbol.

Fragment:信息片断,字符串,用于指定网络资源中的片断。例如一个网页中有多个名词解释,可使用fragment直接定位到某一名词解释。Fragment: information fragment, character string, used to specify the fragment in the network resource. For example, there are multiple noun explanations in a web page, and fragments can be used to directly locate a noun explanation.

在数据中心的scheme属性中提供的有效方案名称有如下所示,同时支持用户自定义遵循该URL规范的协议。The valid scheme names provided in the scheme attribute of the data center are as follows, and user-defined protocols that follow the URL specification are supported.

以下为数据中心提供的scheme协议:The following scheme protocols are provided by the data center:

File:本地文件传输协议(File Protocol),主要用于访问本地计算机中的文件,就如同在Windows资源管理器中打开文件一样File: Local File Transfer Protocol (File Protocol), mainly used to access files in the local computer, just like opening files in Windows Explorer

ftp:文件传输协议FTP(File Transfer Protocal),是用于Internet上的控制文件的双向传输的协议ftp: File Transfer Protocol FTP (File Transfer Protocol), is a protocol for two-way transmission of control files on the Internet

gopher:(RFC-1436)网际Gopher协议(The Internet Gopher Protocol),是一种互联网没有发展起来之前的一种从远程服务器上获取数据的协议。gopher: (RFC-1436) The Internet Gopher Protocol (The Internet Gopher Protocol), is a protocol for obtaining data from remote servers before the development of the Internet.

http:超文本传输协议HTTP(Hypertext Transfer Protocol),用于传送WWW方式的数据http: Hypertext Transfer Protocol HTTP (Hypertext Transfer Protocol), used to transmit WWW data

https:安全超文本传输协议HTTPS(Secure Hypertext Transfer Protocol)https: Secure Hypertext Transfer Protocol HTTPS (Secure Hypertext Transfer Protocol)

mailto:电子邮件协议(Mailto Protocol),资源为电子邮件地址,通过SMTP访问,通过该协议可以创建一个指向电子邮件地址的超级链接。mailto: Email protocol (Mailto Protocol), the resource is an email address, accessed through SMTP, through which a hyperlink to an email address can be created.

通过该链接可以在Internet中发送电子邮件。Emails can be sent on the Internet via this link.

News:通过NNTP访问该资源。News: Access this resource through NNTP.

gdbp:地理数据库协议GDBP(Geo-Database Protocol),实现本地地理数据库服务器上地理数据库资源的定位。gdbp: Geo-Database Protocol GDBP (Geo-Database Protocol), which realizes the positioning of geodatabase resources on the local geodatabase server.

gdbpns:地理数据库域名解析服务协议(Domain Name System),实现访问本机或远程的地理数据库服务器。gdbpns: Geodatabase domain name resolution service protocol (Domain Name System), to achieve access to local or remote geographic database servers.

ImageBandDrv:栅格影像数据协议,实现本地地理数据库服务器上的栅格影像数据资源的定位。ImageBandDrv: Raster image data protocol, which realizes the positioning of raster image data resources on the local geographic database server.

Dbms:数据库协议,实现访问本机或远程的数据库,支持Access、SQL、Oracle三种数据格式。Dbms: Database protocol, realizes access to local or remote databases, supports three data formats of Access, SQL, and Oracle.

图2是GIS中间件模块框架示意图,如图2所示,根据驱动化的设计思想,通用GIS中间件的设计为两层模式:数据源驱动管理器,异构数据源驱动。客户软件为了使用GIS中间件,需要提供与GIS中间件连接的数据接口。数据接口负责与GIS中间件进行信息交互,把客户软件的请求数据源类型和动作传递给GIS中间件,同时把数据结果返回给客户软件。Figure 2 is a schematic diagram of the GIS middleware module framework. As shown in Figure 2, according to the design idea of driving, the design of general GIS middleware is a two-layer model: data source driver manager, and heterogeneous data source driver. In order to use the GIS middleware, the client software needs to provide a data interface connected with the GIS middleware. The data interface is responsible for information interaction with the GIS middleware, passing the requested data source type and actions of the client software to the GIS middleware, and returning the data results to the client software.

数据源驱动管理器与具体客户软件通信并分派异构数据源驱动。当客户软件请求某种类型异构数据源时,数据源驱动管理器加载相应的异构数据源驱动,并把数据访问结果返回给客户软件。它为所有的客户软件提供统一的数据操作接口,不同的空间数据类型对客户软件来说是透明的。The data source driver manager communicates with specific client software and dispatches heterogeneous data source drivers. When the client software requests a certain type of heterogeneous data source, the data source driver manager loads the corresponding heterogeneous data source driver, and returns the data access result to the client software. It provides a unified data operation interface for all client software, and different spatial data types are transparent to client software.

每种异构数据源驱动负责对其相应空间数据访问,完成对空间数据的实际读写,并把结果返回给数据源驱动管理器。异构数据源驱动对用户来说也是透明的。异构数据源的类型包括:ArcGIS数据、AutoCAD数据、VCT数据、MapInfo_Mif数据、……。Each heterogeneous data source driver is responsible for accessing its corresponding spatial data, completing the actual reading and writing of spatial data, and returning the result to the data source driver manager. Heterogeneous data source drivers are also transparent to users. The types of heterogeneous data sources include: ArcGIS data, AutoCAD data, VCT data, MapInfo_Mif data, . . .

图3为数据源驱动管理器的模块框架示意图,如图3所示,数据源驱动管理器模块框架示意图可以分别按GIS中间件模块规范、GIS中间件接口规范来划分。Figure 3 is a schematic diagram of the module framework of the data source driver manager. As shown in Figure 3, the module framework diagram of the data source driver manager can be divided according to the GIS middleware module specification and the GIS middleware interface specification.

1.按GIS中间件模块规范划分:1. Divided according to the GIS middleware module specification:

1.1管理模块:实现管理对象池、地理服务器对象和地理数据库对象的标准接口。1.1 Management module: realize the standard interface of management object pool, geoserver object and geodatabase object.

1.2控制模块:实现控制对象池、地理数据对象的标准接口。1.2 Control module: realize the standard interface of control object pool and geographic data object.

1.3配置模块:内部已详细介绍。1.3 Configuration module: The interior has been introduced in detail.

2.按GIS中间件接口规范划分:2. According to the GIS middleware interface specification:

2.0对象池对象生命周期控制接口,包括管理对象池对象生命周期控制接口、控制对象池对象生命周期的控制接口,这2类接口分别负责各自对象池对象的生成和销毁工作。2.0 object pool object life cycle control interface, including management object pool object life cycle control interface, object pool object life cycle control interface, these two types of interfaces are responsible for the generation and destruction of their respective object pool objects.

2.1管理对象池对象接口:负责地理服务器对象和地理数据库对象的生命周期控制工作。2.1 Management object pool object interface: responsible for the lifecycle control of geoserver objects and geodatabase objects.

2.2控制对象池对象接口:负责地理数据对象的生命周期控制工作。2.2 Control object pool object interface: responsible for the life cycle control of geographic data objects.

2.3地理服务器对象接口:负责地理服务器对象的交互工作。2.3 Geographic server object interface: responsible for the interactive work of geographic server objects.

2.4地理数据库对象接口:负责地理数据库对象的交互工作。2.4 Geographic database object interface: responsible for the interactive work of geographic database objects.

2.5地理数据模型对象接口:负责各地理数据模型对象的交互工作。2.5 Geographic data model object interface: responsible for the interactive work of each geographic data model object.

1)、要素类对象;2)、简单要素类对象;3)、注记类对象;4)、对象类对象;……1), feature class object; 2), simple feature class object; 3), annotation class object; 4), object class object;  …

2.6地理元数据对象接口:负责各地理元数据对象的交互工作。2.6 Geographic metadata object interface: responsible for the interactive work of each geographic metadata object.

1)空间参照系对象;……1) Spatial reference system object;  …

2.7配置管理接口:负责异构数据源的特殊配置工作。2.7 Configuration management interface: responsible for special configuration of heterogeneous data sources.

1)自举数据源;2)创建数据源;……1) Bootstrap data source; 2) Create data source;  …

图4是GIS中间件的使用流程示意图。在使用某个中间件前首先需要加载该中间件。Figure 4 is a schematic diagram of the use flow of GIS middleware. Before using a middleware, you need to load the middleware first.

第一步:注册GIS中间件Step 1: Register GIS middleware

1)、在MapGIS的Catalog(企业管理器目录树)框架内,右键点击“GDBConnection标签”,弹出右键菜单。1) In the framework of the Catalog (enterprise manager directory tree) of MapGIS, right-click the "GDBConnection label" to pop up the right-click menu.

2)、在弹出的菜单中点击“配置MapGIS数据源”,出现“MapGIS客户端配置管理”对话框。2) Click "Configure MapGIS Data Source" in the pop-up menu, and the "MapGIS Client Configuration Management" dialog box will appear.

3)、“MapGIS客户端配置管理”对话框中点击“MapGIS中间件”标签,然后点击“注册”按钮,弹出“注册中间件”对话框。其中,“中间件名称”和“中间件描述”用户可以自定义;“单文件特征”对于不需要操作单机文件的用户,可以不填写此项,否则,要填写所要操作的文件后缀名,如果多种类型的文件,用分号将它们分开;“管理模块”就是Xxx_Manager模块,负责数据源的连接和数据库的打开等操作;控制模块就是Xxx_XCls模块,负责简单要素类、注记类、网络类等类的相关操作;配置模块就是Xxx_Config模块,负责中间件界面回调。3) In the "MapGIS Client Configuration Management" dialog box, click the "MapGIS Middleware" tab, and then click the "Register" button to pop up the "Register Middleware" dialog box. Among them, "Middleware Name" and "Middleware Description" can be customized by users; "Single File Feature" can be omitted for users who do not need to operate single-machine files; otherwise, fill in the suffix name of the file to be operated, if Multiple types of files are separated by semicolons; the "management module" is the Xxx_Manager module, which is responsible for the connection of data sources and the opening of the database; the control module is the Xxx_XCls module, which is responsible for simple feature classes, annotation classes, and network classes and other related operations; the configuration module is the Xxx_Config module, which is responsible for the callback of the middleware interface.

4)在“注册中间件”对话框中,填写完各项,点击确定,将回到“MapGIS客户端配置管理”对话框界面。如果在三个模块所要求实现的接口都已经实现,将会注册成功,界面表示为“√”,否则“×”。到此中间件注册完成。4) In the "Register Middleware" dialog box, fill in all items and click OK to return to the "MapGIS Client Configuration Management" dialog interface. If all the interfaces required by the three modules have been realized, the registration will be successful, and the interface will be represented as "√", otherwise "×". At this point, the middleware registration is complete.

第二步:添加数据源Step 2: Add a data source

第一步完成后,中间件已被注册成为MapGIS平台可识别的数据源,我们还需要把此数据源添加到Catalog(企业管理器目录树)中。After the first step is completed, the middleware has been registered as a data source recognized by the MapGIS platform, and we also need to add this data source to the Catalog (enterprise manager directory tree).

1)、在“MapGIS客户端配置管理”对话框中,点击“MAPGIS数据源”标签,然后点击“添加”按钮,弹出“添加MapGIS数据源类型”对话框。1) In the "MapGIS Client Configuration Management" dialog box, click the "MAPGIS Data Source" tab, and then click the "Add" button to pop up the "Add MapGIS Data Source Type" dialog box.

2)、在“添加MapGIS数据源类型”对话框中选中刚才注册的数据源类型,点击“下一步”,弹出“添加MapGIS数据源信息”对话框。在对话框列表中显示的是同一数据源类型不同数据源名的列表,这些一般是中间件自举出来的。如果该中间件数据源类型只对应一个数据源名,点击“添加数据源”是没有反应的,否则,会弹出一个对话框用来添加数据源。“MapGIS数据源名”是该数据源显示在Catalog(企业管理器目录树)上的数据源名。ArcGISLocal、VctGISLocal和MapGIS6xLocal都是仅且中有一个数据源,点击“添加数据源”按钮没有有反应;但是ArcSDE可以管理多种类型的大型数据库(SQL、Oracle等),它可以添加多个数据源。点击“添加数据源”按钮,将弹出“添加ArcSDE数据源”对话框,其所有项都必须填写。2) In the "Add MapGIS Data Source Type" dialog box, select the data source type just registered, click "Next", and the "Add MapGIS Data Source Information" dialog box will pop up. What is displayed in the dialog list is a list of different data source names of the same data source type, which are generally bootstrapped by the middleware. If the middleware data source type only corresponds to one data source name, clicking "Add Data Source" will not respond, otherwise, a dialog box will pop up to add a data source. "MapGIS data source name" is the data source name displayed on the Catalog (enterprise manager directory tree) of the data source. ArcGISLocal, VctGISLocal, and MapGIS6xLocal all have only one data source, and there is no response when clicking the "Add Data Source" button; but ArcSDE can manage many types of large databases (SQL, Oracle, etc.), and it can add multiple data sources . Click the "Add Data Source" button, and the "Add ArcSDE Data Source" dialog box will pop up, and all items must be filled in.

服务器名:该数据源管理的数据库所在的服务器名。例如,该数据源管理某个Oracle数据库,那么该项数据源的服务器名就是Oracle所在的服务器名,如WEILIPING或192.168.10.152。Server name: The server name where the database managed by this data source resides. For example, if the data source manages an Oracle database, then the server name of the data source is the server name where Oracle is located, such as WEILIPING or 192.168.10.152.

实例名:针对不同的数据库,需要安装不同的ArcSDE实例,这时会产生一个实例名。ORARCL和SQL的实例名是不同的,如esri_sde或5152。Instance name: For different databases, different ArcSDE instances need to be installed, and an instance name will be generated at this time. The instance names of ORARCL and SQL are different, such as esri_sde or 5152.

数据库名:每个ArcSDE数据源都只有一个数据库,安装ArcSDE时,数据库名就已产生,如sde。Database name: Each ArcSDE data source has only one database. When ArcSDE is installed, the database name has already been generated, such as sde.

版本号:所操作的数据库的在编辑过程中产生的某一版本名,一般为默认版本:SDE.DEFAULT。Version number: A certain version name generated during the editing process of the database being operated, generally the default version: SDE.DEFAULT.

数据源名:用户可自己定义,它不显示在Catalog(企业管理器目录树)上,而由中间件自己保存。Data source name: the user can define it by himself, it is not displayed on the Catalog (enterprise manager directory tree), but is saved by the middleware itself.

3)、按照(2)的说明,配置好“添加MapGIS数据源信息”对话框的各项,点击“完成”,将返回“MapGIS客户端配置管理”界面,可以看到新添加的数据源项。在Catalog(企业管理器目录树)中也可以看到新添加的数据源项。至此,数据源添加成功。3) According to the instructions in (2), configure the items in the "Add MapGIS Data Source Information" dialog box, click "Finish", and return to the "MapGIS Client Configuration Management" interface, and you can see the newly added data source item . The newly added data source item can also be seen in the Catalog (Enterprise Manager directory tree). So far, the data source has been successfully added.

第三步:附加数据库(可选)用户要操作该类型的数据,需要把数据所在的文件夹以数据库的形式附加到数据源中,如果该类型的数据源所包含的数据库是一定的,数据源添加成功的同时,数据库就已经存在,那么该类型的数据源不需要第三步。在Catalog(企业管理器目录树)框架下,右键单击该数据源,然后点击附加数据库菜单项,弹出对话框。其中“要附加的数据库路径”必须要填写,它是该类型数据所在的文件夹。填写完各项,点击确定,在Catalog(企业管理器目录树)中可以看到该数据库已经附加完成。每一个ArcSDE数据源仅且只有一个固定的数据库,所以,不能附加数据库。ArcGISLocal、VctGISLocal和MapGIS6xLocal都需要附加数据库。ArcGISLocal可以附加三种类型的数据库:shapefile、access和coverage。VctGISLocal和MapGIS6xLocal都是只可以附加一种数据库类型。Step 3: Attaching a database (optional) To operate this type of data, the user needs to attach the folder where the data is located to the data source in the form of a database. If the database contained in this type of data source is certain, the data When the source is successfully added, the database already exists, so this type of data source does not need the third step. Under the Catalog (enterprise manager directory tree) framework, right-click the data source, then click the Additional Database menu item, and a dialog box will pop up. Among them, the "database path to be attached" must be filled in, which is the folder where this type of data is located. After filling in all items, click OK, and you can see that the database has been attached in the Catalog (enterprise manager directory tree). Each ArcSDE data source has only one and only one fixed database, so it is not possible to attach a database. ArcGISLocal, VctGISLocal, and MapGIS6xLocal all require additional databases. ArcGISLocal can attach three types of databases: shapefile, access, and coverage. Both VctGISLocal and MapGIS6xLocal can only attach one type of database.

不再使用该中间件时即可卸载中间件。A middleware can be uninstalled when it is no longer used.

第一步:删除数据源卸载该类型的中间件,需要删除该类型的所有数据源。在“MapGIS客户端配置管理”对话框的“MapGIS数据源”标签下,选中要删除的数据源,点击删除按钮即可。第二步:注销中间件在“MapGIS客户端配置管理”对话框的“MapGIS中间件”标签下,选中要注销的中间件,点击“注销”按钮即可。Step 1: Delete data sources To uninstall this type of middleware, you need to delete all data sources of this type. In the "MapGIS Client Configuration Management" dialog box, under the "MapGIS Data Source" tab, select the data source to be deleted, and click the Delete button. Step 2: Unregister middleware In the "MapGIS Client Configuration Management" dialog box, under the "MapGIS Middleware" tab, select the middleware to be unregistered, and click the "Logout" button.

本发明专利说明书中所述的接口并不一定只是一个接口,也可能是一组接口的统称。The interface described in the patent specification of the present invention is not necessarily just one interface, but may also be a collective name of a group of interfaces.

以上结合附图描述了本发明的实施方式,本领域内熟练的技术人员结合MapGIS二次开发帮助以及公开的GIS开发资料可以开发出具体软件代码,本领域内熟练的技术人员可以在所附权利要求的范围内做出各种变形或修改。The embodiments of the present invention have been described above in conjunction with the accompanying drawings. Those skilled in the art can develop specific software codes in conjunction with the MapGIS secondary development help and the disclosed GIS development data. Those skilled in the art can refer to the attached rights Various changes or modifications are made within the required scope.

Claims (12)

1, a kind of GIS middleware configuring management method, it is characterized in that: its step is as follows:
1), client software is created isomeric data source information and is sent data resource drive manager to;
2), data resource drive manager loads corresponding middleware interface and heterogeneous data source driving according to described isomeric data source information;
3), described step 2) in heterogeneous data source drive directly visit heterogeneous data source, will visit successful information then and return to data resource drive manager, so far heterogeneous data source and the successful connection of heterogeneous data source driving accordingly;
4), client software sends request action, data resource drive manager responds its request, calls and returns result to client software after corresponding data source drives the actual treatment work of finishing data;
5), client software display result data.
2, GIS middleware configuring management method as claimed in claim 1, it is characterized in that: concrete steps described step 2) are: data resource drive manager is mated heterogeneous data source according to the isomeric data source information that receives and is driven, and data resource drive manager loads corresponding middleware interface and heterogeneous data source driving according to described isomeric data source information then.
3, GIS middleware configuring management method as claimed in claim 1, it is characterized in that: the concrete steps of described step 4) are: client software sends request action, data resource drive manager responds its request, data resource drive manager and step 2) described in heterogeneous data source drive between by step 2) in the corresponding middleware interface that loaded carry out information interaction, data resource drive manager is returned result to client software after finishing actual treatment work to data.
4, GIS middleware configuring management method as claimed in claim 1, it is characterized in that: described isomeric data source packet is drawn together data type and connection attribute.
5, GIS middleware configuring management method as claimed in claim 4 is characterized in that: described connection attribute is the directory information of management, control, 3 modules of configuration.
6, GIS middleware configuring management method as claimed in claim 1 is characterized in that: the request action that client software sends in the described step 4) comprises browses, upgrades, rebuilds topology, spatial analysis.
7, GIS middleware configuring management method as claimed in claim 1 is characterized in that: further comprising the steps of in the described step 1): before client software is created data source information, judge whether the described request data are isomeric data earlier; If the described request data are isomeric datas, then client software is created data source information and is sent data resource drive manager to; Otherwise client software oneself is handled request msg, no longer creates isomeric data source information and sends data resource drive manager to.
8, as claim 1 or 2 or 3 or 4 or 5 or 6 or 7 described GIS middleware configuring management methods, it is characterized in that: the process of setting up of middleware interface described step 2) comprises following concrete steps:
2.1), at first, create the module group comprise administration module, control module, configuration module, the module group is configured according to GIS middleware module standard, wherein disposes a series of interfaces according to GIS middleware interface standard again below each module;
2.2), by the object instance generator heterogeneous data source is become the exercisable geographic object of system then, wherein the object instance generator comprises middleware administration module object pool and middleware control module object pool.
9, GIS middleware configuring management method as claimed in claim 8, it is characterized in that: described administration module is a module of being responsible for data source operation, and the interface that comprises in the described administration module is: the management object pond object life cycle control interface of being in charge of the generation of object pool object and the work of destruction, be responsible for the management object pond object interface of the life cycle Control work of geolocation server object and geographical data bank object, be responsible for the geolocation server object interface of geolocation server object interaction work, be responsible for the geographical data bank object interface of geographical data bank object interaction work;
Described control module is the module of the associative operation of responsible geodata, includes in the control module with lower interface: the geodata model object interface of the controlling object pond object life cycle control interface of the object generation of responsible controlling object pond and the work of destruction, the controlling object pond object interface of being responsible for the life cycle Control work of geodata object, responsible each geographical data model object interaction work, the geographical metadata object interface of responsible each geographical metadata object interworking;
Described configuration module is a module of being responsible for middleware interface readjustment, described configuration module comprises that geographical data bank is created, geographical data bank is additional, geographical data bank is nullified, the interface of the interface of the interface readjustment configuration interface of geographical data bank deletion, bootstrapping middleware data source number, bootstrapping middleware data source information, readjustment was created the interface of data source when middleware geodata source was configured, and described interface is newly-built, additional under the middleware data source of configuration for the user, nullify, call by data resource drive manager when deleting geographical data bank.
10, GIS middleware configuring management method as claimed in claim 8, it is characterized in that: described geographic object comprises elementary factor class, annotation class, network class, object class.
11, GIS middleware configuring management method as claimed in claim 1 is characterized in that: before step 1), also comprise following concrete steps: the configuration file of earlier the middleware relevant information being put into client; Then the middleware relevant information in the configuration file is generated the geodata parent name by geodata parent name standard and connect string, and resolve, thereby make client software can discern pairing middleware interface of heterogeneous data source and data source driving at server end.
12, GIS middleware configuring management method as claimed in claim 11, it is characterized in that: described middleware relevant information comprises with the lower part: middleware names, middleware description, administration module title, control module title, configuration module title.
CN2008102368690A 2008-12-17 2008-12-17 GIS middleware collocation and management method Active CN101493825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102368690A CN101493825B (en) 2008-12-17 2008-12-17 GIS middleware collocation and management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102368690A CN101493825B (en) 2008-12-17 2008-12-17 GIS middleware collocation and management method

Publications (2)

Publication Number Publication Date
CN101493825A true CN101493825A (en) 2009-07-29
CN101493825B CN101493825B (en) 2011-05-11

Family

ID=40924429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102368690A Active CN101493825B (en) 2008-12-17 2008-12-17 GIS middleware collocation and management method

Country Status (1)

Country Link
CN (1) CN101493825B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193947A (en) * 2010-03-18 2011-09-21 华为技术有限公司 Data access processing method and system
CN102360370A (en) * 2011-09-29 2012-02-22 迈普通信技术股份有限公司 Centralized data management system and method
CN102402526A (en) * 2010-09-13 2012-04-04 方正国际软件有限公司 Geographic information database management method and system
CN103576616A (en) * 2012-07-18 2014-02-12 日照市活点网络科技有限公司 Internet of things quantum piece realization method and quantum piece device
CN103761140A (en) * 2013-11-29 2014-04-30 北京中启智源数字信息技术有限责任公司 Method for implementing transaction processing in isomeric relational database
CN103970905A (en) * 2014-05-27 2014-08-06 重庆大学 Automatic composition and integration method for multi-source vector geographic information data
CN104794147A (en) * 2013-12-30 2015-07-22 深圳键桥通讯技术股份有限公司 Heterogeneous database access method
CN105631915A (en) * 2015-12-28 2016-06-01 中国石油天然气股份有限公司 Conversion method and device of geological static map
CN106446000A (en) * 2016-07-27 2017-02-22 中国地质大学(武汉) Boundary interaction-based area combination topological similarity measurement method
CN107203516A (en) * 2016-03-16 2017-09-26 镇江雅迅软件有限责任公司 A kind of general GIS interface
CN107908390A (en) * 2017-10-12 2018-04-13 武汉中地数码科技有限公司 A kind of extended method and system of WebGIS applications
CN110795485A (en) * 2019-10-29 2020-02-14 杭州求是优脉科技有限公司 Database access method, device and equipment
CN111090691A (en) * 2019-12-19 2020-05-01 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN111552893A (en) * 2020-04-26 2020-08-18 中国电建集团中南勘测设计研究院有限公司 Method, plug-in and system for realizing online loading of multi-source geographic information data in AutoCAD

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193947B (en) * 2010-03-18 2014-04-02 华为技术有限公司 Data access processing method and system
CN102193947A (en) * 2010-03-18 2011-09-21 华为技术有限公司 Data access processing method and system
CN102402526A (en) * 2010-09-13 2012-04-04 方正国际软件有限公司 Geographic information database management method and system
CN102360370A (en) * 2011-09-29 2012-02-22 迈普通信技术股份有限公司 Centralized data management system and method
CN103576616B (en) * 2012-07-18 2015-09-02 活点信息技术有限公司 The implementation method of Internet of Things quantum piece and quantum piece device
CN103576616A (en) * 2012-07-18 2014-02-12 日照市活点网络科技有限公司 Internet of things quantum piece realization method and quantum piece device
CN103761140B (en) * 2013-11-29 2018-04-13 北京中启智源数字信息技术有限责任公司 A kind of method that issued transaction is realized in isomeric relationship type database
CN103761140A (en) * 2013-11-29 2014-04-30 北京中启智源数字信息技术有限责任公司 Method for implementing transaction processing in isomeric relational database
CN104794147A (en) * 2013-12-30 2015-07-22 深圳键桥通讯技术股份有限公司 Heterogeneous database access method
CN103970905A (en) * 2014-05-27 2014-08-06 重庆大学 Automatic composition and integration method for multi-source vector geographic information data
CN105631915B (en) * 2015-12-28 2019-06-11 中国石油天然气股份有限公司 Conversion method and device of geological static map
CN105631915A (en) * 2015-12-28 2016-06-01 中国石油天然气股份有限公司 Conversion method and device of geological static map
CN107203516A (en) * 2016-03-16 2017-09-26 镇江雅迅软件有限责任公司 A kind of general GIS interface
CN106446000A (en) * 2016-07-27 2017-02-22 中国地质大学(武汉) Boundary interaction-based area combination topological similarity measurement method
CN107908390A (en) * 2017-10-12 2018-04-13 武汉中地数码科技有限公司 A kind of extended method and system of WebGIS applications
CN110795485A (en) * 2019-10-29 2020-02-14 杭州求是优脉科技有限公司 Database access method, device and equipment
CN111090691A (en) * 2019-12-19 2020-05-01 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN111090691B (en) * 2019-12-19 2021-02-09 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN111552893A (en) * 2020-04-26 2020-08-18 中国电建集团中南勘测设计研究院有限公司 Method, plug-in and system for realizing online loading of multi-source geographic information data in AutoCAD

Also Published As

Publication number Publication date
CN101493825B (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN101493825B (en) GIS middleware collocation and management method
US8712965B2 (en) Dynamic report mapping apparatus to physical data source when creating report definitions for information technology service management reporting for peruse of report definition transparency and reuse
US7149730B2 (en) Dynamic class inheritance and distributed caching with object relational mapping and cartesian model support in a database manipulation and mapping system
US6999956B2 (en) Dynamic object-driven database manipulation and mapping system
US9870202B2 (en) Business object model layer interface
US9646041B2 (en) Testing of inactive design-time artifacts
Jiang et al. A service-oriented architecture for coupling web service models using the Basic Model Interface (BMI)
CN101271475B (en) Commercial intelligent system
US9251222B2 (en) Abstracted dynamic report definition generation for use within information technology infrastructure
US20140280484A1 (en) Dynamic Service Extension Infrastructure For Cloud Platforms
US7007266B1 (en) Method and software system for modularizing software components for business transaction applications
CN104133889B (en) Database virtualization microkernel data source registration and encapsulation method
MX2007015887A (en) Data centric workflows.
US20120166461A1 (en) Layering concept for a repository of a user interface framework for web applications
WO2010127552A1 (en) Service-oriented application system and communicating method, creator and creating method thereof
Badard et al. OXYGENE: An open framework for the deployment of geographic web services
WO2022066615A1 (en) Automatic graph database query construction and execution
US10963479B1 (en) Hosting version controlled extract, transform, load (ETL) code
CN106371848B (en) Implementation method for web development framework to support Odata
US8788513B2 (en) Computer method and system providing access to data of a target system
CN116048517B (en) Method, system and device for generating API interface based on B/S architecture application system
WO2004107162A1 (en) Dynamic object-driven database manipulation and mapping system
Wong et al. A middleware architecture for open and interoperable GISs
EP1344157A1 (en) Dynamic object-driven database manipulation and mapping system
CN116456021A (en) Page data request method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant