CN115379011B - 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
CN115379011B
CN115379011B CN202210980479.4A CN202210980479A CN115379011B CN 115379011 B CN115379011 B CN 115379011B CN 202210980479 A CN202210980479 A CN 202210980479A CN 115379011 B CN115379011 B CN 115379011B
Authority
CN
China
Prior art keywords
filter
service
proxy
resource information
resource
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
Application number
CN202210980479.4A
Other languages
Chinese (zh)
Other versions
CN115379011A (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

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 proxy service ends and comprise the following steps: receiving an access request for GIS service of a geographic information system; determining a page resource matched with the access request in proxy page resources, wherein the proxy page resources are resource information obtained by proxy on the original access linked page resources; extracting the resources of the page resources to obtain resource information; 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 filtering conditions so as to process the resource information through the filtering conditions. The invention realizes the purpose of service agent and improves the accuracy of different management and control of resource information.

Description

Data processing method and device applied to geographic information system service
The present application claims priority from China patent office, application number 202210442114.6, filed 25 at 2022, entitled "data processing method and apparatus for use in a Devex information System service", the entire contents of which are incorporated herein by reference.
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 a geographic information system service.
Background
GIS (Geographic Information System ) is a technology for acquiring, processing, managing and analyzing geospatial data, and GIS technology can be adopted by all application programs related to spatial location. At present, a plurality of service platforms capable of realizing the GIS technology can cause the problems of diversified service release, diversified service analysis modes, incapability of realizing authority management and control on the service and the like.
Disclosure of Invention
Aiming at the problems, the invention provides a data processing method and a data processing device applied to geographic information system service, which realize the purpose of service agent and improve the accuracy of different management and control of resource information.
In order to achieve the above object, the present invention provides the following technical solutions:
A data processing method applied to a geographic information system service, applied to a proxy server, the method comprising:
receiving an access request for GIS service of a geographic information system;
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 on the original access linked page resource;
extracting the resources of 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 relations, and each filter has different filtering conditions so as to process the resource information through the filtering conditions.
Optionally, the extracting the resources from the page resources to obtain resource information includes:
extracting static resources from the page resources to obtain the static resources;
and processing the resources containing the target labels in the static resources to obtain processed resources, and determining the processed resources as resource information.
Optionally, the target filter chain includes a cross-domain filter, an authorization filter, and a log filter, wherein the processing the resource information with the target filter includes:
determining whether the resource information belongs to a homologous resource with a request end corresponding to the current access request by using the cross-domain filter, and obtaining 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 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 with the target filter chain includes:
performing service authority verification on the resource information by using the global filter, and determining a service adding parameter;
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, generating a request, and transmitting the request to the target filter chain;
and determining whether the proxy service request has a request header of authority based on the service filter, and splicing the processed proxy service request to the access request if the proxy service request has the request header of authority.
Optionally, the target filter chain includes a hierarchical filter and a global response filter, wherein the processing the resource information with the target filter chain includes:
performing data clipping on the resource information according to an administrative region corresponding to the access request based on the hierarchical filter to obtain information of a clipping head so as to determine target resource information through the clipping head information;
and processing the page resource based on the global response filter to obtain target resource information.
A data processing apparatus for application to a geographic information system service, for application to a proxy server, the apparatus comprising:
The receiving unit is used for receiving an access request aiming at the GIS service;
The determining unit is used for determining the page resource matched with the access request in the proxy page resource, wherein the proxy page resource is resource information obtained by proxy to the original access linked page resource;
the extraction unit is used for extracting the resources of the page resources to obtain resource information;
The processing unit is used for processing the resource information by utilizing 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 filtering conditions so as to process the resource information through the filtering conditions.
Optionally, the extracting unit includes:
An extraction subunit, configured to perform static resource extraction on the page resource to obtain a static resource;
and the first processing subunit is used for processing the resources containing the target labels in the static resources to obtain processed resources, and determining the processed resources as resource information.
Optionally, the target filter chain includes a cross-domain filter, an authorization filter, and a log filter, wherein the processing unit includes:
a first determining subunit, configured to determine, using the cross-domain filter, whether the resource information belongs to a homologous resource with a request end corresponding to a current access request, so as to obtain a determination result;
a second determination subunit, configured to generate response header information in the target resource information based on the determination result;
A third determining subunit, configured to determine, using the authorization filter, whether a request end corresponding to the current access request meets a right of applying for the resource information, to obtain right verification information;
And the first acquisition subunit is used for acquiring 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 verification subunit is used for verifying the service authority of the resource information by utilizing the global filter and determining a service addition parameter;
the cache subunit is used for caching the resource information by utilizing the cache filter to obtain cache resources;
An address modification subunit, configured to modify a proxy address into an original address based on the routing filter, and generate a request, and transmit the request to the target filter chain;
And a fourth determining subunit, configured to determine, based on the service filter, whether a proxy service request has a request header of authority, and if so, splice 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 unit includes:
A data clipping subunit, configured to clip the resource information according to an administrative region corresponding to the access request based on the hierarchical filter, and obtain information of a clip, so as to determine target resource information according to the clip information;
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 device applied to geographic information system service, applied to a proxy server side, comprising the following steps: receiving an access request for GIS service of a geographic information system; 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 on the original access linked page resource; extracting the resources of 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 relations, and each filter has different filtering conditions so as to process the resource information through the filtering conditions. The invention realizes unified management of the access request of the third party platform through the proxy server, realizes 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 that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart 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 illustrating 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 device applied to a geographic information system service according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first and second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to the listed steps or elements but may include steps or elements not expressly 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 for GIS service.
The access request is generated by a third party platform which can access the GIS service, for example, the access request can be Arcgis, hypergraph or a third party open source GIS platform, and the access request refers to a request for accessing related information in the GIS service.
It should be noted that, the user accesses the related information through the proxy link of the proxy server, where the proxy link is a link address generated for the original link, so that the proxy page resource corresponding to the original link can be accessed, and the proxy page resource is matched with the page resource of the original link, and can process the page resource based on the feature information corresponding to the access request, such as filtering, layering, rights control, and hierarchical presentation.
S102, determining the page resource matched with the access request in the proxy page resource.
The proxy page resource is resource information obtained by proxy to the original access linked page resource.
S103, extracting resources from the page resources to obtain resource information.
To implement the proxy of the page, the resources needed to define the page are essentially static resources of html and js. Specifically, the extracting the resources from the page resources to obtain resource information includes: extracting static resources from the page resources to obtain the static resources; and processing the resources containing the target labels in the static resources to obtain processed resources, and determining the processed resources as resource information. The target tag is a < a > tag contained in the static resource. The < a > tag contained in the static resource is processed into a proxy resource, and the processing is the protection of the original resource and the requirement of the service proxy.
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 association relations, and each filter has different filtering conditions so as to process the resource information through the filtering conditions to obtain target resource information. 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, including the processing of the resource information, the verification of the authority of the requester for requesting the resource information, and the processing process after the resource information agent.
In particular, the above 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 with the target filter includes: determining whether the resource information belongs to a homologous resource with a request end corresponding to the current access request by using the cross-domain filter, and obtaining 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 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 information is the same source information, the authority information of the request end corresponding to the access request, and the like can 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 route filter and a service filter, 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, and determining a service adding parameter; 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, generating a request, and transmitting the request to the target filter chain; and determining whether the proxy service request has a request header of authority based on the service filter, and splicing the processed proxy service request to the access request if the proxy service request has the request header of authority.
When the target filter chain includes a hierarchical filter and a global response filter, the processing the resource information by using the target filter chain includes:
performing data clipping on the resource information according to an administrative region corresponding to the access request based on the hierarchical filter to obtain information of a clipping head so as to determine target resource information through the clipping head information;
and processing the page resource based on the global response filter to obtain target resource information.
The invention is applied to a geographic information system, so that 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 comes from the A city, and the information of the A city can be extracted from the finally matched page resource information as a return result, thereby realizing more accurate information processing.
Specifically, referring to fig. 2, a schematic process diagram of each filter of a target filter chain is provided in an embodiment of the present invention.
A cross-domain Filter (Cors Filter) is used for solving the problem that a homology strategy refers to calling a cross-domain by a third party, the Filter is used for avoiding the cross-domain problem when being exposed to the third party, and the request header judges that if the third party uses the CORS cross-domain, a request header such as Access-Control-Allow-Origin、Access-Control-Allow-Headers、Access-Control-Allow-Methods、Access-Control-Allow-Credentials is added in the response header. Wherein, CORS (Cross-origin resource sharing, cross-domain resource sharing). The CORS needs to be supported by both the browser and the server to realize the cross-domain request.
The authorization Filter (authfilter) is used to authenticate the service path, and the service resource can be obtained only if the authority is allocated to the user in the management section page or the user successfully applies the authority of the resource.
The Log Filter (Log Filter) can realize link tracking, statistics service call, service monitoring and access amount statistics through Log record.
A Global Filter (Global Filter) is used to verify the service rights, adding necessary parameters to the service.
Wherein authenticating the service comprises:
the method for carrying the token in the access resource is verified, and the token can be carried in a request head or a request path.
And detecting the white list, realizing complete opening of authority for part of applications through white list configuration, and determining whether the application has the access authority or not through verifying the identity information of the access request terminal.
The cache filter (CACHE FILTER) adds a 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 to the original address, makes a request, and passes the result after the request into the filter chain.
The service filter (Service Token Filter) checks whether the service needs to be provided with a token, judges whether the proxy service request is provided with a token request header, and if the proxy service request is provided with a request path which needs to be processed and spliced to the original service path, realizes the proxy of the GIS service which needs to be authenticated. Where token refers to a token in computing machine authentication, representing the right to perform certain operations.
A hierarchical filter (LAYER LEVEL FILTER) checks if the service requires hierarchical classification, which is to resolve hierarchical management, here by administrative division, cropping the data and returning the cropped picture to the front-end rendering page. For example, the IP address source 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 whole map as a replaced map result.
The global response filter (Global Response Filter) is used for rewriting the request response data, and is used for reprocessing the original service returned page, and mainly modifying the url linked in the page, wherein the modification rule is shown as follows, for example, an arcgis service response content replacement rule is matched with an injection [ http:// ip: port/arcgis/] service path and replaced by [ http:// ip: port/dus// arcgis ], and the path of the page resource for jumping other resources can be replaced by a proxy through the replacement rule and then the proxy address is returned to the calling party.
And the method can further comprise a log filter (DusLog Filter) for recording service access logs, including cloud service platform log collection interception, and recording service application states and processes.
The Netty routing filter (Netty Routing Filter) is used to request real url get data.
The data processing method applied to the geographic information system service can uniformly manage the authority of the third party service platform; the service authority can be distributed, and the problem that different organization services are not shared and the sharing is troublesome is solved. The hierarchical management and control of the service are realized, the service can be added with a buffer after the agent, and the service access efficiency can be improved.
The embodiment of the invention also provides a data processing device applied to the geographic information system service, which is applied to the proxy server, and referring to fig. 3, the device comprises:
A receiving unit 10, configured to receive an access request for a geographic information system GIS service;
a determining unit 20, configured to determine a page resource that matches the access request from the proxy page resources, where the proxy page resource is resource information obtained by proxy for the original access linked page resource;
an extracting unit 30, configured to extract resources from the page resources 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. The target filter chain comprises a group of filters with association relations, and each filter has different filtering conditions so as to process the resource information through the filtering conditions.
Further, the extraction unit includes:
An extraction subunit, configured to perform static resource extraction on the page resource to obtain a static resource;
and the first processing subunit is used for processing the resources containing the target labels in the static resources to obtain processed resources, and determining the processed resources as resource information.
In one embodiment, the target filter chain includes a cross-domain filter, an authorization filter, and a log filter, wherein the processing unit includes:
a first determining subunit, configured to determine, using the cross-domain filter, whether the resource information belongs to a homologous resource with a request end corresponding to a current access request, so as to obtain a determination result;
a second determination subunit, configured to generate response header information in the target resource information based on the determination result;
A third determining subunit, configured to determine, using the authorization filter, whether a request end corresponding to the access request meets a right of applying for the resource information, to obtain right verification information;
And the first acquisition subunit is used for acquiring log record information corresponding to the resource information by using the log filter.
In another embodiment, 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 verification subunit is used for verifying the service authority of the resource information by utilizing the global filter and determining a service addition parameter;
the cache subunit is used for caching the resource information by utilizing the cache filter to obtain cache resources;
An address modification subunit, configured to modify a proxy address into an original address based on the routing filter, and generate a request, and transmit the request to the target filter chain;
And a fourth determining subunit, configured to determine, based on the service filter, whether a proxy service request has a request header of authority, and if so, splice 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:
A data clipping subunit, configured to clip the resource information according to an administrative region corresponding to the access request based on the hierarchical filter, and obtain information of a clip, so as to determine target resource information according to the clip information;
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, embodiments of the present application provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of a data processing method as applied to a geographic information system service as in any of the above.
The embodiment of the invention also provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, and is characterized in that the steps of the data processing method applied to the geographic information system service are realized when the processor executes the program.
The Processor or CPU may be at least one of an Application SPECIFIC INTEGRATED Circuit (ASIC), a digital signal Processor (DIGITAL SIGNAL Processor, DSP), a digital signal processing device (DIGITAL SIGNAL Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable GATE ARRAY, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic device implementing the above-mentioned processor function may be other, and embodiments of the present application are not limited in detail.
The computer storage medium/Memory may be a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, EEPROM), a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM), or 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 by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units. Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or a optical disk, or the like, which can store program codes.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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 (2)

1. A data processing method applied to a geographic information system service, wherein the method is applied to a proxy server, and the method comprises:
Receiving an access request aiming at a Geographic Information System (GIS) service, wherein the access request is generated by a third party platform capable of accessing the GIS service, the access request is an access request for accessing related information by a user through a proxy link of a proxy server, the proxy link is a link address generated aiming at an original link, and based on the proxy link, the user accesses a proxy page resource corresponding to the original link, and the proxy page resource is matched with a page resource of the original link;
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 on the original access linked page resource;
extracting the resources of the page resources to obtain resource information;
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, each filter has different filtering conditions so as to process the resource information through the filtering conditions, and the filters are used for carrying out service hierarchical management and control processing on the resource information;
the extracting the resources of the page resources to obtain resource information includes:
extracting static resources from the page resources to obtain the static resources;
Processing the resources containing the target labels in the static resources to obtain the resources after the agents, and determining the resources after the agents as resource information, wherein the target labels are < a > labels contained in the static resources;
The target filter chain comprises a cross-domain filter, an authorization filter and a log filter, wherein the processing the resource information by using the target filter comprises the following steps:
Determining whether the resource information belongs to a homologous resource with a request end corresponding to the current access request by using the cross-domain filter to obtain a determination result, wherein the cross-domain filter aims at solving the problem that a cross-domain is called by a third party by a homologous strategy and avoids the cross-domain problem when the cross-domain filter is exposed to the third party;
Generating response header information in the target resource information based on the determination result, and adding at least Access-Control-alloy-Origin, access-Control-alloy-Headers, access-Control-alloy-Methods and Access-Control-alloy-CREDENTIALS request headers into the response header;
determining whether a request end corresponding to the access request meets the authority for applying the resource information or not by utilizing the authorization filter to obtain authority verification information, wherein the authorization filter is used for authenticating a service path, and service resources can be obtained only if the authority is allocated to a user in a management section page or the user successfully applies for the authority of the resource;
obtaining log record information corresponding to the resource information by using the log filter, wherein the log filter realizes link tracking, statistics service calling, service monitoring and access quantity statistics through log record;
The target filter chain comprises a global filter, a cache filter, a routing filter and a service filter, wherein the processing of the resource information by the target filter chain comprises the following steps:
performing service authority verification on the resource information by using the global filter, and determining a service adding parameter;
Caching the resource information by using the cache filter to obtain cache resources, and improving the service performance after proxy;
changing a proxy address to an original address based on the routing filter, generating a request, and transmitting the request to the target filter chain;
Determining whether the proxy service request has a request head of authority or not based on the service filter, and if so, splicing the processed proxy service request to the access request to realize proxy of GIS service needing authentication;
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 the following steps:
performing data clipping on the resource information according to an administrative region corresponding to the access request based on the hierarchical filter to obtain information of a clipping head so as to determine target resource information through the clipping head information;
Processing the page resource based on the global response filter to obtain target resource information, including: and modifying url of the link in the page, replacing paths of the page resource for jumping other resources with proxy addresses, and returning the proxy addresses to the calling party.
2. A data processing apparatus for use with a geographic information system service, the apparatus comprising:
The receiving unit is used for receiving an access request aiming at GIS service of a geographic information system, wherein the access request is generated by a third party platform capable of accessing the GIS service, the access request is an access request for accessing related information by a user through a proxy link of a proxy server, the proxy link is a link address generated aiming at an original link, and based on the proxy link, the user accesses a proxy page resource corresponding to the original link, and the proxy page resource is matched with a page resource of the original link;
The determining unit is used for determining the page resource matched with the access request in the proxy page resource, wherein the proxy page resource is resource information obtained by proxy to the original access linked page resource;
the extraction unit is used for extracting the resources of the page resources to obtain resource information;
The processing unit is used for processing the resource information by utilizing 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, each filter has different filtering conditions so as to process the resource information through the filtering conditions, and the filters are used for carrying out service hierarchical management and control processing on the resource information;
the extraction unit is specifically used for:
extracting static resources from the page resources to obtain the static resources;
Processing the resources containing the target labels in the static resources to obtain the resources after the agents, and determining the resources after the agents as resource information, wherein the target labels are < a > labels contained in the static resources;
The target filter chain includes a cross-domain filter, an authorization filter, and a log filter, wherein the processing unit includes:
The first determining subunit is configured to determine whether the resource information belongs to a homologous resource with a request end corresponding to a current access request by using the cross-domain filter, and obtain a determination result, where the cross-domain filter refers to a third party to invoke a cross-domain for solving a problem of cross-domain exposure to the third party;
A second determining subunit, configured to generate response header information in the target resource information based on the determination result, and add at least Access-Control-alloy-Origin, access-Control-alloy-Headers, access-Control-alloy-Methods and Access-Control-alloy-CREDENTIALS request headers to the response header;
A third determining subunit, configured to determine, by using the authorization filter, whether a request end corresponding to the access request meets a right of applying for the resource information, to obtain right verification information, where the authorization filter is used to authenticate a service path, and only if a right is allocated to a user in a management section page, or the user successfully applies for the right of the resource, the service resource can be obtained;
The first acquisition subunit is used for acquiring log record information corresponding to the resource information by utilizing the log filter, wherein the log filter realizes link tracking, service call statistics, service monitoring and access quantity statistics through log record;
the target filter chain further comprises a global filter, a cache filter, a routing filter and a service filter, wherein the processing unit further comprises:
The first verification subunit is used for verifying the service authority of the resource information by utilizing the global filter and determining a service addition parameter;
the caching subunit is used for caching the resource information by utilizing the caching filter to obtain caching resources and improving the service performance after proxy;
An address modification subunit, configured to modify a proxy address into an original address based on the routing filter, and generate a request, and transmit the request to the target filter chain;
A fourth determining subunit, configured to determine, based on the service filter, whether a proxy service request has a request header of authority, and if so, splice the processed proxy service request to the access request, so as to implement proxy for the GIS service that needs authentication;
The target filter chain further comprises a hierarchical filter and a global response filter, wherein the processing unit further comprises:
A data clipping subunit, configured to clip the resource information according to an administrative region corresponding to the access request based on the hierarchical filter, and obtain information of a clip, so as to determine target resource information according to the clip information;
the second processing subunit is configured to process the page resource based on the global response filter to obtain target resource information, and includes: and modifying url of the link in the page, replacing paths of the page resource for jumping other resources with proxy addresses, and returning the proxy addresses to the calling party.
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 CN115379011A (en) 2022-11-22
CN115379011B true 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
CN115379011A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN110263583A (en) Card method, apparatus and electronic equipment are deposited in a kind of infringement based on block chain
CN107015996A (en) A kind of resource access method, apparatus and system
CN112532490A (en) Regression testing system and method and electronic equipment
CN111083093B (en) Method and device for calling terminal capability, electronic equipment and storage medium
CN114157568B (en) Browser secure access method, device, equipment and storage medium
CN113821307B (en) Method, device and equipment for quickly importing virtual machine images
CN111427613A (en) Application program interface API management method and device
CN115379011B (en) Data processing method and device applied to geographic information system service
CN109981533A (en) A kind of ddos attack detection method, device, electronic equipment and storage medium
CN113836331A (en) Image query method, device and storage medium
CN111241547A (en) Detection method, device and system for unauthorized vulnerability
CN114465926A (en) Recursive server monitoring method, device, equipment and storage medium
CN114862212A (en) Internet asset management method and device, electronic equipment and storage medium
CN111625721B (en) Content recommendation method and device
CN113890754A (en) Data transmission method, terminal, system and readable storage medium
US20200311169A1 (en) Apparatus and method for determining types of uniform resource locator
CN110061864B (en) Method and system for automatically verifying domain name configuration
CN111212153A (en) IP address checking method, device, terminal equipment and storage medium
CN114866342B (en) Flow characteristic identification method and device, computer equipment and storage medium
CN115941272A (en) Storage method and storage device for cloud mobile phone behavior data and electronic equipment
CN115733828A (en) API parameter identification method and device, electronic equipment and storage medium
CN116245587A (en) Electronic invoice acquisition method, electronic invoice acquisition device, electronic equipment and storage medium
CN116821406A (en) Resource acquisition method and device
CN114817818A (en) Site page grading method, device, equipment and storage medium
CN115564576A (en) Method and device for identifying risks of service request, storage medium and processor

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