CN115379011A - Data processing method and device applied to geographic information system service - Google Patents

Data processing method and device applied to geographic information system service Download PDF

Info

Publication number
CN115379011A
CN115379011A CN202210980479.4A CN202210980479A CN115379011A CN 115379011 A CN115379011 A CN 115379011A CN 202210980479 A CN202210980479 A CN 202210980479A CN 115379011 A CN115379011 A CN 115379011A
Authority
CN
China
Prior art keywords
filter
resource
resource information
target
information
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
CN202210980479.4A
Other languages
Chinese (zh)
Other versions
CN115379011B (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.)
Shanghai Shuhui System Technology Co ltd
Original Assignee
Shanghai Shuhui System Technology Co ltd
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 Shanghai Shuhui System Technology Co ltd filed Critical Shanghai Shuhui System Technology Co ltd
Publication of CN115379011A publication Critical patent/CN115379011A/en
Application granted granted Critical
Publication of CN115379011B publication Critical patent/CN115379011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention discloses a data processing method and a device applied to geographic information system service, which are applied to a proxy server and comprise the following steps: receiving an access request aiming at a GIS service; determining a page resource matched with the access request in the proxy page resource, wherein the proxy page resource is resource information obtained by proxy of the page resource of the original access link; extracting resources from the page resources to obtain resource information; and processing the resource information by using a target filter chain to obtain target resource information, and returning the target resource information to a request end corresponding to the access request, wherein the target filter chain comprises a group of filters with association relation, and each filter has different filter conditions so as to process the resource information through the filter conditions. The invention realizes the purpose of service agent and improves the accuracy of different control of resource information.

Description

Data processing method and device applied to geographic information system service
The present application claims priority of chinese patent application entitled "a data processing method and apparatus for use in a geographic information system service" filed by the chinese patent office at 25/4/2022, application No. 202210442114.6, which is filed by 2022.
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and apparatus applied to geographic information system services.
Background
A GIS (Geographic Information System) is a technology for acquiring, processing, managing and analyzing geospatial data, and any application program related to spatial location can adopt the GIS technology. At present, a plurality of service platforms of the GIS technology can be realized, so that the problems of diversified service release, diversified service analysis modes, incapability of realizing authority management and control on the service and the like can be caused.
Disclosure of Invention
In view of the above problems, the present invention provides a data processing method and apparatus applied to geographic information system services, which achieve the purpose of service brokering and improve the accuracy of performing different management and control on resource information.
In order to achieve the purpose, the invention provides the following technical scheme:
a data processing method applied to geographic information system service is applied to a proxy server side, and the method comprises the following steps:
receiving an access request aiming at a Geographic Information System (GIS) service;
determining a page resource matched with the access request in the proxy page resource, wherein the proxy page resource is resource information obtained by proxy of the page resource of the original access link;
extracting resources from the page resources to obtain resource information;
and processing the resource information by using a target filter chain to obtain target resource information, and returning the target resource information to a request end corresponding to the access request, wherein the target filter chain comprises a group of filters with association relation, and each filter has different filter conditions so as to process the resource information through the filter conditions.
Optionally, the extracting the resource of the page resource to obtain resource information includes:
performing static resource extraction on the page resource to obtain a static resource;
and processing the resource containing the target label in the static resource to obtain the processed resource, and determining the processed resource as resource information.
Optionally, the target filter chain includes a cross-domain filter, an authorization filter, and a log filter, where the processing the resource information by using the target filter includes:
determining whether the resource information and a request end corresponding to the current access request belong to a homologous resource by using the cross-domain filter to obtain a determination result;
generating response header information in the target resource information based on the determination result;
determining whether a request end corresponding to the access request meets the authority for applying the resource information or not by using the authorization filter to obtain authority verification information;
and obtaining log record information corresponding to the resource information by using the log filter.
Optionally, the target filter chain includes a global filter, a cache filter, a routing filter, and a service filter, where the processing the resource information by using the target filter chain includes:
performing service authority verification on the resource information by using the global filter to determine service adding parameters;
caching the resource information by using the cache filter to obtain cache resources;
changing a proxy address to an original address based on the routing filter and generating a request, transmitting the request to the target filter chain;
determining whether the proxy service request has a request header for authority based on the service filter, and if so, splicing the processed proxy service request to the access request.
Optionally, the target filter chain includes a hierarchical filter and a global response filter, wherein the processing the resource information by the target filter chain includes:
data clipping is carried out on the resource information according to the administrative region corresponding to the access request based on the hierarchical filter, information of a clipping head is obtained, and target resource information is determined through the information of the clipping head;
and processing the page resource based on the global response filter to obtain target resource information.
A data processing device applied to geographic information system service is applied to a proxy server side, and the device comprises:
the receiving unit is used for receiving an access request aiming at the GIS service;
a determining unit, configured to determine, in the proxy page resource, a page resource that matches the access request, where the proxy page resource is resource information obtained by proxying a page resource of an original access link;
the extraction unit is used for extracting resources from the page resources to obtain resource information;
and the processing unit is used for processing the resource information by using a target filter chain to obtain target resource information and returning the target resource information to a request end corresponding to the access request, wherein the target filter chain comprises a group of filters with association relations, and each filter has different filter conditions so as to process the resource information through the filter conditions.
Optionally, the extraction unit comprises:
the extraction subunit is used for performing static resource extraction on the page resource to obtain a static resource;
and the first processing subunit is configured to process the resource including the target tag in the static resource to obtain a processed resource, and determine the processed resource as resource information.
Optionally, the target filter chain comprises a cross-domain filter, an authorization filter, and a log filter, wherein the processing unit comprises:
the first determining subunit is configured to determine, by using the cross-domain filter, whether the resource information and a request end corresponding to the current access request belong to a same resource, and obtain a determination result;
a second determining subunit, configured to generate response header information in the target resource information based on the determination result;
a third determining subunit, configured to determine, by using the authorization filter, whether a request end corresponding to the current access request satisfies a permission for applying the resource information, to obtain permission verification information;
and the first acquisition subunit is used for acquiring the log record information corresponding to the resource information by using the log filter.
Optionally, the target filter chain includes a global filter, a cache filter, a routing filter, and a service filter, wherein the processing unit includes:
the first checking subunit is used for carrying out service authority checking on the resource information by using the global filter and determining a service adding parameter;
the cache subunit is configured to cache the resource information by using the cache filter to obtain a cache resource;
an address change subunit, configured to change a proxy address to an original address based on the routing filter, generate a request, and transmit the request to the target filter chain;
and the fourth determining subunit is used for determining whether the proxy service request has a request header with authority based on the service filter, and if so, splicing the processed proxy service request to the access request.
Optionally, the target filter chain comprises a hierarchical filter and a global response filter, wherein the processing unit comprises:
the data cutting subunit is used for carrying out data cutting on the resource information according to the administrative region corresponding to the access request based on the hierarchical filter to obtain information of a cutting head so as to determine target resource information through the information of the cutting head;
and the second processing subunit is used for processing the page resource based on the global response filter to obtain target resource information.
Compared with the prior art, the invention provides a data processing method and a device applied to geographic information system service, which are applied to a proxy server and comprise the following steps: receiving an access request aiming at a Geographic Information System (GIS) service; determining a page resource matched with the access request in the proxy page resource, wherein the proxy page resource is resource information obtained by proxy of the page resource of the original access link; performing resource extraction on the page resource to obtain resource information; and processing the resource information by using a target filter chain to obtain target resource information, and returning the target resource information to a request end corresponding to the access request, wherein the target filter chain comprises a group of filters with association relation, and each filter has different filter conditions so as to process the resource information through the filter conditions. The invention realizes the unified management of the access request of the third-party platform through the proxy server, realizes the hierarchical management and control of the service through the proxy of the page resource, realizes the purpose of service proxy, and improves the accuracy of different management and control of the resource information.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data processing method applied to a geographic information system service according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the processing of each filter of a target filter chain according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus applied to a geographic information system service according to an embodiment of 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.
The terms "first" and "second," and the like in the description and claims of the present invention and in the above-described drawings, are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not set forth for a listed step or element but may include steps or elements not listed.
The embodiment of the invention provides a data processing method applied to geographic information system service, which is applied to a proxy server, wherein the proxy server can be a server with a reverse proxy function, and the specific architecture of the proxy server is not limited. Referring to fig. 1, the method may include the steps of:
s101, receiving an access request aiming at the GIS service.
The access request is generated by a third-party platform capable of accessing the GIS service, for example, arcgis, hypergraph, and third-party open source GIS platform, and the access request refers to a request for accessing relevant information in the GIS service.
It should be noted that, a user accesses relevant information through an agent link of the agent server, the agent link is a link address generated for an original link, and can access an agent page resource corresponding to the original link, the agent page resource is matched with the page resource of the original link, and the page resource can be processed based on characteristic information corresponding to an access request, such as filtering, layering, right control, hierarchical presentation, and the like.
S102, determining page resources matched with the access request in the proxy page resources.
The proxy page resource is resource information obtained by proxy of the page resource of the original access link.
S103, extracting resources of the page resources to obtain resource information.
To implement proxy of a page, it is necessary to make sure that the resources of the page are essentially static resources of html and js. Specifically, the extracting the resource of the page resource to obtain the resource information includes: performing static resource extraction on the page resource to obtain a static resource; and processing the resource containing the target label in the static resource to obtain the processed resource, and determining the processed resource as resource information. The target tag refers to an < a > tag included in the static resource. The < a > tag contained in the static resource is processed into the proxied resource, so that the processing is the protection of the original resource and is also the requirement of the service proxy.
And S104, processing the resource information by using a target filter chain to obtain target resource information, and returning the target resource information to a request end corresponding to the access request.
The target filter chain comprises a group of filters with incidence relation, each filter has different filter conditions, and the resource information is processed through the filter conditions to obtain the target resource information. And the target filter is used for carrying out service hierarchical management and control processing on the resource information. The processing of the request response head is realized through the target filter chain, namely the association processing is carried out on the requested resource information, the processing comprises the processing of the resource information, the verification of the authority of a requester requesting the resource information and the processing process after the resource information is proxied.
In particular, the above-described functions may be achieved by different filters. When the target filter chain includes a cross-domain filter, an authorization filter and a log filter, the processing the resource information by using the target filter includes: determining whether the resource information and a request end corresponding to the current access request belong to a homologous resource by using the cross-domain filter to obtain a determination result; generating response header information in the target connection based on the determination result; determining whether a request end corresponding to the access request meets the authority for applying the resource information or not by using the authorization filter to obtain authority verification information; and obtaining log record information corresponding to the resource information by using the log filter.
In this embodiment, whether the access request is the homologous information or not, the authority information of the requesting end corresponding to the access request, and the like may be verified, so that management and control of different conditions can be performed.
When the target filter chain includes a global filter, a cache filter, a routing filter and a service filter, wherein the processing the resource information by using the target filter chain includes: performing service authority verification on the resource information by using the global filter to determine service adding parameters; caching the resource information by using the cache filter to obtain cache resources; changing a proxy address to an original address based on the routing filter and generating a request, transmitting the request to the target filter chain; determining whether the proxy service request has a request header of the authority based on the service filter, and if so, splicing the processed proxy service request to the access request.
When the target filter chain comprises a hierarchical filter and a global response filter, wherein the processing the resource information by using the target filter chain comprises:
data clipping is carried out on the resource information according to the administrative region corresponding to the access request based on the hierarchical filter, information of a clipping head is obtained, and target resource information is determined through the information of the clipping head;
and processing the page resource based on the global response filter to obtain target resource information.
The invention is applied to the geographic information system, so that the page resource information corresponding to the access request can be extracted and filtered through the information such as the region area corresponding to the access request, for example, the attribute characteristics of the access request indicate that the request is from the city A, the information of the city A can be extracted from the finally matched page resource information as a return result, and more accurate information processing is realized.
Specifically, referring to fig. 2, a schematic processing diagram of each filter of a target filter chain according to an embodiment of the present invention is provided.
A cross-domain Filter (Cors Filter) aims to solve the problem that a third party calls a cross-domain by means of homologous strategy, the Filter avoids the cross-domain problem when being exposed to the third party, and the request head judges that if the third party uses a CORS cross-domain, request heads such as Access-Control-Allow-Origin, access-Control-Allow-Headers, access-Control-Allow-Methods, access-Control-Allow-creatives and the like are added into a response head. Among them, CORS (Cross-origin resource sharing). CORS needs the simultaneous support of a browser and a server to realize cross-domain request.
The authorization Filter (Auth Filter) is to authenticate the service path, and only if the user is assigned with the right in the management section page or the user successfully applies for the right of the resource, the service resource can be acquired.
The Log Filter (Log Filter) can realize link tracking, service calling statistics, service monitoring and access statistics through Log records.
The Global Filter (Global Filter) is used for checking service authority and adding necessary parameters to the service.
Wherein authenticating the service comprises:
and checking the mode of carrying the token by the access resource, wherein the token can be carried in the request header or the request path.
And detecting the white list, wherein the permission can be completely opened through white list configuration for part of applications, and whether the access permission is provided is determined by verifying identity information of an access request end.
The Cache Filter (Cache Filter) adds Cache for service access, improves service performance after proxy, and can also improve service access speed through proxy.
The Route Filter (Proxy Route Gate Way Filter) is used for Proxy routing, changes the Proxy address into the original address, sends out a request, and transmits the result after the request into the Filter chain.
And a Service Token Filter (Service Token Filter) checks whether the Service needs to carry a Token or not, judges whether a proxy Service request carries a Token request header or not, and if the proxy Service request has a request path which needs to be processed and spliced to an original Service path, realizes proxy of the GIS Service which needs authentication. Token refers to a token in computer authentication, and represents an object of right to perform some operation.
A hierarchical Filter (Layer Level Filter) checks whether the service needs hierarchical classification, the Filter is used for solving hierarchical classification management and control, here, data is cut through administrative division, and the cut picture is returned to a front-end rendering page. For example, the source of the IP address of the access request is a city a, the corresponding access content is a map, and the map of the city a can be extracted from the entire map as a result of the map being put back.
The Global Response Filter (Global Response Filter) is used for rewriting request Response data, and is used for reprocessing an original service return page, the url linked in the page is mainly modified, the modification rule is shown as follows, for example, the arcgis service Response content replacement rule is matched with an http:// ip: port/arcgis/] service path and is replaced by an http:// ip: port/dus// arcgis ], and addresses of other skipped resources of the page can be replaced by proxy addresses and returned to a caller through the replacement rule.
The system can further comprise another log Filter (DusLog Filter) for recording service access logs, wherein the log collection and interception of the cloud service platform are used for applying for state and process recording for the service.
A Netty Routing Filter (Netty Routing Filter) is used to request a real url to obtain data.
The data processing method applied to the geographic information system service provided by the embodiment of the invention can uniformly manage the authority of a third-party service platform; service permission can be distributed, and the problems that different mechanisms do not share service and share trouble are solved. The hierarchical management and control of the service are realized, the service can be added with a cache after the agent, and the service access efficiency can be improved.
In an embodiment of the present invention, a data processing apparatus applied to a geographic information system service is further provided, and is applied to a proxy server, referring to fig. 3, where the apparatus includes:
a receiving unit 10, configured to receive an access request for a geographic information system GIS service;
a determining unit 20, configured to determine, in the proxy page resource, a page resource that matches the access request, where the proxy page resource is resource information obtained by proxy of a page resource of an original access link;
an extracting unit 30, configured to perform resource extraction on the page resource to obtain resource information;
and the processing unit 40 is configured to process the resource information by using a target filter chain, obtain target resource information, and return the target resource information to a request end corresponding to the access request. Wherein the target filter chain comprises a group of filters with association relations, each filter has different filtering conditions, so as to process the resource information through the filtering conditions.
Further, the extraction unit includes:
the extraction subunit is used for performing static resource extraction on the page resource to obtain a static resource;
and the first processing subunit is configured to process the resource including the target tag in the static resource to obtain a processed resource, and determine the processed resource as resource information.
In one embodiment, the target filter chain comprises a cross-domain filter, an authorization filter, and a log filter, wherein the processing unit comprises:
the first determining subunit is configured to determine, by using the cross-domain filter, whether the resource information and a request end corresponding to the current access request belong to a same resource, and obtain a determination result;
a second determining subunit, configured to generate response header information in the target resource information based on the determination result;
a third determining subunit, configured to determine, by using the authorization filter, whether a request end corresponding to the access request satisfies a permission for applying the resource information, to obtain permission verification information;
and the first acquisition subunit is used for acquiring the log record information corresponding to the resource information by using the log filter.
In another embodiment, the target filter chain comprises a global filter, a cache filter, a routing filter, and a service filter, wherein the processing unit comprises:
the first checking subunit is used for carrying out service authority checking on the resource information by using the global filter and determining a service adding parameter;
the cache subunit is configured to cache the resource information by using the cache filter to obtain a cache resource;
an address change subunit, configured to change a proxy address to an original address based on the routing filter, generate a request, and transmit the request to the target filter chain;
and the fourth determining subunit is used for determining whether the proxy service request has a request header with authority based on the service filter, and if so, splicing the processed proxy service request to the access request.
Further, the target filter chain comprises a hierarchical filter and a global response filter, wherein the processing unit comprises:
the data cutting subunit is used for carrying out data cutting on the resource information according to the administrative region corresponding to the access request based on the hierarchical filter to obtain information of a cutting head so as to determine target resource information through the information of the cutting head;
a second processing subunit, configured to process the page resource based on the global response filter to obtain target resource information
Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of a data processing method applied to a geographic information system service as any one of the above.
An embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of a data processing method applied to a geographic information system service.
The Processor or the CPU may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic device implementing the above-described processor function may be other electronic devices, and the embodiments of the present application are not limited in particular.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), and the like; but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data processing method applied to geographic information system service is characterized in that the method is applied to a proxy server side, and the method comprises the following steps:
receiving an access request aiming at a Geographic Information System (GIS) service;
determining a page resource matched with the access request in the proxy page resource, wherein the proxy page resource is resource information obtained by proxy of the page resource of the original access link;
performing resource extraction on the page resource to obtain resource information;
and processing the resource information by using a target filter chain to obtain target resource information, and returning the target resource information to a request end corresponding to the access request, wherein the target filter chain comprises a group of filters with incidence relation, and each filter has different filter conditions so as to process the resource information through the filter conditions.
2. The method according to claim 1, wherein the extracting the resources from the page resources to obtain resource information comprises:
performing static resource extraction on the page resource to obtain a static resource;
and processing the resources containing the target labels in the static resources to obtain the processed resources, and determining the processed resources as resource information.
3. The method of claim 1, wherein the target filter chain comprises a cross-domain filter, an authorization filter, and a log filter, and wherein the processing the resource information with the target filter comprises:
determining whether the resource information and a request end corresponding to the current access request belong to a homologous resource by using the cross-domain filter to obtain a determination result;
generating response header information in the target resource information based on the determination result;
determining whether a request end corresponding to the access request meets the authority for applying the resource information or not by using the authorization filter to obtain authority verification information;
and obtaining log record information corresponding to the resource information by using the log filter.
4. The method of claim 1, wherein the target filter chain comprises a global filter, a cache filter, a routing filter, and a service filter, and wherein the processing the resource information using the target filter chain comprises:
performing service authority verification on the resource information by using the global filter to determine service adding parameters;
caching the resource information by using the cache filter to obtain cache resources;
changing a proxy address to an original address based on the routing filter and generating a request, transmitting the request to the target filter chain;
determining whether the proxy service request has a request header for authority based on the service filter, and if so, splicing the processed proxy service request to the access request.
5. The method of claim 1, wherein the target filter chain comprises a hierarchical filter and a global response filter, and wherein the processing the resource information with the target filter chain comprises:
performing data cutting on the resource information according to administrative regions corresponding to the access requests based on the hierarchical filter to obtain information of cutting heads, and determining target resource information through the information of the cutting heads;
and processing the page resource based on the global response filter to obtain target resource information.
6. A data processing device applied to geographic information system service is characterized in that the data processing device is applied to a proxy server side, and the device comprises:
the receiving unit is used for receiving an access request aiming at the GIS service;
a determining unit, configured to determine, in the proxy page resource, a page resource that matches the access request, where the proxy page resource is resource information obtained by proxy of a page resource of an original access link;
the extraction unit is used for extracting resources from the page resources to obtain resource information;
and the processing unit is used for processing the resource information by using a target filter chain to obtain target resource information and returning the target resource information to a request end corresponding to the access request, wherein the target filter chain comprises a group of filters with association relations, and each filter has different filter conditions so as to process the resource information through the filter conditions.
7. The apparatus of claim 6, wherein the extraction unit comprises:
the extraction subunit is used for performing static resource extraction on the page resource to obtain a static resource;
and the first processing subunit is configured to process the resource including the target tag in the static resource to obtain a processed resource, and determine the processed resource as resource information.
8. The apparatus of claim 6, wherein the target filter chain comprises a cross-domain filter, an authorization filter, and a log filter, wherein the processing unit comprises:
the first determining subunit is configured to determine, by using the cross-domain filter, whether the resource information and a request end corresponding to the current access request belong to a same resource, and obtain a determination result;
a second determining subunit, configured to generate response header information in the target resource information based on the determination result;
a third determining subunit, configured to determine, by using the authorization filter, whether a request end corresponding to the access request satisfies a permission for applying the resource information, to obtain permission verification information;
and the first acquisition subunit is used for acquiring the log record information corresponding to the resource information by using the log filter.
9. The apparatus of claim 6, wherein the target filter chain comprises a global filter, a cache filter, a routing filter, and a service filter, wherein the processing unit comprises:
the first checking subunit is used for carrying out service authority checking on the resource information by using the global filter and determining a service adding parameter;
the cache subunit is configured to cache the resource information by using the cache filter to obtain a cache resource;
an address change subunit, configured to change a proxy address to an original address based on the routing filter, generate a request, and transmit the request to the target filter chain;
and the fourth determining subunit is used for determining whether the proxy service request has a request header with authority based on the service filter, and if so, splicing the processed proxy service request to the access request.
10. The apparatus of claim 6, wherein the target filter chain comprises a hierarchical filter and a global response filter, and wherein the processing unit comprises:
the data cutting subunit is used for carrying out data cutting on the resource information according to the administrative region corresponding to the access request based on the hierarchical filter to obtain information of a cutting head so as to determine target resource information through the information of the cutting head;
and the second processing subunit is used for processing the page resource based on the global response filter to obtain target resource information.
CN202210980479.4A 2022-04-25 2022-08-16 Data processing method and device applied to geographic information system service Active CN115379011B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210442114 2022-04-25
CN2022104421146 2022-04-25

Publications (2)

Publication Number Publication Date
CN115379011A true CN115379011A (en) 2022-11-22
CN115379011B CN115379011B (en) 2024-04-26

Family

ID=84066708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210980479.4A Active CN115379011B (en) 2022-04-25 2022-08-16 Data processing method and device applied to geographic information system service

Country Status (1)

Country Link
CN (1) CN115379011B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website
WO2018028070A1 (en) * 2016-08-10 2018-02-15 成都秦川科技发展有限公司 Smart city system structure
CN110213163A (en) * 2019-05-24 2019-09-06 深圳壹账通智能科技有限公司 A kind of routing conversion and device based on nginx and zuul
CN110493250A (en) * 2019-09-02 2019-11-22 浪潮软件股份有限公司 A kind of WEB front-end ARCGIS resource request processing method and processing device
CN111371809A (en) * 2020-03-27 2020-07-03 武大吉奥信息技术有限公司 Server based on reverse proxy architecture and GIS service access control method
CN111970162A (en) * 2020-10-26 2020-11-20 武大吉奥信息技术有限公司 Heterogeneous GIS platform service central control system under super-integration framework
CN112162728A (en) * 2020-09-18 2021-01-01 华航环境发展有限公司 BIM and GIS-based system architecture establishing method
CN112632427A (en) * 2020-12-25 2021-04-09 航天信息股份有限公司 Page static resource management system and method based on front-end agent
CN113886735A (en) * 2021-09-24 2022-01-04 浪潮云信息技术股份公司 Nginx-based static resource and data caching method and system
CN114006757A (en) * 2021-10-29 2022-02-01 京东方科技集团股份有限公司 GIS service access control method, device, framework, medium and equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website
WO2018028070A1 (en) * 2016-08-10 2018-02-15 成都秦川科技发展有限公司 Smart city system structure
CN110213163A (en) * 2019-05-24 2019-09-06 深圳壹账通智能科技有限公司 A kind of routing conversion and device based on nginx and zuul
CN110493250A (en) * 2019-09-02 2019-11-22 浪潮软件股份有限公司 A kind of WEB front-end ARCGIS resource request processing method and processing device
CN111371809A (en) * 2020-03-27 2020-07-03 武大吉奥信息技术有限公司 Server based on reverse proxy architecture and GIS service access control method
CN112162728A (en) * 2020-09-18 2021-01-01 华航环境发展有限公司 BIM and GIS-based system architecture establishing method
CN111970162A (en) * 2020-10-26 2020-11-20 武大吉奥信息技术有限公司 Heterogeneous GIS platform service central control system under super-integration framework
CN112632427A (en) * 2020-12-25 2021-04-09 航天信息股份有限公司 Page static resource management system and method based on front-end agent
CN113886735A (en) * 2021-09-24 2022-01-04 浪潮云信息技术股份公司 Nginx-based static resource and data caching method and system
CN114006757A (en) * 2021-10-29 2022-02-01 京东方科技集团股份有限公司 GIS service access control method, device, framework, medium and equipment

Also Published As

Publication number Publication date
CN115379011B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
US10666670B2 (en) Managing security breaches in a networked computing environment
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
CN103095693A (en) Method for positioning and accessing database user host information
CN111083093B (en) Method and device for calling terminal capability, electronic equipment and storage medium
CN106254528A (en) A kind of resource downloading method and buffer memory device
CN107147662B (en) Domain name hijacking discovery method
CN110971690B (en) Push message processing method, device and equipment of IOS client
CN115379011A (en) Data processing method and device applied to geographic information system service
CN110650126A (en) Method and device for preventing website traffic attack, intelligent terminal and storage medium
CN115051867B (en) Illegal external connection behavior detection method and device, electronic equipment and medium
CN114862212A (en) Internet asset management method and device, electronic equipment and storage medium
US11210156B1 (en) Intelligent distributed tracing
CN114895852A (en) Data processing method, system, device, storage medium and electronic equipment
CN113378689A (en) Biological recognition system and biological recognition method
CN109948362B (en) Data access processing method and system
CN113836331A (en) Image query method, device and storage medium
CN113709136A (en) Access request verification method and device
CN114866342B (en) Flow characteristic identification method and device, computer equipment and storage medium
CN110868381B (en) Flow data collection method and device based on DNS analysis result triggering and electronic equipment
CN111866854B (en) Automatic application updating method, device and system and computer equipment
CN112559460B (en) File storage method, device, equipment and storage medium based on artificial intelligence
US20230401275A1 (en) Tenant network for rewriting of code included in a web page
US20220091865A1 (en) Containerized software discovery and identification
CN115941272A (en) Storage method and storage device for cloud mobile phone behavior data and electronic equipment
CN114817818A (en) Site page grading method, device, equipment and storage medium

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