A highly adaptable method for dynamic splitting of map services based on administrative boundaries

By intercepting the proxy address of the front-end map framework, obtaining map service metadata, constructing dynamic loading parameters and filtering conditions, and synthesizing administrative district pictures, it solves the problem of data display permission control without administrative district attributes, and achieves multi-platform adaptability and efficient data exhibit.

CN114064832BInactive Publication Date: 2024-09-03NANJING LAND & RESOURCES INFORMATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111283020.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-01
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technology cannot effectively solve the problem of permission control for data display in dynamic spatial data map services and tile map services that do not contain administrative district attributes, resulting in high pressure for data browsing and front-end display, and cannot meet the needs of multiple platforms and multiple service types.

Method used

By intercepting the proxy address of the front-end map framework, we obtain map service metadata information, construct dynamic loading parameters, extract administrative district codes, construct filter conditions, synthesize administrative district pictures, and achieve accurate extraction and display of administrative district tiles. It is suitable for multiple platforms and multiple services. type.

Benefits of technology

It realizes the intelligence of data display following user permission requirements, reduces the pressure of data browsing and front-end display, breaks through the data display restrictions of no administrative field, and meets the high adaptability requirements of multi-platform and multi-service types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064832B
    Figure CN114064832B
Patent Text Reader

Abstract

The present invention discloses a highly adaptable dynamic splitting method of map services based on administrative district boundaries, including: ① intercepting and parsing proxy address map image / tile requests ② preprocessing map services ③ calculating service dynamic parameters ④ constructing administrative district filter conditions regionFilter ⑤ obtaining administrative district images ⑥ synthesizing images and publishing services. The present invention improves the method of extracting administrative district ranges based on attribute queries, and effectively solves the extraction problems caused by missing administrative district fields or cross-regional data in attribute queries. By setting a certain synthesis logic, the original map tiles extracted in a targeted manner and the administrative district tiles after filtering conditions are superimposed to achieve the purpose of extracting administrative district tiles, realizing the intelligence of data display closely following the user authority requirements, thereby effectively reducing data browsing pressure and front-end display pressure, breaking through the limitation of displaying data without administrative district fields, and having the high adaptability requirements of meeting multiple platforms and multiple service types.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electronic information technology, and in particular relates to a method for dynamically splitting map services in a geographic information system. Background Art

[0002] With the rapid development of the geographic information industry, new demands have thrown up various new challenges. Network geographic information has continuously demonstrated its own advantages and played an indispensable role in geographic information applications, providing strong support for a series of fast services such as spatial query, spatial positioning, and path planning. With the continuous deepening of the degree of informatization in various industries and fields, in daily geographic information applications, the trend of convenient efficiency and security of information services is the demand, and the requirements of on-demand information services and high-quality data services are highlighted. All information service fields need to break through existing technical barriers and functional limitations to meet the needs of fast and safe services. In the daily informatization of government departments, in order to ensure data security, the authority of business personnel to browse data in the system is usually restricted according to the power level, jurisdiction, etc. Spatial data is mostly integrated into the system for front-end display through map services. In order to limit the scope of spatial data seen by personnel in different administrative districts, spatial data map services are usually filtered and displayed according to administrative district attributes. This method is applicable to dynamic spatial data map services with administrative district fields, but it is not applicable to dynamic spatial data map services and tile map services without administrative district attributes.

[0003] Technical solution: A highly adaptable map service dynamic splitting method based on administrative district boundaries of the present invention comprises the following steps:

[0004] Step 1. Intercept and parse the proxy address map image / tile request: intercept the proxy address of the map / tile service request automatically generated by the front-end map framework loading method, use the resource id-resourceid in the proxy address to query the map service metadata information, and obtain the real address serviceUrl of the map service.

[0005] Step 2, map service preprocessing: Based on the request parameters contained in the map service request, send a map service tile request according to the request parameters and the real address of the map service obtained in step 1, obtain the original loaded image servicePic, and unify it into png format.

[0006] Step 3. Calculate service dynamic parameters: Based on the request parameters in step 2, extract parameters such as image loading range, image width and height, coordinate system, etc., analyze and determine the service type, and construct dynamic loading parameters based on different services and different tile type requests according to the different parameters and different dynamic loading parameter construction methods.

[0007] Step 4. Extract the administrative region code regionCode based on the request parameters, extract the administrative region service address regionUrl according to the level of the administrative region code regionCode, and use this to determine the type of administrative region service platform. If it is an ArcGIS service, construct the administrative region filter condition regionFilter based on the administrative region code regionCode, the administrative region layer serviceLayer of the administrative region service, and the administrative region code field regionField; if it is a hypermap service, request the layers interface of the hypermap service to obtain the service graphic information layersInfo based on the service real address serviceUrl, then find the layer regionLayerInfo in the layer information, and construct the filter condition regionFilter based on the layer administrative region code field regionField.

[0008] Step 5, obtaining administrative region pictures: put the administrative region filter conditions obtained in step 4 into the dynamic loading parameter dynamicParams calculated in step 3, initiate an administrative region picture request with dynamicParams as the parameter, and obtain the administrative region picture regionPic.

[0009] Step 6. Synthesize the image and output the result: Build a blank canvas according to the width and height of the original loaded image, draw the original loaded image / tile servicePic as the background image into the canvas, set the logic for image synthesis and synthesize the original loaded image servicePic and the administrative region image regionPic according to the logic rules to obtain the synthesized image / tile resultPic and output it.

[0010] The present invention improves the method of extracting administrative district ranges based on attribute queries, and effectively solves the extraction problems caused by missing fields or cross-domain nature of regions in attribute queries. By setting a certain synthesis logic, the original map tiles extracted in a targeted manner and the administrative district tiles after filtering conditions are superimposed to achieve the ability to extract administrative district tiles, and realize the intelligence of data display following user authority requirements, thereby effectively reducing data browsing pressure and front-end display pressure, breaking through the limitation of data display without administrative district fields, and having the high adaptability to meet multi-platform and multi-service types.

[0011] Furthermore, in step 1, the proxy address proxyUrl is obtained by intercepting the map / tile service request automatically generated by the front-end map framework loading method, wherein the request must contain the administrative region code parameter regionCode, and then according to the extracted resource id-resourceid in the proxy address, the map service metadata information serviceInfo is queried based on the extracted resource id-resourceid and the map service real address serviceUrl is obtained. As shown in Table 1, the intercepted request types include four categories, distinguished by the platform and service type.

[0012] Furthermore, in step 2, a map tile request is sent through the map service platform, and the request parameter serviceParams is extracted from the request. According to the request parameter serviceParams and the real address of the map service obtained in step 1, a map service tile request is sent again to obtain the original loaded image service Pic, and the image format is unified into png. If the image format is incorrect, the format of the non-png format image (such as jpg) is converted through the format function.

[0013] Furthermore, in step 3, the request service type is identified by analyzing the request parameters, and the dynamic loading parameters are constructed according to the different service and tile type requests based on the different parameters and different dynamic loading parameter construction methods, wherein:

[0014] (1) For ArcGIS service dynamic image requests, the loading range bbox, size size, and coordinate system imageSR of the request parameters are set to the loading range bounds, image width and height imageSize, and coordinate system epsgCode of the dynamic loading parameters, respectively, so as to construct the dynamic loading parameters.

[0015] (2) For ArcGIS service static tile requests, the request address contains tile / <level> / <row> / <column>, obtain the coordinate system Spatial Reference from the service metadata information serviceInfo according to the zoom level level in the request address, and the tile width and height tileWidth / tileHeight are as follows Figure 1 As shown, the corresponding level of map resolution (such as Figure 3 As shown), the slice origin (originX, originY) (as shown Figure 4 As shown). According to formula 1, the tile map bounds (left boundary x coordinate minx, right boundary x coordinate maxx, bottom boundary y coordinate miny, top boundary y coordinate maxy) is calculated. The dynamic loading parameters dymanicParams are constructed through the coordinate system Spatial Reference, bounds, tileWidth / tileHeight.

[0016]

[0017] (3) For the dynamic image request parameters of the hypergraph service, the loading range viewBounds, image width width, image height height, and coordinate system imageSR of the request parameters are set to the loading range, image width and height, and coordinate system of the dynamic loading parameters respectively, and the dynamic loading parameters are constructed accordingly.

[0018] (4) For the request of static tiles of the hypergraph, the tile width / height and coordinate system parameter information such as prjCoordSys are directly extracted from the request parameters, and then the coordinate system unit coordUnit is obtained through the serviceInfo metadata information. Figure 5 , and the major semi-axis of the coordinate system ellipsoid axis is Figure 6 , according to Table 2, obtain the conversion parameter meterPerMapUnitValue between the coordinate system unit coordUnit and the unit meter, according to Formula 2:

[0019]

[0020] Where: resolution indicates the map resolution at the current level; PPI indicates the screen resolution, which defaults to 96; meterPerMapUnitValue indicates the conversion parameter in meters.

[0021] Calculate the resolution of the layer map where the current tile is located, and calculate the bounds of the tile map according to formula 1. Finally, construct the dynamic loading parameter dymanicParams based on the obtained coordinate system prjCoordSys, bounds, and tile width / height.

[0022] Furthermore, in step 4, the administrative region code regionCode is extracted from the request parameters, and the address regionUrl of the corresponding administrative region service is obtained from the configuration according to the level of the administrative region code regionCode (city level / district and county level), thereby distinguishing the type of administrative region service platform. If the administrative region service regionService is an ArcGIS service, the administrative region filter condition regionFilter can be constructed according to the administrative region code regionCode, the administrative region layer serviceLayer of the administrative region service, and the administrative region code field regionField; if the administrative region service regionService is a hypermap service, it is necessary to request the layers interface of the hypermap service according to the real address serviceUrl of the service to obtain the service graphic information layersInfo, and then find the corresponding layer regionLayerInfo in the layer information, and construct the filter condition regionFilter according to the layer administrative region code field regionField.

[0023] Furthermore, in step 5, based on the different request methods for obtaining administrative district images in different platform services, in the ArcGIS service, the administrative district filter condition regionFilter constructed in step 4 is placed under the layerDefs node of the dynamic loading parameter dynamicParams calculated in step 3, and an administrative district image request is initiated with dynamicParams as a parameter to obtain the administrative district image regionPic; in the supermap service, the administrative district filter condition obtained in step 4 is added to the displayFilter node of regionLayerInfo to obtain new layer information newInfo, with the new layer information as a parameter, and then the tempLayersSet interface of the supermap service is requested according to the real address serviceUrl to create a temporary layer tempLayer with the filter condition, and obtain the temporary layer id tempLayerID, and finally the temporary layer id, i.e., tempLayerId, is placed under the layersID node of the dynamic loading parameter dynamicParams, and an administrative district image request is initiated with dynamicParams as a parameter to obtain the administrative district image regionPic.

[0024] Furthermore, in step 6, a blank canvas Graphics2D in RGB format is constructed in memory with the width and height of the original loaded image servicePic as the size, and the transparency of the background is set to 0, and the original image regionPic is drawn into the canvas as the background image. The synthesis logic is specified for the image, and the logic rule is to place the background image above the original image, retain the overlapping part during synthesis, and set the transparency of the synthesized image to opaque. According to the synthesis logic rule, the original loaded image servicePic and the administrative region image regionPic are synthesized to obtain the synthesized image / tile resultPic.

[0025] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0026] (1) The present invention reduces redundant data display during browsing, comprehensively analyzes various problems that may occur in the extraction of administrative district tile attributes under special circumstances, and uses a certain synthesis logic to overlap the original map tiles extracted in a targeted manner and the administrative district tiles after filtering conditions, thereby achieving the ability to extract administrative district tiles, realizing the intelligence of data display that closely follows the user's authority requirements, thereby effectively reducing data browsing pressure and front-end display pressure.

[0027] (2) The present invention is applicable to various types of map service platforms. By analyzing multiple service platforms and combining the different metadata information and request parameters of their respective images, the corresponding dynamic loading parameters are constructed to load administrative district images from a multi-platform perspective, thereby meeting the adaptability requirements of multiple platforms and multiple service types. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 Flowchart of map service splitting by administrative boundaries.

[0029] Figure 2 The original map service loads the graph.

[0030] Figure 3 Administrative district map service with a certain level of resolution.

[0031] Figure 4 Map tile origin map.

[0032] Figure 5 Figure 1: Coordinate system information in metadata information.

[0033] Figure 6 Figure 2: Coordinate system information in metadata information.

[0034] Figure 7 The administrative district map obtained by dynamically loading parameter requests.

[0035] Figure 8 Schematic diagram of the synthesis result of the original loading map and the administrative area map. DETAILED DESCRIPTION

[0036] The technical solution of the present invention is described in detail below, but the protection scope of the present invention is not limited to the embodiments.

[0037] like Figure 1 As shown, a highly adaptable map service dynamic splitting method based on administrative district boundaries in this embodiment is specifically implemented by taking Nanjing, Jiangsu Province as an example, and taking Nanjing's road network and grassland distribution data as the source of map service request data information, and specifically includes the following steps:

[0038] Step 1. Intercept and parse the proxy address map image / tile request: intercept the proxy address of the map / tile service request automatically generated by the front-end map framework loading method, use the resource id-resourceid in the proxy address to query the map service metadata information, and obtain the real address serviceUrl of the map service.

[0039] Furthermore, in step 1, the proxy address is obtained by intercepting the map / tile service request automatically generated by the front-end map framework loading method, wherein the request must contain the administrative region code parameter regionCode, such as the Nanjing administrative region code 320100, and then according to the extracted resource id-resourceid in the proxy address, the map service metadata information serviceInfo is queried based on the extracted resource id-resourceid and the map service real address serviceUrl is obtained. As shown in Table 1, the intercepted request types include four categories, distinguished by the platform and service type.

[0040] Step 2, map service preprocessing: Based on the request parameters contained in the map service request, send a map service tile request according to the request parameters and the real address of the map service obtained in step 1, obtain the original loaded image servicePic, and unify it into png format.

[0041] Furthermore, in step 2, a map tile request is sent through the map service platform, and the request parameter serviceParams is extracted from the request. According to the request parameter serviceParams and the real address of the map service obtained in step 1, a map service tile request is sent again to obtain the original loaded image service Pic, such as Figure 2 , which shows the distribution of road networks and grasslands in some areas of Nanjing, and unifies the image format into png. If the image format is incorrect, the format function is used to convert the image in non-png format (such as jpg).

[0042] Step 3. Calculate service dynamic parameters: Based on the request parameters in step 2, extract parameters such as image loading range, image width and height, coordinate system, etc., analyze and determine the service type, and construct dynamic loading parameters based on different services and different tile type requests according to the different parameters and different dynamic loading parameter construction methods.

[0043] Furthermore, in step 3, the request service type is identified by analyzing the request parameters, and the dynamic loading parameters are constructed according to the different service and tile type requests based on the different parameters and different dynamic loading parameter construction methods, specifically:

[0044] (1) If it is an ArcGIS service dynamic image request parameter, set the request parameter loading range (116.79565983317241, 33.38745011584907, 121.01440991186712, 31.508787971430323), size 1536, 684, and coordinate system 4490 as the loading range bounds, image width and height imageSize, and coordinate system epsgCode of the dynamic loading parameters, respectively, to construct the dynamic loading parameters.

[0045] (2) If it is an ArcGIS service static tile request, tile / 9 / 83 / 424 in the request address indicates that the tile is located at row 83 and column 424 at zoom level 9. Based on the zoom level in the request address, obtain the coordinate system Spatial Reference from the service metadata information serviceInfo. The tile width and height tileWidth / tileHeight are as follows: Figure 1 As shown, the corresponding level of map resolution (such as Figure 3 As shown), the slice origin (originX, originY) (as shown Figure 4 As shown). According to formula 1, the tile map bounds (left boundary x coordinate minx, right boundary x coordinate maxx, bottom boundary y coordinate miny, top boundary y coordinate maxy) is calculated. The dynamic loading parameters dymanicParams are constructed through the coordinate system Spatial Reference, bounds, tileWidth / tileHeight.

[0046]

[0047] (3) If the request parameters are dynamic images for the Hypergraph service, the loading range viewBounds, image width width, image height height, and coordinate system imageSR of the request parameters are set to the loading range, image width and height, and coordinate system of the dynamic loading parameters respectively, and the dynamic loading parameters are constructed accordingly.

[0048] (4) If the request parameters are for a hypergraph static tile, first directly extract the tile width / height and coordinate system prjCoordSys from the request parameters, and then obtain the coordinate system unit coordUnit through the serviceInfo metadata information. Figure 5 , and the major semi-axis of the coordinate system ellipsoid axis is Figure 6 , according to Table 2, obtain the conversion parameter meterPerMapUnitValue between the coordinate system unit coordUnit and the unit meter, according to the public

[0049] Formula 2:

[0050]

[0051] Where: resolution indicates the map resolution at the current level; PPI indicates the screen resolution, which defaults to 96; meterPerMapUnitValue indicates the conversion parameter in meters.

[0052] Calculate the resolution of the layer map where the current tile is located, and calculate the bounds of the tile map according to formula 1. Finally, construct the dynamic loading parameter dymanicParams based on the obtained coordinate system prjCoordSys, bounds, and tile width / height.

[0053] Step 4. Extract the administrative region code 320100 based on the request parameters, extract the administrative region service address regionUrl according to the level of the administrative region code regionCode, and use this to determine the type of administrative region service platform. If it is an ArcGIS service, construct the administrative region filter condition regionFilter based on the administrative region code regionCode, the administrative region layer serviceLayer of the administrative region service, and the administrative region code field regionField; if it is a hypermap service, request the layers interface of the hypermap service to obtain the service graphic information layersInfo based on the service real address serviceUrl, then find the layer regionLayerInfo in the layer information, and construct the filter condition regionFilter based on the layer administrative region code field regionField.

[0054] Furthermore, in step 4, the administrative region code 320100 is extracted from the request parameters, and the level of the administrative region code regionCode (city level / district level) is analyzed. It can be known that 320100 is the city-level administrative region code of Nanjing City, and then the address regionUrl of the corresponding administrative region service is obtained from the configuration, thereby distinguishing the type of administrative region service platform. If the administrative region service regionService is an ArcGIS service, the administrative region filter condition regionFilter can be constructed according to the administrative region code 320100, the administrative region layer serviceLayer of the administrative region service, and the administrative region code field regionField, and the construction method is regionFilter: {"regionLayer":"regionField=320100"}; if the administrative region service regionService is a hypermap service, it is necessary to request the layers interface of the hypermap service according to the service real address serviceUrl to obtain the service graphic information layersInfo, and then find the corresponding layer regionLayerInfo in the layer information, and construct the filter condition regionFilter according to the layer administrative region code field regionField, and the construction method is regionFilter: regionFiled=320100.

[0055] Step 5, obtain administrative district pictures: put the administrative district filter conditions obtained in step 4 into the dynamic loading parameter dynamicParams calculated in step 3, initiate an administrative district picture request with the dynamic loading parameter dynamicParams as the parameter, and obtain the administrative district picture regionPic of Nanjing, such as Figure 7 shown.

[0056] Furthermore, in step 5, based on the different request methods for obtaining administrative district images in different platform services, in the ArcGIS service, the administrative district filter condition regionFilter constructed in step 4 is placed under the layerDefs node of the dynamic loading parameter dynamicParams calculated in step 3, and a request for the administrative district image is initiated with dynamicParams as a parameter to obtain the administrative district image regionPic; in the hypermap service, the administrative district filter condition obtained in step 4 is added to the displayFilter node of regionLayerInfo to obtain new layer information newInfo, with the new layer information as a parameter, and then the tempLayersSet interface of the hypermap service is requested according to the real address serviceUrl to create a temporary layer tempLayer with the filter condition, and obtain the temporary layer id tempLayerID, and finally the temporary layer id, i.e., tempLayerId, is placed under the layersID node of the dynamic loading parameter dynamicParams, and a request for the administrative district image is initiated with dynamicParams as a parameter to obtain the administrative district image regionPic, as shown in FIG. Figure 7 .

[0057] Step 6. Synthesize the image and output the result: Build a blank canvas according to the width and height of the original loaded image, draw the original loaded image / tile servicePic as the background image into the canvas, set the logic for image synthesis and synthesize the original loaded image servicePic and the administrative region image regionPic according to the logic rules to obtain the synthesized image / tile resultPic and output it.

[0058] Furthermore, in step 6, a blank canvas Graphics2D in RGB format is constructed in memory with the width and height of the original loaded image servicePic as the size, and the transparency of the background is set to 0, and the original image regionPic is drawn into the canvas as the background image. The logic is specified for image synthesis. The logic rule is to place the background image above the original image, retain the overlapping part during synthesis, and set the transparency of the synthesized image to opaque. According to the synthesis logic rule, the original loaded image servicePic and the administrative region image regionPic are synthesized to obtain the synthesized image / tile resultPic, such as Figure 8 .

[0059] like Figure 2 As shown in the figure, it is the original loading picture obtained by sending the request through the request parameters and the real service address; Figure 7 As shown in the figure, the administrative district picture is obtained by adding filtering conditions to calculate the dynamic loading parameters; Figure 8 The figure below shows the result of synthesizing the original loaded image and the administrative district image according to the synthesis logic rules. This method of extracting and synthesizing administrative district boundaries effectively solves the extraction problems caused by missing fields or overlapping regions in attribute queries, can effectively remove redundant information, highlight key content in a targeted manner, clarify the boundary features of the image, and improve the application effect of map services.

[0060] To sum up, the present invention is based on the interaction between the front-end and back-end of the map service. By setting a certain synthesis logic, the original map tiles extracted in a targeted manner and the administrative district tiles after filtering conditions are superimposed, so as to achieve the accurate extraction of administrative district tiles with additional conditions, improve the method of extracting administrative district ranges based on attribute queries, and well solve the extraction problems caused by missing fields or overlapping areas in attribute queries, and realize the intelligence of data display following user authority requirements, thereby effectively reducing data browsing pressure and front-end display pressure, breaking through the limitation of data display without administrative district fields, and having the high adaptability to meet the requirements of multiple platforms and multiple service types.

[0061]

[0062] Table 1 Multi-service platform map request type table

[0063]

[0064] Table 2 Unit conversion parameter table< / column> < / row> < / level>

Claims

1. A highly adaptable map service dynamic splitting method based on administrative area boundaries, characterized by: The proxy address is obtained by intercepting the front-end map loading request through the back-end, and then the query metadata information and the real address of the service are obtained to obtain the original loading image. According to the service type, the dynamic loading parameters are calculated from the metadata information and the filtering conditions are constructed to obtain the administrative district image. Then, the corresponding synthesis logic is set to synthesize the original loading image and the administrative district image, thereby realizing a highly adaptable map service dynamic splitting method based on the administrative district boundary; the method includes the following steps: Step 1. Intercept and parse the proxy address map image / tile request: intercept the proxy address proxyUrl of the map / tile service request automatically generated by the front-end map framework loading method, use the resource id-resourceid in the proxy address to query the map service metadata information, and obtain the real address serviceUrl of the map service; Step 2, map service preprocessing: Combine the serviceUrl obtained in step 1 with the intercepted proxy address image / tile request parameters, send the real map service image / tile request, obtain the map service loading image servicePic, convert the non-png format images through the format parameter, and unify the servicePic into png format; Step 3, calculate the dynamic parameters of the service: based on the request parameters in step 2, extract the image loading range, image width and height, coordinate system and other parameters, analyze and determine the service type, and construct the dynamic loading parameters according to the different service platforms and service types based on the different parameters and dynamic loading parameter construction methods; Step 4, construct the administrative region filter condition regionFilter: extract the administrative region code regionCode based on the request parameters, extract the administrative region service address regionUrl according to the level of the administrative region code regionCode, and use this to determine the type of administrative region service platform. If it is an ArcGIS service, construct the administrative region filter condition regionFilter based on the administrative region code regionCode, the administrative region layer serviceLayer of the administrative region service, and the administrative region code field regionField; if it is a hypermap service, request the layers interface of the hypermap service to obtain the service graphic information layersInfo according to the service real address serviceUrl, then find the layer regionLayerInfo in the layer information, and construct the filter condition regionFilter according to the layer administrative region code field regionField; Step 5, obtaining administrative region pictures: put the administrative region filter condition obtained in step 4 into the dynamic loading parameter dynamicParams calculated in step 3, initiate an administrative region picture request with the dynamic loading parameter dynamicParams as a parameter, and obtain the administrative region picture regionPic; Step 6. Synthesize the image and output the result: construct a blank canvas according to the width and height of the original loaded image, and set the transparency to 0; set the image synthesis logic, that is, set the transparency of the original image to opaque, place the background image above the original image, and retain the overlapping part during synthesis; according to the synthesis logic rules, draw the original loaded image / tile servicePic as the background image into the canvas, synthesize the original loaded image servicePic and the administrative region image regionPic, obtain the synthesized image / tile resultPic and output it.

2. The highly adaptable map service dynamic splitting method according to administrative area boundaries according to claim 1 is characterized in that: In the step 1, the proxy address is obtained by intercepting the map / tile service request automatically generated by the front-end map framework loading method, wherein the request must contain the administrative region code parameter regionCode, and then based on the extracted resource id-resourceid in the proxy address, the map service metadata information serviceInfo is queried based on the extracted resource id-resourceid and the real address serviceUrl of the map service is obtained.

3. The highly adaptable map service dynamic splitting method according to administrative area boundaries according to claim 1, characterized in that: In the step 2, a map tile request is sent based on the map service platform, the request parameter serviceParams is obtained, and a request is initiated using serviceParams and the service real address serviceUrl to obtain the originally loaded image / tile servicePic; it is determined whether the requested original image / tile servicePic is in png format, and if not, the image format is converted to png format.

4. The highly adaptable map service dynamic splitting method according to administrative area boundaries according to claim 1, characterized in that: In step 3, based on the request parameters in step 2, the image loading range, image width and height, coordinate system and other parameters are extracted, the service type is analyzed and determined, and the dynamic loading parameters are constructed according to the different service platforms and service types according to the different parameters and the dynamic loading parameter construction method, wherein: (4.1) For the ArcGIS service dynamic image request, the loading range bbox, size size, and coordinate system imageSR of the request parameters are set to the loading range bounds, image width and height imageSize, and coordinate system epsgCode of the dynamic loading parameters, so as to construct the dynamic loading parameters; (4.2) For ArcGIS service static tile requests, the request address contains tile / <level> / <row> / <column> , according to the zoom level level in the request address, obtain the coordinate system SpatialReference, tile width and height tileWidth / tileHeight, the map resolution resolution of the corresponding level, and the slice origin (originX, originY) from the service metadata information serviceInfo; according to formula 1, calculate the tile map range bounds, left boundary x coordinate minx, right boundary x coordinate maxx, lower boundary y coordinate miny, upper boundary y coordinate maxy; construct the dynamic loading parameter dymanicParams through the coordinate system Spatial Reference, range bounds, tile width and height tileWidth / tileHeight;< / column> < / row> < / level> (4.3) For the dynamic image request of the Hypergraph service, the loading range viewBounds, image width width, image height height, and coordinate system imageSR of the request parameters are set to the loading range, image width and height, and coordinate system of the dynamic loading parameters respectively, and the dynamic loading parameters are constructed accordingly; (4.4) For the hypergraph static tile request parameters, first directly extract the tile width / height and coordinate system prjCoordSys parameter information from the request parameters, and then obtain the coordinate system unit coordUnit and the major semi-axis axis of the coordinate system ellipsoid through the metadata information serviceInfo, and obtain the conversion parameter meterPerMapUnitValue between the coordinate system unit coordUnit and the unit meter, according to Formula 2: Where: resolution indicates the map resolution at the current level; PPI indicates the screen resolution, which defaults to 96; meterPerMapUnitValue indicates the conversion parameter in meters; Calculate the resolution of the map layer where the current tile is located, and calculate the bounds of the tile map according to formula 1; finally, construct the dynamic loading parameter dymanicParams based on the obtained coordinate system prjCoordSys, bounds, and tile width / height.

5. The highly adaptable map service dynamic splitting method according to administrative area boundaries according to claim 1, characterized in that: In step 4, the administrative region code regionCode is extracted from the request parameters, and the address regionUrl of the corresponding administrative region service is obtained from the configuration according to the level of the administrative region code regionCode, thereby distinguishing the type of administrative region service platform. If the administrative region service regionService is an ArcGIS service, the administrative region filter condition regionFilter can be constructed according to the administrative region code regionCode, the administrative region layer serviceLayer of the administrative region service, and the administrative region code field regionField; If the administrative region service regionService is a supermap service, it is necessary to request the layers interface of the supermap service according to the service real address serviceUrl to obtain the service graphic information layersInfo, and then find the corresponding layer regionLayerInfo in the layer information, and construct the filtering condition regionFilter according to the layer administrative region code field regionField.

6. The highly adaptable map service dynamic splitting method according to administrative area boundaries according to claim 1, characterized in that: In step 5, the administrative region filtering condition obtained in step 4 is put into the dynamic loading parameter dynamicParams calculated in step 3, and an administrative region picture request is initiated with dynamicParams as a parameter to obtain the administrative region picture regionPic, wherein: (6.1) For ArcGIS service, the administrative region filter condition regionFilter constructed in step 4 is placed under the layerDefs node of the dynamic loading parameter dynamicParams calculated in step 3, and an administrative region image request is initiated with the dynamic loading parameter dynamicParams as a parameter to obtain the administrative region image regionPic; (6.2) In the SuperMap service, add the administrative region filter condition obtained in step 4 to the displayFilter node of regionLayerInfo to obtain new layer information newInfo. The new layer information is used as a parameter. Then, according to the real address serviceUrl, the tempLayersSet interface of the SuperMap service is requested to create a temporary layer tempLayer with the filter condition, and obtain the temporary layer id tempLayerID. Finally, the temporary layer id, i.e., tempLayerId, is placed in the layersID node of the dynamic loading parameter dynamicParams, and a request for an administrative region picture is initiated with dynamicParams as a parameter to obtain the administrative region picture regionPic.

7. The highly adaptable map service dynamic splitting method according to administrative area boundaries according to claim 1, characterized in that: In step 6, a blank canvas Graphics2D in RGB format is constructed in memory with the width and height of the original loaded image servicePic as the size, and the transparency of the background is set to 0, and the original image regionPic is drawn into the canvas as the background image; the synthesis of the image is specified, and the logic rule is to place the background image above the original image, retain the overlapping part during synthesis, and set the transparency of the synthesized image to opaque; According to the synthesis logic rules, the original loaded picture servicePic and the administrative region picture regionPic are synthesized to obtain the synthesized picture / tile resultPic.