CAD-based parking space base map drawing method and system

By obtaining the CAD elements in the CAD drawing and calculating the virtual coordinates, the automatic drawing of the parking space base map is realized, and the problems of low manual drawing efficiency and high error rate in the existing technology are solved, improving the drawing efficiency and accuracy.

CN119272361APending Publication Date: 2025-01-07XIAMEN ROAD & BRIDGE INFORMATION ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411166232.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing parking lot car search system needs to manually draw the parking space base map before it is launched. The process is cumbersome and inefficient, and the manual processing error rate is high.

Method used

By obtaining the CAD elements in the CAD drawing, converting them into corresponding components using a preset mapping table, and calculating virtual coordinates, realizing automatic drawing of the parking space base map, and getting rid of traditional manual drawing.

Benefits of technology

It improves the efficiency of parking space base map drawing, reduces the error rate, realizes automatic drawing, and reduces manual operation errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272361A_ABST
    Figure CN119272361A_ABST
Patent Text Reader

Abstract

The invention relates to a CAD (computer-aided design)-based parking space base map drawing method, which comprises the following steps of: converting all acquired CAD elements of each map layer in a CAD drawing to be imported into corresponding elements according to a preset mapping table, and calculating corresponding virtual coordinates according to acquired rectangular coordinates of CAD parking space rectangular blocks; therefore, the parking space base map is automatically drawn according to the virtual coordinates and the elements. Therefore, automatic drawing of the parking space base map is achieved, traditional manual drawing is avoided, the drawing efficiency is improved, and the error rate is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and system for drawing a parking space base map based on CAD. Background Art

[0002] At present, the parking lot's car-finding system needs to import the completed parking space base map before going online. The parking space base map is first imported by the pre-sales designer into the parking lot planning CAD drawing, opened on the CAD and supplemented with equipment, cables, bridges and pipes, etc. The visual designer then draws the parking space base map according to the CAD drawing, imports the parking space base map through the parking space editing software, and manually draws the parking spaces, routes and self-service machine equipment point information one by one according to the parking space base map, thus completing the parking space base map drawing before the parking system goes online. The overall operation process is cumbersome, manual drawing is inefficient and the manual processing of CAD paper has a high error rate. Summary of the invention

[0003] The technical problem to be solved by the present invention is: the present invention provides a method and system for drawing a parking space base map based on CAD, which realizes the automatic drawing of the parking space base map, improves the drawing efficiency and reduces the error rate.

[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0005] In a first aspect, the present invention provides a method for drawing a parking space base map based on CAD, comprising:

[0006] Obtain all CAD elements of each layer in the CAD drawing to be imported, wherein the CAD elements include CAD parking space rectangular blocks;

[0007] Convert the CAD elements into corresponding elements according to a preset mapping table, obtain the rectangular coordinates of the CAD parking space rectangular block, and calculate the corresponding virtual coordinates according to the rectangular coordinates;

[0008] The parking space base map is automatically drawn according to the virtual coordinates and the components.

[0009] The beneficial effects of the present invention are: converting the CAD elements in the to-be-imported CAD drawings into corresponding components and calculating the virtual coordinates corresponding to the rectangular coordinates of the CAD parking space rectangular blocks, thereby automatically completing the drawing of the parking space base map according to the virtual coordinates and components, getting rid of traditional manual drawing, improving drawing efficiency and reducing the error rate.

[0010] Optionally, converting the CAD element into a corresponding component according to a preset mapping table includes:

[0011] The rectangular name and parking space number of the CAD parking space rectangular block are obtained, and the CAD parking space rectangular block is converted into a corresponding rectangular parking space element according to the rectangular name, the parking space number and a preset mapping table.

[0012] According to the above description, when converting the CAD parking space rectangular block into the rectangular parking space element, the accuracy of the converted rectangular parking space element is improved not only based on the preset mapping table but also in combination with the rectangular name and parking space number of the CAD parking space rectangular block.

[0013] Optionally, the CAD element includes a line segment element, and converting the CAD element into a corresponding element according to a preset mapping table includes:

[0014] The line segment elements are converted into corresponding connecting line elements according to the preset mapping table.

[0015] Optionally, calculating corresponding virtual coordinates according to the rectangular coordinates includes:

[0016] Get the coordinates of the first vertex in the upper left corner and the second vertex in the lower right corner of the current layer;

[0017] Calculate the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate to obtain a first absolute value, and calculate the absolute value of the difference between the first vertical coordinate of the first vertex coordinate and the second vertical coordinate of the second vertex coordinate to obtain a second absolute value;

[0018] Obtain the maximum value of the abscissa and the maximum value of the ordinate in the CAD drawing to be imported, substitute the maximum value of the abscissa and the first absolute value into a first scaling formula to calculate a first scaling value, substitute the maximum value of the ordinate and the second absolute value into a second scaling formula to calculate a second scaling value, wherein the first scaling formula is:

[0019] M=|OP| / |X|

[0020] Wherein, M represents the first scaling value, |OP| represents the first absolute value, and X represents the maximum value of the horizontal coordinate;

[0021] The second scaling formula is:

[0022] N=|QT| / |Y|

[0023] Wherein, N represents the second scaling value, |QT| represents the second absolute value, and Y represents the maximum value of the vertical coordinate;

[0024] The horizontal coordinate of the upper left corner vertex of the rectangular coordinate and the first scaling value are input into the horizontal coordinate conversion formula to obtain the horizontal coordinate of the upper left corner vertex of the virtual coordinate, and the vertical coordinate of the lower right corner vertex of the rectangular coordinate and the second scaling value are input into the vertical coordinate conversion formula to obtain the vertical coordinate of the lower right corner vertex of the virtual coordinate. The horizontal coordinate conversion formula is:

[0025] A=X*M+E

[0026] Wherein, A represents the abscissa of the virtual coordinate, X represents the maximum abscissa value, M represents the first scaling value, and E represents the abscissa of the upper left corner vertex of the rectangular coordinate;

[0027] The ordinate conversion formula is:

[0028] B=(TY*N)+Q

[0029] Among them, B represents the vertical coordinate of the virtual coordinate, T represents the second vertical coordinate, Y represents the maximum vertical coordinate, N represents the second scaling value, and Q represents the vertical coordinate of the lower right corner vertex of the rectangular coordinate.

[0030] According to the above description, the first vertex coordinates of the upper left corner and the second vertex coordinates of the lower right corner of the current layer are combined with the maximum horizontal coordinate and the maximum vertical coordinate in the CAD drawing to be imported to calculate the first scaling value and the second scaling value, and then the first scaling value and the second scaling value are combined with the horizontal coordinates of the upper left vertex and the vertical coordinates of the lower right vertex of the rectangular coordinates to calculate the horizontal coordinates of the upper left vertex of the virtual coordinates and the vertical coordinates of the lower right vertex of the virtual coordinates, respectively, to ensure the accuracy of the calculated virtual coordinates while ensuring that the rectangular coordinates can accommodate all converted virtual coordinates.

[0031] Optionally, the CAD element includes a device node element.

[0032] In a second aspect, the present invention provides a parking space base map drawing system based on CAD, comprising:

[0033] An acquisition module, used for acquiring all CAD elements of each layer in the CAD drawing to be imported, wherein the CAD elements include CAD parking space rectangular blocks;

[0034] A conversion module, used to convert the CAD elements into corresponding elements according to a preset mapping table, obtain the rectangular coordinates of the CAD parking space rectangular block, and calculate the corresponding virtual coordinates according to the rectangular coordinates;

[0035] A drawing module is used to automatically draw a parking space base map according to the virtual coordinates and the components.

[0036] The beneficial effects of the present invention are: converting the CAD elements in the to-be-imported CAD drawings into corresponding components and calculating the virtual coordinates corresponding to the rectangular coordinates of the CAD parking space rectangular blocks, thereby automatically completing the drawing of the parking space base map according to the virtual coordinates and components, getting rid of traditional manual drawing, improving drawing efficiency and reducing the error rate.

[0037] Optionally, the conversion module is specifically:

[0038] The rectangular name and parking space number of the CAD parking space rectangular block are obtained, and the CAD parking space rectangular block is converted into a corresponding rectangular parking space element according to the rectangular name, the parking space number and a preset mapping table.

[0039] According to the above description, when converting the CAD parking space rectangular block into the rectangular parking space element, the accuracy of the converted rectangular parking space element is improved not only based on the preset mapping table but also in combination with the rectangular name and parking space number of the CAD parking space rectangular block.

[0040] Optionally, the CAD element includes a line segment element, and the conversion module is specifically:

[0041] The line segment elements are converted into corresponding connecting line elements according to the preset mapping table.

[0042] Optionally, the conversion module is specifically:

[0043] Get the coordinates of the first vertex in the upper left corner and the second vertex in the lower right corner of the current layer;

[0044] Calculate the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate to obtain a first absolute value, and calculate the absolute value of the difference between the first vertical coordinate of the first vertex coordinate and the second vertical coordinate of the second vertex coordinate to obtain a second absolute value;

[0045] Obtain the maximum value of the abscissa and the maximum value of the ordinate in the CAD drawing to be imported, substitute the maximum value of the abscissa and the first absolute value into a first scaling formula to calculate a first scaling value, substitute the maximum value of the ordinate and the second absolute value into a second scaling formula to calculate a second scaling value, wherein the first scaling formula is:

[0046] M=|OP| / |X|

[0047] Wherein, M represents the first scaling value, |OP| represents the first absolute value, and X represents the maximum value of the horizontal coordinate;

[0048] The second scaling formula is:

[0049] N=|QT| / |Y|

[0050] Wherein, N represents the second scaling value, |QT| represents the second absolute value, and Y represents the maximum value of the vertical coordinate;

[0051] The horizontal coordinate of the upper left corner vertex of the rectangular coordinate and the first scaling value are input into the horizontal coordinate conversion formula to obtain the horizontal coordinate of the upper left corner vertex of the virtual coordinate, and the vertical coordinate of the lower right corner vertex of the rectangular coordinate and the second scaling value are input into the vertical coordinate conversion formula to obtain the vertical coordinate of the lower right corner vertex of the virtual coordinate. The horizontal coordinate conversion formula is:

[0052] A=X*M+E

[0053] Wherein, A represents the abscissa of the virtual coordinate, X represents the maximum abscissa value, M represents the first scaling value, and E represents the abscissa of the upper left corner vertex of the rectangular coordinate;

[0054] The ordinate conversion formula is:

[0055] B=(TY*N)+Q

[0056] Among them, B represents the vertical coordinate of the virtual coordinate, T represents the second vertical coordinate, Y represents the maximum vertical coordinate, N represents the second scaling value, and Q represents the vertical coordinate of the lower right corner vertex of the rectangular coordinate.

[0057] According to the above description, the first vertex coordinates of the upper left corner and the second vertex coordinates of the lower right corner of the current layer are combined with the maximum horizontal coordinate and the maximum vertical coordinate in the CAD drawing to be imported to calculate the first scaling value and the second scaling value, and then the first scaling value and the second scaling value are combined with the horizontal coordinates of the upper left vertex and the vertical coordinates of the lower right vertex of the rectangular coordinates to calculate the horizontal coordinates of the upper left vertex of the virtual coordinates and the vertical coordinates of the lower right vertex of the virtual coordinates, respectively, to ensure the accuracy of the calculated virtual coordinates while ensuring that the rectangular coordinates can accommodate all converted virtual coordinates.

[0058] Optionally, the CAD element includes a device node element. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A flowchart of a method for drawing a parking space base map based on CAD provided by an embodiment of the present invention;

[0060] Figure 2 A schematic diagram of the overall process of a method for drawing a parking space base map based on CAD provided by an embodiment of the present invention;

[0061] Figure 3 A schematic diagram of the structure of a parking space base map drawing system based on CAD provided in an embodiment of the present invention.

[0062] [Description of Reference Numerals]

[0063] 1. A parking space base map drawing system based on CAD;

[0064] 2. Get the module;

[0065] 3. Conversion module;

[0066] 4. Draw the module. DETAILED DESCRIPTION

[0067] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0068] Embodiment 1

[0069] Please refer to Figure 1 to Figure 2 The present invention provides a method for drawing a parking space base map based on CAD, comprising the steps of:

[0070] S1. Obtain all CAD elements of each layer in the CAD drawing to be imported, wherein the CAD elements include CAD parking space rectangular blocks;

[0071] In this embodiment, there are multiple layers in the CAD drawing to be imported, and each layer is a separate parking space layer, that is, the CAD elements such as parking spaces and lines on the same layer are drawn on the same layer, so all CAD elements of each layer are obtained layer by layer, where the CAD elements include but are not limited to CAD parking space rectangular blocks, line segment elements and device node elements.

[0072] S2, converting the CAD elements into corresponding elements according to a preset mapping table, obtaining the rectangular coordinates of the CAD parking space rectangular block, and calculating the corresponding virtual coordinates according to the rectangular coordinates;

[0073] In this embodiment, if Figure 2 As shown, the CAD elements obtained in step S1 are converted into corresponding components according to a preset mapping table, wherein the preset mapping table stipulates the conversion rules between CAD elements and components, and the corresponding virtual coordinates are calculated according to the rectangular coordinates of the CAD parking space rectangular block.

[0074] At this time, the step S2 of converting the CAD element into a corresponding component according to the preset mapping table includes:

[0075] S21, obtaining a rectangular name and a parking space number of the CAD parking space rectangular block, and converting the CAD parking space rectangular block into a corresponding rectangular parking space element according to the rectangular name, the parking space number and a preset mapping table.

[0076] In this embodiment, the rectangular names of the CAD parking space rectangular blocks are uniformly named as "route" + "serial number", and each parking space rectangular block has a unique parking space number. Figure 2 As shown, the CAD parking space rectangular block is converted into the corresponding rectangular parking space element by obtaining the rectangular name and parking space number of the CAD parking space rectangular block and combining it with a preset mapping table. At this time, the converted rectangular parking space elements are uniformly named as: "parking space" + "parking space number".

[0077] At this time, the CAD element in step S2 includes a line segment element, and converting the CAD element into a corresponding element according to a preset mapping table includes:

[0078] S22. Convert the line segment elements into corresponding connection line elements according to the preset mapping table.

[0079] At this time, the calculation of the corresponding virtual coordinates according to the rectangular coordinates in step S2 includes:

[0080] S23, obtaining the coordinates of the first vertex in the upper left corner and the second vertex in the lower right corner of the current layer;

[0081] In this embodiment, if Figure 2 As shown, the current layer refers to the current layer of the imported software. For example, when the CAD drawing to be imported is imported into the parking space editing software, the current layer refers to: the current layer of the parking space editing software, and the first vertex coordinates of the upper left corner and the second vertex coordinates of the lower right corner of the parking space editing software are obtained.

[0082] S24, calculating the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate to obtain a first absolute value, and calculating the absolute value of the difference between the first vertical coordinate of the first vertex coordinate and the second vertical coordinate of the second vertex coordinate to obtain a second absolute value;

[0083] In this embodiment, if Figure 2 As shown, the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate is calculated. For example, if the first vertex coordinate is (100, 300), the first horizontal coordinate is 100 and the first vertical coordinate is 300. If the second vertex coordinate is (500, 100), the second horizontal coordinate is 500 and the second vertical coordinate is 100. The first absolute value is |100-500|=400 and the second absolute value is |300-100|=200.

[0084] S25, obtaining the maximum value of the abscissa and the maximum value of the ordinate in the CAD drawing to be imported, substituting the maximum value of the abscissa and the first absolute value into a first scaling formula to calculate a first scaling value, and substituting the maximum value of the ordinate and the second absolute value into a second scaling formula to calculate a second scaling value, wherein the first scaling formula is:

[0085] M=|OP| / |X|

[0086] Wherein, M represents the first scaling value, |OP| represents the first absolute value, and X represents the maximum value of the horizontal coordinate;

[0087] The second scaling formula is:

[0088] N=|QT| / |Y|

[0089] Wherein, N represents the second scaling value, |QT| represents the second absolute value, and Y represents the maximum value of the vertical coordinate;

[0090] In this embodiment, if Figure 2 As shown, the maximum value of the horizontal coordinate and the maximum value of the vertical coordinate in the CAD drawing to be imported are obtained. For example, the maximum value of the horizontal coordinate is 1000 and the maximum value of the vertical coordinate is 1000. Then, they are substituted into the first scaling formula and the second scaling formula respectively together with the first absolute value and the second absolute value calculated in step S24. Then, M=400 / 1000=0.4, N=200 / 1000=0.2.

[0091] S26, input the abscissa of the upper left corner vertex of the rectangular coordinates and the first scaling value into the abscissa conversion formula to obtain the abscissa of the upper left corner vertex of the virtual coordinates, input the ordinate of the lower right corner vertex of the rectangular coordinates and the second scaling value into the ordinate conversion formula to obtain the ordinate of the lower right corner vertex of the virtual coordinates, the abscissa conversion formula is:

[0092] A=X*M+E

[0093] Wherein, A represents the abscissa of the virtual coordinate, X represents the maximum abscissa value, M represents the first scaling value, and E represents the abscissa of the upper left corner vertex of the rectangular coordinate;

[0094] The ordinate conversion formula is:

[0095] B=(TY*N)+Q

[0096] Among them, B represents the vertical coordinate of the virtual coordinate, T represents the second vertical coordinate, Y represents the maximum vertical coordinate, N represents the second scaling value, and Q represents the vertical coordinate of the lower right corner vertex of the rectangular coordinate.

[0097] In this embodiment, if Figure 2As shown, if the horizontal coordinate of the upper left corner vertex of the rectangular coordinate is 550, the horizontal coordinate of the upper left corner vertex of the rectangular coordinate and the first scaling value 0.4 are input into the horizontal coordinate conversion formula, A=1000*0.4+550=950, that is, the horizontal coordinate of the upper left corner vertex of the virtual coordinate is 950, the vertical coordinate of the lower right corner vertex of the rectangular coordinate is 350, the vertical coordinate of the lower right corner vertex of the rectangular coordinate is 350 and the second scaling value 0.2 are input into the vertical coordinate conversion formula, B=(100-1000*0.2)+350=250, that is, the vertical coordinate of the lower right corner vertex of the virtual coordinate is 250. Therefore, according to the horizontal coordinate of the upper left corner vertex of the virtual coordinate and the vertical coordinate of the lower right corner vertex of the virtual coordinate, a virtual rectangular element corresponding to the CAD parking space rectangular block can be drawn.

[0098] S3. Automatically complete the drawing of the parking space base map according to the virtual coordinates and the components.

[0099] In this embodiment, if Figure 2 As shown, according to the abscissa of the upper left vertex of the virtual coordinate and the ordinate of the lower right vertex of the virtual coordinate calculated in step S26, a virtual rectangular element corresponding to the CAD parking space rectangular block can be drawn, thereby automatically completing the parking space base map drawing based on the virtual rectangular element and other elements.

[0100] Embodiment 2

[0101] Please refer to Figure 3 The present invention provides a parking space base map drawing system 1 based on CAD, including: an acquisition module 2, a conversion module 3 and a drawing module 4.

[0102] The acquisition module 2 is used to acquire all CAD elements of each layer in the CAD drawing to be imported, wherein the CAD elements include CAD parking space rectangular blocks;

[0103] A conversion module 3, used to convert the CAD elements into corresponding elements according to a preset mapping table, obtain the rectangular coordinates of the CAD parking space rectangular block, and calculate the corresponding virtual coordinates according to the rectangular coordinates;

[0104] The drawing module 4 is used to automatically draw a parking space base map according to the virtual coordinates and the components.

[0105] Specifically, the conversion module 3 is specifically:

[0106] The rectangular name and parking space number of the CAD parking space rectangular block are obtained, and the CAD parking space rectangular block is converted into a corresponding rectangular parking space element according to the rectangular name, the parking space number and a preset mapping table.

[0107] Specifically, the CAD element includes a line segment element, and the conversion module 3 is specifically:

[0108] The line segment elements are converted into corresponding connecting line elements according to the preset mapping table.

[0109] Specifically, the conversion module 3 is specifically:

[0110] Get the coordinates of the first vertex in the upper left corner and the second vertex in the lower right corner of the current layer;

[0111] Calculate the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate to obtain a first absolute value, and calculate the absolute value of the difference between the first vertical coordinate of the first vertex coordinate and the second vertical coordinate of the second vertex coordinate to obtain a second absolute value;

[0112] Obtain the maximum value of the abscissa and the maximum value of the ordinate in the CAD drawing to be imported, substitute the maximum value of the abscissa and the first absolute value into a first scaling formula to calculate a first scaling value, substitute the maximum value of the ordinate and the second absolute value into a second scaling formula to calculate a second scaling value, wherein the first scaling formula is:

[0113] M=|OP| / |X|

[0114] Wherein, M represents the first scaling value, |OP| represents the first absolute value, and X represents the maximum value of the horizontal coordinate;

[0115] The second scaling formula is:

[0116] N=|QT| / |Y|

[0117] Wherein, N represents the second scaling value, |QT| represents the second absolute value, and Y represents the maximum value of the vertical coordinate;

[0118] The horizontal coordinate of the upper left corner vertex of the rectangular coordinate and the first scaling value are input into the horizontal coordinate conversion formula to obtain the horizontal coordinate of the upper left corner vertex of the virtual coordinate, and the vertical coordinate of the lower right corner vertex of the rectangular coordinate and the second scaling value are input into the vertical coordinate conversion formula to obtain the vertical coordinate of the lower right corner vertex of the virtual coordinate. The horizontal coordinate conversion formula is:

[0119] A=X*M+E

[0120] Wherein, A represents the abscissa of the virtual coordinate, X represents the maximum abscissa value, M represents the first scaling value, and E represents the abscissa of the upper left corner vertex of the rectangular coordinate;

[0121] The ordinate conversion formula is:

[0122] B=(TY*N)+Q

[0123] Among them, B represents the vertical coordinate of the virtual coordinate, T represents the second vertical coordinate, Y represents the maximum vertical coordinate, N represents the second scaling value, and Q represents the vertical coordinate of the lower right corner vertex of the rectangular coordinate.

[0124] Specifically, the CAD element includes a device node element.

[0125] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.

[0126] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0127] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0128] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.

[0129] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0130] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0131] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A method for drawing a parking space base map based on CAD, characterized in that: include: Obtain all CAD elements of each layer in the CAD drawing to be imported, wherein the CAD elements include CAD parking space rectangular blocks; Convert the CAD elements into corresponding elements according to a preset mapping table, obtain the rectangular coordinates of the CAD parking space rectangular block, and calculate the corresponding virtual coordinates according to the rectangular coordinates; The parking space base map is automatically drawn according to the virtual coordinates and the components.

2. A method for drawing a parking space base map based on CAD as claimed in claim 1, characterized in that: The converting the CAD element into a corresponding component according to a preset mapping table comprises: The rectangular name and parking space number of the CAD parking space rectangular block are obtained, and the CAD parking space rectangular block is converted into a corresponding rectangular parking space element according to the rectangular name, the parking space number and a preset mapping table.

3. A method for drawing a parking space base map based on CAD as claimed in claim 1, characterized in that: The CAD element includes a line segment element, and converting the CAD element into a corresponding element according to a preset mapping table includes: The line segment elements are converted into corresponding connecting line elements according to the preset mapping table.

4. A method for drawing a parking space base map based on CAD as claimed in claim 1, characterized in that: Calculating the corresponding virtual coordinates according to the rectangular coordinates includes: Get the coordinates of the first vertex in the upper left corner and the second vertex in the lower right corner of the current layer; Calculate the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate to obtain a first absolute value, and calculate the absolute value of the difference between the first vertical coordinate of the first vertex coordinate and the second vertical coordinate of the second vertex coordinate to obtain a second absolute value; Obtain the maximum value of the abscissa and the maximum value of the ordinate in the CAD drawing to be imported, substitute the maximum value of the abscissa and the first absolute value into a first scaling formula to calculate a first scaling value, substitute the maximum value of the ordinate and the second absolute value into a second scaling formula to calculate a second scaling value, wherein the first scaling formula is: M=|OP| / |X| Wherein, M represents the first scaling value, |OP| represents the first absolute value, and X represents the maximum value of the horizontal coordinate; The second scaling formula is: N=|QT| / |Y| Wherein, N represents the second scaling value, |QT| represents the second absolute value, and Y represents the maximum value of the vertical coordinate; The horizontal coordinate of the upper left corner vertex of the rectangular coordinate and the first scaling value are input into the horizontal coordinate conversion formula to obtain the horizontal coordinate of the upper left corner vertex of the virtual coordinate, and the vertical coordinate of the lower right corner vertex of the rectangular coordinate and the second scaling value are input into the vertical coordinate conversion formula to obtain the vertical coordinate of the lower right corner vertex of the virtual coordinate. The horizontal coordinate conversion formula is: A=X*M+E Wherein, A represents the abscissa of the virtual coordinate, X represents the maximum abscissa value, M represents the first scaling value, and E represents the abscissa of the upper left corner vertex of the rectangular coordinate; The ordinate conversion formula is: B=(TY*N)+Q Among them, B represents the vertical coordinate of the virtual coordinate, T represents the second vertical coordinate, Y represents the maximum vertical coordinate, N represents the second scaling value, and Q represents the vertical coordinate of the lower right corner vertex of the rectangular coordinate.

5. The method for drawing a parking space base map based on CAD as claimed in claim 1, characterized in that: The CAD elements include device node elements.

6. A parking space base map drawing system based on CAD, characterized in that: include: An acquisition module, used for acquiring all CAD elements of each layer in the CAD drawing to be imported, wherein the CAD elements include CAD parking space rectangular blocks; A conversion module, used to convert the CAD elements into corresponding elements according to a preset mapping table, obtain the rectangular coordinates of the CAD parking space rectangular block, and calculate the corresponding virtual coordinates according to the rectangular coordinates; A drawing module is used to automatically draw a parking space base map according to the virtual coordinates and the components.

7. A CAD-based parking space base map drawing system as claimed in claim 6, characterized in that: The conversion module is specifically: The rectangular name and parking space number of the CAD parking space rectangular block are obtained, and the CAD parking space rectangular block is converted into a corresponding rectangular parking space element according to the rectangular name, the parking space number and a preset mapping table.

8. A CAD-based parking space base map drawing system as claimed in claim 6, characterized in that: The CAD element includes a line segment element, and the conversion module is specifically: The line segment elements are converted into corresponding connecting line elements according to the preset mapping table.

9. A CAD-based parking space base map drawing system as claimed in claim 6, characterized in that: The conversion module is specifically: Get the coordinates of the first vertex in the upper left corner and the second vertex in the lower right corner of the current layer; Calculate the absolute value of the difference between the first horizontal coordinate of the first vertex coordinate and the second horizontal coordinate of the second vertex coordinate to obtain a first absolute value, and calculate the absolute value of the difference between the first vertical coordinate of the first vertex coordinate and the second vertical coordinate of the second vertex coordinate to obtain a second absolute value; Obtain the maximum value of the abscissa and the maximum value of the ordinate in the CAD drawing to be imported, substitute the maximum value of the abscissa and the first absolute value into a first scaling formula to calculate a first scaling value, substitute the maximum value of the ordinate and the second absolute value into a second scaling formula to calculate a second scaling value, wherein the first scaling formula is: M=|OP| / |X| Wherein, M represents the first scaling value, |OP| represents the first absolute value, and X represents the maximum value of the horizontal coordinate; The second scaling formula is: N=|QT| / |Y| Wherein, N represents the second scaling value, |QT| represents the second absolute value, and Y represents the maximum value of the vertical coordinate; The horizontal coordinate of the upper left corner vertex of the rectangular coordinate and the first scaling value are input into the horizontal coordinate conversion formula to obtain the horizontal coordinate of the upper left corner vertex of the virtual coordinate, and the vertical coordinate of the lower right corner vertex of the rectangular coordinate and the second scaling value are input into the vertical coordinate conversion formula to obtain the vertical coordinate of the lower right corner vertex of the virtual coordinate. The horizontal coordinate conversion formula is: A=X*M+E Wherein, A represents the abscissa of the virtual coordinate, X represents the maximum abscissa value, M represents the first scaling value, and E represents the abscissa of the upper left corner vertex of the rectangular coordinate; The ordinate conversion formula is: B=(TY*N)+Q Among them, B represents the vertical coordinate of the virtual coordinate, T represents the second vertical coordinate, Y represents the maximum vertical coordinate, N represents the second scaling value, and Q represents the vertical coordinate of the lower right corner vertex of the rectangular coordinate.

10. The method for drawing a parking space base map based on CAD as claimed in claim 6, characterized in that: The CAD elements include device node elements.