CN107220335B - Map plotting method and device, terminal device and readable storage medium - Google Patents

Map plotting method and device, terminal device and readable storage medium Download PDF

Info

Publication number
CN107220335B
CN107220335B CN201710377687.4A CN201710377687A CN107220335B CN 107220335 B CN107220335 B CN 107220335B CN 201710377687 A CN201710377687 A CN 201710377687A CN 107220335 B CN107220335 B CN 107220335B
Authority
CN
China
Prior art keywords
point
input point
input
output
screen coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710377687.4A
Other languages
Chinese (zh)
Other versions
CN107220335A (en
Inventor
刘邦国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Yuanxin Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201710377687.4A priority Critical patent/CN107220335B/en
Publication of CN107220335A publication Critical patent/CN107220335A/en
Application granted granted Critical
Publication of CN107220335B publication Critical patent/CN107220335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/005Map projections or methods associated specifically therewith

Abstract

The application discloses a map drawing method, a map drawing device, terminal equipment and a readable storage medium. The method comprises the following steps: acquiring screen coordinates of a first input point, a second input point and a third input point; determining screen coordinates of the first intermediate point and the second intermediate point according to the screen coordinates of the first input point, the second input point and the third input point; determining screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point; forming and displaying a plotting graph consisting of a first input point, a second input point, a third input point, a first output point and a second output point in the map; the first input point and the second input point are any two advancing starting points in the area where the group is located, the third input point is any one point in the advancing direction of the group, and the plotting graph is used for representing the advancing trend of the group. The method can automatically form a graph on the map according to the information input by the user, and map plotting is completed.

Description

Map plotting method and device, terminal device and readable storage medium
Technical Field
The invention relates to the technical field of graphic visualization, in particular to a map drawing method, a map drawing device, terminal equipment and a readable storage medium.
Background
In some current map system software, a user can perform a map plotting operation on the map system software. Map plotting refers to plotting various events and objects having spatial features on a map background, such as distribution states and action trends. For example, some graphics are manually drawn on a map provided by an existing Geographic Information System (GIS) using Geographic data and services provided by the GIS. The map may be displayed on a screen of the terminal device or may be displayed on a display of the computer device.
When an electronic map is displayed on the screen of a terminal device, the electronic map is usually plotted on the map by a finger or a stylus; however, due to the limitation of the size of the terminal screen (such as the screen of a smart phone), it is inconvenient for the user to draw the graph with a hand or a touch pen. When an electronic map is displayed on a display, it is usually plotted on the map by a mouse; and the user can hardly draw the desired graph by operating the mouse.
Both of these situations can lead to poor user experience for mapping the user.
The above information disclosed in this background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
The invention provides a map drawing method, a map drawing device, terminal equipment and a readable storage medium, which can automatically form a graph on a map according to information input by a user to finish map drawing.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to an aspect of the present invention, there is provided a map drawing method, including: acquiring screen coordinates of a first input point, a second input point and a third input point; determining screen coordinates of the first intermediate point and the second intermediate point according to the screen coordinates of the first input point, the second input point and the third input point; determining screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point; forming and displaying a plotting graph consisting of a first input point, a second input point, a third input point, a first output point and a second output point in the map; the first input point and the second input point are any two advancing starting points in the area where the group is located, the third input point is any one point in the advancing direction of the group, and the plotting graph is used for representing the advancing trend of the group.
According to an embodiment of the present invention, determining the screen coordinates of the first intermediate point and the second intermediate point according to the screen coordinates of the first input point, the second input point, and the third input point includes: according to the screen coordinates of the first input point and the second input point, determining the coordinates of the first intermediate point as follows:
Figure BDA0001304437650000021
according to the screen coordinates of the first intermediate point and the third input point, determining the coordinates of the second intermediate point as follows:
Figure BDA0001304437650000022
wherein, (P1.x, P1.y), (P2.x, P2.y), (P3.x, P3.y), (Pa.x, Pa.y) and (Pb.x, Pb.y) are x-coordinate and y-coordinate of the first input point, the second input point, the third input point, the first intermediate point and the second intermediate point, respectively.
According to an embodiment of the present invention, determining the screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point includes: determining a distance C between the third input point and the second intermediate point as:
Figure BDA0001304437650000023
determining the inclination angle S of a connecting line between the third input point and the second intermediate point; and determining the screen coordinates of the first output point and the second output point to be respectively:
Figure BDA0001304437650000024
Figure BDA0001304437650000025
wherein, (p4.x, p4.y), (p5.x, p5.y) are x coordinates and y coordinates of the first output point and the second output point, respectively.
According to an embodiment of the present invention, a plot graph formed and displayed on a map and including a first input point, a second input point, a third input point, a first output point, and a second output point includes: forming a first Bezier curve between the first input point and the third input point by taking the first input point as a starting point, the third input point as an end point and the first intermediate point as a closing control point; forming a second Bezier curve between the second input point and the third input point by taking the second input point as a starting point, the third input point as an end point and the first middle point as a closing control point; respectively forming a first connecting line, a second connecting line and a third connecting line between the first output point and the third input point, between the second output point and the third input point and between the first output point and the second output point; and forming a plotting graph according to the first Bezier curve, the second Bezier curve, the third Bezier curve, the first connecting line, the second connecting line and the third connecting line.
According to an embodiment of the present invention, the method further includes: when the screen coordinates of the first input point, the second input point or the third input point are changed, updating the coordinates of the first intermediate point, the second intermediate point, the first output point and the second output point according to the changed screen coordinates of the first input point, the second input point or the third input point; and forming and displaying an updated plotting graph consisting of the changed first input point, the changed second input point, the changed third input point, the updated first output point and the updated second output point in the map.
According to an embodiment of the present invention, the first input point, the second input point, and the third input point are touch points or mouse click points on the screen, and the acquiring the screen coordinates of the first input point, the second input point, and the third input point includes: and detecting the screen coordinates of the touch point or the mouse click point to acquire the screen coordinates of the first input point, the second input point and the third input point.
According to an embodiment of the present invention, acquiring the screen coordinates of the first input point, the second input point and the third input point includes: receiving map geographic coordinates of a first input point, a second input point and a third input point input by a user; and converting the map geographic coordinates of the first input point, the second input point and the third input point into corresponding screen coordinates.
According to still another aspect of the present invention, there is provided a map drawing apparatus including: the input point coordinate acquisition module is used for acquiring screen coordinates of the first input point, the second input point and the third input point; the intermediate point coordinate determination module is used for determining the screen coordinates of the first intermediate point and the second intermediate point according to the screen coordinates of the first input point, the second input point and the third input point; the output point coordinate determination module is used for determining the screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point; the plotting graph forming module is used for forming and displaying a plotting graph formed by a first input point, a second input point, a third input point, a first output point and a second output point in a map; the first input point and the second input point are any two advancing starting points in the area where the group is located, the third input point is any one point in the advancing direction of the group, and the plotting graph is used for representing the advancing trend of the group.
According to still another aspect of the present invention, there is provided a terminal device including: a memory, a processor, and executable instructions stored in the memory and executable in the processor, the processor implementing any of the methods described above when executing the executable instructions.
According to yet another aspect of the invention, there is provided a readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement any of the methods described above.
According to the map marking method, the moving trend of group traveling can be automatically formed only by acquiring the screen coordinates of the three points input by the user, the inconvenience of manual drawing of a graph in a screen by the user is avoided, the automatically formed graph is more attractive, and better experience is brought to the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
FIG. 1 is a flow chart illustrating a method of depicting a map according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating another map plotting method according to an exemplary embodiment.
FIG. 3 is a schematic diagram illustrating a first input point, a second input point, and a third input point, according to an example.
FIG. 4 is a schematic diagram illustrating a first input point, a second input point, a third input point, a first intermediate point, and a second intermediate point, according to an example.
Fig. 5 is a schematic diagram illustrating a first input point, a second input point, a third input point, a first intermediate point, a second intermediate point, a first output point, and a second output point, according to an example.
Fig. 6 is a schematic diagram illustrating a first bezier curve, a second bezier curve, a third bezier curve, a first wire, a second wire, and a third wire, according to an example.
FIG. 7 is a schematic diagram of plotted graphics in a map shown according to an example.
FIG. 8 is a block diagram illustrating a terrain rendering apparatus according to an exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the invention.
When a group needs to travel collectively, a graph needs to be drawn in the map for representing a travel trend of the group. The map-marking method of the embodiment of the invention can automatically form the graph through simple input of a user so as to indicate the moving situation of group traveling.
FIG. 1 is a flow chart illustrating a method of depicting a map according to an exemplary embodiment. As shown in fig. 1, the method 10 includes:
in step S102, screen coordinates of the first input point, the second input point, and the third input point are obtained.
The first input point and the second input point are any two traveling starting points in the area where the group is located. For example, when the population is large, and the coverage of the gathering area is large, two travel starting points on the edge of the area can be selected in.
The third input point is any point in the direction of travel of the population. If it is desired to proceed in the current southeast direction, then an optional point in its southeast direction is taken as the third input point.
In step S104, screen coordinates of the first intermediate point and the second intermediate point are determined according to the screen coordinates of the first input point, the second input point, and the third input point.
In step S106, screen coordinates of the first output point and the second output point are determined according to the screen coordinates of the third input point and the second intermediate point.
In step S108, a plot graph including the first input point, the second input point, the third input point, the first output point, and the second output point is formed and displayed on the map.
According to the map marking method, the moving trend of group traveling can be automatically formed only by acquiring the screen coordinates of the three points input by the user, the inconvenience of manual drawing of a graph in a screen by the user is avoided, the automatically formed graph is more attractive, and better experience is brought to the user.
It should be clearly understood that the present disclosure describes how to make and use particular examples, but the principles of the present disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
FIG. 2 is a flow chart illustrating another map plotting method according to an exemplary embodiment. As shown in fig. 2, the method 20 includes:
in step S202, screen coordinates of the first input point, the second input point, and the third input point are obtained.
The first input point and the second input point are any two traveling starting points in the area where the group is located. For example, when the population is large, and the coverage of the gathering area is large, two travel starting points on the edge of the area can be selected in.
The third input point is any point in the direction of travel of the population. If it is desired to proceed in the current southeast direction, then an optional point in its southeast direction is taken as the third input point.
FIG. 3 is a diagram illustrating a first input point, a second input point, and a third input point according to an example, as shown in FIG. 3, the first input point, the second input point, and the third input point may be respectively represented as a point ①, a point ②, and a point ③.
In some embodiments, the user may use a finger or a stylus to perform input by touching or clicking on the touch screen, or the user may use a mouse to click on the screen of the display to perform input, that is, the first input point, the second input point, and the third input point are touch points or mouse click points on the screen. Under the condition, the screen coordinates of the touch point or the mouse click point are directly detected, and the screen coordinates of the first input point, the second input point and the third input point can be obtained.
In some embodiments, the user may input the map geographic coordinates (e.g., longitude and latitude, etc.) of the first input point, the second input point, and the third input point through input boxes provided in the map software, or the like. In this case, after receiving the map geographic coordinates of the first input point, the second input point, and the third input point input by the user, the map geographic coordinates are converted into screen coordinates of the first input point, the second input point, and the third input point.
In step S204, the coordinates of the first intermediate point are determined according to the screen coordinates of the first input point and the second input point.
For example, if x and y coordinates of the first input point, the second input point, and the first intermediate point are represented by (p1.x, p1.y), (p2.x, p2.y), and (pa.x, pa.y), respectively, the coordinates of the first intermediate point are:
Figure BDA0001304437650000071
in step S206, the coordinates of the second intermediate point are determined according to the screen coordinates of the first intermediate point and the third input point.
For example, if the x coordinate and the y coordinate of the third input point and the second intermediate point are represented by (p3.x, p3.y) and (pb.x, pb.y), respectively, the coordinates of the second intermediate point are:
Figure BDA0001304437650000072
FIG. 4 is a schematic diagram illustrating a first input point, a second input point, a third input point, a first intermediate point, and a second intermediate point according to an example, in FIG. 4, the first input point, the second input point, and the third input point can be respectively represented as point ①, point ②, and point ③, and the first intermediate point and the second intermediate point determined according to the above formula can be respectively represented as point A and point B.
In step S208, the distance between the third input point and the second intermediate point is determined.
The distance is denoted by C, then
Figure BDA0001304437650000073
In step S210, the tilt angle of the line between the third input point and the second intermediate point is determined.
The inclination angle S can be calculated by means of the function atan2(x, y), i.e. S ═ atan2((p3.y-pb.y), (p 3.x-pb.x)).
In step S212, the screen coordinates of the first output point and the second output point are determined according to the coordinates of the third input point, the distance and the tilt angle.
For example, if (p4.x, p4.y) and (p5.x, p5.y) are x coordinates and y coordinates of the first output point and the second output point, respectively, the coordinates of the first output point and the second output point are:
Figure BDA0001304437650000081
Figure BDA0001304437650000082
FIG. 5 is a schematic diagram illustrating a first input point, a second input point, a third input point, a first intermediate point, a second intermediate point, a first output point, and a second output point according to an example, where the first input point, the second input point, the third input point, the first intermediate point, and the second intermediate point are respectively represented as point ①, point ②, point ③, point A, and point B, and the first output point and the second output point determined according to the above formula are respectively represented as point ④ and point ⑤, as shown in FIG. 5.
In step S214, a first bezier curve between the first input point and the third input point is formed by using the first input point as a starting point, the third input point as an ending point, and the first intermediate point as a close control point.
In practical implementation, the first bezier curve may be generated by a bezier curve function, for example.
In step S216, a second bezier curve between the second input point and the third input point is formed by using the second input point as a starting point, the third input point as an ending point, and the first intermediate point as a closing control point.
Likewise, in actual implementation, the second bezier curve may be generated by a bezier curve function, for example.
In step S218, a first connection, a second connection and a third connection between the first output point and the third input point, the second output point and the third input point, and the first output point and the second output point are formed, respectively.
The first, second and third links may be common segments between the two endpoints.
Fig. 6 is a schematic diagram illustrating a first bezier curve, a second bezier curve, a third bezier curve, a first wire, a second wire, and a third wire, according to an example.
In step S220, the plot graph is formed from the first bezier curve, the second bezier curve, the third bezier curve, the first connection line, the second connection line, and the third connection line.
FIG. 7 is a schematic diagram of plotted graphics in a map shown according to an example. After the triangle formed by the first, second, and third links in fig. 6 is filled with colors, for example, red may be filled for highlighting, and an arrow indicating the group movement tendency is formed as shown in fig. 7.
In addition, in some embodiments, after the plot graph is formed, if the screen coordinates of the first input point, the second input point, or the third input point are changed, for example, in a dragging manner, the screen coordinates of the first intermediate point, the second intermediate point, the first output point, and the second output point may be updated again by the above method, and a new plot graph may be formed and displayed again in the map. Therefore, 360-degree dragging and stretching of the plotting graph can be realized.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. The computer program, when executed by the CPU, performs the functions defined by the method provided by the present invention. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
FIG. 8 is a block diagram illustrating a terrain rendering apparatus according to an exemplary embodiment. As shown in fig. 8, the apparatus 30 includes: an input point coordinate acquisition module 302, an intermediate point coordinate determination module 304, an output point coordinate determination module 306, and a plot graph formation module 308.
The input point coordinate obtaining module 302 is configured to obtain screen coordinates of a first input point, a second input point, and a third input point.
The first input point and the second input point are any two advancing starting points in the area where the group is located, the third input point is any one point in the advancing direction of the group, and the plotting graph is used for representing the advancing trend of the group.
In some embodiments, the first input point, the second input point, and the third input point are touch points or mouse click points on the screen, and the input point coordinate obtaining module 302 includes: and the coordinate detection submodule is used for detecting the screen coordinates of the touch point or the mouse click point so as to acquire the screen coordinates of the first input point, the second input point and the third input point.
In some embodiments, the input point coordinate acquisition module 302 includes: a coordinate receiving submodule and a coordinate conversion submodule. The coordinate receiving submodule is used for receiving the map geographic coordinates of the first input point, the second input point and the third input point input by the user. And the coordinate conversion submodule is used for converting the map geographic coordinates of the first input point, the second input point and the third input point into corresponding screen coordinates.
The middle point coordinate determination module 304 is configured to determine the screen coordinates of the first middle point and the second middle point according to the screen coordinates of the first input point, the second input point, and the third input point.
In some embodiments, the intermediate point coordinate determination module 304 comprises: a first intermediate point coordinate determination submodule and a second intermediate point coordinate determination submodule. The first intermediate point coordinate determination submodule is used for determining the coordinates of the first intermediate point according to the screen coordinates of the first input point and the second input point as follows:
Figure BDA0001304437650000101
second intermediate point coordinate determination submoduleAnd determining the coordinates of the second intermediate point as follows according to the screen coordinates of the first intermediate point and the third input point:
Figure BDA0001304437650000102
wherein, (P1.x, P1.y), (P2.x, P2.y), (P3.x, P3.y), (Pa.x, Pa.y) and (Pb.x, Pb.y) are x-coordinate and y-coordinate of the first input point, the second input point, the third input point, the first intermediate point and the second intermediate point, respectively.
The output point coordinate determination module 306 is configured to determine the screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point.
In some embodiments, the output point coordinate determination module 306 includes: the device comprises a distance determining submodule, a tilt angle determining submodule and an output point determining submodule. The distance determining submodule is used for determining the distance C between the third input point and the second middle point as follows:
Figure BDA0001304437650000103
the tilt angle determination submodule is used for determining a tilt angle S of a line between the third input point and the second intermediate point. The output point determining submodule is used for determining screen coordinates of the first output point and the second output point according to the coordinate, the distance C and the inclination angle S of the third input point, and respectively comprises:
Figure BDA0001304437650000104
Figure BDA0001304437650000105
wherein, (p4.x, p4.y), (p5.x, p5.y) are x coordinates and y coordinates of the first output point and the second output point, respectively.
The plot graph forming module 308 is configured to form and display a plot graph composed of the first input point, the second input point, the third input point, the first output point, and the second output point in the map.
In some embodiments, the plot formation module 308 includes: the first curve forming submodule, the second curve forming submodule, the connecting line forming submodule and the graph forming submodule. The first curve forming submodule is used for forming a first Bezier curve between the first input point and the third input point by taking the first input point as a starting point, the third input point as an end point and the first middle point as a closing control point. The second curve forming submodule is used for forming a second Bezier curve between the second input point and the third input point by taking the second input point as a starting point, taking the third input point as an end point and taking the first middle point as a closing control point. The connecting line forming submodule is used for respectively forming a first connecting line, a second connecting line and a third connecting line between the first output point and the third input point, between the second output point and the third input point and between the first output point and the second output point. The graph forming submodule is used for forming a plotting graph according to the first Bezier curve, the second Bezier curve, the third Bezier curve, the first connecting line, the second connecting line and the third connecting line.
In some embodiments, the apparatus 30 further comprises: a plot graph changing module 310, configured to update coordinates of the first intermediate point, the second intermediate point, the first output point, and the second output point according to the changed screen coordinates of the first input point, the second input point, or the third input point when the screen coordinates of the first input point, the second input point, or the third input point are changed; and forming and displaying an updated plotting graph consisting of the changed first input point, the changed second input point, the changed third input point, the updated first output point and the updated second output point in the map.
It is noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware.
For example, in some possible embodiments, aspects of the invention may be implemented in the form of a terminal device. A terminal device according to embodiments of the present invention may include at least one processor and at least one memory. Wherein the memory has executable instructions that, when executed by the processor, cause the processor to perform steps in a map plotting method according to various exemplary embodiments of the present invention. Such as steps S102 to S108 in the method 10 shown in fig. 1 and steps S202 to S220 in the method 20 shown in fig. 2.
Furthermore, in some possible embodiments, aspects of the present invention may also be implemented in the form of a program product, which may be stored in a non-volatile readable storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, comprising executable instructions, which when run on a terminal device, are adapted to cause the terminal device to perform the steps in the map plotting method according to various exemplary embodiments of the present invention. Such as steps S102 to S108 in the method 10 shown in fig. 1 and steps S202 to S220 in the method 20 shown in fig. 2.
Exemplary embodiments of the present invention are specifically illustrated and described above. It is to be understood that the invention is not limited to the precise construction, arrangements, or instrumentalities described herein; on the contrary, the invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (8)

1. A map drawing method is characterized by comprising the following steps:
acquiring screen coordinates of a first input point, a second input point and a third input point;
determining screen coordinates of a first intermediate point and a second intermediate point according to the screen coordinates of the first input point, the second input point and the third input point;
determining screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point; and
forming and displaying a plot graph composed of the first input point, the second input point, the third input point, the first output point and the second output point in a map;
the first input point and the second input point are any two starting points of travel in the area of a group, the third input point is any one point in the travel direction of the group, and the plotting graph is used for representing the travel trend of the group;
determining the screen coordinates of the first intermediate point and the second intermediate point according to the screen coordinates of the first input point, the second input point and the third input point includes:
determining the coordinates of the first intermediate point as follows according to the screen coordinates of the first input point and the second input point:
Figure FDA0002221118780000011
and
according to the screen coordinates of the first intermediate point and the third input point, determining the coordinates of the second intermediate point as follows:
Figure FDA0002221118780000012
wherein (P1.x, P1.y), (P2.x, P2.y), (P3.x, P3.y), (Pa.x, Pa.y) and (Pb.x, Pb.y) are x-and y-coordinates of the first input point, the second input point, the third input point, the first intermediate point and the second intermediate point, respectively; determining the screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point comprises:
determining a distance C between the third input point and the second intermediate point as:
Figure FDA0002221118780000013
determining a tilt angle S of a connecting line between the third input point and the second intermediate point; and
determining screen coordinates of the first output point and the second output point to be respectively:
Figure FDA0002221118780000021
Figure FDA0002221118780000022
wherein, (p4.x, p4.y), (p5.x, p5.y) are x coordinates and y coordinates of the first output point and the second output point, respectively.
2. The method of claim 1, wherein forming and displaying a plot of the first input point, the second input point, the third input point, the first output point, and the second output point in a map comprises:
forming a first Bezier curve between the first input point and the third input point by taking the first input point as a starting point, the third input point as an end point and the first middle point as a closing control point;
forming a second Bezier curve between the second input point and the third input point by taking the second input point as a starting point, the third input point as an end point and the first middle point as a closing control point;
forming a first connection line, a second connection line and a third connection line between the first output point and the third input point, between the second output point and the third input point, and between the first output point and the second output point, respectively; and
forming the plot graph according to the first Bezier curve, the second Bezier curve, the first connecting line, the second connecting line and the third connecting line.
3. The method of claim 2, further comprising:
updating the coordinates of the first intermediate point, the second intermediate point, the first output point and the second output point according to the changed screen coordinates of the first input point, the second input point or the third input point when the screen coordinates of the first input point, the second input point or the third input point are changed; and forming and displaying an updated plotting graph consisting of the changed first input point, the changed second input point, the changed third input point, the updated first output point and the updated second output point in a map.
4. The method of claim 1, wherein the first input point, the second input point, and the third input point are touch points or mouse click points on a screen, and acquiring the screen coordinates of the first input point, the second input point, and the third input point comprises:
and detecting the screen coordinates of the touch point or the mouse click point to acquire the screen coordinates of the first input point, the second input point and the third input point.
5. The method of claim 1, wherein obtaining the screen coordinates of the first input point, the second input point, and the third input point comprises:
receiving map geographic coordinates of the first input point, the second input point and the third input point input by a user; and
and converting the map geographic coordinates of the first input point, the second input point and the third input point into the corresponding screen coordinates.
6. A map plotting apparatus, comprising:
the input point coordinate acquisition module is used for acquiring screen coordinates of the first input point, the second input point and the third input point;
the intermediate point coordinate determination module is used for determining the screen coordinates of the first intermediate point and the second intermediate point according to the screen coordinates of the first input point, the second input point and the third input point;
the output point coordinate determination module is used for determining the screen coordinates of the first output point and the second output point according to the screen coordinates of the third input point and the second intermediate point; and
a plotting graph forming module for forming and displaying a plotting graph composed of the first input point, the second input point, the third input point, the first output point and the second output point in a map;
the first input point and the second input point are any two starting points of travel in the area of a group, the third input point is any one point in the travel direction of the group, and the plotting graph is used for representing the travel trend of the group;
wherein the intermediate point coordinate determination module comprises:
a first intermediate point coordinate determination submodule, configured to determine, according to the screen coordinates of the first input point and the second input point, that the coordinate of the first intermediate point is:
Figure FDA0002221118780000031
and
a second intermediate point coordinate determination submodule, configured to determine, according to the screen coordinates of the first intermediate point and the third input point, that the coordinate of the second intermediate point is:
Figure FDA0002221118780000041
wherein (P1.x, P1.y), (P2.x, P2.y), (P3.x, P3.y), (Pa.x, Pa.y) and (Pb.x, Pb.y) are x-and y-coordinates of the first input point, the second input point, the third input point, the first intermediate point and the second intermediate point, respectively;
wherein the output point coordinate determination module comprises:
a distance determination submodule, configured to determine that a distance C between the third input point and the second intermediate point is:
Figure FDA0002221118780000042
the inclination angle determining submodule is used for determining the inclination angle S of a connecting line between the third input point and the second middle point; and
an output point determining submodule, configured to determine, according to the coordinate of the third input point, the distance C, and the inclination angle S, that the screen coordinates of the first output point and the second output point are respectively:
Figure FDA0002221118780000043
Figure FDA0002221118780000044
wherein, (p4.x, p4.y), (p5.x, p5.y) are x coordinates and y coordinates of the first output point and the second output point, respectively.
7. A terminal device, comprising: memory, processor and executable instructions stored in the memory and executable in the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the executable instructions.
8. A readable storage medium having stored thereon computer-executable instructions, which when executed by a processor implement the method of any one of claims 1-5.
CN201710377687.4A 2017-05-25 2017-05-25 Map plotting method and device, terminal device and readable storage medium Active CN107220335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710377687.4A CN107220335B (en) 2017-05-25 2017-05-25 Map plotting method and device, terminal device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710377687.4A CN107220335B (en) 2017-05-25 2017-05-25 Map plotting method and device, terminal device and readable storage medium

Publications (2)

Publication Number Publication Date
CN107220335A CN107220335A (en) 2017-09-29
CN107220335B true CN107220335B (en) 2020-03-17

Family

ID=59944436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710377687.4A Active CN107220335B (en) 2017-05-25 2017-05-25 Map plotting method and device, terminal device and readable storage medium

Country Status (1)

Country Link
CN (1) CN107220335B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108053751B (en) * 2017-12-29 2020-10-23 武汉智博创享科技股份有限公司 Method and device for drawing direction arrow on electronic map navigation route

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03121575A (en) * 1989-10-04 1991-05-23 Stanley Electric Co Ltd Method for approximating and storing curve
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104951865A (en) * 2015-05-18 2015-09-30 济南创智电气科技有限公司 Material allocation tracking method and material allocation tracking system based on power grid GIS (geographic information system)
CN105138642A (en) * 2015-08-25 2015-12-09 航天恒星科技有限公司 Dynamic plotting method and device based on HTML5

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03121575A (en) * 1989-10-04 1991-05-23 Stanley Electric Co Ltd Method for approximating and storing curve
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104951865A (en) * 2015-05-18 2015-09-30 济南创智电气科技有限公司 Material allocation tracking method and material allocation tracking system based on power grid GIS (geographic information system)
CN105138642A (en) * 2015-08-25 2015-12-09 航天恒星科技有限公司 Dynamic plotting method and device based on HTML5

Also Published As

Publication number Publication date
CN107220335A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
US8983808B2 (en) Automated mesh generation and editing tools
DE112013002803B4 (en) Method, system and device for providing a three-dimensional transition animation for a change in a map view
US20210364313A1 (en) Mapping method and device of map engine, terminal device, and storage medium
US20140229879A1 (en) Treemap visualization system and method
CN101763234B (en) Method and device for simulating various screen resolutions
KR101721114B1 (en) Method for Determining the Size of Grid for Clustering on Multi-Scale Web Map Services using Location-Based Point Data
CN110174114B (en) Lane line-level path generation method and device and storage medium
DE202013012486U1 (en) User interface for orienting a camera view towards surfaces within a 3-D map and facilities that incorporate the user interface
CN108281012B (en) Display method and device of traffic flow data, storage medium and electronic device
US10067950B1 (en) Systems and methods for efficiently organizing map styling information
CN104991918A (en) WEBGIS based online big data display method
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN103761094A (en) Method for polygon combination in planar drawing
EP4174785A1 (en) Method and apparatus for constructing landform map, electronic device, and readable storage medium
CN107220335B (en) Map plotting method and device, terminal device and readable storage medium
CN115510175A (en) Method and device for converting geographical coordinates of dwg data, computer equipment and medium
CN114820972A (en) Contour line and/or contour surface generation method, system, device and storage medium
CN103558957B (en) A kind of method and device of mobile terminal screen operation
JPWO2009104218A1 (en) Map display device
CN111325812B (en) Dynamic calculation and drawing method and device for pincer arrow in military symbol plotting
KR102282284B1 (en) Method, apparatus, device, and storage medium for providing visual representation of set of objects
JP7264989B2 (en) Visualization method, device and recording medium for multi-source earth observation image processing
US10062193B2 (en) Attribute based map marker clustering
CN111024113A (en) GMap-based navigation path direction arrow drawing method, system and equipment
US20220027043A1 (en) Map displaying method, electronic device, storage medium and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210207

Address after: 101300 room 153, 1 / F, building 17, 16 Caixiang East Road, Nancai Town, Shunyi District, Beijing

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100176 room 2222, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Beijing

Patentee before: BEIJING YUANXIN SCIENCE & TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170929

Assignee: Beijing Yuanxin Junsheng Technology Co.,Ltd.

Assignor: Yuanxin Information Technology Group Co.,Ltd.

Contract record no.: X2021110000018

Denomination of invention: Map plotting method, device, terminal device and readable storage medium

Granted publication date: 20200317

License type: Common License

Record date: 20210531