Data processing methods

By obtaining the coordinate point set and connection sequence of the geographical location from the database, generating rays and judging the number of intersections, it solves the problem of inaccurate positioning in map applications and achieves finer-grained and more accurate indoor positioning.

CN118189974BActive Publication Date: 2024-09-06ARTIFICIAL INTELLIGENCE RES INST OF HEFEI COMPREHENSIVE NAT SCI CENT (ANHUI ARTIFICIAL INTELLIGENCE LAB)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410598646.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-09-06
Estimated Expiration
2044-05-15

AI Technical Summary

Technical Problem

It is difficult for existing map applications to achieve finer-grained and more accurate positioning, especially indoor or floor-level positioning, and there are problems such as system closure, low performance, and difficulty in development.

Method used

By determining the coordinate point set and the connection sequence of the coordinate points of the target image representing the geographical location in the parent map from the first database, the target ray is generated, and based on the number of intersections between the target ray and the polygon data, it is determined whether the target client is located in the geographical location. location, enabling more fine-grained positioning.

Benefits of technology

It achieves finer-grained and more accurate positioning that does not rely on satellite positioning information, solves the problem of insufficient positioning accuracy, and improves the positioning accuracy and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118189974B
    Figure CN118189974B
Patent Text Reader

Abstract

The present invention provides a data processing method, which can be applied to the field of map navigation technology. The method includes: in response to receiving a location determination request sent by a target client, determining a coordinate point set of a target image in a parent map for representing a geographic location and a coordinate point connection sequence corresponding to the coordinate point set from a first database, wherein the location determination request is used to determine the relationship between the target coordinates of the target client and the geographic location, the geographic location is a real geographic area, and the coordinate point set includes the coordinates of multiple target points located on the edge of the target image; connecting the multiple coordinate points included in the coordinate point set according to the coordinate point connection sequence to obtain polygon data corresponding to the target image; using the target coordinates of the target client determined by the location determination request as the starting point to generate a target ray; and determining whether the target client is located at the geographic location based on the number of intersections between the target ray and the polygon data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of map navigation technology, and in particular to a data processing method, device, equipment, medium and program product. Background Art

[0002] With the vigorous development of new infrastructure such as big data and industrial Internet, map applications have become increasingly widely used. However, due to the data storage methods and system closedness of existing map applications, the positioning methods in related technologies can usually only achieve the positioning of a certain place, such as a building, but cannot achieve the positioning of a specific location within the building.

[0003] In the process of realizing the concept of the present invention, the inventors found that the related art at least has the problem that the positioning is not accurate enough and cannot meet the user's more fine-grained positioning needs. Summary of the invention

[0004] In view of the above problems, the present invention provides a data processing method, apparatus, device, medium and program product.

[0005] According to one aspect of the present invention, a data processing method is provided, comprising: in response to receiving a location determination request sent by a target client, determining from a first database a set of coordinate points of a target image in a parent map for representing a geographic location and a coordinate point connection order corresponding to the set of coordinate points, wherein the geographic location is a real geographic area, the location determination request is used to determine the relationship between the target coordinates of the target client and the geographic location, the set of coordinate points includes the coordinates of a plurality of target points located on the edge of the target image; connecting the plurality of coordinate points included in the set of coordinate points according to the coordinate point connection order to obtain polygon data corresponding to the target image; using the target coordinates of the target client determined by the location determination request as a starting point to generate a target ray; and determining whether the target client is located at the geographic location based on the number of intersections between the target ray and the polygon data.

[0006] According to an embodiment of the present invention, the above method also includes: obtaining a set of coordinate points corresponding to the geographic location; determining a first target point from multiple coordinate points included in the coordinate point set; determining a coordinate point connection order corresponding to the coordinate point set based on sorted data of polar angle values ​​between the first target point and multiple second target points, wherein the second target point is the remaining coordinate point in the multiple coordinate points except the first target point, and the coordinate point connection order represents the connection order between the multiple coordinate points; storing the coordinate point connection order in a first database, wherein the first database includes a relational database.

[0007] According to an embodiment of the present invention, the above method also includes: determining the slope value of the line connecting the first target point and each second target point based on the first coordinate of the first target point and the second coordinate of each second target point; sorting the slope values ​​of each of the multiple second target points according to the target rule to obtain a first sorting result; based on the first sorting result, determining the sorting data of the polar angle values ​​between the first target point and each of the multiple second target points.

[0008] According to an embodiment of the present invention, the above method also includes: determining the vector from the first target point to each second target point based on the first coordinate of the first target point and the second coordinate of each second target point; determining the cosine value corresponding to each second target point based on the vector from the first target point to each second target point and a preset unit vector; and determining the sorting data of the polar angle values ​​between the first target point and each of the multiple second target points based on the cosine value corresponding to each second target point.

[0009] According to an embodiment of the present invention, the first database includes coordinates of each of a plurality of preset wireless routers, and the preset wireless routers have a group identifier. The above method further includes: determining a first wireless router from a plurality of preset wireless routers based on a network protocol address included in a location determination request; determining a plurality of second wireless routers having the same group identifier as the first wireless router from a plurality of preset wireless routers based on the group identifier of the first wireless router; determining the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers from the first database; constructing a target set of equations based on the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers; and solving the target set of equations to construct target coordinates of a target client.

[0010] According to an embodiment of the present invention, multiple coordinate points included in a coordinate point set are connected in a coordinate point connection order to obtain polygon data corresponding to a target image, including: determining a target distance between the target coordinates and each of the multiple coordinate points included in the coordinate point set; when it is determined that the multiple target distances are all less than a target threshold, connecting the multiple coordinate points included in the coordinate point set in a coordinate point connection order to obtain polygon data corresponding to the target image.

[0011] According to an embodiment of the present invention, determining whether a target client is located at a geographical location is performed based on the number of intersections between a target ray and polygon data, including: judging the type of the number of intersections based on preset conditions to obtain a judgment result; and determining whether the target client is located at a geographical location based on the judgment result.

[0012] According to an embodiment of the present invention, based on the judgment result, determining whether the target client is located at the geographical location includes: when the judgment result determines that the type of the number of intersections is an odd type, determining that the target client is located at the geographical location; when the judgment result determines that the type of the number of intersections is an even type, determining that the target client is not located at the geographical location.

[0013] According to an embodiment of the present invention, the above method also includes: when the target client is located at the geographical location, obtaining a sub-map corresponding to the geographical location from a second database, wherein the sub-map represents a three-dimensional image of the geographical location, and the second database includes an object storage database; sending the sub-map to the target client so that the target client displays a picture of the target client at the geographical location based on the sub-map.

[0014] According to an embodiment of the present invention, the above method also includes: in response to receiving a data addition request for a geographic location, obtaining a coordinate point set corresponding to the geographic location and a sub-map corresponding to the geographic location from the data addition request; storing the coordinate point set in a first database; and storing the sub-map in a second database.

[0015] Another aspect of the present invention provides a data processing device, including: a data acquisition module, used to determine, in response to receiving a location determination request sent by a target client, a set of coordinate points in a parent map of a target image used to represent a geographic location and a coordinate point connection order corresponding to the coordinate point set from a first database, wherein the location determination request is used to determine the relationship between the target coordinates of the target client and the geographic location, the geographic location is a real geographic area, and the coordinate point set includes the coordinates of multiple target points located on the edge of the target image; a coordinate connection module, used to connect the multiple coordinate points included in the coordinate point set according to the coordinate point connection order to obtain polygon data corresponding to the target image; a ray generation module, used to generate a target ray using the target coordinates of the target client determined by the location determination request as a starting point; and a location determination module, used to determine whether the target client is located at the geographic location based on the number of intersections between the target ray and the polygon data.

[0016] Another aspect of the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned data processing method.

[0017] Another aspect of the present invention further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned data processing method.

[0018] Another aspect of the present invention provides a computer program product, including a computer program, which implements the above data processing method when executed by a processor.

[0019] According to the data processing method provided by the present invention, the polygon data corresponding to the target image representing the geographic location can be determined by determining the coordinate point set of the target image representing the geographic location in the parent map and the coordinate point connection order corresponding to the coordinate point set from the first database, and the target coordinates of the target client determined by the location determination request are used as the starting point to generate a target ray, so that based on the intersection data between the target ray and the polygon data, it can be determined whether the target client is located at the geographic location. Since the parent map is used to determine the coordinate point set of the geographic location, the positioning of a more fine-grained real geographic area can be achieved by obtaining parent maps of different granularities, and the number of intersections between the target ray generated with the target of the target client as the starting point and the polygon data corresponding to the target image used to represent the geographic location can be used to determine whether the target client is located at the geographic location. Therefore, the technical problem of insufficiently accurate positioning in the related art is at least partially solved, and the technical effect of more fine-grained and more accurate positioning can be achieved without relying on satellite positioning information. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0021] Figure 1 The application scenario diagram of the data processing method, apparatus, device, medium and program product according to the embodiments of the present invention is schematically shown.

[0022] Figure 2 The flowchart of the data processing method according to the embodiment of the present invention is schematically shown.

[0023] Figure 3 The following is a schematic diagram of determining the connection sequence of coordinate points according to an embodiment of the present invention.

[0024] Figure 4 The schematic diagram schematically shows a method of determining whether a target client is located at a geographical location according to an embodiment of the present invention.

[0025] Figure 5 The diagram schematically shows a method of adding a geographic location to a parent map according to an embodiment of the present invention.

[0026] Figure 6 The diagram schematically shows a schematic diagram of determining the area where the geographical location is located in a parent map according to an embodiment of the present invention.

[0027] Figure 7 The structure block diagram of the data processing device according to the embodiment of the present invention is schematically shown.

[0028] Figure 8 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0029] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.

[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0032] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0033] It should be noted that the data processing method and device of the present invention can be used in the field of map navigation technology, and can also be used in any field other than the field of map navigation technology, such as the field of computer technology. The present invention does not limit the application field of the data processing method and device.

[0034] During the research process, it was found that in recent years, with the vigorous development of new infrastructure such as big data and industrial Internet, accelerating the construction of a green and intelligent digital ecology has become the development direction of digital civilization construction in the new era. Map applications have been widely used along with the development of digitalization, but due to the closed nature of the system and other reasons, map applications have problems such as low performance, high development difficulty, poor scalability, difficulty in data sharing, coupling with the system, and narrow scope of application. Functional upgrades are also relatively slow, and it is difficult to quickly adapt to changes in market demand. Based on the above-mentioned problems, map applications in related technologies are usually difficult to couple with other systems, and it is even more difficult to achieve more accurate and smaller regional locations, such as: room, floor, etc. Positioning effect.

[0035] In view of this, an embodiment of the present invention provides a data processing method, in response to receiving a location determination request sent by a target client, determining from a first database a set of coordinate points of a target image in a parent map used to represent a geographic location and a coordinate point connection order corresponding to the set of coordinate points, wherein the location determination request is used to determine the relationship between the target coordinates of the target client and the geographic location, the geographic location is a real geographic area, and the set of coordinate points includes the coordinates of multiple target points located on the edge of the target image; the multiple coordinate points included in the set of coordinate points are connected in the coordinate point connection order to obtain polygon data corresponding to the target image; the target coordinates of the target client determined by the location determination request are used as the starting point to generate a target ray; based on the number of intersections between the target ray and the polygon data, it is determined whether the target client is located at the geographic location.

[0036] Figure 1 The application scenario diagram of the data processing method, apparatus, device, medium and program product according to the embodiments of the present invention is schematically shown.

[0037] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0038] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0039] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0040] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0041] It should be noted that the data processing method provided in the embodiment of the present invention can generally be executed by the server 105. Accordingly, the data processing device provided in the embodiment of the present invention can generally be set in the server 105. The data processing method provided in the embodiment of the present invention can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the data processing device provided in the embodiment of the present invention can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0043] The following will be based on Figure 1 The scene described by Figure 2~Figure 6 The data processing method according to the embodiment of the present invention is described in detail.

[0044] Figure 2 The flowchart of the data processing method according to the embodiment of the present invention is schematically shown.

[0045] like Figure 2 As shown, the method includes operations S210 to S240.

[0046] In operation S210, in response to receiving a location determination request sent by a target client, a set of coordinate points of a target image in a parent map used to represent a geographic location and a connection order of coordinate points corresponding to the set of coordinate points are determined from a first database, wherein the location determination request is used to determine a relationship between target coordinates of the target client and the geographic location, the geographic location is a real geographic area, and the set of coordinate points includes coordinates of multiple target points located on the edge of the target image.

[0047] According to an embodiment of the present invention, the target client may include a client that is communicatively connected to a server capable of executing the above data processing method, and a user may use the target client to send a location determination request to the server capable of executing the above data processing method.

[0048] According to an embodiment of the present invention, the geographical location may be a real building, natural landscape, etc. The geographical location may also be a specific location of a specific building, for example: Room 304, 2nd Floor, Building A, etc.

[0049] According to the embodiment of the present invention, the geographical location may be one or more.

[0050] According to an embodiment of the present invention, when there are multiple geographical locations, each geographical location may have a different level, for example: the first-level geographical location is Park A, the second-level geographical location may be Building B in Park A, the third-level geographical location may be a specific floor in Building B, and the fourth-level geographical location may be a specific room on a specific floor.

[0051] According to an embodiment of the present invention, when determining the geographical location of the target client, the target coordinates of the target client can be determined through a location determination request, so that each geographical location is screened step by step based on the target coordinates, and finally the geographical location where the target client may be located is determined.

[0052] According to an embodiment of the present invention, the parent map includes a target image representing the geographical location. The target image may be a two-dimensional image representing the geographical location, such as a bird's-eye view of the geographical location or a regional outline map.

[0053] According to an embodiment of the present invention, a set of coordinate points of a geographic location in a parent map is associated with a sub-map of the geographic location, wherein the sub-map may be a main view or a three-dimensional image representing a specific form of the geographic location.

[0054] According to an embodiment of the present invention, a parent map and a child map may have a parent-child relationship, for example, the parent map is a picture of xx province, and the child map is a main view or a three-dimensional image of xx school in xx province.

[0055] According to an embodiment of the present invention, there is no limitation on the parent map, and the parent map may be different in different map levels. For example, when the parent map is a school, the child map may be a building or landscape included in the school; when the parent map is a building, the child map may be a floor in the building.

[0056] According to an embodiment of the present invention, different parent maps may include different target images for representing geographical locations.

[0057] According to an embodiment of the present invention, before determining from a first database a set of coordinate points of a target image used to represent a geographic location in a parent map and a connection order of coordinate points corresponding to the set of coordinate points, the parent map to which the target client may belong can be determined based on a location determination request sent by the target client.

[0058] According to an embodiment of the present invention, there is no limitation on the method of determining the parent map where the target client may belong to the geographical location. For example, the parent map where the target client may belong to the geographical location may be determined based on the specific identifier of the wireless access point (Access Point, AP) to which the target client is connected, i.e., the wireless router.

[0059] According to an embodiment of the present invention, specifically, since the connectable range of the wireless AP is fixed, the geographical location range of the target client can be estimated based on the coordinates of the wireless AP to which the target client is connected, and the parent map containing the geographical location range can be used as the parent map of the possible geographical location of the target client.

[0060] According to an embodiment of the present invention, the parent map and the target image of the geographical location in the parent map are obtained by projecting the actual geographical location according to a preset ratio, that is, they have a map scale, and different preset ratios can be set according to different situations.

[0061] According to an embodiment of the present invention, the first database may store data such as coordinate point sets of multiple geographical locations in a parent map, the coordinate point connection sequence corresponding to each coordinate point set, and the association relationship between a parent map and a child map.

[0062] According to an embodiment of the present invention, the coordinate point set and the coordinate point connection sequence corresponding to each coordinate point set of multiple geographic locations can be obtained by obtaining the coordinate point set and the coordinate point connection sequence of a geographic location from the first database.

[0063] In operation S220, a plurality of coordinate points included in the coordinate point set are connected in a coordinate point connection order to obtain polygon data corresponding to the target image.

[0064] According to an embodiment of the present invention, the coordinate point connection sequence may be a connection sequence between a plurality of coordinate points included in the coordinate point set.

[0065] According to an embodiment of the present invention, by connecting a plurality of coordinate points according to the coordinate point connection order, a graphic corresponding to the target image of the geographic location, ie, the outline of the geographic location, can be obtained, and the graphic may be a polygon.

[0066] According to an embodiment of the present invention, by connecting the coordinate points in order, it is possible to avoid the situation where the image obtained based on the multiple coordinate points is different from the target image used to represent the geographic location due to the inability to ensure the order of the multiple coordinate points in the coordinate point set when storing, that is, the geographic location cannot be represented, thereby further ensuring the accuracy of subsequent positioning.

[0067] In operation S230 , a target ray is generated using the target coordinates of the target client determined by the position determination request as a starting point.

[0068] According to an embodiment of the present invention, the location determination request may include data such as the network protocol address of the target client and the location information obtained by the Global Positioning System (GPS).

[0069] According to an embodiment of the present invention, there is no limitation on the method for determining the target coordinates of the target client based on the location determination request. Different methods can be used to determine the target coordinates based on the information included in the location determination request. For example, the wireless router to which the target client is connected can be determined through the network protocol address of the target client, and then the target coordinates of the target client can be determined through the coordinates of the wireless router.

[0070] According to an embodiment of the present invention, the actual longitude and latitude coordinates of the geographical location may also be determined through positioning information obtained from GPS, and the target coordinates of the target client may be obtained by converting them with the coordinates in the parent map.

[0071] According to an embodiment of the present invention, the target coordinates are taken as a starting point, and at least one ray is drawn from the starting point, so that it can be more efficiently and accurately determined whether the target coordinates are located at the geographical location.

[0072] In operation S240 , it is determined whether the target client is located at the geographic location based on the number of intersections between the target ray and the polygon data.

[0073] According to an embodiment of the present invention, by determining the intersection data between the target ray and the polygon data, if the data type of the number of intersections meets the target type, it can be determined whether the target client is located at the geographical location.

[0074] According to an embodiment of the present invention, when the coordinate point set of the geographic location determined from the first database is one, if it is determined that the target client is not located at the geographic location, the coordinate point set and coordinate point connection order of the next geographic location can be determined from the first database, and the above-mentioned data processing method can be continued to determine whether the target client is located at the next geographic location until the geographic location of the target client is obtained.

[0075] According to an embodiment of the present invention, when there are multiple coordinate point sets of geographical locations determined by the first database, polygon data corresponding to the multiple geographical locations can be generated, so as to determine the geographical location of the target client by utilizing the intersection data of the target ray and the multiple polygon data.

[0076] According to an embodiment of the present invention, when there are multiple coordinate point sets of geographical locations determined by the first database, the multiple geographical locations may be screened first, and then polygon data may be determined for the screened geographical locations that may be the locations of the target client.

[0077] According to the embodiment of the present invention, the method for filtering multiple geographical locations is not limited. For example, multiple geographical locations may be filtered based on the target coordinates of the target client.

[0078] According to an embodiment of the present invention, specifically, the N-level geographical location of the target client can be determined based on the x-axis and y-axis coordinates of the target coordinates, and then the N+1-level geographical location of the target client can be determined using the z-axis coordinates of the target coordinates, where N can be any value determined based on actual conditions. For example: if the target client is located in Building A based on the x-axis and y-axis coordinates of the target coordinates, the specific floor of Building A where the target client is located can be determined using the z-axis coordinates of the target coordinates.

[0079] According to an embodiment of the present invention, by determining the number of intersections between a target ray and polygon data to determine whether a target client is located at the geographic location, faster and more accurate positioning can be achieved.

[0080] According to an embodiment of the present invention, by screening multiple geographical locations and then performing subsequent processing on the screened geographical locations, it is possible to more quickly determine the geographical location of the target client while reducing the system processing load.

[0081] According to the data processing method provided by the present invention, the polygon data corresponding to the target image representing the geographic location can be determined by determining the coordinate point set of the target image representing the geographic location in the parent map and the coordinate point connection order corresponding to the coordinate point set from the first database, and the target coordinates of the target client determined by the location determination request are used as the starting point to generate a target ray, so that based on the intersection data between the target ray and the polygon data, it can be determined whether the target client is located at the geographic location. Since the parent map is used to determine the coordinate point set of the geographic location, the positioning of a more fine-grained real geographic area can be achieved by obtaining parent maps of different granularities, and the number of intersections between the target ray generated with the target of the target client as the starting point and the polygon data corresponding to the target image used to represent the geographic location can be used to determine whether the target client is located at the geographic location. Therefore, the technical problem of insufficiently accurate positioning in the related art is at least partially solved, and the technical effect of more fine-grained and more accurate positioning can be achieved without relying on satellite positioning information.

[0082] According to an embodiment of the present invention, the above method may further include the following operations.

[0083] Acquire a set of coordinate points corresponding to a geographic location; determine a first target point from a plurality of coordinate points included in the set of coordinate points; determine a connection order of coordinate points corresponding to the set of coordinate points based on sorted data of polar angle values ​​between the first target point and a plurality of second target points, wherein the second target point is a remaining coordinate point among the plurality of coordinate points except the first target point, and the connection order of the coordinate points represents a connection order between the plurality of coordinate points; store the connection order of the coordinate points in a first database, wherein the first database comprises a relational database.

[0084] According to an embodiment of the present invention, the first target point may be a point with the smallest ordinate, that is, the first target point is a point with an order of 1 in the coordinate point connection sequence.

[0085] According to an embodiment of the present invention, the first database may be a relational database capable of storing the correspondence between each geographic location and a set of coordinate points, the correspondence between a set of coordinate points and the order of coordinate points, the correspondence between a geographic location and a sub-map, the correspondence between a sub-map and a set of coordinate points, etc., such as MySQL.

[0086] According to an embodiment of the present invention, the sorting data of the polar angle values ​​may be a sorting result of polar angles formed by connecting lines between the first target point and each of the plurality of second target points and the preset polar axis.

[0087] According to an embodiment of the present invention, since the calculation method of the ranking data of the polar angle value is relatively complicated, the ranking data of the polar angle value can be determined by conversion to achieve the purpose of saving computer computing resources. For example, the ranking data of the polar angle value can be determined by using the slope value of the line between the first target point and multiple second target points, or the ranking data of the polar angle value can be determined by using multiple cosine values ​​corresponding one by one to multiple second target points.

[0088] According to an embodiment of the present invention, the order of each of the multiple second target points can be determined based on the polar angle values ​​of the lines connecting the first target point and each of the multiple second target points in the sorting data of the polar angle values, for example: the points with larger polar angle values ​​are determined to be ranked higher in the sorting.

[0089] According to an embodiment of the present invention, in the process of determining the connection order of coordinate points based on the sorting data of polar angle values, it is necessary to continuously verify the determined sorting order. For example, the second target points can be connected one by one for the sorting data of polar angle values ​​to determine whether the connection between the second target point n and the second target point n+1 satisfies the counterclockwise order.

[0090] Figure 3 The following is a schematic diagram of determining the connection sequence of coordinate points according to an embodiment of the present invention.

[0091] like Figure 3 As shown, the schematic diagram for determining the connection sequence of coordinate points includes 310~390.

[0092] According to an embodiment of the present invention, 310 includes a plurality of coordinate points p0-p7 corresponding to geographic locations. In 320, through the coordinates of each coordinate point, p0 is determined to be the lowest point, i.e., the first target point, and p1-p7 are second coordinate points. The first target point is virtually connected to the plurality of second coordinate points, respectively, based on the preset polar axis P. s The polar angle values ​​between the first target point and each of the second target points can be determined. Then, the polar angle values ​​can be sorted from large to small as ∠P s p0p1>∠P s p0p2>∠P s p0p3>∠P s p0p4,∠P s p0p5=∠P s p0p6>∠P s p0p7.

[0093] According to an embodiment of the present invention, the initial coordinate point connection sequence can be determined based on the above-mentioned polar angle value sorting data, and the initial coordinate point connection sequence from large to small can be p0>p1 p2>p3>p4>p5=p6>p7.

[0094] According to an embodiment of the present invention, to verify whether there is a problem with the connection sequence of the initial coordinate points, the coordinate points may be connected one by one according to the connection sequence of the initial coordinate points, such as 330, connecting p0 and p1, and then connecting p1 and p2 as shown in 340, and determining whether p1 and p2 satisfy the counterclockwise order. The determination method may be to determine whether the slope of the connecting line p0p1 multiplied by the slope of the connecting line p1p2 is a negative value. If it is not a negative value, it is determined that the counterclockwise order is not satisfied. Therefore, point p2 can be discarded, then Without connecting with p1, p1 and the next sequence point p3 are connected as shown in 350 to determine whether the counterclockwise order is satisfied. If the slope of p0p1 multiplied by the slope of the connecting line p1p3 is a negative value, it is determined that the counterclockwise order is satisfied, and p3 is determined to be connected with p1. Similarly, 360~390, the connection order is verified to determine that the coordinate point connection order is p0-p1-p3-p6-p7-p0, thereby completing the determination of the coordinate point connection order corresponding to the coordinate point set.

[0095] According to an embodiment of the present invention, the storage of the coordinate point connection sequence can be achieved by constructing a convex hull before adding the coordinate point connection sequence to the first database. For example, when the coordinate point connection sequence has not yet been fully verified, the coordinate point connection sequence p0-p1-p3 can be temporarily stored in the convex hull.

[0096] According to an embodiment of the present invention, the coordinate point connection order determined based on the sorting data of the polar angle value can realize that multiple coordinate points can be connected into a top view or a contour map corresponding to the geographical location, thereby better ensuring the accuracy of the polygon data when the number of intersections between the target ray and the polygon data is subsequently determined, that is, better ensuring the accuracy of the positioning result.

[0097] According to the embodiment of the present invention, by storing various relational data through the first database, it is possible to store various data by table or sub-table, thereby making the data reading and writing speed more efficient.

[0098] According to an embodiment of the present invention, the above method may include the following operations.

[0099] Based on the first coordinate of the first target point and the second coordinate of each second target point, determine the slope value of the line connecting the first target point and each second target point; sort the slope values ​​of each of the multiple second target points according to the target rule to obtain a first sorting result; based on the first sorting result, determine the sorting data of the polar angle values ​​between the first target point and each of the multiple second target points.

[0100] According to an embodiment of the present invention, the first target point can be used as the starting point and connected to multiple second target points respectively. Based on the method for determining the slope between two points, the slope values ​​of the lines between the first target point and each of the multiple second target points are determined. For example: if the first coordinate is (x1, y1) and the second coordinate is (x2, y2), then the slope of the line between the two points is (y2-y1) / (x2-x1).

[0101] According to the embodiment of the present invention, there is no limitation on the target rule, and different target rules can be determined according to actual conditions. For example, the target rule can be to sort from large to small, or from small to large.

[0102] According to an embodiment of the present invention, since the slope values ​​of the lines connecting the first target point and each of the plurality of second target points satisfy the following formula (1), the sorting data of the polar angle values ​​can be determined by using the sorting results of the slope values ​​according to the slope values. Since the slope values ​​are proportional to the polar angle values, the sorting results based on the slope values ​​are the same as the sorting data of the polar angle values.

[0103] ; (1)

[0104] in, is the polar angle value, and the slope value of the line connecting the first target point and each of the plurality of second target points is k.

[0105] According to an embodiment of the present invention, the above method may further include the following operations.

[0106] Based on the first coordinate of the first target point and the second coordinate of each second target point, a vector from the first target point to each second target point is determined; based on the vector from the first target point to each second target point and a preset unit vector, a cosine value corresponding to each second target point is determined; based on the cosine value corresponding to each second target point, sorted data of polar angle values ​​between the first target point and each of the plurality of second target points is determined.

[0107] According to an embodiment of the present invention, based on the cosine value corresponding to each second target point, the sorting data of the polar angle value between the first target point and each of the multiple second target points is determined as follows: the cosine values ​​corresponding to each of the multiple second target points are sorted according to the target rule to obtain a second sorting result; based on the second sorting result, the sorting data of the polar angle value between the first target point and each of the multiple second target points is determined; based on the sorting data of the polar angle value, the connection order of the coordinate points corresponding to the coordinate point set is determined.

[0108] According to an embodiment of the present invention, there is no limitation on the method for determining the vector from the first target point to each of the multiple second target points. It can be determined by subtracting the second coordinate of the second target point from the first coordinate of the first target point, or by subtracting the first coordinate of the first target point from the second coordinate of the second target point. For example: if the first coordinate is (x1, y1) and the second coordinate is (x2, y2), then the vector between the two points is (x2-x1, y2-y1).

[0109] According to an embodiment of the present invention, the preset unit vector may be a unit vector along the x-axis.

[0110] According to an embodiment of the invention, based on the vectors from the first target point to the second target points and the preset unit vector, the cosine values ​​corresponding to the second target points may be determined by the following formula (2).

[0111] ; (2)

[0112] in, is the polar angle value, is the vector from the first target point to the second target point, is the preset unit vector, is the distance from the first target point to the second target point, is the value of the preset unit vector.

[0113] According to an embodiment of the present invention, based on the above formula (2), it can be known that by using the inverse trigonometric function of the cosine value, the polar angle value corresponding to each of the first target point to the plurality of second target points can be determined, and then the plurality of polar angle values ​​can be sorted to determine the sorting data of the polar angle values ​​between the first target point and the plurality of second target points. Alternatively, since there is a proportional relationship between the cosine value and the polar angle value, the sorting result of the polar angle value corresponding to the second target point can be determined based on the correspondence between each cosine value and the second target point in the first sorting result, that is, if the sorting of the cosine value corresponding to the second target point is 2, then the order of the polar angle value corresponding to the second target point is also 2, and thus the coordinate point connection order of the second target point may also be 2.

[0114] According to an embodiment of the present invention, the first database includes coordinates of a plurality of preset wireless routers, and the preset wireless routers have group identifiers. The method may further include the following operations.

[0115] Based on the network protocol address included in the location determination request, a first wireless router is determined from a plurality of preset wireless routers; based on the group identifier of the first wireless router, a plurality of second wireless routers having the same group identifier as the first wireless router are determined from the plurality of preset wireless routers; the coordinates of the first wireless router and the respective coordinates of the plurality of second wireless routers are determined from a first database; based on the coordinates of the first wireless router and the respective coordinates of the plurality of second wireless routers, a target equation group is obtained; and the target equation group is solved to obtain the target coordinates of the target client.

[0116] According to an embodiment of the present invention, the first database includes identifiers, group identifiers, network protocol addresses and coordinates of a plurality of preset wireless routers.

[0117] According to an embodiment of the present invention, based on the location determination request, the Internet Protocol (IP) address included in the location determination request can be determined, and the IP address can be matched with the respective Internet Protocol addresses of multiple preset wireless routers, so that the preset wireless router with the same IP address as that included in the location determination request can be used as the first wireless router.

[0118] According to the embodiment of the present invention, a plurality of second wireless routers having the same grouping identifier as the first wireless router can be determined through the grouping identifier of the first wireless router and the grouping identifiers of the plurality of preset wireless routers.

[0119] According to an embodiment of the present invention, the preset wireless routers with the same grouping identifier may be wireless routers whose distances between each other are less than or equal to a preset threshold, or preset wireless routers that are adjacent in location.

[0120] According to the embodiment of the present invention, the target second wireless router can be arbitrarily selected from the plurality of second wireless routers, so as to obtain the target equation group based on the coordinates of the first wireless router and the coordinates of the plurality of target second wireless routers.

[0121] According to an embodiment of the present invention, the signal transmission time and signal reception time of the first wireless router and the plurality of second wireless routers for the target client can be determined from the first wireless router and the second wireless router, thereby determining the distances from the first wireless router and the second wireless router to the target client.

[0122] According to an embodiment of the present invention, the target equation group can be determined based on the distances from the first wireless router and the second wireless router to the target client, the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers. Specifically, when there are two second wireless routers, namely, a second wireless router i and a second wireless router u, the target equation group can be represented by formula (3).

[0123] ; (3)

[0124] Wherein, d1 is the distance from the first wireless router to the target client, d2 and d3 are the distances from the second wireless router i and the second wireless router u to the target client respectively, (x1, y1) are the coordinates of the first wireless router, (x2, y2) and (x3, y3) are the coordinates of the second wireless router i and the second wireless router u respectively, and (x0, y0) are the coordinates of the target client.

[0125] According to an embodiment of the present invention, by solving the target equation group shown in the above formula (3), the coordinates of the target client can be obtained.

[0126] According to an embodiment of the present invention, connecting a plurality of coordinate points included in a coordinate point set according to a coordinate point connection order to obtain polygon data corresponding to a target image may include the following operations.

[0127] Determine the target distance between the target coordinates and each of the multiple coordinate points included in the coordinate point set; when it is determined that the multiple target distances are all less than the target threshold, connect the multiple coordinate points included in the coordinate point set according to the coordinate point connection order to obtain polygon data corresponding to the target image.

[0128] According to an embodiment of the present invention, the distance between the target client and each coordinate point may be determined by the target coordinates and the coordinates of each coordinate point, thereby determining the distance between the target client and the geographical location.

[0129] According to an embodiment of the present invention, by determining the target distance between the target coordinates and each of the multiple coordinate points included in the coordinate point set, it can be determined whether the distance between the target coordinates and the geographic location is too far, that is, whether it is greater than or equal to the target threshold. If it is too far, it can be determined that the target coordinates cannot be located at the geographic location. Therefore, the geographic location can be discarded, and then other geographic locations and the coordinate point sets corresponding to the geographic locations are determined from the first database, and the above-mentioned target distance calculation process is continued until it is determined that multiple target distances are all less than the target threshold.

[0130] According to an embodiment of the present invention, by calculating the target distance between the target coordinates and each of the multiple coordinate points included in the coordinate point set, it is possible to directly screen out the geographical locations that do not meet the conditions, so that the above-mentioned data processing method is only executed on the geographical locations that meet the conditions, thereby reducing the waste of computer computing resources and saving computing time.

[0131] According to an embodiment of the present invention, by calculating the target distance between the target coordinates and each of the multiple coordinate points, it is also possible to determine a more fine-grained geographic location. For example, geographic location 1 and geographic location 2 are both located in Park W, geographic location 1 is Building A, and geographic location 2 is Building B. The target distance between the coordinate point corresponding to geographic location 1 and the target coordinate is less than the target threshold, and there is a coordinate point whose target distance between the coordinate point corresponding to geographic location 2 and the target coordinate is not less than the target threshold. In this case, Building A can be considered as the geographic location where the target client may be located, that is, the positioning granularity is reduced to the building level compared to Park W.

[0132] According to an embodiment of the present invention, determining whether a target client is located at a geographical location based on the number of intersections between a target ray and polygon data may include the following operations.

[0133] The type of the number of intersections is judged based on preset conditions to obtain a judgment result; based on the judgment result, it is determined whether the target client is located at the geographical location.

[0134] According to an embodiment of the present invention, the preset condition is not limited and can be any condition that can determine the data type of the number of intersections. For example: the intersection data is divided by 2 to obtain a calculation result. If the calculation result is an integer, the data type is determined to be an even type, otherwise it is an odd type. For another example: odd-type data is stored in a first database, and the preset condition is to match the number of intersections with the odd-type data in the first database. If the matching result is that the data exists, it is considered to be an odd-type data, otherwise it is an even-type data.

[0135] According to an embodiment of the present invention, a list of intersection points between a target ray and polygon data may be obtained to determine the number of intersection points.

[0136] According to an embodiment of the present invention, the number of intersection points may have different data types, for example, an odd number type or an even number type.

[0137] According to an embodiment of the present invention, determining whether the target client is located at a geographical location based on the judgment result may include the following operations.

[0138] If the judgment result determines that the type of the number of intersections is an odd type, it is determined that the target client is located at the geographical location; if the judgment result determines that the type of the number of intersections is an even type, it is determined that the target client is not located at the geographical location.

[0139] According to an embodiment of the present invention, by determining whether the type of the number of intersections is an odd number type, it is possible to quickly and accurately determine whether the target client is located in the geographical location, thereby achieving faster and more accurate positioning of the target client.

[0140] Figure 4 The schematic diagram schematically shows a method of determining whether a target client is located at a geographical location according to an embodiment of the present invention.

[0141] like Figure 4 As shown, when the target client is not located at the geographic location, it can be known that the number of intersections between the target ray and the polygon data, i.e., cn, is 0, 4, or 2. By judging the data type of 0, 4, or 2, it is determined that the data type is an even type, and it is determined that the target client is not located at the geographic location.

[0142] According to an embodiment of the present invention, when the target client is located at the geographical location, it is known that the number of intersections cn between the target ray and the polygon data is 3 or 1. By judging the data type of 3 or 1 and determining that the data type is an odd type, it is determined that the target client is located at the geographical location.

[0143] According to an embodiment of the present invention, the above method may further include the following operations.

[0144] When the target client is located at the geographic location, a sub-map corresponding to the geographic location is obtained from the second database, wherein the sub-map represents a three-dimensional image of the geographic location, and the second database includes an object storage database; the sub-map is sent to the target client so that the target client can display a picture of the target client at the geographic location based on the sub-map.

[0145] According to an embodiment of the present invention, when the target client is located at the geographical location, it is necessary to perform an interface display on the target client indicating that the target client is located at the geographical location. For example, based on a sub-map, an identifier of the target client can be added to the sub-map, thereby intuitively and quickly determining that the target client is located at the geographical location.

[0146] According to an embodiment of the present invention, the target client may be displayed at the geographical location in the parent map. For example, the target client's identifier may be added to the target coordinates of the target client within the geographical location range in the parent map.

[0147] According to an embodiment of the present invention, dynamic rendering of the target client displayed in a parent map or a child map may be accomplished through a relevant page rendering tool.

[0148] According to an embodiment of the present invention, since the relevant page rendering tool may have a preset coordinate system, the offset value between the coordinate system and the coordinate system in the parent map can be calculated to determine the offset value of each coordinate system set, thereby completing the mapping of the parent map coordinates and the page coordinates.

[0149] According to an embodiment of the present invention, the above method may further include the following operations.

[0150] In response to receiving a data adding request for a geographic location, a coordinate point set corresponding to the geographic location and a sub-map corresponding to the geographic location are obtained from the data adding request; the coordinate point set is stored in a first database; and the sub-map is stored in a second database.

[0151] According to an embodiment of the present invention, the second database may be an object storage database for storing objects such as pictures and videos, for example, Minio.

[0152] According to an embodiment of the present invention, the data adding request includes a set of coordinate points corresponding to the target image of the geographic location added in the parent map, and a sub-map corresponding to the geographic location, wherein the sub-map can be a main view or a three-dimensional image corresponding to the geographic location.

[0153] According to an embodiment of the present invention, when storing a sub-map, the sub-map can be stored in the second database, and at the same time, the identifier corresponding to the sub-map and the parent map identifier of the sub-map can be updated in the first database. For example, the Pid field of the sub-map can be updated in the first database to store the parent-child relationship between maps.

[0154] According to an embodiment of the present invention, the request for adding geographic location data may be a request sent by a third client when adding the geographic location. The third client may be a client that is communicatively connected to a server that is capable of executing the above-mentioned data processing method, such as a front-end interface that is capable of adding the geographic location.

[0155] According to an embodiment of the present invention, before sending a data adding request, the third client needs to determine the coordinate point set of the added geographic location in the parent map. There is no limitation on the method for determining the coordinate point set, and it can be obtained by obtaining the coordinate point of the selected point such as a mouse control mark.

[0156] According to an embodiment of the present invention, a sub-map may have a different coordinate system and scale from that of a parent map, and the coordinate systems and scales between sub-maps may also be different, thereby facilitating storage.

[0157] According to the embodiment of the present invention, the first database is used to store the relationship data such as the association relationship between the parent map and the child map, the coordinate point set, etc., and the second database is used to store the image data such as the parent map and the child map, so that the relationship data and the image data are stored separately, which is convenient for users to make real-time adjustments, saves map storage resources, decouples the map levels, and improves the map storage performance. At the same time, because the system storage relationship is relatively clear and simple, it is also easy to couple with other systems.

[0158] Figure 5The diagram schematically shows a method of adding a geographic location to a parent map according to an embodiment of the present invention.

[0159] like Figure 5 As shown, when the third client sends a data addition request, i.e., adds a new sub-map, it needs to determine the sub-map by uploading the sub-map at the map upload location, and implement the map name, alias, X offset, Y offset, scale, and selection of regional points in the parent map below for the added sub-map, thereby determining a set of coordinate points based on the coordinates of the points selected in the regional points, and after confirming the addition through the confirmation button, the above data is packaged as a data addition request.

[0160] Figure 6 The diagram schematically shows a schematic diagram of determining the area where the geographical location is located in a parent map according to an embodiment of the present invention.

[0161] like Figure 6 As shown, the parent map includes the geographical locations of multiple conference rooms, multiple offices, corridors, elevator halls, and office lobby. When generating a data addition request for one of the offices, it is necessary to determine the regional point of the office on the parent map. This can be achieved by selecting the points in the parent map through control instructions, such as: generating control instructions through the mouse, and the multiple points clicked by the mouse are the points of the target image representing the geographical location on the parent map. For example, when adding the coordinate points of the conference room, the coordinate point set of the conference room can be determined through point 610~point 640.

[0162] Based on the above data processing method, the present invention also provides a data processing device. Figure 7 The device is described in detail.

[0163] Figure 7 The structure block diagram of the data processing device according to the embodiment of the present invention is schematically shown.

[0164] like Figure 7 As shown, the data processing device 700 of this embodiment includes a data acquisition module 710 , a coordinate connection module 720 , a ray generation module 730 and a position determination module 740 .

[0165] A data acquisition module is used to determine, in response to receiving a location determination request sent by a target client, a set of coordinate points of a target image in a parent map used to represent a geographic location and a connection order of coordinate points corresponding to the set of coordinate points from a first database, wherein the location determination request is used to determine the relationship between the target coordinates of the target client and the geographic location, the geographic location is a real geographic area, and the set of coordinate points includes coordinate location determination requests for multiple target points located on the edge of the target image.

[0166] The coordinate connection module is used to connect the multiple coordinate points included in the coordinate point set according to the coordinate point connection sequence to obtain polygon data corresponding to the target image.

[0167] The ray generation module is used to generate a target ray position determination request by taking the target coordinates of the target client determined by the position determination request as a starting point.

[0168] The location determination module is used to determine whether the target client is located at the geographic location based on the number of intersections between the target ray and the polygon data.

[0169] According to an embodiment of the present invention, the data processing device 700 further includes: an acquisition module, a first point determination module, and a sequence determination module.

[0170] The acquisition module is used to obtain a set of coordinate points corresponding to the geographic location.

[0171] The first point determination module is used to determine a first target point from a plurality of coordinate points included in the coordinate point set.

[0172] A sequence determination module is used to determine the coordinate point connection sequence corresponding to the coordinate point set based on the sorting data of the polar angle values ​​between the first target point and multiple second target points, wherein the second target point is the remaining coordinate point in the multiple coordinate points except the first target point, and the coordinate point connection sequence represents the connection sequence between the multiple coordinate points.

[0173] The first storage module is used to store the coordinate point connection sequence in a first database, wherein the first database includes a relational database.

[0174] According to an embodiment of the present invention, the data processing device 700 may further include: a slope value determination module, a first sorting module, and a first sorting data determination module.

[0175] The slope value determination module is used to determine the slope value of the line connecting the first target point and each second target point based on the first coordinate of the first target point and the second coordinate of each second target point.

[0176] The first sorting module is used to sort the slope values ​​of the plurality of second target points according to the target rule to obtain a first sorting result.

[0177] The first sorting data determination module is used to determine the sorting data of the polar angle values ​​between the first target point and each of the plurality of second target points based on the first sorting result.

[0178] According to an embodiment of the present invention, the data processing device 700 may further include: a vector determination module, a cosine value determination module, and a second sorting data determination module.

[0179] The vector determination module is used to determine a vector from the first target point to each second target point based on a first coordinate of the first target point and a second coordinate of each second target point.

[0180] The cosine value determination module is used to determine the cosine value corresponding to each second target point based on the vector from the first target point to each second target point and the preset unit vector.

[0181] The second ranking data determination submodule is used to determine the ranking data of the polar angle values ​​between the first target point and each of the plurality of second target points based on the cosine value corresponding to each of the second target points.

[0182] According to an embodiment of the present invention, the first database includes the coordinates of each of a plurality of preset wireless routers, and the preset wireless routers have group identifiers. The data processing device 700 may further include: a first router determination module, a second router determination module, a router coordinate determination module, an equation group determination module, and an equation group solving module.

[0183] The first router determination module is used to determine a first wireless router from a plurality of preset wireless routers based on the network protocol address included in the location determination request.

[0184] The second router determining module is used to determine a plurality of second wireless routers having the same grouping identifier as the first wireless router from a plurality of preset wireless routers based on the grouping identifier of the first wireless router.

[0185] The router coordinate determination module is used to determine the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers from the first database.

[0186] The equation group determination module is used to construct a target equation group based on the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers.

[0187] The equation group solving module is used to solve the target equation group to obtain the target coordinates of the target client.

[0188] According to an embodiment of the present invention, the coordinate connection module may further include: a distance detection submodule and a connection submodule.

[0189] The distance detection submodule is used to determine the target distance between the target coordinates and each of the multiple coordinate points included in the coordinate point set.

[0190] The connection submodule is used to connect the multiple coordinate points included in the coordinate point set according to the coordinate point connection order to obtain polygon data corresponding to the target image when it is determined that the multiple target distances are all less than the target threshold.

[0191] According to an embodiment of the present invention, the location determination module may include: a judgment submodule and a location determination submodule.

[0192] The judgment submodule is used to judge the type of the number of intersections based on preset conditions and obtain a judgment result.

[0193] The location determination submodule is used to determine whether the target client is located at a geographical location based on the judgment result.

[0194] According to an embodiment of the present invention, the position determination submodule includes: a first determination unit and a second determination unit.

[0195] The first determining unit is configured to determine that the target client is located at a geographical location when it is determined in the judgment result that the type of the number of intersections is an odd type.

[0196] The second determining unit is configured to determine that the target client is not located at the geographical location when the judgment result determines that the type of the number of intersections is an even type.

[0197] According to an embodiment of the present invention, the data processing device 700 further includes: a sub-map determining module and a display module.

[0198] The submap determination module is used to obtain a submap corresponding to the geographical location from the second database when the target client is located at the geographical location, wherein the submap represents a three-dimensional image of the geographical location, and the second database includes an object storage database.

[0199] The display module is used to send the sub-map to the target client so that the target client can display the picture of the target client's geographical location based on the sub-map.

[0200] According to an embodiment of the present invention, the data processing device 700 further includes: a data adding module, a second storage module and a third storage module.

[0201] The data adding module is used for, in response to receiving a data adding request for a geographic location, obtaining a coordinate point set corresponding to the geographic location and a sub-map corresponding to the geographic location from the data adding request.

[0202] The second storage module is used to store the coordinate point set in the first database.

[0203] The third storage module is used to store the sub-map in the second database.

[0204] According to an embodiment of the present invention, any multiple modules of the data acquisition module 710, the coordinate connection module 720, the ray generation module 730, and the position determination module 740 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the data acquisition module 710, the coordinate connection module 720, the ray generation module 730, and the position determination module 740 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the data acquisition module 710 , the coordinate connection module 720 , the ray generation module 730 , and the position determination module 740 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.

[0205] Figure 8 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present invention is schematically shown.

[0206] like Figure 8 As shown, the electronic device 800 according to an embodiment of the present invention includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.

[0207] In RAM 803, various programs and data required for the operation of electronic device 800 are stored. Processor 801, ROM 802 and RAM 803 are connected to each other via bus 804. Processor 801 performs various operations of the method flow according to the embodiment of the present invention by executing the programs in ROM 802 and / or RAM 803. It should be noted that the program can also be stored in one or more memories other than ROM 802 and RAM 803. Processor 801 can also perform various operations of the method flow according to the embodiment of the present invention by executing the programs stored in one or more memories.

[0208] According to an embodiment of the present invention, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that the computer program read therefrom is installed into the storage portion 808 as needed.

[0209] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.

[0210] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 802 and / or RAM 803 described above and / or one or more memories other than ROM 802 and RAM 803.

[0211] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the data processing method provided by the embodiment of the present invention.

[0212] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when it is executed by the processor 801. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0213] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0214] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0215] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0216] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0217] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present invention may be combined and / or coupled in various ways, even if such combinations and / or couplings are not explicitly described in the present invention. In particular, the features described in the various embodiments and / or claims of the present invention may be combined and / or coupled in various ways without departing from the spirit and teachings of the present invention. All of these combinations and / or couplings fall within the scope of the present invention.

[0218] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination. The scope of the present invention is defined by the attached claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.

Claims

1. A data processing method, characterized in that: The method comprises: In response to receiving a location determination request sent by a target client, determining from a first database a set of coordinate points of a target image in a parent map for representing a geographic location and a connection order of coordinate points corresponding to the set of coordinate points, wherein the location determination request is used to determine a relationship between target coordinates of the target client and the geographic location, the geographic location is a real geographic area, and the set of coordinate points includes coordinates of a plurality of target points located on an edge of the target image; Connecting the plurality of coordinate points included in the coordinate point set according to the coordinate point connection order to obtain polygon data corresponding to the target image; Using the target coordinates of the target client determined by the position determination request as a starting point, generating a target ray; Determining whether the target client is located at the geographic location based on the number of intersections between the target ray and the polygon data; When the target client is located at the geographical location, obtaining a sub-map corresponding to the geographical location from a second database, wherein the sub-map represents a three-dimensional image of the geographical location; Sending the sub-map to the target client, so that the target client displays the picture of the target client located at the geographical location based on the sub-map; Wherein, the method further comprises: Obtaining a set of coordinate points corresponding to the geographic location; Determine a first target point from a plurality of coordinate points included in the coordinate point set; Determining a connection order of coordinate points corresponding to the set of coordinate points based on sorted data of polar angle values ​​between the first target point and each of a plurality of second target points, wherein the second target point is a remaining coordinate point of the plurality of coordinate points except the first target point; The coordinate point connection sequence is stored in the first database.

2. The method according to claim 1, characterized in that The first database includes a relational database.

3. The method according to claim 1, characterized in that The method further comprises: Determine a slope value of a line connecting the first target point and each of the second target points based on a first coordinate of the first target point and a second coordinate of each of the second target points; Sorting the slope values ​​of each of the plurality of second target points according to a target rule to obtain a first sorting result; Based on the first sorting result, sorting data of polar angle values ​​between the first target point and each of a plurality of second target points is determined.

4. The method according to claim 1, characterized in that: The method further comprises: Determine a vector from the first target point to each second target point based on a first coordinate of the first target point and a second coordinate of each second target point; Determine a cosine value corresponding to each second target point based on the vector from the first target point to each second target point and a preset unit vector; Based on the cosine value corresponding to each second target point, ranking data of polar angle values ​​between the first target point and each of the plurality of second target points are determined.

5. The method according to claim 1, characterized in that The first database includes coordinates of a plurality of preset wireless routers, each of which has a grouping identifier. The method further includes: Determine a first wireless router from a plurality of preset wireless routers based on the network protocol address included in the location determination request; Based on the group identifier of the first wireless router, determining a plurality of second wireless routers having the same group identifier as the first wireless router from the plurality of preset wireless routers; determining the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers from the first database; constructing a target set of equations based on the coordinates of the first wireless router and the coordinates of each of the plurality of second wireless routers; The target equation group is solved to obtain the target coordinates of the target client.

6. The method according to claim 1, characterized in that The step of connecting the plurality of coordinate points included in the coordinate point set according to the coordinate point connection order to obtain polygon data corresponding to the target image comprises: Determine a target distance between the target coordinate and each of the plurality of coordinate points included in the coordinate point set; When it is determined that the plurality of target distances are all smaller than the target threshold, the plurality of coordinate points included in the coordinate point set are connected according to the coordinate point connection order to obtain polygon data corresponding to the target image.

7. The method according to claim 1, characterized in that The determining whether the target client is located at the geographical location based on the number of intersections between the target ray and the polygon data comprises: Judging the type of the number of intersections based on a preset condition to obtain a judgment result; Based on the determination result, it is determined whether the target client is located at the geographical location.

8. The method according to claim 7, characterized in that The determining, based on the judgment result, whether the target client is located at the geographical location includes: If the judgment result determines that the type of the number of intersections is an odd number type, determining that the target client is located at the geographical location; When the judgment result determines that the type of the number of intersections is an even number type, it is determined that the target client is not located at the geographical location.

9. The method according to claim 1, characterized in that: The second database includes an object storage database.

10. The method according to claim 9, characterized in that The method further comprises: In response to receiving a data adding request for the geographic location, acquiring the coordinate point set corresponding to the geographic location and the sub-map corresponding to the geographic location from the data adding request; Storing the coordinate point set in the first database; The sub-map is stored in the second database.