CN112417071B - Vector data layer fusion and service calling method based on GIS - Google Patents
Vector data layer fusion and service calling method based on GIS Download PDFInfo
- Publication number
- CN112417071B CN112417071B CN202011205834.8A CN202011205834A CN112417071B CN 112417071 B CN112417071 B CN 112417071B CN 202011205834 A CN202011205834 A CN 202011205834A CN 112417071 B CN112417071 B CN 112417071B
- Authority
- CN
- China
- Prior art keywords
- service
- fusion
- layer
- data
- address
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Remote Sensing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a vector data layer fusion and service calling method based on a GIS (geographic information system), which comprises the following steps: respectively importing the data into a database, and sequentially generating a plurality of data tables in one-to-one correspondence; respectively distributing the data tables to a plurality of layers in one-to-one correspondence; fusing the plurality of layers to generate a fused layer; registering a service address of a fusion layer as a fusion service on a management platform and generating a gateway address; and when the call application of the fusion service is checked to pass, calling the fusion service. The vector data layer fusion and service calling method based on the GIS aims to solve the problem that layer fusion can only carry out point-to-point, line-to-line and surface-to-surface fusion, so that the limitation is large.
Description
Technical Field
The invention belongs to the technical field of geographic information spatial analysis, and particularly relates to a vector data layer fusion and service calling method based on a GIS.
Background
In a Geographic Information System (GIS), point, line and face vector data with spatial attributes are stored in a vector database, and then issued as a map layer service in an OGC (Open Geographic Information Consortium) standard, each group of data corresponds to a map layer, the distribution of data can be visually demonstrated through the map layer, in actual work, it is sometimes necessary to merge multiple layers together to provide the map service in the form of a new layer, a common scheme is based on the mutual merging between the layers of shp (shape file developed by ESRI, an ESRI (environmental Systems Research institute) including a main file, an index file, and an ase table, wherein the suffix of the main file is shp), two shp files are imported into tool software, a merging tool is started, shp 1 is merged into shp 2 file, the fusion is completed. The method includes the steps that all layers are issued to serve as map layers of an OGC standard, then a new layer is fused in a graph layer group mode, the layer group can be added into the layers at will to obtain a new service address, the fused service address is registered as a new resource on a management platform, metadata description is added, and the fused layer serves as a new complete service to provide customer application and calling.
The layer fusion mainly aims to combine a plurality of services formed by a plurality of vector data into one service, and then provides the service for customers as a new service. After data are fused, the data need to be released again to provide calling for service, after the data are updated, the layers need to be fused, then the service is released, and the fusion operation needs to be repeated every time the data are updated, so that the operation is inconvenient.
In view of the above, those skilled in the art need to provide a method for fusing vector data layers and calling services based on a GIS to solve the problem that layer fusion can only perform point-to-point, line-to-line, and plane-to-plane fusion, which results in large limitations.
Disclosure of Invention
Technical problem to be solved
The invention aims to solve the technical problem that layer fusion can only carry out point-to-point, line-to-line and surface-to-surface fusion, so that the limitation is large.
(II) technical scheme
The invention provides a vector data layer fusion and service calling method based on a GIS (geographic information System), which comprises the following steps of:
respectively importing the data into a database, and sequentially generating a plurality of data tables in one-to-one correspondence;
respectively distributing the data tables to a plurality of layers in one-to-one correspondence;
fusing the layers to generate a fused layer;
registering the service address of the fusion layer as a fusion service and generating a gateway address on a management platform;
and when the call application of the fusion service is approved, calling the fusion service.
Further, importing the plurality of data into a database respectively, and sequentially generating a plurality of data tables corresponding to one another, specifically:
importing the plurality of data into a vector database by using a tool for storage; the data are vector data with position information, and comprise point data, line data and surface data.
Further, the step of respectively distributing the plurality of data tables to a plurality of layers in one-to-one correspondence specifically includes:
releasing each data table in a map server as a map layer service, and setting a layer style; wherein the layer style comprises an icon and a color.
Further, fusing the plurality of layers to generate a fused layer, specifically:
adding services to be fused into the layer group and randomly combining the services; wherein the service includes at least one of a point service, a line service, and an area service.
Further, registering the service address of the fusion layer as a fusion service and generating a gateway address on a management platform, specifically comprising the following steps:
registering the service address corresponding to each image layer as a fusion service in the management platform;
binding each fusion service and fusion resource one to one, and filling in metadata information of the fusion service;
and the platform gateway forwards the service address of the fusion resource to generate the gateway address.
Further, when the application for calling the fusion service is approved, the fusion service is called, specifically:
when the fusion service is applied to be called, the address of the fusion service is forwarded through the gateway, the user requests the gateway address and carries the mark information, the gateway performs access authentication, and the approved user gateway can be forwarded to the original address of the fusion service.
Further, the fused layer has a layer pattern of each layer.
Further, the method further comprises: and when the call application which does not pass the fusion service is checked, the access is refused.
(III) advantageous effects
The technical scheme of the invention has the following advantages:
the vector data layer fusion and service calling method based on the GIS, provided by the invention, respectively leads a plurality of data into a database, and sequentially generates a plurality of data tables which correspond one to one; respectively distributing the data tables to a plurality of layers in one-to-one correspondence; fusing the plurality of layers to generate a fused layer; registering a service address of a fusion layer as a fusion service on a management platform and generating a gateway address; and when the call application of the fusion service is checked to pass, calling the fusion service. Thematic vector data is issued in a map layer form to serve as a map, each thematic map layer corresponds to one service, and the method provides a method for fusing a plurality of map layer services into one service for a user to use. Two or more data sources can be used simultaneously in the converged new service, and metadata information of the service can be added to describe the metadata of the converged service. The point layer, the line layer and the surface layer can be fused at will, and can be fused with the point layer, the surface layer, the line layer and the surface layer, or the point layer and the surface layer simultaneously, and the fusion mode is diversified and flexible; the fusion layer has all patterns set by the sub-image layers; after the layers are fused, the layer service address can be directly obtained and used for registering on platform resources and registering metadata information of the service, so that the service can be conveniently described and identified; the gateway is added with a service gateway function, the gateway serves as a unified address for providing services to the outside, the original address of the service is not exposed to the outside, and an access authentication function is added in the gateway, so that the data security is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for fusing vector data layers and calling a service based on a GIS according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for fusing vector data layers and calling a service based on a GIS according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
An embodiment of the present invention provides a method for fusing vector data layers and calling a service based on a GIS, as shown in fig. 1, the method includes the following steps:
s1, importing the data into a database respectively, and sequentially generating a plurality of data tables corresponding to one another;
s2, respectively distributing the data tables to a plurality of layers in one-to-one correspondence;
s3, fusing the layers to generate a fused layer;
s4, registering the service address of the fusion layer as a fusion service on the management platform and generating a gateway address;
and S5, calling the fusion service when the call application of the fusion service is checked to pass.
In the embodiment, the point layer, the line layer and the surface layer can be fused at will, and can be fused with the point layer, the line layer, the surface layer, the line layer and the surface layer, or the point layer and the surface layer simultaneously, so that the fusion mode is diversified and flexible; the fusion layer has all patterns set by the sub-image layers; after the layers are fused, the layer service address can be directly obtained and used for registering on platform resources and registering metadata information of the service, so that the service can be conveniently described and identified; the gateway is added with a service gateway function, the gateway serves as a unified address for providing services to the outside, the original address of the service is not exposed to the outside, and an access authentication function is added in the gateway, so that the data security is improved.
In some optional embodiments, in step S1, the multiple data are respectively imported into the database, and a plurality of data tables corresponding to one another are sequentially generated, specifically:
importing a plurality of data into a vector database by using a tool for storage; the data are vector data with position information, including point data, line data and surface data.
Specifically, a PostGIS vector database can be adopted in the vector database, the PostGIS is an extension of the object relational database system PostgreSQL, and the PostGIS provides a spatial information service function including a spatial object, a spatial index, a spatial operation function and a spatial operator. Meanwhile, PostGIS follows the specifications of OpenGIS. PostGIS supports all spatial data types including POINT (POINT), Line (LINESTRING), POLYGON (POLYGON), multi-POINT (MULTIPOINT), multi-line (MULTIPINESTRINGS), multi-POLYGON (MULTIPOLYGON), and set object set (GEOMETRYCOLLECTION).
In some optional embodiments, in step S2, the multiple data tables are respectively distributed in multiple layers corresponding to one another, specifically:
issuing each data table in a map server as a map layer service, and setting a layer style; wherein, the layer style comprises an icon and a color.
In some optional embodiments, in step S3, fusing the plurality of layers to generate a fused layer, specifically:
adding services to be fused into the layer group and randomly combining the services; wherein the service includes at least one of a point service, a line service, and an area service.
In some optional embodiments, registering the service address of the convergence layer as the convergence service and generating the gateway address in the management platform, in step S4, specifically includes the following steps:
registering the service address corresponding to each image layer as a fusion service in the management platform;
binding each fusion service and the fusion resource one to one, and filling in metadata information of the fusion service;
and the platform gateway forwards the service address of the fusion resource to generate a gateway address.
In some optional embodiments, in step S5, when the application for calling of the fusion service is checked, the fusion service is called, specifically:
when applying for calling the fusion service, the address of the fusion service is forwarded through the gateway, the user requests the gateway address and takes the mark information, the gateway performs access authentication, and the approved user gateway can be forwarded to the original address of the fusion service.
In some optional embodiments, in step S1, the fused layer has a layer pattern for each layer.
In some optional embodiments, in step S1, the method further comprises: and when the call application which does not pass the fusion service is checked, the access is refused.
According to an embodiment of the present invention, another method for fusing vector data layers and calling services based on a GIS is provided, as shown in fig. 2, the method includes the following steps:
s201, respectively importing the data into a database, and sequentially generating a plurality of data tables in one-to-one correspondence;
s202, respectively distributing a plurality of data tables to a plurality of layers in one-to-one correspondence;
s203, fusing each image layer to generate a fused image layer;
s204, registering the service address of the fusion layer as a fusion service on the management platform and generating a gateway address;
s205, judging whether the audit of the calling application passes; if yes, go to step S206, otherwise go to step S207.
S206, forwarding to the original address of the converged service.
And S207, access is denied.
The present invention will be described in detail with reference to the following examples
Example 1
And (3) point and point layer fusion:
respectively importing the point vector data in the two shp file formats into a PostGIS database to generate data tables pointTable1 (point data table 1) and pointTable2 (point data table 2);
respectively issuing a pointTable1, a pointTable2 layer service pointServer1 (point service 1) and a pointServer2 (point service 2) in a map server geoserver;
publishing a map layer group service pointGroupServer1 (point group service 1) in a map server geoserver (geographic server), adding a pointServer1 map layer and a pointServer2 map layer as sub-map layers, and generating a new service address pointGroupServer1 of a fusion map layer;
registering the service address of the fusion layer on a resource node of the platform, adding metadata description information, generating a gateway service address and providing user call;
a user applies for calling the fusion service on the platform, and the user can use the fusion service after the background audit is passed;
when the user uses the fusion service, the address of the fusion service is forwarded through the gateway, the user requests the address of the gateway and carries token information, the gateway performs access authentication, the approved user gateway can be forwarded to the original address of the service, and the user gateway which does not pass the authentication can refuse the access, thereby ensuring the safety of data use.
Example 2
And (3) fusing the point with the surface layer:
respectively importing the point vector data and the face vector data of the two shp file formats into a PostGIS database to generate data tables pointTable1 and polygonTable2 (face data table 2);
respectively issuing a pointTable1, a layer service pointServer1 and a polygonServer2 (face server 2) of a polygonTable2 in a map server geoserver;
a map server geoserver publishes a map layer group service pointPolygonGroupServer1 (a point-face group server 1), adds a pointServer1 map layer and a polyGonServer2 map layer as sub-map layers, and generates a new service address pointPolygonGroupServer1 of a fused map layer;
registering the service address of the fusion layer on a resource node of the platform, adding metadata description information, generating a gateway service address and providing user call;
a user applies for calling the fusion service on the platform, and the user can use the fusion service after the background audit is passed;
when the user uses the fusion service, the fusion service address is forwarded through the gateway, the user requests the gateway address and takes token information, the gateway performs access authentication, the user gateway which passes the authentication can forward the original address of the service, and the user gateway which does not pass the authentication can refuse the access, thereby ensuring the safety of data use.
Example 3
And (3) fusing points and lines with a surface layer:
the point, line and surface vector data of three shp file formats are respectively imported into a PostGIS database to generate data tables pointTable1, lineTable2 (line data table 2) and polygonTable 3;
layer services pointServer1, lineServer2 (line Server 2) and polyGonServer3 of pointTable1, lineTable2 and polyGonTable3 are respectively issued in a map server geoserver;
a map server geoserver issues a map layer group service pointlinegolygogegroupServer 1 (a point-line-surface group server 1), a pointServer1 map layer, a lineServer2 map layer and a polyganServer 3 map layer are added as sub-map layers, and a new service address pointlinegolygogegroupServer 1 of a fusion map layer is generated;
registering the service address of the fusion layer on a resource node of the platform, adding metadata description information, generating a gateway service address and providing user call;
a user applies for calling the fusion service on the platform, and the user can use the fusion service after the background audit is passed;
when the user uses the fusion service, the address of the fusion service is forwarded through the gateway, the user requests the gateway address and carries the marking information, the gateway performs access authentication, the user gateway which passes the authentication can be forwarded to the original address of the service, and the user gateway which does not pass the authentication can refuse the access, thereby ensuring the safety of data use.
It should be clear that the embodiments in this specification are described in a progressive manner, and the same or similar parts in the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The present invention is not limited to the specific steps and structures described above and shown in the drawings. Also, a detailed description of known process techniques is omitted herein for the sake of brevity.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and alterations to this application will become apparent to those skilled in the art without departing from the scope of this invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (7)
1. A GIS-based vector data layer fusion and service calling method is characterized by comprising the following steps:
respectively importing the data into a database, and sequentially generating a plurality of data tables in one-to-one correspondence;
respectively distributing the data tables to a plurality of layers in one-to-one correspondence;
fusing the layers to generate a fused layer;
registering the service address of the fusion layer as a fusion service and generating a gateway address on a management platform;
when the fusion service is applied to be called, the address of the fusion service is forwarded through the gateway, the user requests the gateway address and carries the mark information, the gateway performs access authentication, and the approved user gateway can be forwarded to the original address of the fusion service.
2. The GIS-based vector data layer fusion and service invocation method according to claim 1, characterized by importing a plurality of data into a database respectively, sequentially generating a plurality of data tables in one-to-one correspondence, specifically:
importing the plurality of data into a vector database by using a tool for storage; the data are vector data with position information, and comprise point data, line data and surface data.
3. The GIS-based vector data layer fusion and service invocation method according to claim 1, characterized in that the plurality of data tables are respectively distributed to a plurality of layers in a one-to-one correspondence, specifically:
releasing each data table in a map server as a map layer service, and setting a layer style; wherein the layer style comprises an icon and a color.
4. The GIS-based vector data layer fusion and service invocation method according to claim 1, characterized in that fusing the plurality of layers to generate a fused layer specifically is:
adding services to be fused into the layer group and randomly combining the services; wherein the service includes at least one of a point service, a line service, and an area service.
5. The GIS-based fusion and service invocation method of vector data layers according to claim 1, characterized in that registering a service address of the fusion layer as a fusion service and generating a gateway address on a management platform specifically comprises the following steps:
registering the service address corresponding to each image layer as a fusion service in the management platform;
binding each fusion service and fusion resource one to one, and filling in metadata information of the fusion service;
and the platform gateway forwards the service address of the fusion resource to generate the gateway address.
6. The GIS-based fusion of vector data layers and service invocation method according to claim 1, wherein said fusion layer has a layer pattern for each of said layers.
7. The GIS-based vector data layer fusion and service invocation method according to claim 1, further comprising: and when the call application which does not pass the fusion service is checked, the access is refused.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011205834.8A CN112417071B (en) | 2020-11-02 | 2020-11-02 | Vector data layer fusion and service calling method based on GIS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011205834.8A CN112417071B (en) | 2020-11-02 | 2020-11-02 | Vector data layer fusion and service calling method based on GIS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112417071A CN112417071A (en) | 2021-02-26 |
CN112417071B true CN112417071B (en) | 2021-10-26 |
Family
ID=74827327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011205834.8A Active CN112417071B (en) | 2020-11-02 | 2020-11-02 | Vector data layer fusion and service calling method based on GIS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112417071B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105069118A (en) * | 2015-08-11 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | GIS configuration-based application scene management method and system |
CN106203491A (en) * | 2016-07-01 | 2016-12-07 | 交通运输部路网监测与应急处置中心 | A kind of fusion update method of highway vector data |
CN107066542A (en) * | 2017-03-14 | 2017-08-18 | 中国科学院计算技术研究所 | Vector space overlay analysis parallel method and system in GIS-Geographic Information System |
CN108510570A (en) * | 2018-04-09 | 2018-09-07 | 长沙市海图科技有限公司 | Go out drawing method and device based on standard map service |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080307498A1 (en) * | 2006-12-27 | 2008-12-11 | Waterstone Environmental Hydrology & Engineering, Inc. | Access control for server-based geographic information system |
CN103678705B (en) * | 2013-12-30 | 2016-07-13 | 南京大学 | A kind of VCT file is to the vector data Parallel transformation method of shapefile file |
CN106202495A (en) * | 2016-07-19 | 2016-12-07 | 浪潮软件集团有限公司 | Scene Information Integration Method Based on Internet GIS |
-
2020
- 2020-11-02 CN CN202011205834.8A patent/CN112417071B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105069118A (en) * | 2015-08-11 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | GIS configuration-based application scene management method and system |
CN106203491A (en) * | 2016-07-01 | 2016-12-07 | 交通运输部路网监测与应急处置中心 | A kind of fusion update method of highway vector data |
CN107066542A (en) * | 2017-03-14 | 2017-08-18 | 中国科学院计算技术研究所 | Vector space overlay analysis parallel method and system in GIS-Geographic Information System |
CN108510570A (en) * | 2018-04-09 | 2018-09-07 | 长沙市海图科技有限公司 | Go out drawing method and device based on standard map service |
Non-Patent Citations (2)
Title |
---|
Knowledge-driven image mining system for Big Earth Observation data fusion: GIS maps inclusion in active learning stage;Kevin Alonso et al;《2014 IEEE Geoscience and Remote Sensing Symposium》;20141106;第231-235页 * |
基于开源技术的WebGIS***构建与应用;杨英杰;《中国优秀硕士学位论文全文数据库 信息科技辑》;20141115;第2014年卷(第11期);第I138-191页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112417071A (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255905B (en) | Interface calls data processing method, device and computer equipment | |
CN111240763B (en) | Configuration updating method, device, equipment and storage medium | |
US9047462B2 (en) | Computer account management system and realizing method thereof | |
CN106920204B (en) | Method and system for issuing interface service | |
CN107038200A (en) | Business data processing method and system | |
CN105426465A (en) | Method and device for online exporting statements | |
CN101952830A (en) | Methods and systems for user authorization | |
CN112182622A (en) | Authority management system design method based on resource control | |
CN104272259A (en) | System and method for supporting version based routing in a transactional middleware machine environment | |
CN111367945A (en) | Report query method, device, equipment and computer readable storage medium | |
CN116802628A (en) | Data management and query method and device, service grid system and computing equipment | |
CN100396002C (en) | System and method for identifying authority using relative inquire | |
CN102281302A (en) | resource access processing method and system | |
CN112417071B (en) | Vector data layer fusion and service calling method based on GIS | |
CN107122362A (en) | Cloud database resource extends the method and system with service extension | |
CN112580143A (en) | Assembly type building cooperative cloud platform based on BIM | |
CN106230616B (en) | A kind of service configuration information processing method and system | |
CN108388809B (en) | Data range control method and system | |
CN105227781A (en) | A kind of method and system of mobile terminal configuration | |
CN107145606A (en) | A kind of data managing method and device | |
CN107690037B (en) | List distribution method and device | |
CN110851512A (en) | Data configuration method and device for open source framework | |
CN112073507B (en) | Geographic information system, application configuration method and APP client loading method | |
CN111639202B (en) | Same-layer storage method, device, medium and equipment for geographic information data | |
CN103577465A (en) | System data processing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |