CN115061989B - GIS data sharing method and system - Google Patents

GIS data sharing method and system Download PDF

Info

Publication number
CN115061989B
CN115061989B CN202210635009.4A CN202210635009A CN115061989B CN 115061989 B CN115061989 B CN 115061989B CN 202210635009 A CN202210635009 A CN 202210635009A CN 115061989 B CN115061989 B CN 115061989B
Authority
CN
China
Prior art keywords
range
screenshot
map
service
request
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
CN202210635009.4A
Other languages
Chinese (zh)
Other versions
CN115061989A (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.)
Yunnan Geological And Mineral Surveying And Mapping Institute Co ltd
Original Assignee
Yunnan Geological And Mineral Surveying And Mapping Institute 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 Yunnan Geological And Mineral Surveying And Mapping Institute Co ltd filed Critical Yunnan Geological And Mineral Surveying And Mapping Institute Co ltd
Priority to CN202210635009.4A priority Critical patent/CN115061989B/en
Publication of CN115061989A publication Critical patent/CN115061989A/en
Application granted granted Critical
Publication of CN115061989B publication Critical patent/CN115061989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The document relates to the field of map service, and provides a GIS data sharing method and a system, wherein the method comprises the following steps: receiving a map service request sent by a client; positioning a target map service according to the service topic, the map service type, the division range and the service version; determining a screenshot geographic range containing the image spots according to the requested image spot information; correcting the requested map level according to the preset map level range to obtain a target map level; calculating a screenshot pixel range according to the screenshot geographic range and the target map level; comparing the screenshot pixel range with the unit tile pixel range to adjust the screenshot geographic range; and acquiring tiles from the target map service and capturing the pictures according to the adjusted screenshot geographical range and the target map level, and sending the processed screenshot pictures to the client after processing the screenshot pictures according to the pixel range of the output pictures. The method can ensure the security of the GIS data under the condition of controllable range, and can ensure that the client can obtain the data each time.

Description

GIS data sharing method and system
Technical Field
The present disclosure relates to the field of map services, and in particular, to a method and a system for sharing GIS data.
Background
The components currently in the GIS map service include: firstly, symbolizing the existing vector and grid data to form a map; the map is then published as a map service. Map services mainly take WMS, WMTS and WFS which accord with OGC (Open geographic spatial information alliance) standards and REST services defined by various platform manufacturers as main services, the map services mainly take whole map layers to be overlapped when being overlapped and displayed in projects, personalized area access of users is not provided, a coordinate system is arranged in each map layer, and illegal personnel can reversely calculate the spatial position of elements according to the position of a map in each map layer if the map services are secret-related data and are shared in an external network, so that large-area leakage of data is caused. Aiming at the problems of security and personalized access of confidential data, the prior art solves the problems by the following technical means:
1. client masking techniques.
The existing OGC standard service provides slicing services in a standard size mode, such as 256 × 256, 512 × 512 and the like, an overlay client framework of a map requests map tiles according to the standard size, and the map is spliced in a browser to finish loading of the map. The existing client map frame is generally loaded according to a whole map, and the client side realizes the visibility control of irrelevant content through technologies such as masking and the like.
The existing client-side mask technology has the following defects: the client is still loaded in the mode of the whole map, lawless persons can also obtain the whole map to further calculate the element space position, and therefore the existing client masking technology cannot really achieve the requirement on demand in strict and controllable range, and potential safety hazards exist.
In addition, when a client requests map tile data, the situation that the geographic hierarchy of the requested geographic range is adapted to the most appropriate hierarchy of the map tile cache exists in the data fetching process of the server, and the problem is particularly obvious when the range hierarchy exceeds the maximum level and the minimum level of a map, and an empty picture is often returned to the client, so that a user cannot obtain effective data.
2. And (5) management of a space map service.
The existing management mode of the space map service is to use a single map service as a minimum management unit and provide access capability of space map services from different sources by using a unified management platform, thereby realizing organization of various types of map services. The management of the existing space map service often also can cooperate with authorization to control a single service through modes such as address encryption and the like.
The management mode has the following defects:
(1) A single map service is not suitable for extranet data sharing as a minimal unit. (2) Map data monitoring in a user-defined geographic range cannot be achieved.
3. Another management mode of the existing space map service is that one service is used for one address, in the actual use process, different service numbers need to be called according to different service numbers, and the provided service addresses are map service addresses generated by a native GIS manufacturer generally.
The management mode has the following defects:
(1) Cannot distinguish and achieve fine data differentiation, and is inconvenient for service catalogue management. (2) Through map service addresses provided by native GIS manufacturers, corresponding data services, analysis service addresses, metadata service addresses and the like can be often inferred, and data leakage is caused at certain risk.
Disclosure of Invention
The GIS data sharing management method is used for solving the problem that a GIS data sharing management scheme which is safe, efficient and controllable in range does not exist in the prior art.
In order to solve the above technical problem, an aspect of the present disclosure provides a GIS data sharing method, including:
receiving a map service request sent by a client, wherein the map service request comprises: service subject, map service type, division range, service version, request map level, request map spot information and output picture pixel range;
positioning target map service according to the service special topic, the map service type, the division range and the service version;
determining a screenshot geographical range containing the image spots according to the request image spot information;
correcting the request map level according to a preset map level range to obtain a target map level;
calculating a screenshot pixel range according to the screenshot geographic range and the target map level;
comparing the screenshot pixel range with an unit tile pixel range, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, adjusting the screenshot geographical range by the unit tile pixel range, and if the maximum value of the screenshot pixel range exceeds the unit tile pixel range, adjusting the screenshot geographical range according to the maximum value of the screenshot pixel range;
and acquiring tiles from the target map service and performing screenshot according to the adjusted screenshot geographic range and the target map level, and processing screenshot pictures according to the pixel range of the output pictures and then sending the screenshot pictures to the client.
As a further embodiment herein, the map service request does not include a request map level, the output picture pixel range is a map pixel range to be superimposed;
correcting the request map level according to a preset map level range to obtain a target map level further as follows: determining a target map level according to the pixel range of the map to be superimposed, the screenshot geographic range and a preset map level;
the method further comprises the following steps:
and sending the geographical range of the screenshot picture to the client so that the client can overlay the screenshot picture to the map to be overlaid.
As a further embodiment herein, determining a target map level according to the to-be-superimposed map pixel range, the screenshot geographic range, and a preset map level comprises:
calculating a first target resolution according to the pixel range of the map to be superposed and the screenshot geographic range;
determining an initial map level according to the first target resolution;
and correcting the initial map level according to the preset map level range to obtain the target map level.
As a further embodiment herein, receiving the map service request sent by the client and also receiving user authentication information further includes:
verifying the user authentication information, and inquiring user role information corresponding to the user authentication information after the user authentication information passes the verification;
acquiring authority range information corresponding to user role information;
and judging whether the target map service belongs to the inquired authority range information, if so, executing the steps of determining the screenshot geographical range and the subsequent steps, and if not, determining the screenshot geographical range as a malicious request and sending response rejection prompt information to the client.
As a further embodiment herein, the map service request further comprises: a cache indication field;
according to the service topic, the map service type, the division range and the service version, before the positioning of the target map service, the method further comprises the following steps:
and judging whether the cache indication field is used for starting cache, if so, inquiring a cache picture corresponding to the map service request from the cache, and sending the inquired cache picture to the client, and if not, executing the positioning target map service and the subsequent steps.
As a further embodiment herein, the GIS data sharing method further comprises:
calculating the ellipse area of the pattern spots according to the requested pattern spot information;
comparing the image spot ellipsoid area with a preset area, and if the image spot ellipsoid area is larger than the preset area, calculating a second target resolution according to the pixel range of the output image and the screenshot geographic range;
and judging whether the level of the second target resolution in the target map service is within a preset map level range, if so, setting the target map level as the level with the lowest resolution in the preset map level range, continuing to calculate the screenshot pixel range and the subsequent steps, and if not, determining as a malicious request, and sending response rejection prompt information to the client.
As a further embodiment herein, the GIS data sharing method further comprises:
calculating the area of the non-repeated request of the user for the same map service according to the related screenshot geographic range of the same user;
and calculating the percentage of the area of the non-repeated request of the user to each map service in the allowable request area of the map service, and refusing to respond to the request of the user to the map service after the percentage exceeds a preset value.
As a further embodiment herein, the GIS data sharing method further comprises:
and counting the times of sending the map service request by the same user in a preset time period, and if the counted times are more than the preset times, sending reminding information for stopping service to the client.
As a further embodiment herein, calculating a screenshot pixel range from the screenshot geographic range and the target map level comprises:
determining a map resolution according to the target map hierarchy;
and calculating the screenshot pixel range according to the screenshot geographic range and the map resolution.
In a further embodiment, the obtaining tiles from the target map service according to the adjusted screenshot geographic range and the target map level comprises:
determining a map level of a target map level in a general tile system;
determining the line and row number range of the tiles under the map level of the general tile system according to the adjusted screenshot geographic range;
converting the row and column number range of the tiles under the map level of the general tile system into the row and column number range of the tiles in the slicing scheme corresponding to the target map service according to the transformation relation between the slicing scheme corresponding to the target map service and the general tile system;
determining the address of the corresponding tile according to the row and column number range of the tile in the target map service;
and obtaining the tiles according to the real addresses of the corresponding tiles.
As a further embodiment herein, the GIS data sharing method further comprises:
receiving a statistical analysis service request sent by the client, wherein the statistical analysis service request comprises: service special topic, area range, data version, request pattern spot information, summary field and output data unit;
determining the name of a first data table to be analyzed and/or the data service to be analyzed according to the service special topic, the area range and the data version;
inquiring and storing the data to be analyzed corresponding to the request pattern spot information according to the data interface of the data service to be analyzed to obtain a second data table name to be analyzed;
and loading the summary fields and the names of the data tables to be analyzed into a preset SQL template, performing statistical analysis on the data to be analyzed by using the preset SQL template loaded with the summary fields to obtain statistical analysis results, and sending the statistical analysis results to the client, wherein the names of the data tables to be analyzed comprise the names of the first data tables to be analyzed and the names of the second data tables to be analyzed.
Another aspect of this document provides a GIS data sharing system, comprising:
a receiving unit, configured to receive a map service request sent by a client, where the map service request includes: service topic, map service type, division range, service version, request map level, request spot information and output picture pixel range;
the positioning unit is used for positioning the target map service according to the service theme, the map service type, the division range and the service version;
the first adaptation unit is used for calculating the screenshot geographical range containing the pattern spots according to the request pattern spot information;
the second adaptation unit is used for correcting the request map level according to a preset map level range to obtain a target map level;
the screenshot pixel range calculating unit is used for calculating a screenshot pixel range according to the screenshot geographic range and the target map level;
the screenshot geographical range adjusting unit is used for comparing the screenshot pixel range with a unit tile pixel range, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, the screenshot geographical range is adjusted by the unit tile pixel range, and if the maximum value of the screenshot pixel range exceeds the unit tile pixel range, the screenshot geographical range is adjusted according to the maximum value of the screenshot pixel range;
and the screenshot unit is used for acquiring tiles from the target map service according to the adjusted screenshot geographic range and the target map level, screenshot, processing the screenshot picture according to the output picture pixel range and then sending the screenshot picture to the client.
The GIS data sharing method and system provided by the invention have the advantages that a map service request is set to comprise a service topic, a map service type, a division range, a service version, a request map level, a request spot information and an output picture pixel range; positioning a target map service according to the service topic, the map service type, the division range and the service version; determining a screenshot geographical range containing the image spots according to the request image spot information; correcting the requested map level according to a preset map level range to obtain a target map level; calculating a screenshot pixel range according to the screenshot geographic range and the target map level; comparing the screenshot pixel range with the unit tile pixel range to adjust the screenshot geographical range; and outputting the screenshot picture to the client according to the adjusted screenshot geographic range, the target map level and the output picture pixel range, so that GIS data sharing with controllable range can be realized, and the client can be ensured to obtain data each time. In addition, the real address of the map service is not required to be provided, and the security of the GIS data under the condition of controllable range can be ensured through a unified access mode.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art, the drawings used in the embodiments or technical solutions in the prior art are briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 shows a first flowchart of a GIS data sharing method of embodiments herein;
FIG. 2 is a schematic diagram illustrating requesting blob information in an embodiment herein;
fig. 3 shows a second flowchart of a GIS data sharing method of embodiments herein;
FIG. 4 shows a third flowchart of a GIS data sharing method of embodiments herein;
fig. 5 shows a fourth flowchart of a GIS data sharing method of embodiments herein;
fig. 6 shows a fifth flowchart of a GIS data sharing method of embodiments herein;
FIG. 7 shows a flow diagram for obtaining tiles according to an embodiment herein;
fig. 8 shows a sixth flowchart of a GIS data sharing method of embodiments herein;
fig. 9 shows a seventh flowchart of a GIS data sharing method of embodiments herein;
FIG. 10 is a block diagram of a GIS data sharing system according to an embodiment of the present disclosure;
FIG. 11 is another block diagram of a GIS data sharing system in accordance with embodiments herein;
fig. 12 shows a block diagram of a GIS data sharing device according to an embodiment of the present disclosure.
Description of the symbols of the drawings:
1001. a receiving unit;
1002. a positioning unit;
1003. a first adaptation unit;
1004. a second adaptation unit;
1005. a screenshot pixel range calculation unit;
1006. a screenshot geographical range adjusting unit;
1007. a screenshot unit;
1008. a query unit;
1009. a counting unit;
1202. a GIS data sharing device;
1204. a processor;
1206. a memory;
1208. a drive mechanism;
1210. an input/output module;
1212. an input device;
1214. an output device;
1216. a presentation device;
1218. a graphical user interface;
1220. a network interface;
1222. a communication link;
1224. a communication bus.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments herein without making any creative effort, shall fall within the scope of protection.
It should be noted that the terms "first," "second," and the like in the description and claims herein and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments herein described are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In the actual implementation of the system or the device product, the method according to the embodiments or shown in the drawings can be executed in sequence or in parallel.
In an embodiment of the present disclosure, a GIS data sharing method is provided, which is applied to a GIS data sharing platform and is used to solve the problems of poor security and uncontrollable range of GIS data in the prior art. Specifically, as shown in fig. 1, the GIS data sharing method includes:
step 101, receiving a map service request sent by a client, wherein the map service request comprises: service topic, map service type, zoning scope, service version, request map level, request spot information and output picture pixel scope.
In detail, the information in the map service request is the user-defined information. In this step, if the user does not configure the requested map level and the pixel range of the output picture, the default requested map level is 18 levels, and the pixel range of the output picture is 256 × 256.
The main purpose of the service theme is to conveniently manage different map service sources from different refinement degrees, the large categories of data are distinguished through the service theme, the same large category of spatial data often has the same or similar data attributes, and the service theme comprises the current land utilization situation, cultivated land protection red lines, real estate home bases, permanent basic farmlands and the like. The map service type is used to indicate that the retrieval is a map service, including but not limited to WMS, REST, POSTGIS, JW, WMTS, JWREST, arcGIsRest. The regional scope can be divided according to administrative regions such as countries, provinces, cities, counties, towns, communities (villages) and even village groups. The service version is used for indicating different versions of the map service, and particularly, the service version can be distinguished through service release time.
The request map level is a map level at which the user desires to obtain data. The level of the existing map service is generally 18 levels, each level corresponds to a different scale, and the larger the scale is, the smaller the corresponding resolution is, and the larger the geographic range is.
The requested map spot information is the physical range information of the map requested by the user, and can be represented by an image with longitude and latitude (as shown in fig. 2) or longitude and latitude coordinates.
The pixel range of the output picture is a pixel range corresponding to the user request patch, and is 256 × 256, for example.
The client can realize the configuration of the map service request by accessing the GIS data sharing platform unified access interface, can obtain the configuration interface of the service request by accessing the unified access interface, and can also install an APP capable of interacting with the GIS data sharing platform in the client. The manner in which the map service request is sent is not limited herein. In specific implementation, the service theme, the map service type, the zoning scope and the service version can provide a selection list for the user to configure.
Specifically, in some embodiments of the present disclosure, the client may be a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, or the like. Wherein, wearable equipment of intelligence can include intelligent bracelet, intelligent wrist-watch, intelligent glasses, intelligent helmet etc.. Of course, the client is not limited to the electronic device with a certain entity, and may also be software running in the electronic device.
And 102, positioning the target map service according to the service topic, the map service type, the division range and the service version.
In this step, the map service, i.e., the target map service, can be uniquely located by the service topic, the map service type, the area range, and the service version.
And 103, determining the screenshot geographical range containing the image spots according to the requested image spot information.
Specifically, as shown in fig. 2, the maximum and minimum coordinates of the blob information (Geometry) are taken, and a rectangle (bbox) composed of the maximum and minimum coordinates is used as the geographical range of the screenshot containing the blobs.
And step 104, correcting the requested map level according to the preset map level range to obtain the target map level.
In detail, the preset map level range may be set by a developer, and is not limited herein, and in some embodiments, the preset map level range is, for example, 10-18 levels.
In the correction, if the requested map level exceeds the predetermined map level range, the requested map level is limited within the predetermined map level range, for example, if the requested map level range is 19 levels, the target map level is 18 levels, and for example, if the requested map level range is less than 0 levels, the target map level is 10 levels.
And 105, calculating a screenshot pixel range according to the screenshot geographic range and the target map level.
In the embodiment, the map resolution (or the scale) corresponding to the target map level is determined, and the screenshot pixel range is calculated according to the screenshot geographic range and the map resolution (or the scale). Specifically, the geographic length and width of the screenshot are divided by the resolution, and then an integer is taken to obtain the pixel coordinates of the length and width.
The method can prevent the condition that the screenshot image is pulled up under the condition that the screenshot geographic range and the target map level are adjusted.
And 106, comparing the screenshot pixel range with the unit tile pixel range, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, adjusting the screenshot geographical range by the unit tile pixel range, and if the maximum value of the screenshot pixel range exceeds the unit tile pixel range, adjusting the screenshot geographical range according to the maximum value of the screenshot pixel range.
The unit tile pixel range is 256 multiplied by 256 under a common condition, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, the length and width of pixels of the screenshot are all smaller than 256, the screenshot pixel range is firstly set as the unit tile pixel range according to the unit tile pixel range, and then the adjusted screenshot geographic range is calculated according to the adjusted screenshot pixel range. Specifically, the original screenshot geographical range is divided by the unit tile pixel range to obtain the resolution; calculating the difference value between the pixel range of the unit tile and the pixel range of the original screenshot; multiplying the resolution by the difference value to obtain the offset of the original screenshot geographic range; and adjusting the original screenshot geographic range according to the offset to obtain the adjusted screenshot geographic range.
If the maximum value of the screenshot pixel range exceeds the unit tile pixel range, the maximum value of the length and width pixels of the screenshot is larger than 256, the screenshot pixel range is adjusted to be X X X according to the maximum pixel value X of the screenshot pixel range, and then the adjusted geographical range is calculated according to the adjusted screenshot pixel range.
In the step, by adjusting the pixel range to be not less than the range of the unit tile, the situation that some manufacturers cannot correctly return results when the WMS map service is compatible can be avoided, the situation that the peripheral content of the ground object cannot be reflected due to the small picture output combined with the large probability of the content of the ground object in actual use is avoided, and the reference of the output picture is limited.
And 107, acquiring tiles from the target map service and capturing the images according to the adjusted screenshot geographical range and the target map level, processing the screenshot images according to the pixel range of the output images, and then sending the screenshot images to the client.
When the method is implemented, the tile database of the corresponding level is positioned according to the level of the target map, then the corresponding tiles are obtained from the tile database according to the adjusted screenshot geographic range and are spliced, then screenshot processing is carried out on spliced images according to the adjusted screenshot geographic range, and finally the screenshot images are sent to the client after being continuously zoomed according to the pixel range of the output image. For some map services, the tile database of the corresponding level can be positioned according to the target map level, and then screenshot can be directly performed according to the adjusted screenshot geographic range.
Before the processed screenshot picture is sent to the client, watermarking processing can be further performed on the processed screenshot picture, and the added content is user information, so that when the screenshot picture is divulged, divulging personnel can be traced.
The embodiment provides a set of map service system based on service subject-map service type-region division and service version, facilitates service warehousing management, provides a uniform access interface (sending a map service request) of the map service, realizes hiding of a real map service address, and can ensure the security of GIS data under the condition of controllable range through a uniform access mode. By applying target adaptation and overrun adaptation, GIS data sharing with controllable range can be realized, and a client can be guaranteed to obtain data each time.
In a further embodiment of this document, the method may further respond to a request for a map overlay from a user, specifically, as shown in fig. 3, including:
step 301, receiving a map service request (i.e. a map overlay request) sent by a client, where the map service request includes: the map data processing method comprises the following steps of service thematic, map service type, zoning range, service version, request pattern spot information and to-be-superposed map pixel range.
In detail, the pixel range of the map to be superimposed is used for indicating the resolution of the map display window of the screen of the client.
Step 302, positioning the target map service according to the service topic, the map service type, the division range and the service version.
Step 303, determining the screenshot geographical range containing the image spots according to the requested image spot information.
And 304, determining a target map level according to the pixel range of the map to be superposed, the screenshot geographic range and a preset map level.
When the step is implemented, first, calculating a first target resolution according to a pixel range of a map to be superposed and a screenshot geographic range; then, determining an initial map level according to the first target resolution; and finally, correcting the initial map level according to the preset map level range to obtain the target map level.
Step 305, calculating the screenshot pixel range according to the screenshot geographic range and the target map level.
And step 306, comparing the screenshot pixel range with the unit tile pixel range, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, adjusting the screenshot geographical range by the unit tile pixel range, and if the maximum value of the screenshot pixel range exceeds the unit tile pixel range, adjusting the screenshot geographical range according to the maximum value of the screenshot pixel range.
And 307, acquiring tiles from the target map service and capturing the images according to the adjusted geographic range of the captured images and the target map level, processing the captured images according to the pixel range of the output images and then sending the processed captured images to the client, and sending the geographic range of the captured images to the client so that the client can superimpose the captured images on the map to be superimposed. The process of the client-side map overlay can refer to the prior art, and is not detailed here.
In the Wen Yi embodiment, in order to distinguish the map service acquired by the user, an authority control system is also configured in the document, and if the user wants to acquire the map service, the user needs to register to acquire the authority first, and the authority limits the range of the user enjoying the map service. For example, a user a registers in the system, and a user name is registered as zhang san, from the service perspective, zhang san only needs to use the current land utilization situation to cultivate land and protect red line data, and then it is necessary to see whether a role exists in the system, including the two data authorities, if yes, directly give the role to the user, and if not, it indicates that the new service is provided, and a role including the two authorities is created. After the user finishes the registration, token information is generated according to the user information and is sent to the user (including the user side).
Specifically, as shown in fig. 4, receiving user authentication information when receiving a map service request sent by a client further includes:
step 401, verifying the user authentication information, and after the user authentication information passes the verification, querying user role information corresponding to the user authentication information.
Specifically, the user authentication information includes Token information, the user authentication information is verified, that is, the user information is obtained through restoration according to the Token information, the authorization information is inquired according to the user information, and if the user authentication information is authorized, the user authentication information passes verification.
When registering, the user records the mapping relationship among Token information, user role information and authority scope in the database.
Step 402, obtaining authority range information corresponding to the user role information.
And 403, judging whether the target map service belongs to the inquired authority range information, if so, executing the steps of determining the screenshot geographic range and the subsequent steps, and if not, sending response rejection prompt information to the client. The prompt information is, for example, information such as no access right, and is not limited herein.
The embodiment can realize the control of the data accessible to the user and provide personalized services for the user.
In one embodiment of the present disclosure, as shown in fig. 5, in order to increase the response speed of the map service, the map service request further includes: a cache indication field, such as cacheStatus. The caching indication field is used for indicating whether the client has authorized caching service. Specifically, for example, if the cache indication field is 1, then there is a start cache. If the cache indication field is 2, the cache is not started, and in this case, even if the cache can be queried, the cache is not provided to the user. Step 102, according to the service topic, the map service type, the zoning scope and the service version, before the positioning the target map service, further comprises:
and 102', judging whether the cache indication field is used for starting the cache, if so, inquiring a cache picture corresponding to the map service request from the cache, and sending the inquired cache picture to the client, otherwise, executing the step 102.
In specific implementation, considering that the general data volume of the requested map spot information is large, a certain pressure is caused on server storage by a map service request comprising the requested map spot information, in order to solve the problem, a business ID and a business data type (dataType) field can be added in the map service request, business data (map service) is positioned through the two fields, and the business ID, the business data type field and a screenshot picture are cached so as to be called when caching is carried out, wherein the service ID is uniquely determined by a service topic, a map service type, a zoning range and a service version.
In this embodiment, in order to avoid the excessive area of the map requested by the user in a single time, which may result in the disclosure of the security map, as shown in fig. 6, the method further includes:
step 601, calculating the ellipse area of the pattern spots according to the requested pattern spot information. The process of calculating the ellipse area of the spot based on the geographical range, which is not limited herein, may be referred to in the art.
Step 602, comparing the area of the spot ellipse with a preset area, and if the area of the spot ellipse is larger than the preset area, calculating a second target resolution according to the pixel range of the output picture and the geographical range of the screenshot.
Specifically, the preset area is, for example, one square kilometer, and may be set according to the security level of the map, and specific values thereof are not limited herein.
Step 603, determining whether the level of the second target resolution in the target map service is within the preset map level range, if so, setting the target map level as the level with the lowest resolution in the preset map level range, continuing to execute the step of calculating the screenshot pixel range and the subsequent steps (i.e. returning to continue executing step 105 and the subsequent steps), and if not, determining as a malicious request, and sending response rejection prompt information to the client.
In the embodiment, when the map request range exceeds the preset area, resolution adjustment can be realized by reducing the hierarchy of the target map service, specifically, under the condition that the geographic range is not changed, the resolution of the map is reduced (the scale of the map is reduced), and the range of returned screenshot pixels (the height and width of the screenshot pixels, see step 105) is reduced by back calculation, so that the definition of the picture is reduced, data decryption is achieved, and the security of the data is ensured.
In an embodiment of this document, as shown in fig. 7, the step 107 of obtaining tiles from the target map service according to the adjusted geographical range of the screenshot and the target map level includes:
step 701, determining a map level of a target map level in a general tile system. Namely, the offset of the map tile scheme and the universal tile system is determined, and the determined hierarchy is offset.
Specifically, the generic tile system comprises:
(1) Determining the level and the resolution, wherein the level is determined from the level 0, the level 0 tile comprises a 256 × 256 picture or two 512 × 256 pictures, the geographic coordinate system comprises [ 180, -90, 180, 90 ] and [ 180, -180, 180, 180 ], and the projection coordinate system comprises one of WebMercator projections [ 20037508.3427892, -20037508.3427892,20037508.3427892,20037508.3427892 ];
(2) Determining world coordinate system origin points, wherein the geographic coordinate system and the projection coordinate system are from the origin point of the upper left corner of the global range, the geographic coordinate system origin point is, for example, [ 180, 90 ], [ 180, 180 ], and the projection coordinate system origin point is, for example, [ 20037508.3427892, [ 20037508.3427892 ];
(3) The unit tile size is 256 × 256.
And step 702, determining a line and row number range of the tiles under the map level of the general tile system according to the adjusted screenshot geographical range.
And 703, converting the line and row number range of the tiles in the map hierarchy of the general tile system into the line and row number range of the tiles in the slicing scheme corresponding to the target map service according to the transformation relation between the slicing scheme corresponding to the target map service and the general tile system.
The transformation relationship of the target map service to the generic tile system may be determined by consulting a provider of the target map service, or by analyzing the target map service. The transformation relationship includes a row-column number transformation rule. Providers of map services referred to herein include, but are not limited to, WMS, WMTS, XYZ, TMS, and custom services.
And step 704, determining addresses of the corresponding tiles according to the row and column number range of the tiles in the target map service.
Step 705, obtaining a tile according to the address of the corresponding tile.
When the step is implemented, if a plurality of tiles are obtained, in order to improve the tile obtaining efficiency, the tiles can be obtained by starting a multithreading mode.
According to the embodiment, the adaptation of map services of different manufacturers can be realized through the algorithm, and the design mode of abstraction and instantiation is adopted, so that the adaptation difficulty of schemes of different manufacturers is reduced, the development efficiency is improved, and the acquisition efficiency of tiles is improved.
In an embodiment of this document, as shown in fig. 8, the GIS data sharing method further includes, in addition to the above steps:
step 801, calculating the area of the non-repeated request of the user to the same map service according to the related screenshot geographical range of the same user.
Step 802, calculating the percentage of the unrepeated request area of the user for each map service in the allowed request area of the map service, and when the percentage exceeds a preset value, indicating that the user has a risk of maliciously downloading the whole map data, so that the risk of leakage of the whole map is increased, and refusing to respond to the request of the user for the map service.
In detail, the percentage of the non-repeat request area of the map service to the allowable request area of the map service may be set by the administrator, for example, to 80%, and the value is not limited herein.
According to the embodiment, the risk that the user acquires the map service of a partial geographic range every time and finally splices the map screenshots together to obtain a complete map can be prevented, and therefore data leakage is prevented.
In an embodiment herein, data leakage may also be prevented by: and counting the times of sending the map service request by the same user in a preset time period, and if the counted times are more than the preset times, sending reminding information for stopping service to the client.
In detail, the predetermined time period and the predetermined times are both set parameters set by the administrator, and specific values thereof are not limited herein. The reminder is, for example, that the upper limit of the number of requests has been reached, please again later.
In an embodiment of this document, the GIS data sharing platform further provides a statistical data service, specifically, as shown in fig. 9, including:
step 901, receiving a statistical analysis service request sent by a client, where the statistical analysis service request includes: service topic, area range, data version, request pattern information, summary field and output data unit.
Specifically, the service topic, the area range, the data version, and the request spot information refer to the foregoing embodiments.
The summary field is defined with a data service for summary, in general, the summary field includes 1-2 fields, each field can be directly processed according to string (string) type without field definition, if there is field definition, three cases of string (string/date), integer (int/long/dateTime), and decimal (float/double) are considered.
The output data unit is, for example, square meter, hectare, mu, etc.
The client can realize the configuration of the statistical analysis service request in a mode of accessing an access interface of the GIS data sharing platform.
Step 902, determining the first data table name to be analyzed and/or the data service to be analyzed according to the service topic, the area range and the data version.
Specifically, the first data table to be analyzed is a locally stored data table, and part or all of the data to be analyzed is stored. The data service to be analyzed is a data service issued by a data service manufacturer, and corresponding data to be analyzed needs to be acquired in a service access mode.
Step 903, inquiring the data to be analyzed corresponding to the requested spot information according to the data interface of the data service to be analyzed, if the inquiry is successful, storing the data to be analyzed corresponding to the spot information in a relational database, and simultaneously determining the table name of the data to be analyzed corresponding to the spot information, namely obtaining the table name of the second data to be analyzed.
In this step, if the query fails, in order to avoid affecting the speed of other statistical analysis service requests (for example, multiple concurrent statistical analysis service requests exist at the same time), the statistical analysis service request with the query failure may be added to the queue to be processed, and the query is performed again in an offline manner (one analysis service request is reversely simulated by a retry thread), and if the query fails for multiple times, a prompt message that the service cannot be provided is fed back to the client.
And 904, loading the summary fields and the names of the data tables to be analyzed into a preset SQL template, performing statistical analysis on the data to be analyzed by using the SQL template loaded with the summary fields to obtain statistical analysis results, and sending the statistical analysis results to the client, wherein the names of the data tables to be analyzed comprise the first name of the data table to be analyzed and the second name of the data table to be analyzed. The statistical algorithm of the fields defined in the SQL template is preset, and the statistical analysis result can be obtained by analyzing the data to be analyzed through the SQL template loaded with the summary fields.
According to the method and the device, through the use of the SQL template, the SQL needs to be rewritten when each type of statistics of a plurality of services is summarized, and the data statistics efficiency is improved.
When the embodiment is implemented, the statistical analysis result can be cached according to the user requirement, so that the next request can be called from the cache, and the next request efficiency is improved. The cache retry mechanism is specifically as follows:
(1) Receiving a statistical analysis service request sent by a client, wherein the statistical analysis service request comprises: service topic, area range, data version, request pattern information, summary field, output data unit, service ID and service data type.
(2) And positioning the target data service according to the service topic, the area range and the data version.
(3) And (5) inquiring the cache according to the target data service, the service ID and the service data type, if a statistical analysis result corresponding to the target data service, the service ID and the service data type exists in the cache, returning the statistical analysis result to the client, and if the statistical analysis result does not exist, executing the step (4).
(4) And constructing a request task and setting the task with the highest priority. The response process of the task comprises the following steps:
inquiring initial data corresponding to the request pattern spot information according to a data interface of the target data service, and if the inquiry is successful, storing the initial data in a relational database; and loading the summary fields into a preset SQL template, performing statistical analysis on the data in the relational database by using the SQL template loaded with the summary fields to obtain a statistical analysis result, and sending the statistical analysis result to the client. Presetting a statistical algorithm with fields defined in an SQL template, analyzing the relational database by the SQL template loaded with the summary fields to obtain a statistical analysis result, and sending the statistical analysis result to a client; and caching the statistical analysis result, the service ID and the service data type.
In this step, if the initial data cannot be obtained or the task fails to be executed, the priority of the current task is adjusted, the task time is updated, and the result is fed back to the client.
The caching mechanism of the map service request can refer to this embodiment, and is not described in detail here. In particular implementations, whether a request is specific to a statistical analysis service, or a map service or a specific why map service type may be distinguished by the service type field.
In summary, the GIS data sharing method provided herein can achieve the following technical effects:
(1) The method has the advantages that a uniform and undifferentiated data management system of the map service and the data analysis service is established, uniform service request interfaces (map service requests and statistical analysis service requests) are provided, development efficiency is improved, access difficulty is reduced, management is facilitated, and corresponding interfaces of new services cannot be redeployed due to the increase of the new services;
(2) In the implementation process, the adaptation algorithm (see step 104 to step 106) ensures that a result can always be returned under the condition of no communication, avoids the problem of parameter adaptation that the client needs to try a proper range and parameters for many times, and improves the working efficiency;
(3) By means of authority management, limitation of map request range, limitation of map request area and limitation of map request times, the risk of map data leakage can be reduced;
based on the same inventive concept, a GIS data sharing system is also provided herein, as described in the embodiments below. Because the principle of solving the problem of the GIS data sharing system is similar to that of the GIS data sharing method, the GIS data sharing system can be implemented by the GIS data sharing method, and repeated parts are not described again.
Specifically, as shown in fig. 10, the GIS data sharing system includes:
a receiving unit 1001, configured to receive a map service request sent by a client, where the map service request includes: service topic, map service type, zoning scope, service version, request map level, request spot information and output picture pixel scope.
The positioning unit 1002 is configured to position a target map service according to a service topic, a map service type, a zoning scope, and a service version.
The first adapting unit 1003 is configured to calculate a screenshot geographic range including the blob according to the requested blob information.
The second adapting unit 1004 is configured to correct the requested map level according to the preset map level range, so as to obtain a target map level.
And a screenshot pixel range calculation unit 1005, configured to calculate a screenshot pixel range according to the screenshot geographic range and the target map level.
And a screenshot geographic range adjusting unit 1006, configured to compare the screenshot pixel range with the unit tile pixel range, adjust the screenshot geographic range according to the unit tile pixel range if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, and adjust the screenshot geographic range according to the maximum value of the screenshot pixel range if the maximum value of the screenshot pixel range exceeds the unit tile pixel range.
And the screenshot unit 1007 is used for acquiring tiles from the target map service according to the adjusted screenshot geographical range and the target map level, screenshot, processing the screenshot picture according to the output picture pixel range, and sending the screenshot picture to the client.
In a further embodiment, the receiving unit 1001 is further configured to receive a statistical analysis service request sent by a client, where the statistical analysis service request includes: service topic, area range, data version, request pattern information, summary field and output data unit.
The positioning unit 1002 is further configured to determine a name of the first data table to be analyzed and/or a data service to be analyzed according to the service topic, the area range, and the data version.
As shown in fig. 11, the GIS data sharing system further includes:
the query unit 1008 queries and stores the to-be-analyzed data corresponding to the request pattern spot information according to the data interface of the to-be-analyzed data service, so as to obtain a second to-be-analyzed data table name.
The statistics unit 1009 loads the summary field and the to-be-analyzed data table name into the preset SQL template, performs statistical analysis on the to-be-analyzed data by using the preset SQL template loaded with the summary field to obtain a statistical analysis result, and sends the statistical analysis result to the client, where the to-be-analyzed data table name includes a first to-be-analyzed data table name and a second to-be-analyzed data table name.
The embodiment can realize the GIS data sharing with controllable range, and can ensure that the client can obtain data at each time. In addition, the real address of the map service is not required to be provided, and the security of the GIS data under the condition of controllable range can be ensured through a unified access mode.
In an embodiment herein, a GIS data sharing device is also provided, as shown in fig. 12, GIS data sharing device 1202 may include one or more processors 1204, such as one or more Central Processing Units (CPUs), each of which may implement one or more hardware threads. GIS data sharing device 1202 may also include any memory 1206 for storing any kind of information such as code, settings, data, and the like. For example, and without limitation, memory 1206 may include any one or more of the following in combination: any type of RAM, any type of ROM, flash memory devices, hard disks, optical disks, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent fixed or removable components of GIS data sharing device 1202. In one case, when the processor 1204 executes the associated instructions stored in any memory or combination of memories, the GIS data sharing device 1202 may perform any of the operations of the associated instructions. GIS data sharing device 1202 also includes one or more drive mechanisms 1208 for interacting with any storage, such as a hard disk drive mechanism, an optical disk drive mechanism, and so forth.
GIS data sharing device 1202 may also include input/output module 1210 (I/O) for receiving various inputs (via input device 1212) and for providing various outputs (via output device 1214). One particular output mechanism may include a presentation device 1216 and an associated graphical user interface 1218 (GUI). In other embodiments, input/output module 1210 (I/O), input device 1212, and output device 1214 may also not be included, but merely as one computer device in a network. GIS data sharing device 1202 may also include one or more network interfaces 1220 for exchanging data with other devices via one or more communication links 1222. One or more communication buses 1224 couple the above-described components together.
The communication link 1222 may be implemented in any manner, such as through a local area network, a wide area network (e.g., the internet), a point-to-point connection, etc., or any combination thereof. The communication link 1222 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.
Corresponding to the methods in fig. 1, 3-9, the embodiments herein also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the above-described method.
Embodiments herein also provide computer readable instructions, wherein a program therein causes a processor to perform the method as shown in fig. 1, 3-9 when the instructions are executed by the processor.
It should be understood that, in various embodiments herein, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments herein.
It should also be understood that, in the embodiments herein, the term "and/or" is only one kind of association relation describing an associated object, meaning that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Those of ordinary skill in the art will appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided herein, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments herein.
In addition, functional units in the embodiments herein may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present invention may be implemented in a form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The principles and embodiments of this document are explained herein using specific examples, which are presented only to aid in understanding the methods and their core concepts; meanwhile, for the general technical personnel in the field, according to the idea of this document, there may be changes in the concrete implementation and the application scope, in summary, this description should not be understood as the limitation of this document.

Claims (9)

1. A GIS data sharing method is characterized by comprising the following steps:
receiving a map service request sent by a client, wherein the map service request comprises: service topic, map service type, division range, service version, request map level, request spot information and output picture pixel range;
positioning a target map service according to the service topic, the map service type, the division range and the service version;
determining a screenshot geographical range containing the image spots according to the request image spot information;
correcting the request map level according to a preset map level range to obtain a target map level;
calculating a screenshot pixel range according to the screenshot geographic range and the target map level;
comparing the screenshot pixel range with an unit tile pixel range, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, adjusting the screenshot geographical range by using the unit tile pixel range, and if the maximum value of the screenshot pixel range exceeds the unit tile pixel range, adjusting the screenshot geographical range according to the maximum value of the screenshot pixel range;
acquiring tiles from the target map service and capturing pictures according to the adjusted screenshot geographic range and the target map level, and sending the screenshot pictures to the client after processing the screenshot pictures according to the pixel range of the output pictures;
according to the adjusted screenshot geographic range and the target map level, obtaining tiles from the target map service comprises:
determining a map level of a target map level in a general tile system;
determining a row and column number range of the tiles under the map level of the general tile system according to the adjusted screenshot geographic range;
converting the row and column number range of the tiles under the map level of the general tile system into the row and column number range of the tiles in the slicing scheme corresponding to the target map service according to the transformation relation between the slicing scheme corresponding to the target map service and the general tile system;
determining the address of the corresponding tile according to the row and column number range of the tile in the target map service;
and obtaining the tiles according to the real addresses of the corresponding tiles.
2. The GIS data sharing method of claim 1, wherein the map service request does not include a request map level, the output picture pixel range is a map pixel range to be superimposed;
correcting the request map level according to a preset map level range to obtain a target map level further as follows: determining a target map level according to the pixel range of the map to be superimposed, the screenshot geographic range and a preset map level;
the method further comprises the following steps: and sending the geographical range of the screenshot picture to the client so that the client can overlay the screenshot picture to the map to be overlaid.
3. The GIS data sharing method of claim 2 wherein determining a target map level based on the map pixel range to be overlaid, the screenshot geographic range, and a preset map level comprises:
calculating a first target resolution according to the pixel range of the map to be superposed and the screenshot geographic range;
determining an initial map level according to the first target resolution;
and correcting the initial map level according to the preset map level range to obtain the target map level.
4. The GIS data sharing method of claim 1 wherein receiving the map service request sent by the client further receives user authentication information, further comprising:
verifying the user authentication information, and inquiring user role information corresponding to the user authentication information after the user authentication information passes the verification;
acquiring authority range information corresponding to user role information;
and judging whether the target map service belongs to the inquired authority range information, if so, executing the steps of determining the screenshot geographic range and the subsequent steps, and if not, sending response rejection prompt information to the client.
5. The GIS data sharing method of claim 1 wherein the map service request further comprises: a cache indication field;
according to the service topic, the map service type, the division range and the service version, the positioning target map service also comprises the following steps:
and judging whether the cache indication field is used for starting cache, if so, inquiring a cache picture corresponding to the map service request from the cache, and sending the inquired cache picture to the client, and if not, executing the positioning target map service and the subsequent steps.
6. The GIS data sharing method of claim 1 further comprising:
calculating the ellipse area of the pattern spots according to the requested pattern spot information;
comparing the area of the pattern spot ellipsoid with a preset area, and if the area of the pattern spot ellipsoid is larger than the preset area, calculating a second target resolution according to the pixel range of the output picture and the screenshot geographical range;
and judging whether the level of the second target resolution in the target map service is within a preset map level range, if so, setting the target map level as the level with the lowest resolution in the preset map level range, continuing to calculate the screenshot pixel range and the subsequent steps, and if not, determining as a malicious request, and sending response rejection prompt information to the client.
7. The GIS data sharing method of claim 1, further comprising:
calculating the area of the non-repeated request of the user for the same map service according to the related screenshot geographical range of the same user;
calculating the percentage of the unrepeated request area of the user for each map service in the allowable request area of the map service, and refusing to respond to the request of the user for the map service after the percentage exceeds a preset value;
and counting the times of sending the map service request by the same user in a preset time period, and if the counted times are more than the preset times, sending reminding information for stopping service to the client.
8. The GIS data sharing method of claim 1, wherein the method further comprises:
receiving a statistical analysis service request sent by the client, wherein the statistical analysis service request comprises: service special topic, area range, data version, request pattern information, summary field and output data unit;
determining the name of a first data table to be analyzed and/or the data service to be analyzed according to the service special topic, the area range and the data version;
inquiring and storing the data to be analyzed corresponding to the request pattern spot information according to a data interface of the data service to be analyzed to obtain a second data table name to be analyzed;
and loading the summary fields and the names of the data tables to be analyzed into a preset SQL template, performing statistical analysis on the data to be analyzed by using the preset SQL template loaded with the summary fields to obtain statistical analysis results, and sending the statistical analysis results to the client, wherein the names of the data tables to be analyzed comprise the names of the first data tables to be analyzed and the names of the second data tables to be analyzed.
9. A GIS data sharing system, comprising:
a receiving unit, configured to receive a map service request sent by a client, where the map service request includes: service subject, map service type, division range, service version, request map level, request map spot information and output picture pixel range;
the positioning unit is used for positioning the target map service according to the service theme, the map service type, the division range and the service version;
the first adaptation unit is used for calculating the screenshot geographical range containing the pattern spots according to the request pattern spot information;
the second adaptation unit is used for correcting the request map level according to a preset map level range to obtain a target map level;
the screenshot pixel range calculating unit is used for calculating a screenshot pixel range according to the screenshot geographic range and the target map level;
the screenshot geographical range adjusting unit is used for comparing the screenshot pixel range with a unit tile pixel range, if the maximum value of the screenshot pixel range is smaller than the unit tile pixel range, the screenshot geographical range is adjusted by the unit tile pixel range, and if the maximum value of the screenshot pixel range exceeds the unit tile pixel range, the screenshot geographical range is adjusted according to the maximum value of the screenshot pixel range;
the screenshot unit is used for acquiring tiles from the target map service according to the adjusted screenshot geographic range and the target map level, screenshot, processing the screenshot picture according to the output picture pixel range and then sending the screenshot picture to the client;
according to the adjusted screenshot geographic range and the target map level, obtaining tiles from the target map service comprises:
determining a map level of a target map level in a general tile system;
determining a row and column number range of the tiles under the map level of the general tile system according to the adjusted screenshot geographic range;
converting the row and column number range of the tiles under the map level of the general tile system into the row and column number range of the tiles in the slicing scheme corresponding to the target map service according to the transformation relation between the slicing scheme corresponding to the target map service and the general tile system;
determining the address of the corresponding tile according to the row and column number range of the tile in the target map service;
and obtaining the tiles according to the real addresses of the corresponding tiles.
CN202210635009.4A 2022-06-07 2022-06-07 GIS data sharing method and system Active CN115061989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210635009.4A CN115061989B (en) 2022-06-07 2022-06-07 GIS data sharing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210635009.4A CN115061989B (en) 2022-06-07 2022-06-07 GIS data sharing method and system

Publications (2)

Publication Number Publication Date
CN115061989A CN115061989A (en) 2022-09-16
CN115061989B true CN115061989B (en) 2023-04-18

Family

ID=83200129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210635009.4A Active CN115061989B (en) 2022-06-07 2022-06-07 GIS data sharing method and system

Country Status (1)

Country Link
CN (1) CN115061989B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116341002B (en) * 2023-03-17 2023-12-12 南通创越时空数据科技有限公司 Map data desensitizing method and system
CN117271691A (en) * 2023-10-07 2023-12-22 扬州万方科技股份有限公司 Construction method, system and computer readable medium for tile map service based on domestic platform
CN117573917B (en) * 2024-01-19 2024-03-29 成都深瑞同华科技有限公司 Map picture intercepting method, system, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468691A (en) * 2015-11-17 2016-04-06 江苏省基础地理信息中心 Multisource tile map acquiring method and device
CN111914042A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Method for processing vector and grid slice data in electric GIS
CN114297206A (en) * 2022-03-11 2022-04-08 浙江大学 Refined efficient dynamic tile map service publishing method, medium and electronic equipment

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091758A1 (en) * 2001-01-05 2002-07-11 Singh Raj R. Map viewing, publishing, and provisioning system
US6970929B2 (en) * 2002-06-12 2005-11-29 Inha University Foundation Vector-based, clustering web geographic information system and control method thereof
US9064341B2 (en) * 2012-06-05 2015-06-23 Apple Inc. Method, system and apparatus for rendering a map according to hybrid map data
CN105516311B (en) * 2015-12-09 2019-03-05 中国农业银行股份有限公司 A kind of electronic map panorama picture capturing method and system
CN107451150B (en) * 2016-05-30 2023-01-20 中兴通讯股份有限公司 Geographic data presentation method and device
US11593344B2 (en) * 2019-07-02 2023-02-28 Nvidia Corporation Updating high definition maps based on age of maps
CN113094601B (en) * 2021-03-01 2022-11-29 云南省地矿测绘院有限公司 GIS cloud management method and system
CN113076440A (en) * 2021-04-01 2021-07-06 广东南方数码科技股份有限公司 Map tile image processing method, device, equipment and storage medium
CN113821580A (en) * 2021-09-22 2021-12-21 成都市国土资源信息中心 Tile map service method
CN114238935A (en) * 2021-11-09 2022-03-25 上海数慧系统技术有限公司 Method and device for managing and controlling spatial data in user-defined range
CN114491113B (en) * 2022-04-15 2022-07-08 北京优锘科技有限公司 Method, apparatus, medium, and device for dynamically adjusting scene effect according to hierarchy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468691A (en) * 2015-11-17 2016-04-06 江苏省基础地理信息中心 Multisource tile map acquiring method and device
CN111914042A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Method for processing vector and grid slice data in electric GIS
CN114297206A (en) * 2022-03-11 2022-04-08 浙江大学 Refined efficient dynamic tile map service publishing method, medium and electronic equipment

Also Published As

Publication number Publication date
CN115061989A (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN115061989B (en) GIS data sharing method and system
US11294616B2 (en) Systems and methods for the secure synchronization of user interface state amongst computing devices
US8307308B2 (en) Updating assets rendered in a virtual world environment based on detected user interactions in another world
US9460175B1 (en) Server implemented geographic information system with graphical interface
CN108427550B (en) Web service generation method, device and equipment
US20150281332A1 (en) Information management device, information management system, information management method, and recording medium
US9251320B2 (en) Matched content use restriction system
US9679159B2 (en) Mobile privacy information proxy
JP6887429B2 (en) Automatic behavior detection on protected fields with support for integrated search
CN113094601B (en) GIS cloud management method and system
US10749867B1 (en) Systems and methods for device detection and registration
US8401973B1 (en) Method and system for managing a license for an add-on software component
CN112163214A (en) Data access method and device
US20160028718A1 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
CN110378886A (en) Image comparison method, image comparison device, electronic equipment and medium
CN107967412B (en) Method for controlling limited access of PDF file
CN111597564A (en) Data access and permission configuration method, device, terminal and storage medium
US9553787B1 (en) Monitoring hosted service usage
US20150310513A1 (en) Unit-based licensing for offline content access
JP7361711B2 (en) Control method, content management system, and program
US20230148038A1 (en) Method for rendering gis point data, computer device and storage medium
US9002986B2 (en) Systems and methods for sharing customer assets
CN114764493A (en) Method and device for accessing spatial data, storage medium and electronic equipment
US11799864B2 (en) Computer systems for regulating access to electronic content using usage telemetry data
CN109697212B (en) Data processing method and data processing device

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