Statistical calculation method, system and equipment for road area of industrial enterprise

By using the plane topological relationship between edge lines and center lines in the road area statistics of industrial enterprises, the area of ​​the basic block is generated and accumulated, and the problems of cumbersome and low efficiency in the existing technology are solved, and more efficient and accurate road area statistics are achieved.

CN120198482APending Publication Date: 2025-06-24CHINA GASOLINEEUM PIPELINE ENG CORP +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311783707.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The prior art is cumbersome, inefficient and prone to errors when calculating the road area of ​​industrial enterprises.

Method used

By obtaining the edges and center lines in the road drawing, establishing the edges and center lines sets, and generating basic blocks based on the graph type (line or arc), calculate and accumulate the area of ​​each block to obtain the road area.

Benefits of technology

It reduces complex edge replication and boundary enclosure work, significantly saves time and improves the efficiency and accuracy of statistical calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120198482A_ABST
    Figure CN120198482A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of general drawing design and construction management of industrial enterprises, particularly relates to a statistical calculation method, system and equipment for the road area of an industrial enterprise, and aims to solve the problems of tedious operation, low efficiency and high error rate in the prior art. The method comprises the following steps: acquiring a road drawing of which the area is to be calculated, acquiring side lines and a center line in the road drawing, and establishing a side line set and a center line set; any graph line in the sideline set is obtained, and whether the graph line is a straight line or an arc line is judged; virtual points and virtual line segments are obtained based on the straight lines and the arc lines, all blocks are obtained by combining the center lines, and the road area is obtained by accumulating the areas of all the blocks. According to the method, the work of copying road side lines, enclosing boundaries, modifying and filling and the like is omitted, a large amount of time is saved, and compared with the background technology, the work efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the general layout design and construction management of industrial enterprises, it is necessary to count the paved area of roads. Due to the complex road network in industrial enterprises, there are many styles and quantities of various intersections, connection ports, and vehicle yards. Counting the road area is a relatively complex and cumbersome task. At present, various software cannot directly count the road area, and the method of pattern filling is used to count the road area. Using this method, it is necessary to first close the boundary, then perform pattern filling, and finally accumulate to obtain the total area. The main disadvantages are cumbersome operation, low efficiency, and easy to make mistakes. If the road area can be directly counted, the work efficiency and quality will be greatly improved.

[0003] Based on this, the present invention proposes a statistical calculation method, system, and device for the road area of industrial enterprises. Summary of the Invention

[0004] In order to solve the above problems in the prior art, that is, the problems of cumbersome operation, low efficiency, and easy to make mistakes in the prior art, the present invention provides a statistical calculation method, system, and device for the road area of industrial enterprises.

[0005] In the first aspect of the present invention, a statistical calculation method for the road area of industrial enterprises is provided. The method includes the following steps:

[0006] Step S10, obtain the road drawing whose area is to be calculated, obtain the side line and center line in the road drawing, and establish a side line set and a center line set;

[0007] Step S20, obtain any drawing line in the side line set, and judge whether the drawing line is a straight line or an arc line; when the drawing line is a straight line, jump to step S30, otherwise jump to step S40;

[0008] Step S30, obtain the two end points of the straight line, and obtain the two virtual points on the center line that are the closest to the center line from the two end points. Generate a first block based on the end points and the virtual points, calculate the area of the first block, and jump to step S20 until all the straight lines in the side line set are judged, then jump to step S50;

[0009] Step S40, obtain the starting point, ending point, center point, and radius of the arc line; obtain the shortest distances from the starting point and the ending point to the center line, and form virtual line segments; generate a second block based on the virtual line segments, the center line, the starting point, and the ending point, calculate the area of the second block, and jump to step S20 until all the arc lines in the side line set are judged, then jump to step S50;

[0010] Step S50: Accumulate the areas of multiple said first blocks and the areas of multiple said second blocks to obtain the road area.

[0011] In some preferred embodiments, for the said first block, its generation method is as follows:

[0012] Connect the said endpoint with the virtual point closest to it to obtain a virtual straight line segment as the partition line, and use the block enclosed by the partition line, the center line, and the straight line as the first block. The fixed points of the first block are two endpoints and at least one virtual point.

[0013] In some preferred embodiments, for the area of the said first block, its calculation method is as follows:

[0014] Judge whether two virtual points coincide. If so, the first block is a triangle, and use the area calculation model of a triangle to calculate the area of the first block;

[0015] If not, the first block is a quadrilateral, and use the area calculation model of a quadrilateral to calculate the area of the first block; the quadrilateral includes a trapezoid, a rectangle, or a square.

[0016] In some preferred embodiments, for the said second block, its generation method is as follows:

[0017] When the virtual line segment intersects one of the center lines in the set of center lines, judge whether the center line connected to the starting point and the ending point is the same center line;

[0018] If it is the same center line, use the block enclosed by the center line, the virtual line segment, and the arc line as the second block;

[0019] If it is not the same center line, use the block enclosed by multiple said center lines, the virtual line segment, and the side line as the second block.

[0020] In some preferred embodiments, when the virtual line segment intersects both of the two center lines in the set of center lines, extract the arc line on the other side corresponding to the arc line in the set of side lines. When there is only one center line between the two arc lines, use this center line as the center line to be calculated. Respectively obtain the shortest distances from the starting points and ending points of the two arc lines to the center line to be calculated, and generate a virtual line segment. Use the block enclosed by the virtual line segment, the center line to be calculated, and the arc line as the second block.

[0021] In some preferred embodiments, for the area of the said second block, its calculation method is as follows:

[0022] When the center line connecting the starting point and the ending point is the same center line, the second block is a three-sided and one-arc block, and the area of the second block is calculated by combining the concavity and convexity of the arc line in the three-sided and one-arc block;

[0023] When the center line connecting the starting point and the ending point is not the same center line, the second block is a four-sided and one-arc block, and the area of the second block is calculated by combining the concavity and convexity of the arc line in the four-sided and one-arc block.

[0024] In some preferred embodiments, the block enclosed by the virtual line segment, the center line to be calculated, and the arc line is a sector ring block, and the area of the second block is calculated by combining the calculation model of the sector ring block.

[0025] Among them, the virtual line segment in the present invention is Figure 1 the partition line in

[0026] On the other hand, the present invention provides a statistical calculation system for the area of industrial enterprise roads. Based on a statistical calculation method for the area of industrial enterprise roads, the system includes:

[0027] A drawing acquisition module, which acquires the road drawing whose area is to be calculated, acquires the side line and the center line in the road drawing, and establishes a side line set and a center line set;

[0028] A side line judgment module, which acquires any graphic line in the side line set and judges whether the graphic line is a straight line or an arc line; when the graphic line is a straight line, it jumps to the straight line segment area calculation module, otherwise it jumps to the arc segment area calculation module;

[0029] A straight line segment area calculation module, which acquires the two endpoints of the straight line, and acquires the two virtual points closest to the center line of the two endpoints on the center line, generates a first block based on the endpoints and the virtual points, calculates the area of the first block, and jumps to the side line judgment module until all the straight lines in the side line set are judged, and then jumps to the accumulation module;

[0030] An arc segment area calculation module, which acquires the starting point, the ending point, the center point and the radius of the arc line; acquires the shortest distances from the starting point and the ending point to the center line, and forms a virtual line segment; generates a second block based on the virtual line segment, the center line, the starting point and the ending point, calculates the area of the second block, and jumps to the side line judgment module until all the arc lines in the side line set are judged, and then jumps to the accumulation module;

[0031] An accumulation module, which accumulates the areas of multiple first blocks and the areas of multiple second blocks to obtain the road area.

[0032] In a third aspect of the present invention, an electronic device is proposed, comprising:

[0033] at least one processor;

[0034] and a memory communicatively connected to the at least one processor;

[0035] wherein the memory stores instructions executable by the processor, and the instructions are used to be executed by the processor to implement the above-mentioned statistical calculation method for the road area of industrial enterprises.

[0036] In a fourth aspect of the present invention, a computer-readable storage medium is proposed, and the computer-readable storage medium stores computer instructions, and the computer instructions are used to be executed by the computer to implement the above-mentioned statistical calculation method for the road area of industrial enterprises.

[0037] Advantages of the present invention:

[0038] (1) By utilizing the planar topological relationship between the road edge line and the center line, the present invention calculates the area of the basic blocks through mathematical methods and accumulates them to obtain the total area. Compared with the background technology solution based on pattern filling, it eliminates the work of replicating the road edge line, boundary enclosure, and modifying the filling, saving a large amount of time and significantly improving work efficiency compared with the background technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, objects, and advantages of the present application will become more apparent:

[0040] Figure 1 is a schematic diagram of block division of a statistical calculation method for the road area of industrial enterprises according to the present invention;

[0041] Figure 2 is a schematic diagram of a triangle area calculation model of a statistical calculation method for the road area of industrial enterprises according to the present invention;

[0042] Figure 3 is a schematic diagram of a quadrilateral area calculation model of a statistical calculation method for the road area of industrial enterprises according to the present invention;

[0043] Figure 4 is a schematic diagram of a three-side-one-arc block area calculation model of a statistical calculation method for the road area of industrial enterprises according to the present invention;

[0044] Figure 5 is a schematic diagram of a four-side-one-arc block area calculation model of a statistical calculation method for the road area of industrial enterprises according to the present invention;

[0045] Figure 6It is a schematic diagram of the area calculation model of the fan-shaped block in the statistical calculation method of the road area of industrial enterprises of the present invention;

[0046] Figure 7 It is a schematic diagram of the structure of the computer system of the server for implementing the method, system, and device embodiments of the present application. Detailed implementation manners

[0047] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, rather than limiting the invention. Additionally, it should be noted that, for the sake of convenience of description, only the parts related to the relevant invention are shown in the drawings.

[0048] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and embodiments.

[0049] In the first embodiment of the present invention, a statistical calculation method for the road area of industrial enterprises is provided. The method includes the following steps:

[0050] Step S10: Obtain the road drawing whose area is to be calculated, obtain the side lines and the center line in the road drawing, and establish a side line set and a center line set;

[0051] Step S20: Obtain any one graphic line in the side line set, and determine whether the graphic line is a straight line or an arc line; when the graphic line is a straight line, jump to step S30, otherwise jump to step S40;

[0052] Step S30: Obtain the two endpoints of the straight line, and obtain the two virtual points on the center line that are the closest to the two endpoints from the center line. Generate a first block based on the endpoints and the virtual points, calculate the area of the first block, and jump to step S20. Until all the straight lines in the side line set are judged, jump to step S50;

[0053] Step S40: Obtain the starting point, ending point, center point, and radius of the arc line; obtain the shortest distances from the starting point and the ending point to the center line, and form virtual line segments; generate a second block based on the virtual line segments, the center line, the starting point, and the ending point, calculate the area of the second block, and jump to step S20. Until all the arc lines in the side line set are judged, jump to step S50;

[0054] Step S50: Accumulate the areas of multiple first blocks and the areas of multiple second blocks to obtain the road area. This method.

[0055] To more clearly illustrate a method for statistically calculating the road area of an industrial enterprise according to the present invention, the following will describe in detail each step in the embodiments of the present invention in combination with Figure 1 Expand and describe each step in the embodiments of the present invention in detail.

[0056] A method for statistically calculating the road area of an industrial enterprise according to the first embodiment of the present invention includes steps S10 - S50, and each step is described in detail as follows:

[0057] Step S10: Obtain the road drawing of the area to be calculated, obtain the side lines and center lines in the road drawing, and establish a side line set and a center line set;

[0058] Among them, the road drawing is a DWG format file; the drawn road lines only include two simple line types, namely line segments and arcs, and do not include complex line types such as spline curves; all road center lines are located on the same layer, and the line type is center line or dotted line; all road side lines are located on the same layer, and the line type is solid line; the layers where the road side lines are located and the layers where the center lines are located do not contain other line drawings.

[0059] Among them, establish a road side line set B and a road center line set C. Using two elements, namely the layer and the line type, as combined conditions, through programming, automatically search the graphic database, compare the layer and line type of each line one by one, extract all road side lines that meet the conditions into the set B, and extract all road center lines that meet the conditions into the set C. To implement this process, generally use the API function acedSSGet. The input of the screening conditions for the layer and the line type can be achieved by selecting samples and then extracting the layer name and line type name.

[0060] Step S20: Obtain any one line in the side line set, and determine whether the line is a straight line or an arc line; when the line is a straight line, jump to step S30, otherwise jump to step S40;

[0061] Step S30: Obtain the two endpoints of the straight line, and obtain the two virtual points on the center line that are the closest to the center line from the two endpoints. Generate a first block based on the endpoints and the virtual points, calculate the area of the first block, and jump to step S20. Until all the straight lines in the side line set are judged, then jump to step S50;

[0062] Among them, the generation method of the first block is as follows:

[0063] Connect the endpoint with the virtual point closest to it to obtain a virtual straight line segment as the partition line, and use the block enclosed by the partition line, the center line, and the straight line as the first block. The fixed points of the first block are the two endpoints and at least one virtual point.

[0064] Among them, the area of the first block is calculated as follows:

[0065] Determine whether two virtual points coincide. If so, the first block is a triangle, and the area of the first block is calculated using the area calculation model of a triangle;

[0066] If not, the first block is a quadrilateral, and the area of the first block is calculated using the area calculation model of a quadrilateral; the quadrilateral includes a trapezoid, a rectangle or a square.

[0067] Specifically, extract the first graphic line B1 from the road boundary line set B.

[0068] If the extracted graphic line B1 is a straight line segment, obtain two end points pt11 and pt12.

[0069] Traverse each straight line segment in the center line set C. For any straight line segment C1, calculate the closest points pt21 and pt22 from pt11 and pt12 to the straight line C1 respectively, forming two virtual straight line segments. One is the virtual line segment from pt11 to pt21, and the other is the virtual line segment from pt12 to pt22. To find the point on the line segment that is closest to the specified point, the API function getClosestPointTo can be used.

[0070] Traverse the other graphic lines in the boundary line set B except B1. If none of the other graphic lines intersect with these two virtual line segments, it is considered that B1 and C1 form a block, and the boundary points of the block are pt11, pt12, pt22, and pt21.

[0071] If pt21 and pt22 coincide, the formed block is a triangle, and use Figure 2 Calculate the area of the triangle. The area of the triangle can be calculated using Heron's formula, Figure 2 where a, b, and c in it are the lengths of the three sides of the triangle respectively.

[0072] If pt21 and pt22 do not coincide, the formed block is a trapezoid, and use Figure 3 Calculate the area of the trapezoid. In most cases, this trapezoid is a rectangle, and it may only be a trapezoid in special cases. The area calculation method of the trapezoid is used in all cases, Figure 3 where a in it is the length of the short side of the trapezoid, b is the length of the long side of the trapezoid, and h is the height of the trapezoid.

[0073] Step S40: Obtain the starting point, ending point, center point, and radius of the arc line; obtain the shortest distances from the starting point and the ending point to the center line, and form virtual line segments; generate a second block based on the virtual line segments, the center line, the starting point, and the ending point, calculate the area of the second block, and jump to step S20. Until all the arc lines in the set of side lines are judged, jump to step S50;

[0074] Among them, the method for generating the second block is as follows:

[0075] When the virtual line segment intersects with one of the center lines in the set of center lines, it is judged whether the center lines connected to the starting point and the ending point are the same center line;

[0076] If they are the same center line, the block enclosed by the center line, the virtual line segment, and the arc line is used as the second block;

[0077] If they are not the same center line, the blocks enclosed by multiple center lines, the virtual line segment, and the side lines are used as the second block.

[0078] In the present invention, when the virtual line segment intersects with both of the center lines in the set of center lines, the arc line on the other side corresponding to the arc line is extracted from the set of side lines. When there is only one center line between the two arc lines, the center line at this time is used as the center line to be calculated. The shortest distances from the starting points and the ending points of the two arc lines to the center line to be calculated are obtained respectively, and virtual line segments are generated. The block enclosed by the virtual line segments, the center line to be calculated, and the arc line is used as the second block.

[0079] In the present invention, the method for calculating the area of the second block is as follows:

[0080] When the center lines connected to the starting point and the ending point are the same center line, the second block is a three-sided and one-arc block, and the area of the second block is calculated by combining the concavity and convexity of the arc line in the three-sided and one-arc block;

[0081] When the center lines connected to the starting point and the ending point are not the same center line, the second block is a four-sided and one-arc block, and the area of the second block is calculated by combining the concavity and convexity of the arc line in the four-sided and one-arc block.

[0082] In the present invention, the block enclosed by the virtual line segments, the center line to be calculated, and the arc line is a fan-shaped ring block, and the area of the second block is calculated by combining the calculation model of the fan-shaped ring block.

[0083] Specifically, the center point center, starting point start, ending point end, and radius R of the arc line are extracted.

[0084] Traverse the set C of centerlines, obtain the line segment TX1, calculate the nearest point s1 from the starting point start of the circular arc edge B1 to the line segment TX1, and form a virtual line segment XN1.

[0085] Traverse the other lines in the set B of edges except the line segment B1. If none of the other lines intersect this virtual line segment XN1, then it is considered that the centerline TX1 is a centerline corresponding to this circular arc edge.

[0086] Traverse the set C of centerlines, obtain the line segment TX2, calculate the nearest point s2 from the ending point end of the circular arc edge B1 to the line TX2, and form a virtual line segment XN2.

[0087] Traverse the other lines in the set B of edges except the line segment B1. If none of the other lines intersect this virtual line segment XN2, then it is considered that the centerline TX2 is another centerline corresponding to this circular arc edge.

[0088] If TX1 and TX2 are the same line segment, a three-side-one-arc type block is formed, and use Figure 4 to calculate its area. Among them, it is necessary to determine whether the circular arc is a concave arc or a convex arc. The determination method is to judge whether the center point of the arc is inside the quadrilateral. Then use the -1 or +1 coefficient K to represent the concave arc or the convex arc, and substitute it into the formula. Figure 4 where a and b are the lengths of two sides of the three-side-one-arc type block, h is the height of the three-side-one-arc type block, R is the radius of the circular arc line, and θ is the angle between the starting point and the ending point of the circular arc line in the three-side-one-arc type block to the connection line of the center of the circle.

[0089] If TX1 and TX2 are not the same line segment, calculate the intersection point of the line segments TX1 and TX2, form a four-side-one-arc type block, and use Figure 5 to calculate its area, where w1 and w2 are the lengths of the two short sides of the four-side-one-arc type block, and θ is the angle between the starting point and the ending point of the circular arc line in the four-side-one-arc type block to the connection line of the center of the circle.

[0090] If no line segment that meets the conditions can be found and a three-side-one-arc type block or a four-side-one-arc type block cannot be constructed, then find another corresponding circular arc B2 from the set B of edges. It is judged that there is and only one centerline between the circular arcs B1 and B2. At this time, a fan-shaped ring block is formed, and use Figure 6 to calculate the area, where R1 and R2 are the radii of the two circular arc lines respectively, and θ is the angle between the starting point and the ending point of the circular arc line in the fan-shaped ring block to the connection line of the center of the circle.

[0091] Among them, the calculation models of the above-mentioned blocks are all prior arts and will not be elaborated here.

[0092] In the above embodiments, although the various steps are described in the above order, those skilled in the art can understand that in order to achieve the effects of this embodiment, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in reverse order, and these simple changes are all within the protection scope of the present invention.

[0093] The second embodiment of the present invention provides a statistical calculation system for the road area of industrial enterprises, based on a statistical calculation method for the road area of industrial enterprises. The system includes:

[0094] A drawing acquisition module, which acquires the road drawing for which the area is to be calculated, acquires the side lines and the center line in the road drawing, and establishes a side line set and a center line set;

[0095] A side line judgment module, which acquires any one graphic line in the side line set and judges whether the graphic line is a straight line or an arc line; when the graphic line is a straight line, it jumps to the straight line segment area calculation module, otherwise it jumps to the arc segment area calculation module;

[0096] A straight line segment area calculation module, which acquires the two endpoints of the straight line, and acquires the two virtual points on the center line that are the closest to the two endpoints from the center line, generates a first block based on the endpoints and the virtual points, calculates the area of the first block, and jumps to the side line judgment module. Until all the straight lines in the side line set are judged, it jumps to the accumulation module;

[0097] An arc segment area calculation module, which acquires the starting point, the ending point, the center point and the radius of the arc line; acquires the shortest distances from the starting point and the ending point to the center line, and forms virtual line segments; generates a second block based on the virtual line segments, the center line, the starting point and the ending point, calculates the area of the second block, and jumps to the side line judgment module. Until all the arc lines in the side line set are judged, it jumps to the accumulation module;

[0098] An accumulation module, which accumulates the areas of multiple first blocks and the areas of multiple second blocks to obtain the road area.

[0099] Those skilled in the art of the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related descriptions of the above-described system can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.

[0100] It should be noted that the statistical calculation system for the road area of industrial enterprises provided in the above embodiments is only illustrated by dividing the above functional modules. In actual applications, the above functions can be assigned to different functional modules according to needs, that is, the modules or steps in the embodiments of the present invention can be further decomposed or combined. For example, the modules in the above embodiments can be merged into one module, or further split into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing each module or step, and are not regarded as an improper limitation of the present invention.

[0101] An electronic device according to a third embodiment of the present invention includes:

[0102] At least one processor;

[0103] And a memory communicatively connected to at least one of the processors;

[0104] Wherein, the memory stores instructions executable by the processor, and the instructions are used to be executed by the processor to implement the above-mentioned statistical calculation method for the road area of industrial enterprises.

[0105] A computer-readable storage medium according to a fourth embodiment of the present invention stores computer instructions, and the computer instructions are used to be executed by the computer to implement the above-mentioned statistical calculation method for the road area of industrial enterprises.

[0106] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes and related descriptions of the above-mentioned storage device and processing device can refer to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0107] Those skilled in the art should be able to realize that the modules and method steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. The programs corresponding to the software modules and method steps can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the art. To clearly illustrate the interchangeability of electronic hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in the form of electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0108] Refer to the following Figure 7 , which shows a schematic structural diagram of a computer system of a server for implementing the method, system, and device embodiments of the present application. Figure 7 The server shown is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.

[0109] As Figure 7 shown, the computer system includes a central processing unit (CPU, Central Processing Unit) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 702 or the program loaded from the storage section 708 into the random access memory (RAM, Random Access Memory) 703. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. The input / output (I / O, Input / Output) interface 705 is also connected to the bus 704.

[0110] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including, for example, a cathode ray tube (CRT, Cathode Ray Tube), a liquid crystal display (LCD, Liquid Crystal Display), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read from it can be installed into the storage section 708 as needed.

[0111] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the methods of the present application are performed. It should be noted that the computer-readable medium in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination of the above.

[0112] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).

[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0114] The terms "first", "second", etc. are used to distinguish similar objects and not to describe or indicate a specific order or sequence.

[0115] The term "comprising" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that comprises a series of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to those process, method, article, or apparatus / device.

[0116] So far, the technical solution of the present invention has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easily understood by those skilled in the art that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present invention.

Claims

1. A statistical calculation method for the road area of industrial enterprises, characterized in that, The method includes the following steps: Step S10: Obtain a road drawing for which the area is to be calculated, obtain the side lines and the center line in the road drawing, and establish a side line set and a center line set; Step S20: Obtain any one graphic line in the side line set, and determine whether the graphic line is a straight line or an arc line; When the graphic line is a straight line, jump to step S30; otherwise, jump to step S40; Step S30: Obtain the two endpoints of the straight line, and obtain the two virtual points on the center line that are closest to the two endpoints. Generate a first block based on the endpoints and the virtual points, calculate the area of the first block, and jump to step S20. After all the straight lines in the side line set have been judged, jump to step S50; Step S40: Obtain the starting point, ending point, center point and radius of the arc line; obtain the shortest distances from the starting point and the ending point to the center line, and form virtual line segments; Generate a second block based on the virtual line segment, the center line, the starting point and the ending point, calculate the area of the second block, and jump to step S20. After all the arc lines in the side line set have been judged, jump to step S50; Step S50: Accumulate the areas of multiple first blocks and the areas of multiple second blocks to obtain the road area.

2. The statistical calculation method for the road area of an industrial enterprise according to claim 1, wherein, The generation method of the first block is as follows: Connect the endpoint with the virtual point closest to it to obtain a virtual straight line segment as the partition line. The block surrounded by the partition line, the center line and the straight line is used as the first block. The fixed points of the first block are two endpoints and at least one virtual point.

3. The statistical calculation method for the road area of an industrial enterprise according to claim 2, characterized in that, The calculation method of the area of the first block is as follows: Judge whether the two virtual points coincide. If so, the first block is a triangle, and the area calculation model of the triangle is used to calculate the area of the first block; If not, the first block is a quadrilateral, and the area calculation model of the quadrilateral is used to calculate the area of the first block; the quadrilateral includes a trapezoid, a rectangle or a square.

4. A statistical calculation method for the road area of industrial enterprises according to claim 1, characterized in that, The generation method of the second block is as follows: When the virtual line segment intersects with a center line in the center line set, judge whether the center lines connected to the starting point and the ending point are the same center line; If they are the same center line, the block surrounded by the center line, the virtual line segment and the arc line is used as the second block; If they are not the same center line, the blocks surrounded by multiple center lines, the virtual line segment and the side line are used as the second block.

5. The statistical calculation method for the road area of an industrial enterprise according to claim 1, wherein When the virtual line segment intersects with two center lines in the center line set, extract the arc line on the other side corresponding to the arc line in the side line set. When there is only one center line between the two arc lines, use the center line at this time as the center line to be calculated. Respectively obtain the shortest distances from the starting points and the ending points of the two arc lines to the center line to be calculated, and generate virtual line segments. The block surrounded by the virtual line segment, the center line to be calculated and the arc line is used as the second block.

6. The statistical calculation method for the road area of an industrial enterprise according to claim 4, characterized in that, The calculation method of the area of the second block is as follows: When the center line connecting the starting point and the ending point is the same center line, the second block is a three-sided and one-arc block, and the area of the second block is calculated by combining the concavity and convexity of the arc line in the three-sided and one-arc block; When the center line connecting the starting point and the ending point is not the same center line, the second block is a four-sided and one-arc block, and the area of the second block is calculated by combining the concavity and convexity of the arc line in the four-sided and one-arc block.

7. A statistical calculation method for the road area of an industrial enterprise according to claim 5, characterized in that, The block enclosed by the virtual line segment, the center line to be calculated, and the arc line is a fan-shaped ring block, and the area of the second block is calculated by combining the calculation model of the fan-shaped ring block.

8. A statistical calculation system for the road area of an industrial enterprise, based on the statistical calculation method for the road area of an industrial enterprise according to any one of claims 1-7, characterized in that, The system includes: A drawing acquisition module, which acquires a road drawing for which the area is to be calculated, acquires the side lines and center lines in the road drawing, and establishes a side line set and a center line set; A side line judgment module, which acquires any graphic line in the side line set and judges whether the graphic line is a straight line or an arc line; when the graphic line is a straight line, it jumps to the straight line segment area calculation module, otherwise it jumps to the arc segment area calculation module; A straight line segment area calculation module, which acquires the two endpoints of the straight line and acquires the two virtual points on the center line that are the closest to the center line from the two endpoints, generates a first block based on the endpoints and the virtual points, calculates the area of the first block, and jumps to the side line judgment module. After all the straight lines in the side line set are judged, it jumps to the accumulation module; An arc segment area calculation module, which acquires the starting point, ending point, center point, and radius of the arc line; acquires the shortest distances from the starting point and the ending point to the center line and forms a virtual line segment; generates a second block based on the virtual line segment, the center line, the starting point, and the ending point, calculates the area of the second block, and jumps to the side line judgment module. After all the arc lines in the side line set are judged, it jumps to the accumulation module; An accumulation module, which accumulates the areas of multiple first blocks and the areas of multiple second blocks to obtain the road area.

9. An electronic device, characterized in that, Includes: At least one processor; And a memory communicatively connected to at least one of the processors; Wherein, the memory stores instructions executable by the processor, and the instructions are used to be executed by the processor to implement the statistical calculation method for the road area of an industrial enterprise according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to be executed by the computer to implement the statistical calculation method for the road area of an industrial enterprise according to any one of claims 1-7.