Method for efficiently drawing on-road parking spaces on map
By configuring parking space drawing data, clicking on the starting point on the map and specifying the direction, the problem of low efficiency of traditional drawing methods is solved, and multiple on-road parking spaces are efficiently drawn.
Patent Information
- Application Number
- CN202411301031.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-02-11
AI Technical Summary
Traditional methods are inefficient in drawing on-road parking spaces on maps, requiring manual drawing of each point and copying to form multiple parking spaces.
By configuring parking space drawing data, clicking on the map to draw the starting point and specifying the drawing direction, you can efficiently draw multiple on-road parking spaces.
This greatly improves the efficiency of drawing parking spaces on the road and simplifies the drawing process.
Smart Images

Figure CN119415000A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of parking space drawing information technology, and in particular to a method for efficiently drawing on-street parking spaces on a map. Background Art
[0002] According to the provisions of GA / T850-2021 "Specifications for the Setting of On-street Parking Spaces on Urban Roads", based on the setting conditions of on-street parking spaces, on-street parking spaces that meet the conditions are set to ensure orderly, safe and smooth road traffic. In today's social context, in order to meet the needs of rapid response to urban parking space planning, how to efficiently draw on-street parking spaces has become an urgent problem to be solved. However, the traditional method of drawing on-street parking spaces on the map often requires manual drawing of each parking space point, and then copying and copying to form multiple parking spaces, which has low drawing efficiency. Summary of the invention
[0003] In view of the above technical problems, the present invention adopts a simplified drawing process. By configuring the parking space drawing data, only the drawing starting point on the map needs to be clicked and the drawing direction specified, so that multiple on-street parking spaces can be efficiently drawn, which greatly improves the efficiency of on-street parking space drawing.
[0004] A first aspect of the present invention provides a method for efficiently drawing on-street parking spaces on a map, comprising the following steps:
[0005] Obtaining a map of the preset parking space area, identifying position information of an initial point and a target point of the preset parking space area on the map of the preset parking space area, and obtaining information of an on-street parking space drawing area after analysis and processing;
[0006] Based on the read parking space drawing data, the on-street parking space drawing instruction is executed, the on-street parking space drawing area information is identified, and after batch data processing, the drawn on-street parking space information is obtained.
[0007] The second aspect of the present invention provides: a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect.
[0008] The third aspect of the present invention provides: a device configuration information pulling system for a device, the system comprising at least one processor, a computer, and a memory storing instructions, which, when executed by at least one processor, implement the steps of the method provided in the first aspect.
[0009] The above technical solution of the present invention has the following beneficial effects: through the configured parking space drawing data, the present invention can efficiently draw multiple on-street parking spaces by only clicking the drawing starting point on the map of the preset parking space area, specifying the drawing direction and determining the target point, thereby greatly improving the efficiency of on-street parking space drawing. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A schematic diagram of a process for extracting device configuration information of a device provided in an embodiment of the present invention;
[0011] Figure 2 A schematic diagram of a system according to an embodiment of the present invention;
[0012] Figure 3 A schematic diagram of a temporary auxiliary line for drawing direction in the present invention;
[0013] Figure 4 A schematic diagram for drawing and numbering on-street parking spaces along the directions marked by the starting point and the target point in the present invention;
[0014] Figure 5 It is a schematic diagram of the on-street parking space of the present invention after being rotated by an angle θ along the direction of the temporary auxiliary line. DETAILED DESCRIPTION
[0015] The following examples further illustrate the content of the present invention, but should not be construed as limiting the present invention. Without departing from the spirit and substance of the present invention, modifications or substitutions made to the methods, steps or conditions of the present invention all fall within the scope of the present invention.
[0016] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0017] Terminology explanation:
[0018] On-street parking spaces are short for on-street parking spaces, which refer to areas on urban roads that are set up with traffic signs and markings for parking cars.
[0019] The parking spaces drawn in this application comply with the provisions of the public security industry standard GA / T850-2021 of the People's Republic of China "Specifications for the Setting of On-Road Parking Spaces on Urban Roads".
[0020] In some embodiments, a method for efficiently drawing on-street parking spaces on a map includes the following steps:
[0021] Obtaining a map of the preset parking space area, identifying position information of an initial point and a target point of the preset parking space area on the map of the preset parking space area, and obtaining information of an on-street parking space drawing area after analysis and processing;
[0022] Based on the read parking space drawing data, the on-street parking space drawing instruction is executed, the on-street parking space drawing area information is identified, and after batch data processing, the drawn on-street parking space information is obtained.
[0023] In these embodiments, the read parking space drawing data includes the length (length, in meters), width (width, in meters), parking space spacing distance (distance, the distance between points at the same position on two parking spaces, in meters), parking space inclination angle (angle, in degrees), and the number of drawings (count, in units), and the drawing configuration information is stored in the current drawing process. The position information of the initial point and the target point includes the coordinates of the starting point and the target point. After the parking space drawing data is configured, the start drawing instruction is executed to enter Drawing process, first click an initial point A on the map of the preset parking area to obtain the coordinates (x, y) of the starting point A. Since it is a plane drawing, the vertical coordinate z does not need to be considered. Select and confirm the direction of batch drawing of parking spaces on the map of the preset parking area. Drawing can be done on a computer or a mobile phone. For the computer, first determine the position of point A, move along point A in the direction where the batch of parking spaces need to be drawn to a certain position as the target point B, and identify the position coordinates of point B. For the convenience of description, point A will represent the starting and ending points, and point B will represent the target point. For mobile devices (mobile phones, tablets), point A is the starting point. The end point is triggered, another position is recorded as B, and its coordinates (m, n) are identified. After obtaining the on-street parking space drawing area information, the drawing area and direction of the batch of on-street parking spaces are determined. Further, between position A (x, y) and position B (m, n), a temporary auxiliary line of direction is drawn using the canvas drawing tool, recorded as AB, to indicate the drawing direction (the direction from point A to point B), the parking space drawing data is read, and along the drawing direction (point A to point B), a count of length and width is drawn using the canvas drawing tool. The shape of a number of on-street parking spaces is a rectangle, and the interval distance between each rectangle is distance, the auxiliary line between point A and point B vertically passes through the center point of the wide side of each rectangle, or the auxiliary line between point A and point B passes through the center point of the wide side of each rectangle on the same side, and finally the on-street parking spaces are drawn on the map of the preset parking space area. The shape of the on-street parking spaces can be a rectangle or a parallelogram. The present invention simplifies the drawing process. By configuring the parking space drawing data, you only need to click the drawing starting point on the map and specify the drawing direction to efficiently draw multiple on-street parking spaces, which greatly improves the efficiency of on-street parking space drawing.
[0024] In some embodiments, the location information of the initial point and the target point is obtained for analysis and processing to determine the drawing direction of the batch of on-street parking spaces, and the drawing instructions are executed according to the drawing direction of the on-street parking spaces to obtain a temporary auxiliary line in the direction from the initial point to the target point, and the information of the temporary auxiliary line in the direction is stored.
[0025] In these embodiments, the information of the temporary auxiliary line of direction includes: the length information from the starting point to the target point; the distance information from the starting point to the center point of the on-street parking space; and the angle information between the temporary auxiliary line of direction and the horizontal direction on the map of the preset parking space area.
[0026] In some embodiments, information of temporary auxiliary lines of direction is obtained, and after data processing, the center point position data of the on-street parking spaces is obtained, and then based on the obtained center point position data of the on-street parking spaces and the read parking space drawing data, the on-street parking space drawing instructions are executed after batch data processing.
[0027] In these embodiments, the coordinates of the center point position c of the on-street parking space are set to (cx, cy), and the angle θ between the temporary auxiliary line AB and the horizontal direction on the map of the preset parking space area is set;
[0028] Let the length of the line segment between AB be
[0029] cosθ=|mx| / l
[0030] sinθ=|ny| / l
[0031] The straight-line distance between point A and point C is cl = s*distance+length / 2
[0032] We get cx = cl * cosθ + x
[0033] We get cy = cl * sin θ + y
[0034] In some embodiments, after executing the on-street parking space drawing instruction, the position information of the center point of the broadside on the same side of each on-street parking space is identified, and the center point of the broadside on the same side of each on-street parking space passes on the temporary auxiliary direction line.
[0035] In these embodiments, the wide side center point position information includes the wide side center point position coordinates of the on-street parking space. According to actual conditions, the on-street parking space is drawn as a parallelogram or rectangle, etc., which includes a wide side and a long side. The wide side is the side close to the front and rear ends of the vehicle, and the long side is the side close to the doors on both sides of the vehicle. After the wide side center point on the same side of each on-street parking space passes on the temporary auxiliary line of the direction, the layout of the on-street parking spaces becomes more standardized and neat.
[0036] In some embodiments, the center point position data of the on-street parking spaces are acquired in batches, and based on the read parking space drawing data, after data processing, an instruction to rotate the on-street parking spaces counterclockwise around the center points of the on-street parking spaces is executed.
[0037] In these embodiments, for example, the shape of the drawn on-street parking space is a rectangle. When the on-street parking space drawing instruction is executed, the specific on-street parking space drawing method can be described in detail as follows:
[0038] To simplify the description, the letter s is used to represent "rectangle", and each rectangle s is rotated counterclockwise by angle along the center point of the on-street parking space.
[0039] The center point of the on-street parking space is set to c(cx,cy), the coordinates of which can be calculated in the above steps;
[0040] Assuming that rectangle s is drawn horizontally, its upper left (lt) and lower right (rb) coordinates can be obtained:
[0041] Upper left corner lt(x0=cx-length / 2,y0=cy+width / 2)
[0042] Lower right corner rb (x1 = cx + length / 2, y1 = cy-width / 2)
[0043] The upper left (lt) and lower right (rb) coordinates of rectangle s after it is rotated by angle:
[0044] Upper left corner lt1((x0-cx)*cosangle-(y0-cy)*sinangle+cx,(x0-cx)*sinangle+(y0-cy)*cosangle+cy)
[0045] Lower right corner rb1((x1-cx)*cosangle-(y1-cy)*sinangle+cx,(x1-cx)*sinangle+(y1-cy)*cosangle+cy)
[0046] According to the center point c coordinate of the on-street parking space of rectangle s, as well as the upper left corner lt1 coordinate, the lower right corner rb1 coordinate, the length length, and the width width, the final rectangle can be drawn. The method of drawing multiple rectangles s is similar.
[0047] In some embodiments, after executing the on-street parking space drawing instruction, the position information of each wide side center point of each on-street parking space is identified, and the temporary auxiliary direction line passes vertically through the wide side center point on the same side of each on-street parking space.
[0048] In these embodiments, the wide side center point position information includes the wide side center point position coordinates of the on-street parking spaces. According to actual conditions, the on-street parking spaces are drawn as parallelograms or rectangles, etc., each of which includes wide sides and long sides. The wide sides are the sides close to the front and rear ends of the vehicle, and the long sides are the sides close to the doors on both sides of the vehicle. The temporary auxiliary direction line passes vertically through the wide side center point on the same side of each on-street parking space, so that the layout of the on-street parking spaces is more standardized and neat.
[0049] In some embodiments, the center point position data of the on-street parking spaces are acquired in batches, and based on the information of the temporary auxiliary lines of the direction, after data processing, the rotation instructions of the on-street parking spaces along the temporary auxiliary lines of the direction are executed.
[0050] In some embodiments,
[0051] In order to simplify the description, the "rectangle" is represented by the letter s, where s is drawn along the horizontal direction. Assume that the angle θ between the temporary auxiliary line AB and the horizontal direction on the map of the preset parking area is θ, then its upper left (lt) and lower right (rb) coordinates can be obtained:
[0052] Upper left corner lt(x0=cx-length / 2,y0=cy+width / 2)
[0053] Lower right corner rb (x1 = cx + length / 2, y1 = cy-width / 2)
[0054] It can be deduced that the upper left (lt) and lower right (rb) coordinates of rectangle s after it is rotated by angle θ along the temporary auxiliary line AB are:
[0055] Upper left corner lt1((x0-cx)*cosθ-(y0-cy)*sinθ+cx,(x0-cx)*sinθ+(y0-cy)*cosθ+cy)
[0056] Lower right corner rb1((x1-cx)*cosθ-(y1-cy)*sinθ+cx,(x1-cx)*sinθ+(y1-cy)*cosθ+cy)
[0057] Rectangle s can be drawn according to the center point c coordinate of the on-street parking space of rectangle s, as well as the upper left corner lt1 coordinate, the lower right corner rb1 coordinate, the length length, and the width width. The method of drawing multiple rectangles is similar.
[0058] In some embodiments, by identifying the position information of the initial point and the target point and the position information of the wide side center point, based on the parking space drawing data, after batch data processing, the on-road parking space arrangement numbering information of the preset on-road parking spaces in the direction from the initial point to the target point is obtained.
[0059] In these embodiments, it is assumed that count rectangles s are arranged in order from point A (x, y) to point B (m, n) as count rectangles s numbered 0 to count-1, and s is a rectangle numbered s drawn in order (s>=0 and s <count)。
[0060] In some embodiments, the parking space drawing data includes: length information of on-street parking spaces; interval information of on-street parking spaces; inclination angle information of on-street parking spaces; number information of on-street parking spaces;
[0061] The information of the temporary auxiliary line of direction includes: the length information from the starting point to the target point; the distance information from the starting point to the center point of the on-street parking space; and the angle information between the temporary auxiliary line of direction and the horizontal direction on the map of the preset parking space area.
[0062] In some embodiments, after batch data processing, the visual auxiliary line between the starting point and the target point is deleted, and the temporary auxiliary line of the direction between point A and point B is deleted to complete the drawing of batch on-street parking spaces.
[0063] In some embodiments, a batch drawing configuration module may be implemented before drawing to configure the length, width, spacing, inclination and number of parking spaces to be drawn, and store the parking space drawing data in the current drawing process.
[0064] Then, first click on the drawing starting point on the map of the preset parking space area, then drag the mouse (on the computer side) or click on the second point (on the mobile side) to specify the drawing direction, and click to complete batch drawing of multiple on-street parking spaces. The present invention simplifies the drawing process of on-street parking spaces, and initializes the configuration of the length, width, parking space interval, parking space inclination angle, and the number of drawings. On the map, you only need to click on the drawing starting point A, drag the mouse (on the computer side) or click on the second point (on the mobile side) to specify the drawing direction, and determine the target point B, so that multiple on-street parking spaces can be efficiently drawn, which greatly improves the efficiency of on-street parking space drawing.
[0065] The present invention uses canvas drawing capability (browser drawing tool provided by HTML5) for drawing, and may also use SVG drawing capability.
[0066] The above-described embodiments are merely descriptions of preferred implementation modes of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A method for efficiently drawing on-street parking spaces on a map, characterized in that: The steps include: S1: Obtain a map of a preset parking space area, identify position information of an initial point and a target point of the preset parking space area on the map of the preset parking space area, and obtain information of a roadside parking space drawing area after analysis and processing; S2: Based on the read parking space drawing data, execute the on-street parking space drawing instruction, identify the on-street parking space drawing area information, and obtain the drawn on-street parking space information after batch data processing.
2. The method according to claim 1, characterized in that In the step of obtaining the on-street parking space drawing area information, the position information of the initial point and the target point is obtained for analysis and processing, the drawing direction of the batch of on-street parking spaces is determined, and the drawing instructions are executed according to the drawing direction of the on-street parking spaces, the temporary auxiliary line of the direction from the initial point to the target point is obtained, and the information of the temporary auxiliary line of the direction is stored.
3. The method according to claim 2, characterized in that In the step of obtaining the drawn on-street parking space information, the information of the temporary auxiliary line of the direction is obtained, and the center point position data of the on-street parking space is obtained through data processing. Then, based on the obtained center point position data of the on-street parking space and the read parking space drawing data, the on-street parking space drawing instruction is executed after batch data processing.
4. The method according to claim 3, characterized in that In the step of obtaining the drawn on-street parking space information, after executing the on-street parking space drawing instruction, the position information of the center point of the broadside on the same side of each on-street parking space is identified, and the center point of the broadside on the same side of each on-street parking space passes on the temporary auxiliary line of direction.
5. The method according to claim 4, characterized in that In the step of obtaining the drawn on-street parking space information, the center point position data of the on-street parking spaces are obtained in batches, and based on the read parking space drawing data, after data processing, the on-street parking space is executed to rotate counterclockwise around the center point of the on-street parking space.
6. The method according to claim 3, characterized in that: In the step of obtaining the drawn on-street parking space information, after executing the on-street parking space drawing instruction, the position information of each wide side center point of each on-street parking space is identified, and the temporary auxiliary direction line passes vertically through the wide side center point on the same side of each on-street parking space.
7. The method according to claim 6, characterized in that In the step of obtaining the drawn on-street parking space information, the center point position data of the on-street parking spaces are obtained in batches, and based on the information of the temporary auxiliary lines of direction, after data processing, the on-street parking space rotation instruction along the temporary auxiliary lines of direction is executed.
8. The method according to claim 4 or 6, characterized in that: In the step of obtaining the drawn on-street parking space information, by identifying the position information of the initial point and the target point and the position information of the wide side center point, based on the parking space drawing data, after batch data processing, the on-street parking space arrangement numbering information of the preset on-street parking spaces in the direction from the initial point to the target point is obtained.
9. The method according to any one of claims 1 to 8, characterized in that: The parking space drawing data includes: the length information of the on-street parking spaces; the interval distance information of the on-street parking spaces; the inclination angle information of the on-street parking spaces; the number information of the on-street parking spaces; The information of the temporary auxiliary line of direction includes: the length information from the starting point to the target point; the distance information from the starting point to the center point of the on-street parking space; and the angle information between the temporary auxiliary line of direction and the horizontal direction on the map of the preset parking space area.
10. The method according to claim 1, characterized in that: In the step of obtaining the drawn on-street parking space information, after batch data processing, a visual auxiliary line between the starting point and the target point is drawn.
Citation Information
Cited By
Parking control method, vehicle and computer readable storage medium
CN119975336A
Parking control method, vehicle, and computer-readable storage medium
CN119975336B