Data processing method, device, electronic device and storage medium based on GIS map

By obtaining latitude and longitude data and using pseudo-Mercator projection and quadtree algorithm, the problem that the GIS map system cannot automatically determine the appropriate zoom level and center point is solved, a method of quickly determining the zoom level and center point is realized, and data processing is improved. efficiency and user experience.

CN118520065BActive Publication Date: 2024-10-18SHENZHEN TIANHAI CHENGUANG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410985367.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-18
Estimated Expiration
2044-07-23

AI Technical Summary

Technical Problem

The existing GIS map system cannot automatically determine the appropriate map zoom level and center point, resulting in poor view range when users load the map for the first time, requiring manual adjustment to obtain a suitable display effect.

Method used

Obtain latitude and longitude data through the device information interface, convert the range of data points using pseudo-Mercator projection, calculate the coordinate center point based on GIS map data, aggregate data points through quadtree and grid distance algorithms, create aggregation point objects, and bind clicks Event to quickly determine the zoom level and center point, and quickly disperse and display data points when clicked.

Benefits of technology

It improves the data processing efficiency and user experience of GIS maps, ensures the appropriate zoom level and center point display of the map, and optimizes the user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520065B_ABST
    Figure CN118520065B_ABST
Patent Text Reader

Abstract

The present invention discloses a data processing method, device, electronic device and storage medium based on GIS map, and relates to the field of data processing technology; the data processing method based on GIS map includes: S10, obtaining latitude and longitude data of more than 50,000; S20, counting the range of data points in the latitude and longitude data, and using pseudo-Mercator projection to convert the data point range into a coordinate range and project it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data; S30, aggregating the data points of the latitude and longitude data through a quadtree and a grid distance algorithm to create a number of aggregation point objects, and binding a click event to each aggregation point object; S40, clicking on a certain aggregation point object, calculating the corresponding latitude and longitude data through the clicked two-dimensional coordinates, and quickly distributing and displaying them in the GIS map. The beneficial effects of the present invention are: both improving the data processing efficiency of the GIS map and optimizing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and more specifically, to a data processing method, device, electronic device and storage medium based on a GIS map. Background Art

[0002] GIS map is a component of Geographic Information System (GIS). GIS is a system used to collect, store, process, analyze, manage and display geospatial data. GIS map specifically refers to the visual representation of geospatial data displayed on the GIS platform. Generally speaking, GIS map needs to achieve at least the following functions during application:

[0003] Data collection: Data for GIS maps can come from a variety of sources, including satellite imagery, aerial photography, ground surveys, and GPS devices.

[0004] Data storage: GIS systems store these geographic data in a database, usually in the form of vector data (such as points, lines, and surfaces) and raster data (such as satellite images).

[0005] Data processing and analysis: GIS has powerful data processing and analysis capabilities, and can perform spatial analysis, statistical analysis, model simulation, etc. on geographic data. For example, it can analyze land use changes in a certain area, predict flood risks, plan optimal routes, etc.

[0006] Data display: GIS maps display processed geographic data in an intuitive map format, which can be visualized through various symbols, colors, layers, etc., so that users can quickly understand geographic information.

[0007] Interactive functions: GIS maps usually have rich interactive functions, such as zooming, panning, querying attribute information, overlaying multiple layers, annotation, etc. These functions enable users to deeply explore and analyze the geographic data on the map.

[0008] In general, GIS maps are the core component of geographic information systems, which are used to present complex geographic data to users in a way that is easy to understand and analyze, thereby supporting various geography-related decisions and applications.

[0009] In the prior art, when the latitude and longitude data returned by the device information interface is directly provided to the GIS map, the system cannot automatically determine the appropriate map zoom level and center point location. This may result in the user seeing a suboptimal range when loading the map for the first time, requiring the user to manually adjust the map view to obtain a more appropriate display effect.

[0010] To this end, the present invention provides a data processing method, device, electronic device and storage medium based on a GIS map, which can quickly determine the zoom level and center point that the GIS map needs to display, and can quickly perform decentralized processing on clicks on aggregation points, thereby improving the data processing efficiency of the GIS map and optimizing the user experience. Summary of the invention

[0011] In order to overcome the shortcomings of the prior art, the present invention provides a data processing method, device, electronic device and storage medium based on a GIS map, which can quickly determine the zoom level and center point that the GIS map needs to display, and can quickly perform decentralized processing on clicks on aggregation points, thereby improving the data processing efficiency of the GIS map and optimizing the user experience.

[0012] The technical solution adopted by the present invention to solve its technical problem is: a data processing method based on GIS map, applied to a map information processing system, the map information processing system at least includes a GIS map application, a device information service and a GIS map service, wherein the device information service includes a device information interface; the GIS map service includes GIS map data. The improvement is that the data processing method based on GIS map includes the following steps:

[0013] S10, obtain latitude and longitude data of more than 50,000 through the device information interface;

[0014] S20, counting the data point range in the latitude and longitude data through the GIS map service, and converting the data point range into a coordinate range using a pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data;

[0015] S30, the GIS map service aggregates the data points of the longitude and latitude data through a quadtree and a grid distance algorithm to create a number of aggregate point objects, and binds a click event to each aggregate point object;

[0016] S40, click on a certain aggregation point object, the GIS map application calculates the corresponding longitude and latitude data through the clicked two-dimensional coordinates, and quickly displays them in a dispersed manner on the GIS map.

[0017] Furthermore, in step S10, the latitude and longitude data at least includes a device name, a device identifier, and latitude and longitude information of the device.

[0018] Furthermore, in step S20, the specific statistical method of the data point range is: obtaining the maximum longitude and latitude and the minimum longitude and latitude in the longitude and latitude data of more than 50,000 through the GIS map service, and the area range formed by the maximum longitude and latitude and the minimum longitude and latitude is the data point range.

[0019] Furthermore, in step S20, the specific method of converting the data point range into a coordinate range by using the pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data is as follows:

[0020] S201, using EPSG:3857 pseudo-Mercator projection to obtain the relevant parameters and projection coordinates of the conversion function of the current GIS map view; specifically, the relevant parameters of the conversion function include the conversion factor of angle to radian , the conversion factor from radians to degrees , the Earth's semi-major axis ,longitude ,latitude ,in, , , longitude The expression converted to radians is: , the latitude The expression converted to radians is: ; The projection coordinates are expressed as:

[0021] ; Get the minimum longitude and latitude coordinates in the device longitude and latitude data of S10 , maximum longitude and latitude coordinates , the plane coordinate point is obtained by projective coordinate transformation

[0022] ,

[0023] , and the mean plane coordinates ;

[0024] S202, obtaining the horizontal plane pixel value of the current GIS map display range and the vertical plane pixel value And GIS Figure 4 Pixel value of the blank space , , and ; Get the size and rotation angle of the current GIS map view according to the EPSG:3857 pseudo-Mercator projection , the rotation angle Convert to radians and calculate the rotation angle The variable value of the adjusted plane boundary; EPSG:3857 Pseudo-Mercator projection projects the earth into a square plane. The coordinate values ​​of the width and height of the projected GIS map are between -20037508.342789244 and 20037508.342789244, and are defined by the array Store the boundary values ​​of the coordinate values ​​of the width and height of the GIS map, namely:

[0025] ; The expression for converting the rotation angle into radians is: The rotation angle The calculation expressions of the variable values ​​of the adjusted plane boundaries are respectively expressed as:

[0026] ; ;

[0027] ;

[0028] ;

[0029] In the above formula, It represents the average pixel difference in the horizontal direction of the plane; Indicates the average vertical pixel difference of the plane; represents the average horizontal pixel difference of the plane after rotation adjustment; The average longitudinal pixel difference of the plane after rotation adjustment;

[0030] S203, subtract the portion outside the range of the GIS map view on the plane, obtain the zoom level by the ratio and logarithm of the size of the GIS map view on the plane, and calculate the projection coordinates ; After subtracting the part outside the GIS map view range on the plane, the expression of the horizontal pixel value of the GIS map view is: ; The expression of the vertical pixel value of the GIS map view is: , where 10 pixels is the minimum limit of the difference range; the zoom level expression in the longitude direction is:

[0031] ; The zoom level expression in the latitude direction is:

[0032] ; In the formula, the unit of 156543.03392804097 is meter, and 156543.03392804097 meters represents the actual length represented by each pixel when the earth is projected onto a 256*256 plane; and The minimum value min_s in is used as the zoom level of the GIS map; the conversion formula for the zoom level is: , the projection coordinates It is expressed as:

[0033] ; In the formula, ; ; represents the average difference of plane coordinate values, The calculation expression is: ;

[0034] S204, adjusting the GIS map to new plane coordinates in combination with the map boundary and zoom level, and then converting the new plane coordinates into the longitude and latitude of the center point coordinates, wherein the expression for adjusting to the new plane coordinates is:

[0035] =[ , ];

[0036] The adjusted plane coordinates are converted into the center point coordinates and longitude and latitude as follows:

[0037] .

[0038] Furthermore, in step S30, the process of creating the aggregation point object specifically includes:

[0039] S301, constructing a quadtree: creating a root node covering the range of all data points, and inserting the root data points. If the current node reaches the capacity limit, the current node is split into four child nodes, and the data points are redistributed and inserted. Each child node is recursively processed until all data points are inserted into the quadtree;

[0040] S302, divide the current screen into several grids through the grid distance algorithm, and search for data points in each grid through the quadtree, obtain all data points in the same grid, calculate the average centroid of all data points in the same grid, and count the number of data points in the grid, create an aggregation point object according to the coordinates of the average centroid and the number of data points, and bind a click event to each aggregation point object.

[0041] Furthermore, the specific process of step S40 is: first, the GIS map application relies on the calculation process in S201-S204 to obtain the reverse projection of the clicked two-dimensional coordinates, and calculates the longitude and latitude data of the click in combination with the current zoom level; then, based on the longitude and latitude data, the calculation method in S201-S204 is used in combination with the number of aggregation points and the current zoom level to calculate the coordinate center point and zoom level that need to be enlarged, and apply them to the GIS map to enable the aggregation point objects to be quickly and dispersedly displayed.

[0042] A data processing device based on a GIS map is applied to the data processing method based on a GIS map as described above, wherein the improvement lies in that the data processing device based on a GIS map comprises:

[0043] Data collection module, used to obtain more than 50,000 longitude and latitude data;

[0044] The data processing module is used to count the data point range in the latitude and longitude data, and use the pseudo-Mercator projection to convert the data point range into a coordinate range and project it onto the GIS map, and calculate the coordinate center point in combination with the GIS map data;

[0045] A data aggregation module is used to aggregate data points of longitude and latitude data through a quadtree and grid distance algorithm to create a number of aggregation point objects;

[0046] The display and interaction module is used to respond to the aggregation point object clicked by the user, calculate the corresponding longitude and latitude data through the two-dimensional coordinates of the click, and quickly display it in a scattered manner on the GIS map.

[0047] An electronic device, the improvement of which is that it comprises at least one processor and at least one memory, wherein:

[0048] The memory has computer-readable instructions stored thereon;

[0049] The computer-readable instructions are executed by one or more processors, so that the electronic device implements the GIS map-based data processing method as described above.

[0050] A storage medium having computer-readable instructions stored thereon, wherein the improvement lies in that the computer-readable instructions are executed by one or more processors to implement the data processing method based on GIS maps as described above.

[0051] The beneficial effects of the present invention are as follows: the present solution first obtains more than 50,000 longitude and latitude data through a device information interface, then, through a GIS map service, counts the range of data points in the longitude and latitude data, and uses a pseudo-Mercator projection to convert the range of data points into a coordinate range and project it onto a GIS map, and calculates the coordinate center point in combination with the GIS map data; then, the GIS map service aggregates the data points of the longitude and latitude data through a quadtree and a grid distance algorithm to create a number of aggregation point objects, and binds a click event to each aggregation point object; finally, when a user clicks on an aggregation point object, the GIS map application calculates the corresponding longitude and latitude data through the two-dimensional coordinates of the click, and quickly displays it in a dispersed manner on the GIS map; in this process, the zoom level and center point that the GIS map needs to display can be quickly determined, and the clicks on the aggregation points can be quickly dispersedly processed, thereby both improving the data processing efficiency of the GIS map and optimizing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is an overall flow chart of a data processing method based on GIS map of the present invention;

[0053] Figure 2A block diagram of a data processing device based on a GIS map of the present invention;

[0054] Figure 3 A hardware structure diagram of an electronic device is shown in an exemplary embodiment;

[0055] Figure 4 The present invention is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0056] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0057] The following will clearly and completely describe the concept, specific structure and technical effects of the present invention in combination with the embodiments and drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by technicians in this field without creative work are all within the scope of protection of the present invention. In addition, all the connection / connection relationships involved in the patent do not refer to the direct connection of components, but refer to the formation of a better connection structure by adding or reducing connection accessories according to the specific implementation situation. The various technical features in the invention can be combined interchangeably without conflicting with each other.

[0058] Reference Figure 1 As shown, the present invention discloses a data processing method based on GIS map, which is applied to a map information processing system, wherein the map information processing system at least includes a GIS map application, a device information service and a GIS map service, wherein the device information service includes a device information interface; the GIS map service includes GIS map data; the data processing method based on GIS map includes the following steps:

[0059] S10, obtaining latitude and longitude data of more than 50,000 through the device information interface; wherein the latitude and longitude data at least includes the device name, device identification and device longitude and latitude information; in this embodiment, the map information processing system communicates with the device end through the device information interface, that is, the device obtains real-time longitude and latitude data through its own positioning module, and sends the real-time longitude and latitude data, device identification and device name and other information to the device information interface through its own communication module; when the present invention is implemented, the real-time longitude and latitude data is obtained through the positioning module of the device and sent to the map information processing system, so as to realize the real-time location tracking of the device, which can usually be applied to logistics transportation, emergency rescue and asset management and other scenarios. Specifically, the map information processing system can identify and distinguish different devices through the transmission of device identification and device name, and intuitively display this information on the map, so as to facilitate the visual management and dynamic update of the device; in addition, in addition to the location data, the device can also send other status information, such as power, operating status, etc., which can help managers fully understand the operation of the device when combined;

[0060] S20, counting the range of data points in the longitude and latitude data through the GIS map service, and converting the data point range into a coordinate range using the pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data; wherein the specific statistical method of the data point range is: obtaining the maximum longitude and latitude and the minimum longitude and latitude in the longitude and latitude data of more than 50,000 through the GIS map service, and the area range formed by the maximum longitude and latitude and the minimum longitude and latitude is the data point range; specifically, the specific method of converting the data point range into a coordinate range using the pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data is:

[0061] In step S20, the specific method of converting the data point range into a coordinate range by using the pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data is as follows:

[0062] S201, using EPSG:3857 pseudo-Mercator projection to obtain the relevant parameters and projection coordinates of the conversion function of the current GIS map view; specifically, the relevant parameters of the conversion function include the conversion factor of angle to radian , the conversion factor from radians to degrees , the Earth's semi-major axis ,longitude ,latitude ,in, , , longitude The expression converted to radians is: , the latitude The expression converted to radians is: ; The projection coordinates are expressed as:

[0063] ; Get the minimum longitude and latitude coordinates in the device longitude and latitude data of S10 , maximum longitude and latitude coordinates , the plane coordinate point is obtained by projective coordinate transformation

[0064] ,

[0065] , and the mean plane coordinates ;

[0066] S202, obtaining the horizontal plane pixel value of the current GIS map display range and the vertical plane pixel value And GIS Figure 4 Pixel value of the blank space , , and ; Get the size and rotation angle of the current GIS map view according to the EPSG:3857 pseudo-Mercator projection , the rotation angle Convert to radians and calculate the rotation angle The variable value of the adjusted plane boundary; EPSG:3857 Pseudo-Mercator projection projects the earth into a square plane. The coordinate values ​​of the width and height of the projected GIS map are between -20037508.342789244 and 20037508.342789244, and are defined by the array Store the boundary values ​​of the coordinate values ​​of the width and height of the GIS map, namely:

[0067] ; The expression for converting the rotation angle into radians is: The rotation angle The calculation expressions of the variable values ​​of the adjusted plane boundaries are respectively expressed as:

[0068] ; ;

[0069] ;

[0070] ;

[0071] In the above formula, It represents the average pixel difference in the horizontal direction of the plane; Indicates the average vertical pixel difference of the plane; represents the average horizontal pixel difference of the plane after rotation adjustment; The average longitudinal pixel difference of the plane after rotation adjustment;

[0072] S203, subtract the portion outside the range of the GIS map view on the plane, obtain the zoom level by the ratio and logarithm of the size of the GIS map view on the plane, and calculate the projection coordinates ; After subtracting the part outside the GIS map view range on the plane, the expression of the horizontal pixel value of the GIS map view is: ; The expression of the vertical pixel value of the GIS map view is: , where 10 pixels is the minimum limit of the difference range; the zoom level expression in the longitude direction is:

[0073] ; The zoom level expression in the latitude direction is:

[0074] ; In the formula, the unit of 156543.03392804097 is meter, and 156543.03392804097 meters represents the actual length represented by each pixel when the earth is projected onto a 256*256 plane; and The minimum value min_s in is used as the zoom level of the GIS map; the conversion formula for the zoom level is: , the projection coordinates It is expressed as:

[0075] ; In the formula, ; ; represents the average difference of plane coordinate values, The calculation expression is: ;

[0076] S204, adjusting the GIS map to new plane coordinates in combination with the map boundary and zoom level, and then converting the new plane coordinates into the longitude and latitude of the center point coordinates, wherein the expression for adjusting to the new plane coordinates is:

[0077] =[ , ];

[0078] The adjusted plane coordinates are converted into the center point coordinates and longitude and latitude as follows:

[0079] .

[0080] In this embodiment, after the device information interface returns latitude and longitude data of more than 50,000, the GIS map service of the geographic information processing system implements the statistics of the data point range of latitude and longitude data of more than 50,000 through steps S201-S204, the conversion of the two-dimensional coordinates of the data points, obtaining the size rotation angle and zoom level of the current view, moving the map and adjusting the new center point and calculating the coordinate center point in combination with the conversion latitude and longitude function, etc., which can ensure that the GIS map can display the geographic information data of interest to the user in an appropriate manner, thereby improving the user's interactive experience and the visualization effect of the map, thereby optimizing the user experience;

[0081] S30, the GIS map service aggregates the data points of the longitude and latitude data through the quadtree and grid distance algorithm to create a number of aggregation point objects, and binds a click event to each aggregation point object; specifically, the creation process of the aggregation point object specifically includes:

[0082] S301, constructing a quadtree: creating a root node covering the range of all data points, and inserting the root data points. If the current node reaches the capacity limit, the current node is split into four child nodes, and the data points are redistributed and inserted. Each child node is recursively processed until all data points are inserted into the quadtree;

[0083] S302, divide the current screen into several grids by using a grid distance algorithm, and search for data points in each grid by using a quadtree, obtain all data points in the same grid, calculate the average centroid of all data points in the same grid, and count the number of data points in the grid, create an aggregation point object according to the coordinates of the average centroid and the number of data points, and bind a click event to each aggregation point object;

[0084] In this embodiment, in the process of aggregating more than 50,000 longitude and latitude data, the GIS map service can effectively aggregate a large number of longitude and latitude data points through the quadtree and grid distance algorithm to improve the efficiency and performance of data processing; and by calculating the average centroid of the data points in the same grid and counting the number of data points in the grid, an aggregation point object can be created, wherein the aggregation point object represents a set of data points, which can better show the distribution and density of the data; furthermore, a click event is bound to each aggregation point object, so that the user can interact with the aggregation point, and by clicking the aggregation point, the user can further view the specific data point information, thereby realizing data visualization and interactive management; when the present invention is specifically implemented, the creation and interaction functions of the aggregation point object can improve the visualization effect of the map, and through aggregation, a large number of data points can be merged into relatively fewer aggregation points, simplifying the display of the map and reducing visual confusion; data aggregation through the quadtree and grid distance algorithm can reduce the complexity of data query and calculation, improve the performance and response speed of the system, especially in large-scale data sets and complex query scenarios, the improvement of the system performance and response speed is particularly prominent, thereby optimizing the user experience;

[0085] S40, click on a certain aggregation point object, the GIS map application calculates the corresponding longitude and latitude data through the clicked two-dimensional coordinates, and quickly disperses and displays them in the GIS map. Specifically, the specific process of this step is: first, the GIS map application relies on the calculation process in S201-S204 to obtain the reverse projection of the clicked two-dimensional coordinates, and calculates the longitude and latitude data of the click in combination with the current zoom level; then, according to the longitude and latitude data, the calculation method in S201-S204 is used in combination with the number of aggregation points and the current zoom level to calculate the coordinate center point and zoom level that need to be enlarged, and apply them to the GIS map, so that the aggregation point object can be quickly dispersed and displayed.

[0086] In the specific implementation of the present invention, when a user clicks on a certain aggregation point object, it is necessary to calculate the corresponding longitude and latitude data according to the two-dimensional coordinates of the clicked position, and determine the new map center point and zoom level. In this process, first, the GIS map application obtains the coordinate value range of the distribution of the aggregation points in the clicked aggregation point object, and calculates the longitude and latitude range corresponding to the coordinate value range by reverse projection; then, the two-dimensional coordinates on the screen are obtained through the user click event, and the coordinates are used to calculate the longitude and latitude range corresponding to the coordinate value range. For example, GIS map applications calculate coordinates The corresponding intermediate coordinate value ,in,

[0087] ;

[0088] ;

[0089] And calculate the latitude and longitude data of the center point:

[0090] ;

[0091] Finally, the coordinate center point and zoom level to be enlarged are applied to update the view parameters of the GIS map, so that the center of the map moves to the clicked position, and the zoom level is adjusted to expand the aggregation point; and based on the quadtree structure, all data points belonging to the aggregation point are found through the longitude and latitude range clicked, and the extracted data points can be displayed on the GIS map, and the map view is updated to make these data points discrete and bind corresponding interactive events; in order to effectively determine the zoom level and coordinate center point that the GIS map needs to display, and quickly respond to the user's click on the aggregation point, so as to realize the rapid and dispersed display of data points, and can quickly and dispersely process the click on the aggregation point, thereby improving the data processing efficiency of the GIS map and optimizing the user experience.

[0092] The present invention also discloses a GIS map-based data processing device 600, which is applied to the GIS map-based data processing method as described above, and the improvement thereof is that the GIS map-based data processing device 600 comprises:

[0093] Data collection module 601, used to obtain latitude and longitude data of more than 50,000;

[0094] The data processing module 602 is used to count the data point range in the latitude and longitude data, and use the pseudo-Mercator projection to convert the data point range into a coordinate range and project it onto the GIS map, and calculate the coordinate center point in combination with the GIS map data;

[0095] The data aggregation module 603 is used to aggregate the data points of the longitude and latitude data by using a quadtree and a grid distance algorithm to create a number of aggregation point objects;

[0096] The display and interaction module 604 is used to respond to the aggregation point object clicked by the user, calculate the corresponding longitude and latitude data through the two-dimensional coordinates of the click, and quickly display it in a dispersed manner in the GIS map.

[0097] It should be noted that the data processing strategy based on GIS map provided in the above embodiment is only illustrated by the division of the above functional modules. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the data processing device 600 based on GIS map will be divided into different functional modules to complete all or part of the functions described above.

[0098] In addition, the GIS map-based data processing device 600 provided in the above embodiment belongs to the same concept as the embodiment of the GIS map-based data processing method, and the specific manner in which each module performs operations has been described in detail in the method embodiment and will not be repeated here.

[0099] Figure 3 The present invention schematically illustrates the structure of an electronic device according to an exemplary embodiment.

[0100] It should be noted that the electronic device is only an example adapted to the present invention and cannot be considered to provide any limitation on the scope of use of the present invention. The electronic device cannot be interpreted as requiring dependence on or having Figure 3 One or more components of exemplary electronic device 2000 are shown.

[0101] The hardware structure of the electronic device 2000 may vary greatly due to differences in configuration or performance, such as Figure 3 As shown, the electronic device 2000 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .

[0102] Specifically, the power supply 210 is used to provide operating voltage for each hardware device on the electronic device 2000 .

[0103] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Of course, in other examples adapted by the present invention, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, etc. Figure 3 As shown, this is not intended to be a specific limitation.

[0104] The memory 250 is a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 251, an application 253 and data 255, etc. The storage method may be temporary storage or permanent storage.

[0105] Among them, the operating system 251 is used to manage and control various hardware devices and application programs 253 on the electronic device 2000 to enable the central processor 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0106] The application program 253 is a computer-readable instruction that performs at least one specific task based on the operating system 251, and may include at least one module ( Figure 3 (not shown), each module may respectively contain computer-readable instructions for the electronic device 2000. For example, a data processing device based on a GIS map may be regarded as an application 253 deployed on the electronic device 2000.

[0107] The data 255 may be signal information, etc., stored in the memory 250 .

[0108] The central processor 270 may include one or more processors, and is configured to communicate with the memory 250 through at least one communication bus to read the computer-readable instructions stored in the memory 250, thereby realizing the operation and processing of the mass data 255 in the memory 250. For example, the data processing method based on the GIS map is completed by the central processor 270 reading a series of computer-readable instructions stored in the memory 250.

[0109] In addition, the present invention can also be implemented by hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present invention is not limited to any specific hardware circuits, software, or a combination of the two.

[0110] See also Figure 4 In an embodiment of the present invention, an electronic device 4000 is provided. The electronic device 4000 may include: a desktop computer, a laptop computer, a server, etc. with sensor recognition capability.

[0111] exist Figure 4 In the embodiment, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.

[0112] The data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0113] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception, etc. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.

[0114] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0115] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 4000, but is not limited to this.

[0116] The memory 4003 stores computer-readable instructions, and the processor 4001 can read the computer-readable instructions stored in the memory 4003 through the communication bus 4002 .

[0117] The computer-readable instructions are executed by one or more processors 4001 to implement the GIS map-based data processing method in the above-mentioned embodiments.

[0118] In addition, an embodiment of the present invention provides a storage medium on which computer-readable instructions are stored. The computer-readable instructions are executed by one or more processors to implement the GIS map-based data processing method as described above.

[0119] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A data processing method based on GIS maps, applied to a map information processing system, wherein the map information processing system at least includes a GIS map application, a device information service and a GIS map service, wherein: The device information service includes a device information interface; the GIS map service includes GIS map data; and the data processing method based on the GIS map includes the following steps: S10, obtaining more than 50,000 longitude and latitude data through a device information interface; wherein the longitude and latitude data at least includes a device name, a device identifier, and longitude and latitude information of the device; S20, counting the range of data points in the longitude and latitude data through the GIS map service, and converting the data point range into a coordinate range using the pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data; wherein the specific statistical method of the data point range is: obtaining the maximum longitude and latitude and the minimum longitude and latitude in the longitude and latitude data of more than 50,000 through the GIS map service, and the area range formed by the maximum longitude and latitude and the minimum longitude and latitude is the data point range; the specific method of converting the data point range into a coordinate range using the pseudo-Mercator projection and projecting it onto the GIS map, and calculating the coordinate center point in combination with the GIS map data is: S201, using EPSG:3857 pseudo-Mercator projection to obtain the relevant parameters and projection coordinates of the conversion function of the current GIS map view; specifically, the relevant parameters of the conversion function include the conversion factor of angle to radian , the conversion factor from radians to degrees , the Earth's semi-major axis ,longitude ,latitude ,in, , , longitude The expression converted to radians is: , the latitude The expression converted to radians is: ; The projection coordinates are expressed as: ; Get the minimum longitude and latitude coordinates in the device longitude and latitude data of S10 , maximum longitude and latitude coordinates , the plane coordinate point is obtained by projective coordinate transformation 、 , and the mean plane coordinates ; S202, obtaining the horizontal plane pixel value of the current GIS map display range and the vertical plane pixel value And the pixel values ​​of the blank areas around the GIS map , , and ; Get the size and rotation angle of the current GIS map view according to the EPSG:3857 pseudo-Mercator projection , the rotation angle Convert to radians and calculate the rotation angle The variable value of the adjusted plane boundary; EPSG:3857 Pseudo-Mercator projection projects the earth into a square plane. The coordinate values ​​of the width and height of the projected GIS map are between -20037508.342789244 and 20037508.342789244, and are defined by the array Store the boundary values ​​of the coordinate values ​​of the width and height of the GIS map, namely: ; The expression for converting the rotation angle into radians is: The rotation angle The calculation expressions of the variable values ​​of the adjusted plane boundaries are respectively expressed as: ; ; ; ; In the above formula, It represents the average pixel difference in the horizontal direction of the plane; Indicates the average vertical pixel difference of the plane; represents the average horizontal pixel difference of the plane after rotation adjustment; The average longitudinal pixel difference of the plane after rotation adjustment; S203, subtract the portion outside the range of the GIS map view on the plane, obtain the zoom level by the ratio and logarithm of the size of the GIS map view on the plane, and calculate the projection coordinates ; After subtracting the part outside the GIS map view range on the plane, the expression of the horizontal pixel value of the GIS map view is: ; The expression of the vertical pixel value of the GIS map view is: , where 10 pixels is the minimum limit of the difference range; the zoom level expression in the longitude direction is: ; The zoom level expression in the latitude direction is: ; In the formula, the unit of 156543.03392804097 is meter, and 156543.03392804097 meters represents the actual length represented by each pixel when the earth is projected onto a 256*256 plane; and The minimum value min_s in is used as the zoom level of the GIS map; the conversion formula for the zoom level is: , the projection coordinates It is expressed as: ; In the formula, ; ; represents the average difference of plane coordinate values, The calculation expression is: ; S204, adjusting the GIS map to new plane coordinates in combination with the map boundary and zoom level, and then converting the new plane coordinates into the longitude and latitude of the center point coordinates, wherein the expression for adjusting to the new plane coordinates is: =[ , ]; The adjusted plane coordinates are converted into the center point coordinates and longitude and latitude as follows: ; S30, the GIS map service aggregates the data points of the longitude and latitude data through a quadtree and a grid distance algorithm to create a number of aggregate point objects, and binds a click event to each aggregate point object; S40, click on a certain aggregation point object, the GIS map application calculates the corresponding longitude and latitude data through the clicked two-dimensional coordinates, and quickly displays them in a dispersed manner on the GIS map.

2. A data processing method based on GIS map according to claim 1, characterized in that: In step S30, the process of creating the aggregation point object specifically includes: S301, constructing a quadtree: creating a root node covering the range of all data points, and inserting the root data points. If the current node reaches the capacity limit, the current node is split into four child nodes, and the data points are redistributed and inserted. Each child node is recursively processed until all data points are inserted into the quadtree; S302, divide the current screen into several grids through the grid distance algorithm, and search for data points in each grid through the quadtree, obtain all data points in the same grid, calculate the average centroid of all data points in the same grid, and count the number of data points in the grid, create an aggregation point object according to the coordinates of the average centroid and the number of data points, and bind a click event to each aggregation point object.

3. A data processing method based on GIS map according to claim 2, characterized in that: The specific process of step S40 is: first, the GIS map application relies on the calculation process in S201-S204 to obtain the reverse projection of the clicked two-dimensional coordinates, and calculates the longitude and latitude data of the click in combination with the current zoom level; then, based on the longitude and latitude data, the calculation method in S201-S204 is used in combination with the number of aggregation points and the current zoom level to calculate the coordinate center point and zoom level that need to be enlarged, and apply them to the GIS map to enable the aggregation point objects to be quickly and dispersedly displayed.

4. A GIS map-based data processing device, applied to the GIS map-based data processing method according to any one of claims 1 to 3, characterized in that: The data processing device based on the GIS map comprises: Data collection module, used to obtain more than 50,000 longitude and latitude data; The data processing module is used to count the data point range in the latitude and longitude data, and use the pseudo-Mercator projection to convert the data point range into a coordinate range and project it onto the GIS map, and calculate the coordinate center point in combination with the GIS map data; A data aggregation module is used to aggregate data points of longitude and latitude data through a quadtree and grid distance algorithm to create a number of aggregation point objects; The display and interaction module is used to respond to the aggregation point object clicked by the user, calculate the corresponding longitude and latitude data through the two-dimensional coordinates of the click, and quickly display it in a scattered manner on the GIS map.

5. An electronic device, characterized in that: comprises at least one processor and at least one memory, wherein: The memory has computer-readable instructions stored thereon; The computer-readable instructions are executed by one or more processors, so that the electronic device implements the GIS map-based data processing method as described in any one of claims 1-3.

6. A storage medium having computer-readable instructions stored thereon, characterized in that: The computer-readable instructions are executed by one or more processors to implement the GIS map-based data processing method described in any one of claims 1-3.

Citation Information

Patent Citations

  • Method for realizing gathering and scattering visualization of mass ground object mark points through layered grid division

    CN109977179A

  • Method for judging taxi gathering events based on map point gathering algorithm

    CN112084279A

  • Method and system for processing and displaying GIS (Geographic Information System) point locations of urban management events

    CN112860831A

  • Farmland area big data analysis method based on satellite remote sensing image

    CN114187525A

  • Determining geofence based on user locations

    US20210385610A1