Map point location name generation method and device, equipment and storage medium

By obtaining the boundary latitude and longitude coordinate set of the map area, calculating the primary center point and dividing the azimuth coordinate set, determining the target center point to generate the point name, the problem of inaccurate calculation of the area center position in the map is solved, and accurate point name is achieved generate.

CN119205979AActive Publication Date: 2024-12-27HANGZHOU NEWGRAND TECHNOLOGY CO LTD
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202411676800.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2024-12-27
Estimated Expiration
2044-11-22

AI Technical Summary

Technical Problem

It is difficult for prior art to accurately generate point names at the true central location of the region in the map, especially due to inaccurate calculation of the central location due to irregular shapes of the edges of the region.

Method used

By obtaining the boundary latitude and longitude coordinate set of the map area, the primary center point is calculated, and based on this, the azimuth coordinate set and quadrilateral corner point information is divided, the target center point is determined to generate the point name.

Benefits of technology

Regardless of the regional edge rules or not, point names can be generated accurately at the true central location of the region in the map, solving the problem of inaccurate central location calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205979A_ABST
    Figure CN119205979A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of map drawing, in particular to a map point location name generation method and device, equipment and a storage medium, and the method comprises the steps: obtaining a boundary latitude and longitude coordinate set based on a region boundary in a map, and obtaining a primary center point based on the boundary latitude and longitude coordinate set; determining a plurality of azimuth coordinate sets based on the boundary latitude and longitude coordinate set and the primary center point; determining azimuth quadrilateral angular point information in one-to-one correspondence with the azimuth coordinate set based on the azimuth coordinate set and the primary center point; and determining a target center point based on the angular point information of the plurality of azimuth quadrangles, and generating a corresponding point position name at the target center point. According to the invention, the point position name can be conveniently generated at the real center position of the region in the map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of map drawing technology, and in particular to a method, device, equipment and storage medium for generating map point names. Background Art

[0002] A map generally includes multiple regions, and each region needs to display the corresponding point name at its center. For example, if the map of City A includes District B, the point name "District B" needs to be displayed at the center of District B. Therefore, when drawing the map, the corresponding point name needs to be generated at the center of the region.

[0003] Currently, ECharts (Enterprise Charts, commercial-grade data charts) and other tools can be used for map drawing. However, since the edges of regions in maps are often irregular in shape, the center position calculated based on the edges of the regions is inaccurate, which makes it difficult to generate point names at the true center of the regions in the map. Summary of the invention

[0004] In order to facilitate the generation of a point name at the true center position of an area in a map, the present application provides a method, apparatus, device and storage medium for generating a map point name.

[0005] In a first aspect, the present application provides a method for generating a map point name, comprising:

[0006] Obtaining a boundary longitude and latitude coordinate set based on the regional boundary in the map, and obtaining a primary center point based on the boundary longitude and latitude coordinate set;

[0007] Determine a plurality of orientation coordinate sets based on the boundary longitude and latitude coordinate sets and the primary center point;

[0008] Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set;

[0009] The target center point is determined based on the information of the corner points of the plurality of orientation quadrilaterals, and a corresponding point name is generated at the target center point.

[0010] In a second aspect, the present application provides a device for generating a map point name, comprising:

[0011] A primary center determination module, used to obtain a boundary longitude and latitude coordinate set based on the regional boundary in the map, and obtain a primary center point based on the boundary longitude and latitude coordinate set;

[0012] A coordinate set determination module, used to determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point;

[0013] A corner point information determination module, configured to determine, based on the orientation coordinate set and the primary center point, the orientation quadrilateral corner point information corresponding to the orientation coordinate set in a one-to-one manner;

[0014] The point name generating module is used to determine the target center point based on the information of the corner points of the plurality of orientation quadrilaterals, and to generate a corresponding point name at the target center point.

[0015] In a third aspect, the present application provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method when executing the computer program.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps in the above method when executed by a processor.

[0017] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0018] The above-mentioned map point name generation method, device, equipment and storage medium obtain a boundary longitude and latitude coordinate set based on the regional boundary in the map, obtain a primary center point based on the boundary longitude and latitude coordinate set; determine multiple orientation coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point; determine orientation quadrilateral corner point information corresponding to the orientation coordinate set one by one based on the orientation coordinate set and the primary center point; determine a target center point based on the multiple orientation quadrilateral corner point information, and generate a corresponding point name at the target center point. Through the above implementation, regardless of whether the edge rules of the regional boundary are met, a preliminary center point, that is, the primary center point, can be generated according to the regional boundary first; then, the longitude and latitude coordinates of each boundary point on the regional boundary (that is, the boundary longitude and latitude coordinate set) are divided into different directions according to the primary center point, so as to obtain the orientation coordinate sets corresponding to different directions, and then a target quadrilateral located at the actual center position of the region is generated according to each orientation coordinate set, and then the center point of the target quadrilateral, that is, the target center point, is determined, and finally a point name is generated at the target center point, so that the point name can be generated at the true center position of the region in the map.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A flowchart of a method for generating a map point name provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram for reflecting the positions of adjacent points at the same longitude and adjacent points at the same latitude provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram for representing a target quadrilateral provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of the structure of a device for generating a map point name provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present application;

[0026] Figure 6 This is a diagram of the internal structure of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0029] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.

[0030] Embodiment 1

[0031] Figure 1 This is a flowchart of a method for generating a map point name provided in Example 1 of the present application, refer to Figure 1 The method may be performed by a device for performing the method, and the device may be implemented by software and / or hardware. The method includes:

[0032] S110, obtaining a boundary longitude and latitude coordinate set based on the region boundary in the map, and obtaining a primary center point based on the boundary longitude and latitude coordinate set.

[0033] Some projects or businesses may require map drawing. For example, ECharts (Enterprise Charts, commercial data charts) and the like are used to draw an electronic version of the map; the map in this embodiment includes maps of different levels, and the levels can specifically be administrative levels. For example, the maps include national maps, provincial maps, municipal maps, district maps...; this embodiment takes the municipal map as an example to illustrate the map; the municipal map includes multiple district-level areas. For example, the municipal map includes area A, area B, area C..., and each area in the municipal map is also a region; it should be noted that if the map is a provincial map, then each city in the provincial map is also a region, and so on; the boundary of the region in the map is also the boundary of the region, and the boundary of the region is composed of multiple continuous boundary points. Each boundary point has its corresponding longitude and latitude coordinates in the map, and the boundary longitude and latitude coordinate set is also the set of each boundary point in the boundary of the region; the primary center point is also the center point of the corresponding region preliminarily determined according to the boundary longitude and latitude coordinate set. It should be noted that, due to the irregularity of the regional boundary, the primary center point is generally not the actual center point of the corresponding region.

[0034] Specifically, the boundaries of the districts included in the city-level map are determined to obtain the regional boundaries, and then the longitude and latitude coordinates corresponding to each boundary point in the regional boundaries are determined, and the boundary longitude and latitude coordinate set contains the longitude and latitude coordinates corresponding to each boundary point in the regional boundaries; further, the center point of the corresponding district is calculated based on the boundary longitude and latitude coordinate set, and the center point is recorded as the primary center point.

[0035] S120. Determine a plurality of orientation coordinate sets based on the boundary longitude and latitude coordinate sets and the primary center point.

[0036] Among them, the boundary longitude and latitude coordinate set can be divided into multiple azimuth coordinate sets through the primary center point; in this embodiment, the primary center point includes four directions: southwest, northwest, southeast, and northeast; each longitude and latitude coordinate in the boundary longitude and latitude coordinate set corresponds to the above four directions. For example, if a longitude and latitude coordinate corresponds to the southwest direction, it indicates that the longitude and latitude coordinate is located southwest of the primary center point, and so on; in this embodiment, multiple azimuth coordinate sets include a southwest azimuth coordinate set, a northwest azimuth coordinate set, a southeast azimuth coordinate set, and a northeast azimuth coordinate set corresponding to the above four directions one by one; each azimuth coordinate set is a collection of longitude and latitude coordinates in the boundary longitude and latitude coordinate set corresponding to the corresponding azimuth.

[0037] Specifically, determine the correspondence between each longitude and latitude coordinate position in the boundary longitude and longitude coordinate set and the primary center point, determine the direction corresponding to each longitude and latitude coordinate based on the correspondence, and then gather the longitude and latitude coordinates with the same direction in the boundary longitude and longitude coordinate set, so as to obtain a direction coordinate set corresponding one-to-one to each direction.

[0038] S130. Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set.

[0039] Among them, a quadrilateral corresponding to each orientation coordinate set can be determined through each orientation coordinate set and the primary center point, and the quadrilateral is recorded as an orientation quadrilateral, each orientation quadrilateral has four corner points, wherein the primary center point is a corner point shared by all orientation quadrilaterals; and the set of latitude and longitude coordinates of the four corner points of the orientation quadrilateral is recorded as orientation quadrilateral corner point information.

[0040] Specifically, taking one of the orientation coordinate sets as an example, determine the longitude and latitude coordinates of the orientation coordinate set with the same longitude as the primary center point but the farthest from the primary center point to obtain the coordinates of the first corner point, and also determine the longitude and latitude coordinates of the orientation coordinate set with the same latitude as the primary center point but the farthest from the primary center point to obtain the coordinates of the second corner point; then determine the third corner point according to the longitude coordinates of the first corner point coordinates and the latitude coordinates of the second corner point coordinates; and take the primary center point as the fourth corner point; combine the longitude and latitude coordinates of the first corner point, the second corner point, the third corner point, and the fourth corner point to obtain the orientation quadrilateral corner point information; determine the orientation quadrilateral corner point information corresponding to each orientation coordinate set in the above manner.

[0041] S140, determining a target center point based on the information of multiple orientation quadrilateral corner points, and generating a corresponding point name at the target center point.

[0042] Among them, each orientation quadrilateral corner point information can construct a corresponding quadrilateral through the latitude and longitude coordinates of the first corner point, the latitude and longitude coordinates of the second corner point, the latitude and longitude coordinates of the third corner point, and the latitude and longitude coordinates of the fourth corner point, and the quadrilateral is recorded as an orientation quadrilateral; four orientation quadrilaterals can be constructed through the four orientation quadrilateral corner point information, and based on the four orientation quadrilaterals, a quadrilateral located at the true midpoint area of ​​the region can be further determined, and the quadrilateral is recorded as the target quadrilateral, and the center point of the target quadrilateral is recorded as the target center point; further, a point name corresponding to the region can be generated at the target center point.

[0043] Specifically, four orientation quadrilaterals are constructed according to the corner point information of the four orientation quadrilaterals corresponding to the four orientation coordinate sets, and the four orientation quadrilaterals have a common corner point, that is, the primary center point; then, a target quadrilateral located at the true midpoint area of ​​the region is determined through the four orientation quadrilaterals, and the center point of the target quadrilateral is determined as the target center point; further, a point name corresponding to the region is generated at the target center point.

[0044] It should be noted that, in this embodiment, a boundary longitude and latitude coordinate set is obtained based on the boundary of the region in the map, a primary center point is obtained based on the boundary longitude and latitude coordinate set; multiple orientation coordinate sets are determined based on the boundary longitude and latitude coordinate set and the primary center point; orientation quadrilateral corner point information corresponding to the orientation coordinate set is determined based on the orientation coordinate set and the primary center point; a target center point is determined based on multiple orientation quadrilateral corner point information, and a corresponding point name is generated at the target center point. Through the above implementation, regardless of whether the edge rule of the region boundary is or not, a preliminary center point, that is, a primary center point, can be generated based on the region boundary first; then, the longitude and latitude coordinates of each boundary point on the region boundary (that is, the boundary longitude and latitude coordinate set) are divided into different orientations based on the primary center point, so as to obtain orientation coordinate sets corresponding to different orientations, and then a target quadrilateral located at the actual center position of the region is generated based on each orientation coordinate set, and then the center point of the target quadrilateral, that is, the target center point, is determined, and finally a point name is generated at the target center point, so that a point name can be generated at the true center position of the region in the map.

[0045] Embodiment 2

[0046] A method for generating a map point name is provided in the second embodiment of the present application. The method optimizes the "obtaining a primary center point based on the boundary longitude and latitude coordinate set" in the first embodiment. It should be noted that for the parts not described in detail in the present embodiment, reference may be made to the descriptions of other embodiments. The method includes:

[0047] S211. Obtain a set of boundary longitude and latitude coordinates based on the region boundary in the map.

[0048] It should be noted that the boundary longitude and latitude coordinate set includes a plurality of boundary point longitude and latitude coordinates, and the boundary point longitude and longitude coordinates include boundary point longitude coordinates and boundary point latitude coordinates.

[0049] The map includes multiple regions, each region has its corresponding region boundary in the map, and the region boundary is composed of multiple boundary points. Each boundary point has corresponding longitude and latitude coordinates on the map, and the longitude and latitude coordinates corresponding to the boundary point are marked as the longitude and latitude coordinates of the boundary point. The longitude and latitude coordinates of the boundary point include the longitude coordinate L and the latitude coordinate R, and the longitude coordinate is marked as the longitude coordinate of the boundary point, and the latitude coordinate is also marked as the latitude coordinate of the boundary point.

[0050] S212, determining the longitude coordinates of the boundary point with the smallest value in the boundary longitude and latitude coordinate set to obtain the valley value longitude coordinates, and determining the longitude coordinates of the boundary point with the largest value in the boundary longitude and latitude coordinate set to obtain the peak value longitude coordinates.

[0051] In this embodiment, a latitude and longitude container is preset, and the latitude and longitude container is used to store a boundary longitude and latitude coordinate set. For example, the boundary longitude and latitude coordinate set includes multiple boundary point longitude and latitude coordinates ,in, The longitude coordinates of the boundary points representing the longitude and latitude coordinates of the corresponding boundary points, The latitude coordinates of the border points corresponding to the latitude and longitude coordinates of the border points, n represents the number of latitude and longitude coordinates of the border points in the border longitude and longitude coordinate set; the longitude coordinates of all the border points in the border longitude and longitude coordinate set Can form a longitude coordinate set , the latitude coordinates of all boundary points in the boundary longitude and latitude coordinate set Can form a set of latitude coordinates ; The longitude coordinate set can be determined by the preset sorting algorithm The longitude coordinate of the boundary point with the smallest value , and the longitude coordinates of the boundary point Recorded as the valley value longitude coordinate ; The longitude coordinate set can also be determined through the preset sorting algorithm The longitude coordinate of the boundary point with the largest value , and the longitude coordinates of the boundary point Recorded as the peak longitude coordinate .

[0052] Specifically, a boundary longitude and latitude coordinate set stored in a longitude and latitude container For example, the set of boundary longitude and latitude coordinates Longitude coordinates of all boundary points in Constructing a set of longitude coordinates , and also collect the boundary longitude and latitude coordinates The latitude coordinates of all boundary points in Constructing a set of latitude coordinates ; Determine the longitude coordinate set through a preset sorting algorithm The longitude coordinate of the boundary point with the smallest value Get the valley value longitude coordinates , and also determine the longitude coordinate set The longitude coordinate of the boundary point with the largest value Get the peak longitude coordinates .

[0053] S213, determining the latitude coordinates of the boundary point with the smallest value in the boundary longitude and latitude coordinate set to obtain the valley latitude coordinates, and determining the latitude coordinates of the boundary point with the largest value in the boundary longitude and latitude coordinate set to obtain the peak latitude coordinates.

[0054] Among them, the latitude coordinate set can be determined by the sorting algorithm The latitude coordinate of the boundary point with the smallest value , and the longitude coordinates of the boundary point Recorded as the valley latitude coordinate , the latitude coordinate set can be determined by the sorting algorithm The latitude coordinate of the boundary point with the largest value , and the longitude coordinates of the boundary point The peak latitude coordinate is .

[0055] Specifically, the latitude coordinate set is determined by a preset sorting algorithm The latitude coordinate of the boundary point with the smallest value Get the valley latitude coordinates , and also determine the set of latitude coordinates The latitude coordinate of the boundary point with the largest value Get the peak latitude coordinates .

[0056] S214. Obtain a primary center point based on the valley value longitude coordinate, the peak value longitude coordinate, the valley value latitude coordinate, and the peak value latitude coordinate.

[0057] In an optional embodiment, the longitude coordinates of the primary center point is the longitude coordinate of the valley value with the peak longitude coordinates The mean value of the primary center point's latitude coordinate is the valley latitude coordinate With the peak latitude coordinates The mean of .

[0058] Specifically, calculate the valley longitude coordinates and the peak longitude coordinates The average value of the longitude coordinate of the primary center point is obtained , calculate the valley latitude Degree coordinates With the peak latitude coordinates The average value of the primary center point is obtained ; Longitude coordinate of the primary center point Latitude coordinates from the primary center point Together they form the primary center point .

[0059] In another optional embodiment, for the valley longitude coordinate The default is the first weight , for the peak longitude coordinate Preset with second weight ; For valley latitude coordinates The third weight is preset , for the peak latitude coordinate The default is the fourth weight ; Longitude coordinate of the primary center point is the longitude coordinate of the valley value with the peak longitude coordinates The weighted sum of ; Latitude coordinate of the primary center point is the valley latitude coordinate With the peak latitude coordinates The weighted sum of .

[0060] Specifically, calculate the valley value longitude coordinates with the peak longitude coordinates The weighted sum of the longitude coordinates of the primary center point is obtained , calculate the valley latitude coordinates With the peak latitude coordinates The weighted sum of the latitude coordinates of the primary center point is obtained ; Longitude coordinate of the primary center point Latitude coordinates of the primary center point Together they form the primary center point .

[0061] It should be noted that the actual center point of the region is near the primary center point. By calculating the primary center point, we can prepare for the subsequent calculation of the actual center point.

[0062] S220. Determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point.

[0063] S230. Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set.

[0064] S240, determining a target center point based on the information of multiple orientation quadrilateral corner points, and generating a corresponding point name at the target center point.

[0065] Embodiment 3

[0066] A method for generating a map point name is provided in a third embodiment of the present application. The method optimizes the "determining multiple orientation coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point" in the first embodiment. It should be noted that for the parts not described in detail in this embodiment, reference can be made to the descriptions of other embodiments. The method includes:

[0067] S310, obtaining a boundary longitude and latitude coordinate set based on the region boundary in the map, and obtaining a primary center point based on the boundary longitude and latitude coordinate set.

[0068] It should be noted that the primary center point includes the primary point longitude coordinates With the primary point latitude coordinates .

[0069] S321. Compare the longitude coordinates of the primary point with the longitude coordinates of the boundary point in the boundary longitude and longitude coordinate set to obtain a first comparison result.

[0070] Here, a boundary longitude and latitude coordinate set is taken as an example, and the longitude coordinates of the boundary points in the boundary longitude and latitude coordinate set are marked as , the longitude coordinate of the boundary point is marked as with the primary point longitude coordinates A size comparison is performed, and the comparison result obtained is also the first comparison result.

[0071] S322: Compare the latitude coordinate of the primary point with the latitude coordinate of the boundary point in the boundary longitude and latitude coordinate set to obtain a second comparison result.

[0072] Among them, the latitude coordinates of the border points in the border latitude and longitude coordinates set are marked as The latitude coordinate of the boundary point is With the primary point latitude coordinates A size comparison is performed, and the obtained comparison result is also the second comparison result.

[0073] S323. Divide the boundary longitude and latitude coordinate set into multiple azimuth coordinate sets based on the first comparison result and the second comparison result.

[0074] Among them, for each boundary point in the boundary longitude and latitude coordinate set, , each has a corresponding first comparison result and a second comparison result; through the longitude and latitude coordinates of each boundary point The corresponding first comparison result and the second comparison result can realize the division of the boundary longitude and latitude coordinate set, that is, dividing the boundary longitude and latitude coordinate set into multiple azimuth coordinate sets. In this embodiment, the multiple azimuth coordinate sets specifically include southwest azimuth coordinate set, northwest azimuth coordinate set, southeast azimuth coordinate set, and northeast azimuth coordinate set.

[0075] For example, the longitude and latitude coordinates of a boundary point are set in the boundary longitude and latitude coordinates. For example, if the longitude and latitude coordinates of the boundary point The corresponding first comparison result is Less than , the second comparison result is Less than , then the longitude and latitude coordinates of the boundary point As a latitude and longitude coordinate in the southwest direction coordinate set; if the latitude and longitude coordinates of the boundary point The corresponding first comparison result is Less than , the second comparison result is Greater than , then the longitude and latitude coordinates of the boundary point As a latitude and longitude coordinate in the northwest direction coordinate set; if the latitude and longitude coordinates of the boundary point The corresponding first comparison result is Greater than , the second comparison result is Less than , then the longitude and latitude coordinates of the boundary point As a latitude and longitude coordinate in the southeast direction coordinate set; if the latitude and longitude coordinates of the boundary point The corresponding first comparison result is Greater than , the second comparison result is Greater than , then the longitude and latitude coordinates of the boundary point As a latitude and longitude coordinate in the northeast coordinate set.

[0076] In addition, if the longitude and latitude coordinates of the boundary point The corresponding first comparison result is equal , the second comparison result is Less than , then the longitude and latitude coordinates of the boundary point At the same time, it is divided into the southwest direction coordinate set and the southeast direction coordinate set; if the longitude and latitude coordinates of the boundary point The corresponding first comparison result is equal , the second comparison result is Greater than , then the longitude and latitude coordinates of the boundary point At the same time, it is divided into the northwest coordinate set and the northeast coordinate set; if the longitude and latitude coordinates of the boundary point The corresponding first comparison result is Less than , the second comparison result is equal , then the longitude and latitude coordinates of the boundary point At the same time, it is divided into the southwest direction coordinate set and the northwest direction coordinate set; if the longitude and latitude coordinates of the boundary point The corresponding first comparison result is Greater than , the second comparison result is equal , then the longitude and latitude coordinates of the boundary point It is also divided into the southeast coordinate set and the northeast coordinate set.

[0077] It should be noted that the longitude and latitude coordinates of the boundary point correspond to a boundary point on the boundary of the region in the map. The primary center point is used as the initial imaginary center point in the region of the map. Taking the primary center point as the base point, the boundary points corresponding to the longitude and latitude coordinates of each boundary point in the southwest coordinate set are all located in the southwest of the primary center point, that is, the regional boundary corresponding to the longitude and latitude coordinates of each boundary point in the southwest coordinate set is the regional boundary in the southwest of the corresponding region; similarly, the northwest coordinate set corresponds to the regional boundary in the northwest of the region, the southeast coordinate set corresponds to the regional boundary in the southeast of the region, and the northeast coordinate set corresponds to the regional boundary in the northeast of the region. By generating the above four orientation coordinate sets, the division of the boundary points corresponding to the regional boundaries of the four orientations of the region can be realized.

[0078] S330. Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set.

[0079] S340, determining a target center point based on the information of multiple orientation quadrilateral corner points, and generating a corresponding point name at the target center point.

[0080] Embodiment 4

[0081] A method for generating a map point name is provided in a fourth embodiment of the present application. The method optimizes the "determining the azimuth quadrilateral corner point information corresponding to the azimuth coordinate set one by one based on the azimuth coordinate set and the primary center point" in the first embodiment; it should be noted that for the parts not described in detail in this embodiment, reference can be made to the descriptions of other embodiments. The method includes:

[0082] S410, obtaining a boundary longitude and latitude coordinate set based on the region boundary in the map, and obtaining a primary center point based on the boundary longitude and latitude coordinate set.

[0083] S420. Determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate sets and the primary center point.

[0084] S431. Determine adjacent points with the same longitude and adjacent points with the same latitude based on the azimuth coordinate set and the primary center point.

[0085] Among them, the adjacent point A with the same longitude is the azimuth coordinate concentration and the primary center point Have the same longitude coordinates And the latitude coordinates and the latitude coordinates of the primary point The latitude and longitude coordinates of the boundary point with the largest difference, the adjacent point B with the same latitude is the azimuth coordinate concentration and the primary center point Have the same latitude coordinates And the longitude coordinates and the latitude coordinates of the primary point The longitude and latitude coordinates of the boundary point with the largest difference; each azimuth coordinate set can determine the corresponding adjacent point A with the same longitude and adjacent point B with the same latitude based on the primary center.

[0086] Specifically, taking the southwest direction coordinate set as an example, refer to Figure 2 , determine the southwest direction coordinates and the primary center point Have the same longitude coordinates And the latitude coordinates and the latitude coordinates of the primary point The longitude and latitude coordinates of the boundary point with the largest difference, thus obtaining the adjacent point with the same longitude corresponding to the southwest direction coordinate set ; Further, the southwest coordinates are concentrated with the primary center point Have the same latitude coordinates And the longitude coordinates and the latitude coordinates of the primary point The latitude and longitude coordinates of the boundary point with the largest difference, thus obtaining the adjacent point with the same latitude corresponding to the southwest direction coordinate set ; Similarly, refer to Figure 2 , and can also determine the adjacent points of the same longitude corresponding to the northwest azimuth coordinate set Adjacent points at the same latitude , the adjacent points with the same longitude corresponding to the southeast direction coordinate set Adjacent points at the same latitude , the adjacent points with the same longitude corresponding to the northeast azimuth coordinate set Adjacent points at the same latitude .

[0087] S432. Obtain a central diagonal point based on the adjacent points at the same longitude and the adjacent points at the same latitude.

[0088] Among them, taking one of the azimuth coordinate sets as an example, the longitude and latitude coordinates of the adjacent points with the same longitude corresponding to the azimuth coordinate set are marked as , the corresponding longitude and latitude coordinates of adjacent points at the same latitude are ; The longitude coordinates of the diagonal points of the center are the longitude coordinates of the adjacent points at the same latitude , the latitude coordinate of the central diagonal point C is the latitude coordinate of the adjacent point with the same longitude , that is, the longitude and latitude coordinates of the diagonal point of the center are .

[0089] Specifically, taking the southwest direction coordinate set as an example, refer to Figure 2 , the adjacent points with the same longitude corresponding to the southwest direction coordinate set The latitude and longitude coordinates are , the corresponding adjacent points at the same latitude The longitude and latitude coordinates of ; Get adjacent points at the same latitude Longitude coordinates of , and also get adjacent points with the same longitude Latitude coordinates of ,Will as the longitude coordinate of the diagonal point of the center, and As the latitude coordinate of the center diagonal point, the center diagonal point is obtained ; and the primary center point is recorded as O, and the adjacent points with the same longitude corresponding to the southwest direction coordinate set of the primary center point O are , adjacent points at the same latitude and the center diagonal point A quadrilateral can be formed, recorded as the southwest quadrilateral, in which the central diagonal point It has a diagonal relationship with the primary center point O. Similarly, determine the adjacent points with the same longitude corresponding to the northwest direction coordinate set , adjacent points at the same latitude and the center diagonal point , consisting of the primary center point O and adjacent points with the same longitude , adjacent points at the same latitude and the center diagonal point A northwest quadrilateral can be constructed to determine the adjacent points of the same longitude corresponding to the southeast coordinate set , adjacent points at the same latitude and the center diagonal point , consisting of the primary center point O and adjacent points with the same longitude , adjacent points at the same latitude and the center diagonal point It can form a southeast quadrilateral and determine the adjacent points of the same longitude corresponding to the northeast coordinate set. , adjacent points at the same latitude and the center diagonal point , consisting of the primary center point O and adjacent points with the same longitude , adjacent points at the same latitude and the center diagonal point It can form a northeast quadrilateral.

[0090] S433, obtaining the azimuthal quadrilateral corner point information based on the primary center point, the adjacent points at the same longitude, the adjacent points at the same latitude, and the center diagonal point.

[0091] Among them, taking an orientation coordinate set as an example, the primary center point O, the adjacent point A at the same longitude, the adjacent point B at the same latitude, and the center diagonal point C corresponding to the orientation coordinate set can constitute the four corner points of a quadrilateral, and the orientation quadrilateral corner point information is also the coordinates of the four corner points.

[0092] S440, determining a target center point based on the information of multiple orientation quadrilateral corner points, and generating a corresponding point name at the target center point.

[0093] Embodiment 5

[0094] A method for generating a map point name is provided in Example 5 of the present application. The method optimizes the "determining a target center point based on information of multiple azimuth quadrilateral corner points, and generating a corresponding point name at the target center point" in Example 1. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. The method includes:

[0095] S510: Obtain a boundary longitude and latitude coordinate set based on the region boundary in the map, and obtain a primary center point based on the boundary longitude and latitude coordinate set.

[0096] S520: Determine a plurality of orientation coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point.

[0097] S530: Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set.

[0098] S541. Determine target quadrilateral corner point information based on the plurality of orientation quadrilateral corner point information, and obtain a target center point based on the target quadrilateral corner point information.

[0099] in, Figure 2 The origin of the latitude and longitude coordinate axes shown is the primary center point , adjacent points of the same longitude They are all located on the longitude axis of the longitude and latitude coordinates. Both are located on the latitude axis of the longitude and latitude axes.

[0100] Among them, the longitude coordinates less than The adjacent points at the same latitude are obtained by calculating the left adjacent point group at the same latitude. In this embodiment, the left adjacent point group at the same latitude is and ; It is also possible to determine from adjacent points at the same latitude the points with longitude coordinates greater than The adjacent points at the same latitude are obtained by right adjacent points at the same latitude. In this embodiment, the right adjacent points at the same latitude are also and In addition, the points with latitude coordinates less than The adjacent points with the same longitude are obtained to obtain the adjacent point group with the same longitude. In this embodiment, the adjacent point group with the same longitude is and ; It is also possible to determine from adjacent points of the same longitude the points with latitude coordinates greater than The adjacent points with the same longitude are obtained by obtaining the upper adjacent point group with the same longitude. In this embodiment, the upper adjacent point group with the same longitude is and Then, the adjacent point with the largest longitude and latitude coordinates can be determined from the left adjacent point group with the same latitude, and recorded as the left target point , we can also determine the adjacent point with the smallest longitude coordinate from the right adjacent point group with the same latitude, and record it as the right target point ; The adjacent point with the smallest latitude can be determined from the adjacent point group with the same longitude, and recorded as the lower target point , we can also determine the adjacent point with the largest latitude from the upper adjacent point group with the same longitude, and record it as the upper target point . Further, after passing the left target point And the straight line perpendicular to the longitude coordinate axis can get the first straight line , passed the right target point And the straight line perpendicular to the longitude axis can get the second straight line , have made the next target point And the straight line perpendicular to the latitude coordinate axis can get the third straight line , done the target point And the straight line perpendicular to the latitude coordinate axis can get the fourth straight line . First straight line , the second straight line , the third straight line and the fourth straight line can form a quadrilateral, such as Figure 3 As shown, and the quadrilateral is recorded as the target quadrilateral; the first straight line With the third straight line The intersection point is the first target corner point of the target quadrilateral , the first straight line With the fourth straight line The intersection point is the second target corner point of the target quadrilateral , the second straight line With the third straight line The intersection point is the third target corner point of the target quadrilateral , the second straight line With the fourth straight line The intersection point is the fourth target corner point of the target quadrilateral ; The target quadrilateral corner point information is the set of latitude and longitude coordinates of the above four target corner points; the line between the first target corner point and the fourth target corner point can constitute the first target diagonal line, and the line between the second target corner point and the third target corner point can constitute the second target diagonal line; the target center point is the intersection point of the first target diagonal line and the second target diagonal line.

[0101] S542: Calculate the longitude and latitude span of the map based on the displayed map corner point information.

[0102] The map is displayed on the display screen, and the map corner information includes the latitude and longitude coordinates of the map displayed on the display screen at the lower left corner of the display screen, which is recorded as the lower left coordinate , the latitude and longitude coordinates at the upper left corner of the display screen, recorded as the upper left coordinate , the latitude and longitude coordinates of the lower right corner of the display screen, recorded as the lower right coordinate , the latitude and longitude coordinates at the upper right corner of the display screen, recorded as the upper right coordinate .

[0103] S543: Obtain the size of the target quadrilateral based on the display screen size, the longitude and latitude span of the map, and the corner point information of the target quadrilateral.

[0104] Among them, the display size is also the width of the display With height ; The map latitude and longitude span includes the longitude span With latitude span , longitude span Can and The difference between and The difference between Can and The difference between and The difference between. Width With longitude span The ratio between them is the width ratio ,high With latitude span The ratio between them is the height ratio ; Pass through the first target corner of the target quadrilateral With the third target corner The longitude span of the target quadrilateral can be calculated and recorded as the target longitude span , and also through the second target corner point With the fourth target corner Calculate the target longitude span ; Pass through the first target corner of the target quadrilateral and the second target corner The latitude span of the target quadrilateral can be calculated and recorded as the target latitude span , and also through the third target corner point With the fourth target corner Calculate the target latitude span ; The target quadrilateral size includes the actual width of the target quadrilateral on the display With actual height , where the actual width is the target longitude span Proportional to width The product of the actual height The target latitude span Proportional to height The product of .

[0105] S544: Generate a point name at the target center point based on the target quadrilateral size and the point name size.

[0106] The point name is the name of the corresponding area in the map; the point name size is the character line width corresponding to the point name With character line height ; By comparing the target quadrilateral size with the point name size, it can be determined whether the point name of the point name size can be contained in the target quadrilateral of the target quadrilateral size; if so, the point name is generated at the target center point of the target quadrilateral.

[0107] Specifically, it is determined whether the point name of the point name size can be contained in the target quadrilateral of the target quadrilateral size; if so, the point name is generated at the target center point of the target quadrilateral.

[0108] Embodiment 6

[0109] A method for generating a map point name is provided in Example 6 of the present application. The method optimizes the "obtaining the target quadrilateral size based on the display screen size, the longitude and latitude span of the map, and the target quadrilateral corner point information" in Example 5; it should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. The method includes:

[0110] S610: Obtain a boundary longitude and latitude coordinate set based on the region boundary in the map, and obtain a primary center point based on the boundary longitude and latitude coordinate set.

[0111] S620. Determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate sets and the primary center point.

[0112] S630: Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set.

[0113] S641. Determine target quadrilateral corner point information based on the plurality of orientation quadrilateral corner point information, and obtain a target center point based on the target quadrilateral corner point information.

[0114] S642: Calculate the longitude and latitude span of the map based on the displayed map corner point information.

[0115] S643A. Calculate aspect ratio information based on the display screen size and the longitude and latitude span of the map.

[0116] Among them, the aspect ratio information includes the width ratio Proportional to height ,in, , is the width of the display screen size, The height of the display size, The longitude span in the longitude and latitude span of the map corresponding to the map displayed on the display screen, The latitude span in the longitude and latitude span of the map corresponding to the map displayed on the display screen.

[0117] S643B, calculating the size of the target quadrilateral based on the target quadrilateral corner point information and the aspect ratio information.

[0118] Among them, the target longitude span can be calculated based on the target quadrilateral corner point information Latitude span with target ; The quadrilateral size includes the actual width of the target quadrilateral on the display With actual height ,in, .

[0119] S644: Generate a point name at the target center point based on the target quadrilateral size and the point name size.

[0120] Embodiment 7

[0121] A method for generating a map point name is provided in Embodiment 7 of the present application. The method optimizes the "generating a point name at the target center point based on the target quadrilateral size and the point name size" in Embodiment 5. It should be noted that for the parts not described in detail in this embodiment, reference may be made to the descriptions of other embodiments. The method includes:

[0122] S710: Obtain a boundary longitude and latitude coordinate set based on the region boundary in the map, and obtain a primary center point based on the boundary longitude and latitude coordinate set.

[0123] S720. Determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point.

[0124] S730. Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set.

[0125] S741. Determine target quadrilateral corner point information based on the plurality of orientation quadrilateral corner point information, and obtain a target center point based on the target quadrilateral corner point information.

[0126] S742: Calculate the longitude and latitude span of the map based on the displayed map corner point information.

[0127] S743: Obtain the size of the target quadrilateral based on the display screen size, the longitude and latitude span of the map, and the corner point information of the target quadrilateral.

[0128] S744A, determine whether the size of the point name exceeds the size of the target quadrilateral.

[0129] The point name size includes the character line width. With character line height The target quadrilateral size includes the actual width of the target quadrilateral on the display With actual height .

[0130] In an optional embodiment, if the character line width Larger than actual width and / or character line height Greater than actual height , it is determined that the point name size exceeds the target quadrilateral size.

[0131] In another optional implementation, if the character line width is determined Larger than actual width , and the character line width Greater than actual height and / or character line height Larger than actual width , then the size of the fixed point name exceeds the size of the target quadrilateral. It should be noted that the judgment method in this embodiment is to judge whether the characters of the point name can all be located in the target quadrilateral when the characters are arranged in the vertical direction when the overall length of the characters of the point name is horizontal and the overall length of the shape of the target quadrilateral is vertical.

[0132] S744B: If yes, reduce the size of the point name to obtain a new point name size.

[0133] The initial size of the point name is 16px. If the point name size is determined to exceed the target quadrilateral size, the point name size is reduced by 2px each time. For example, if the point name size is determined to exceed the target quadrilateral size, the point name size is reduced from 16px to 14px, which is the new point name size.

[0134] Specifically, if it is determined that the point name size exceeds the target quadrilateral size, it means that the characters of the point name will exceed the target quadrilateral. At this time, the point name size of the point name is reduced to obtain a new point name size, and then return to execute step S744A.

[0135] S744C: Otherwise, generate a point name corresponding to the point name size at the target center point.

[0136] If it is determined that the point name size does not exceed the target quadrilateral size, it means that the characters of the point name do not exceed the target quadrilateral, which means that the target center point of the target quadrilateral is suitable for generating a point name corresponding to the point name size.

[0137] Specifically, if it is determined that the size of the point name does not exceed the size of the target quadrilateral, a point name corresponding to the size of the point name is generated at the target center point of the target quadrilateral.

[0138] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0139] Embodiment 8

[0140] Based on the same inventive concept, this embodiment also provides a map point name generation device for implementing the map point name generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more map point name generation device embodiments provided below can refer to the limitations of the map point name generation method above, and will not be repeated here.

[0141] In this embodiment, Figure 4 As shown, a device for generating a map point name is provided, comprising:

[0142] A primary center determination module, used to obtain a boundary longitude and latitude coordinate set based on the regional boundary in the map, and obtain a primary center point based on the boundary longitude and latitude coordinate set;

[0143] A coordinate set determination module, used to determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point;

[0144] A corner point information determination module, configured to determine, based on the orientation coordinate set and the primary center point, the orientation quadrilateral corner point information corresponding to the orientation coordinate set in a one-to-one manner;

[0145] The point name generating module is used to determine the target center point based on the information of the corner points of the plurality of orientation quadrilaterals, and to generate a corresponding point name at the target center point.

[0146] Each module in the above-mentioned map point name generating device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0147] It should be noted that, in this embodiment, a boundary longitude and latitude coordinate set is obtained based on the boundary of the region in the map, a primary center point is obtained based on the boundary longitude and latitude coordinate set; multiple orientation coordinate sets are determined based on the boundary longitude and latitude coordinate set and the primary center point; orientation quadrilateral corner point information corresponding to the orientation coordinate set is determined based on the orientation coordinate set and the primary center point; a target center point is determined based on multiple orientation quadrilateral corner point information, and a corresponding point name is generated at the target center point. Through the above implementation, regardless of whether the edge rule of the region boundary is or not, a preliminary center point, that is, a primary center point, can be generated based on the region boundary first; then, the longitude and latitude coordinates of each boundary point on the region boundary (that is, the boundary longitude and latitude coordinate set) are divided into different orientations based on the primary center point, so as to obtain orientation coordinate sets corresponding to different orientations, and then a target quadrilateral located at the actual center position of the region is generated based on each orientation coordinate set, and then the center point of the target quadrilateral, that is, the target center point, is determined, and finally a point name is generated at the target center point, so that a point name can be generated at the true center position of the region in the map.

[0148] Embodiment 9

[0149] In this embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a map point name is implemented.

[0150] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0151] Embodiment 10

[0152] In this embodiment, a computer readable storage medium is provided. Figure 6 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0153] Embodiment 11

[0154] In this embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0155] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0156] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to this.

[0157] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0158] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.

Claims

1. A method for generating a map point name, characterized in that: include: Obtaining a boundary longitude and latitude coordinate set based on the regional boundary in the map, and obtaining a primary center point based on the boundary longitude and latitude coordinate set; Determine a plurality of orientation coordinate sets based on the boundary longitude and latitude coordinate sets and the primary center point; Determine, based on the orientation coordinate set and the primary center point, orientation quadrilateral corner point information corresponding one-to-one to the orientation coordinate set; The target center point is determined based on the information of the corner points of the plurality of orientation quadrilaterals, and a corresponding point name is generated at the target center point.

2. The method according to claim 1, characterized in that The boundary longitude and latitude coordinate set includes a plurality of boundary point longitude and latitude coordinates, and the boundary point longitude and latitude coordinates include boundary point longitude coordinates and boundary point latitude coordinates; and obtaining a primary center point based on the boundary longitude and latitude coordinate set includes: Determine the longitude coordinates of the boundary point with the smallest value in the boundary longitude and latitude coordinate set to obtain the valley value longitude coordinates, and determine the longitude coordinates of the boundary point with the largest value in the boundary longitude and latitude coordinate set to obtain the peak value longitude coordinates; Determine the latitude coordinates of the boundary point with the smallest value in the boundary longitude and latitude coordinate set to obtain the valley latitude coordinates, and determine the latitude coordinates of the boundary point with the largest value in the boundary longitude and latitude coordinate set to obtain the peak latitude coordinates; A primary center point is obtained based on the valley value longitude coordinate, the peak value longitude coordinate, the valley value latitude coordinate, and the peak value latitude coordinate.

3. The method according to claim 1, characterized in that The primary center point includes a primary point longitude coordinate and a primary point latitude coordinate; the determining of a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate sets and the primary center point includes: Comparing the longitude coordinates of the primary point with the longitude coordinates of the boundary point in the boundary longitude and latitude coordinate set to obtain a first comparison result; Comparing the latitude coordinate of the primary point with the latitude coordinate of the boundary point in the boundary longitude and latitude coordinate set to obtain a second comparison result; The boundary longitude and latitude coordinate set is divided into a plurality of azimuth coordinate sets based on the first comparison result and the second comparison result.

4. The method according to claim 1, characterized in that: The determining, based on the azimuth coordinate set and the primary center point, azimuth quadrilateral corner point information corresponding to the azimuth coordinate set one by one includes: Determine adjacent points with the same longitude and adjacent points with the same latitude based on the azimuth coordinate set and the primary center point; Obtaining a central diagonal point based on the adjacent points with the same longitude and the adjacent points with the same latitude; The orientation quadrilateral corner point information is obtained based on the primary center point, the adjacent points at the same longitude, the adjacent points at the same latitude, and the center diagonal point.

5. The method according to claim 1, characterized in that The determining of the target center point based on the information of the plurality of azimuth quadrilateral corner points and generating a corresponding point name at the target center point comprises: Determine target quadrilateral corner point information based on the plurality of orientation quadrilateral corner point information, and obtain the target center point based on the target quadrilateral corner point information; Calculate the longitude and latitude span of the map based on the displayed map corner information; Obtaining the size of the target quadrilateral based on the display screen size, the longitude and latitude span of the map, and the corner point information of the target quadrilateral; A point name is generated at the target center point based on the target quadrilateral size and the point name size.

6. The method according to claim 5, characterized in that The step of obtaining the target quadrilateral size based on the display screen size, the longitude and latitude span of the map, and the target quadrilateral corner point information includes: Calculate aspect ratio information based on the display screen size and the longitude and latitude span of the map; The size of the target quadrilateral is calculated based on the target quadrilateral corner point information and the aspect ratio information.

7. The method according to claim 5, characterized in that The generating a point name at the target center point based on the target quadrilateral size and the point name size includes: Determine whether the size of the point name exceeds the size of the target quadrilateral; If so, reducing the size of the point name to obtain a new point name size; Otherwise, a point name corresponding to the point name size is generated at the target center point.

8. A device for generating a map point name, characterized in that: include: A primary center determination module, used to obtain a boundary longitude and latitude coordinate set based on the regional boundary in the map, and obtain a primary center point based on the boundary longitude and latitude coordinate set; A coordinate set determination module, used to determine a plurality of azimuth coordinate sets based on the boundary longitude and latitude coordinate set and the primary center point; A corner point information determination module, configured to determine, based on the orientation coordinate set and the primary center point, the orientation quadrilateral corner point information corresponding to the orientation coordinate set in a one-to-one manner; The point name generating module is used to determine the target center point based on the information of the corner points of the plurality of orientation quadrilaterals, and to generate a corresponding point name at the target center point.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Map area name display method and device

    CN108073581A

  • Grid advertisement intelligent pushing system based on a geographic position

    CN109905452A

  • Map grid division method and electronic equipment

    CN113535865A

  • Geographic data coordinate conversion method and device, medium and product

    CN114297324A

  • Polygon processing method, device and equipment and computer readable storage medium

    CN115222806A