WebGIS (Web geographic information System) -based information management system and implementation methodTechnical Field
The invention relates to the technical field of network geographic information systems, in particular to a WebGIS (geographic information System) -based information management system and an implementation method thereof.
Background
WebGIS, namely a global wide area network (WWAN), is a geographic information system, namely a network geographic information system, is a GIS working on the Web, is extension and development of the traditional GIS on the network, has the characteristics of the traditional GIS, can realize GIS basic functions of retrieval, query, drawing output, editing and the like of spatial data, and is also a foundation for publishing, sharing and communication cooperation of geographic information on the Internet.
The existing established network geographic information system has less research on the aspect of security, wherein the research on the authority management focuses on the relationship between roles and system function authorities, and less relates to the relationship between roles and space data authorities, and further the research on the organic combination of the roles, the system functions and the space data authorities is more deficient.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a WebGIS-based information management system and an implementation method thereof, and solves the problems of incomplete authority management, incomplete log record and low system safety.
(II) technical scheme
In order to achieve the purpose, the invention is realized by the following technical scheme: the utility model provides a based on WebGIS information management system and implementation method, includes data access system and management information system, data access system includes ArcGIS Server, client, system interface, Koa2 Server, has postgreSQL's database and Redis, ArcGIS Server and client realize two-way connection, the output of client is connected with the input of system interface, the client realizes two-way connection with Koa2 Server, Koa2 Server realizes two-way connection with the database, Koa2 Server realizes two-way connection with Redis, management information system includes show layer, service layer, data layer and infrastructure layer, show layer and service layer realize two-way connection, service layer and data layer realize two-way connection, data layer and infrastructure layer realize two-way connection.
Preferably, the display layer comprises a service application subsystem and a system management subsystem, the service application subsystem comprises a data browsing module, a data query module, an auxiliary auditing module, a statistical analysis module, a drawing module and a data updating module, and the system management subsystem comprises a role management module, a right management module, a log management module, a user management module, a layer configuration module, a software function configuration module, a system configuration module, an attribute table field management module and a server management module.
Preferably, the service layer includes a functional service system, a communication service system and an ArcGIS Server service system, the functional service system includes a data browsing service module, a data query service module, an auxiliary auditing service module, a statistical analysis service module, a data updating service module and a system management service module, the communication service system includes a data access service module, a permission management service module and a log management service module, and the ArcGIS Server service system includes a map service module, a factor service module and a geographic processing service module.
Preferably, the data layer includes PostgreSQL, which includes a geospatial data module, a business data module, and a system management data module.
Preferably, the infrastructure layer includes computers, servers, printers and network facilities.
The invention also discloses an implementation method based on the WebGIS information management system, which specifically comprises the following steps:
s1, unified data access, when accessing spatial data and service data, the access mode is firstly that the client end sends a request to Koa2 server, then the function-layer table and attribute information table are inquired in Redis, if there is a corresponding inquiry result, the result is returned to the client end, if there is no inquiry content in Redis, Koa2 inquires in the database, if the service data is accessed, the service data information is inquired in the database, after the inquiry result is obtained, the information is recorded in Redis and returned to the client end, if the space data is accessed and inquired, the Koa2 server inquires the service address of the layer in the database, the inquired service address is analyzed, the information of layer address head, address path and the like are spliced to form a complete access address, Koa2 returns the spliced address to the client end, the client carries the address to access the ArcGIS Server Server and queries the address, and the queried information is returned to the client;
s2, unified authority management, when a user logs in a system, a request is sent to a Koa2 server, then authority information is queried in Redis, if corresponding information exists in Redis, an obtained query result is returned to a client to perform system initialization, if no authority information exists in Redis, Koa2 queries in a database, after the query result is obtained, the query result is returned to the client and stored in Redis, different results obtained by the query enable systems logged in by different users to display different function interfaces and layer interfaces, namely the authority information of the users when using the system is determined by authority judgment during logging in;
s3, managing unified logs, wherein on the basis of S1, namely on the basis of unified data access, a Koa2 Server can acquire corresponding information from a Redis database, if an ArcGIS Server is accessed, the address of a map service is recorded when returned spatial data are received, Koa2 organizes the acquired information such as user information, time and an IP address of a client and system operation information into a complete log and records the complete log into a log table, and the log table is stored in PostgreSQL.
(III) advantageous effects
The invention provides a WebGIS (Web geographic information System) -based information management system and an implementation method. Compared with the prior art, the method has the following beneficial effects:
(1) the WebGIS-based information management system and the implementation method thereof comprehensively consider the safety and the data access mechanism of the system, design and implement the WebGIS-based information management system by integrating open source frames of some Web applications, have the advantages of unified data access, unified authority management and unified log management, realize the integration of visual display and management configuration of spatial data, solve the defects of incomplete authority management and incomplete log record, increase the system safety, help to ensure the authenticity, accuracy and real-time of the data, and improve the informatization level of natural resource data management.
Drawings
FIG. 1 is a diagram of a conventional data access process of the present invention;
FIG. 2 is a schematic diagram of a unified data access process of the present invention;
FIG. 3 is a schematic diagram of a unified rights management process of the present invention;
FIG. 4 is a schematic diagram of a unified log management process of the present invention;
FIG. 5 is a diagram illustrating log management record information according to the present invention;
FIG. 6 is a relational diagram of a unified rights management related data table of the present invention;
FIG. 7 is a relational diagram of a unified data access related data table of the present invention;
FIG. 8 is a relational diagram of a unified log management related data table of the present invention;
FIG. 9 is a functional block diagram of the management information system of the present invention;
FIG. 10 is a functional block diagram of the data access system of the present invention;
FIG. 11 is a functional block diagram representation of a business application subsystem of the present invention;
fig. 12 is a functional block diagram of the system management subsystem according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-12, an embodiment of the present invention provides a technical solution: the utility model provides a based on WebGIS information management system, includes data access system and management information system, data access system includes ArcGIS Server, client, system interface, Koa2 Server, has postgreSQL's database and Redis, ArcGIS Server realizes two-way connection with the client, the output of client is connected with the input of system interface, the client realizes two-way connection with Koa2 Server, Koa2 Server realizes two-way connection with the database, Koa2 Server realizes two-way connection with Redis, management information system includes show layer, service layer, data layer and infrastructure layer, show layer and service layer realize two-way connection, service layer and data layer realize two-way connection, data layer and infrastructure layer realize two-way connection, ArcGIS Server is the enterprise level geographic information system software platform that provides towards web space data service that environmental systems research institute publicly released of America The system comprehensively considers the security and the data access mechanism of the system, designs and realizes a WebGIS-based information management system by integrating open source frames of some Web applications, has the advantages of unified data access, unified authority management and unified log management, realizes the integration of visual display and management configuration of spatial data, solves the defects of incomplete authority management and incomplete log record, increases the security of the system, and is beneficial to ensuring the authenticity, accuracy and real-time performance of the data, and the informatization level of natural resource data management is improved.
The invention also discloses an implementation method based on the WebGIS information management system, which specifically comprises the following steps:
s1, unified data access, when accessing spatial data and service data, the access mode is firstly that the client end sends a request to Koa2 server, then the function-layer table and attribute information table are inquired in Redis, if there is a corresponding inquiry result, the result is returned to the client end, if there is no inquiry content in Redis, Koa2 inquires in the database, if the service data is accessed, the service data information is inquired in the database, after the inquiry result is obtained, the information is recorded in Redis and returned to the client end, if the space data is accessed and inquired, the Koa2 server inquires the service address of the layer in the database, the inquired service address is analyzed, the information of layer address head, address path and the like are spliced to form a complete access address, Koa2 returns the spliced address to the client end, the client accesses the ArcGIS Server Server and queries the ArcGIS Server Server carrying the address, and the queried information is returned to the client, so that the safety access degree of the data is improved, the access of the client to the spatial data and the service data is organically combined, the independent access to the two types of data is avoided, the control strength on the access of the spatial data and the service data and the information acquisition is enhanced, and the unified data access is shown in FIG. 2;
s2, unified authority management, when a user logs in a system, a request is sent to a Koa2 server, then authority information is queried in Redis, if corresponding information exists in Redis, an obtained query result is returned to a client for system initialization, if no authority information exists in Redis, Koa2 queries in a database, the query result is returned to the client and stored in Redis, the different queried results enable systems logged by different users to display different function interfaces and layer interfaces, namely, the authority information of the user during system use is determined by authority judgment during logging in, roles, functions and layers are organically established, the authority of the user is conveniently controlled, the user can only use the corresponding functions and data in the authority, the safety of the system is improved, and authority support is provided for data sharing, the content stored by Redis includes information related to rights, and the unified rights management process is shown in FIG. 3;
s3, unified log management, on the basis of S1, namely unified data access, Koa2 Server can obtain corresponding information from Redis, database, if accessing ArcGIS Server Server, recording map service address when receiving returned space data, Koa2 organizing the obtained information of user information, time, client IP address, etc. and system operation information into a complete log to be recorded in a log table, which is stored in PostgreSQL, the unified log management is realized on the basis of unified data access, the system log can record not only user access service data and operation information such as using system function, but also address of accessed layer service, recording operation information of user comprehensively, providing a basis for guaranteeing system and data safety and serving user, and counting use frequency of each function point or layer more effectively, and then, analyzing the related information, and improving the system performance according to the real situation, wherein the unified log management process is shown in fig. 4.
And those not described in detail in this specification are well within the skill of those in the art.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.