Automatic identification method of green belt based on building general plan location map
By identifying and dividing basic elements such as parking spaces and building profiles in the overall building plan, combining vegetation and landscape characteristics, the problem of difficult identification of landscape elements in the green belt is solved, and the accurate identification and rendering of the green belt is achieved, improving the improvement of the green belt Identification accuracy and efficiency.
Patent Information
- Application Number
- CN202111246426.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-10-26
AI Technical Summary
The prior art is difficult to accurately identify and extract the landscape elements in the green belt from the overall building plan diagram, especially due to the diversity and complexity of landscape elements, it is difficult to identify and cannot be accurately divided and rendered.
By identifying parking spaces, building profiles, fire platforms, urban roads and community roads, combining the characteristics of vegetation, circular landscape, special-shaped landscape and viewing roads, point coordinates are used instead of vegetation, artificially identify special-shaped landscapes, identify circular landscapes, and The viewing road is identified based on parallel curves with lengths greater than or equal to 10 meters, and the complex shape of landscape landscape is obtained by eliminating landscape layers, forming a green belt boundary line and rendering a closed figure.
It realizes accurate, batch and efficient identification and rendering of various landscape elements in the green belt, improves the recognition accuracy, and can more intuitively display the simple outline and overall layout of the green belt, ensuring accurate positioning in large digital scenes. .
Smart Images

Figure CN114005133B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of architectural drawing object recognition, and in particular to an automatic recognition method for green belts based on a building general plan location diagram. Background Art
[0002] The core of BIM (Building Information Modeling) technology is to establish a virtual three-dimensional model of the building project and use digital technology to provide this model with a complete and actual building project information database. This information database not only contains geometric information, professional attributes and status information describing the building components, but also contains the status information of non-component objects (such as space and motion behavior). With the help of this three-dimensional model containing building project information, the degree of information integration of the building project is greatly improved, thus providing a platform for engineering information exchange and sharing for the relevant stakeholders of the building project. With the rapid development of urban construction and computer technology, the application of BIM technology has become more and more extensive. Generally, it reads two-dimensional building drawings, uses computer algorithms to identify graphics elements, obtains two-dimensional data of building objects, and outputs them to the three-dimensional engine to produce a three-dimensional model of the building. However, how to accurately identify graphics elements and obtain two-dimensional data has always been a difficult point to overcome. When the building general plan location map is input to extract the landscape green belt, the building objects included in it are very rich. However, when a computer program is used to recognize the drawings, each building object cannot be directly recognized, and only curves, characters, annotations, etc. and their attribute information can be recognized. It is also impossible to determine which layer corresponds to the building object to be identified. Different building objects interfere with each other, which brings difficulty to the automatic recognition of the building object graphics in the building general plan location map. Moreover, since the landscape green belt includes landscape elements such as a variety of vegetation, circular landscapes, viewing roads, and special landscapes, each landscape element has different characteristics in the drawings, and the rendering requirements of each landscape element are also different. Therefore, it is even more difficult to accurately identify the landscape elements in the landscape green belt for rendering. Summary of the invention
[0003] 1. Technical issues to be resolved
[0004] Based on the above problems, the present invention provides an automatic identification method for green belts based on a building general plan positioning map, which solves the problem that it is difficult to accurately identify and extract various landscape element graphics of the green belt from the building general plan positioning map.
[0005] (II) Technical solution
[0006] Based on the above technical problems, the present invention provides a method for automatically identifying green belts based on a building general plan location map, comprising the following steps:
[0007] S1, respectively identifying and extracting parking spaces, building outlines, fire platforms, urban roads and community roads on the building master plan positioning map into corresponding sets;
[0008] S2. According to the set graphics of different types of vegetation, all vegetation are identified, and the graphics of all vegetation are replaced by a point coordinate respectively;
[0009] S3, manually identifying special shaped landscapes, retaining the contours of the special shaped landscapes, and removing the internal curves within the contours of the special shaped landscapes; the special shaped landscapes are irregular closed polygons that do not require internal material selection and design;
[0010] S4, identify the circular landscape;
[0011] S5. The layer where the special shaped landscape and the annular landscape are located is the landscape layer. The viewing road is identified in the landscape layer, and the remaining graphics in the landscape layer are complex shaped landscapes;
[0012] S6. Draw a line on the landscape layer as the boundary line of the green belt along a sideline of the nearest residential road surrounding the vegetation, special shapes, circular landscape, viewing road, or complex shapes, as well as the intersection line of a sideline of the residential road and the building outline;
[0013] S7, rendering all closed figures within the boundary line of the green belt into designated colors;
[0014] All the closed figures include the vegetation, special shaped landscapes, circular landscapes, viewing roads, complex shaped landscapes, and closed figures formed between the boundary line of the green belt and the vegetation, special shaped landscapes, circular landscapes, viewing roads, and complex shaped landscapes.
[0015] Furthermore, in step S1, the fire fighting platform identification method is as follows:
[0016] S1.1. Obtain all curves on the master plan and find rectangles on the same layer;
[0017] S1.2, determine whether there are two diagonal lines in the rectangle, if yes, proceed to step S1.3, otherwise, the rectangle is not a fire fighting platform, determine the next rectangle;
[0018] S1.3, determine whether the diagonal line passes through the character string, if so, proceed to step S1.4; otherwise, the rectangle is not a fire fighting platform, return to step S1.2, and determine the next rectangle;
[0019] S1.4, determine whether the character string contains specific characters, if so, the character is a fire text mark, and the rectangle is a fire platform; otherwise, the character is not a fire text mark, and the rectangle is not a fire platform, return to step S1.2, and determine the next rectangle;
[0020] S1.5. Extract the curve on the layer where the fire fighting platform is located to obtain all the fire fighting platforms.
[0021] Further, the step S4 includes:
[0022] S4.1. Find the first closed figure;
[0023] S4.2, searching for the largest second closed figure in the first closed figure;
[0024] S4.3, determining whether the curves forming the second closed figure are parallel to the curves forming the first closed figure, if so, proceeding to step S4.4, otherwise the first closed figure and the second closed figure are not annular landscapes;
[0025] S4.4. Determine whether there is a curve between each curve forming the second closed figure and each curve forming the first closed figure. If so, the first closed figure and the second closed figure are not an annular landscape. Otherwise, the first closed figure and the second closed figure form an annular landscape.
[0026] Furthermore, the method for finding the first closed figure and the second closed figure is as follows:
[0027] S4.1.1. Obtain unidentified curves within the search range and sort them from longest to shortest;
[0028] S4.1.2. Take the longest curve as curve 1, find curve 2 connected to curve 1 on the same layer, and the endpoint B of curve 1 overlaps with the endpoint A of curve 2, ..., find curve i connected to curve i-1 on the same layer, and the endpoint B of curve i-1 overlaps with the endpoint A of curve i, ..., until no new curve connected to curve n is found;
[0029] S4.1.3, determine whether the endpoint B of curve n overlaps with the endpoint A of curve 1. If so, curve 1 to curve n form a closed figure, and the curve forming the closed figure is marked as "identified", and the process proceeds to step S4.1.4; if not, curve 1 to curve n do not form a closed figure, and are marked as "identified", and the process proceeds to step S4.1.4;
[0030] S4.1.4. Determine whether there are any unidentified curves. If so, return to step S4.1.2. Otherwise, end the search for closed figures.
[0031] Furthermore, in step S5, the method for identifying the viewing road in the landscape layer includes:
[0032] S5.1. In the landscape layer, find two parallel curves with a length greater than or equal to 10 m, classify them into the "viewing road curve set", and mark them as "unidentified";
[0033] S5.2. Take the two longest parallel curves that are “unidentified” in the “viewing road curve set” as a set of parallel lines;
[0034] S5.3, extending along the set of parallel lines to a closed position, the set of parallel lines and the curves extending therefrom are all scenic roads, marked as "identified"; determining whether the curves connected to the closed position and the set of parallel lines are two parallel curves, if so, proceeding to step S5.4, otherwise, proceeding to step S5.5;
[0035] S5.4, determine whether one end of the two parallel curves connected to the group of parallel lines at the closed position is connected to the community road. If so, make the two parallel curves a group of parallel lines and return to step S5.3; otherwise, go to step S5.5;
[0036] S5.5. Determine whether there are two "unidentified" parallel curves in the "viewing road curve set". If so, return to step S5.2. Otherwise, the viewing road has been identified.
[0037] Furthermore, in step S5, both the outer contour lines and the inner curves of the complex landscape are retained.
[0038] The present invention also discloses an automatic identification system for green belts based on a building general plan location map, comprising:
[0039] at least one processor; and at least one memory in communication with the processor, wherein:
[0040] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the automatic identification method of green belts based on the building general plan positioning map.
[0041] The present invention also discloses a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the automatic identification method of green belts based on the building general plan positioning map.
[0042] (III) Beneficial effects
[0043] The above technical solution of the present invention has the following advantages:
[0044] (1) The present invention identifies and extracts the graphic features of each landscape element on the building master plan location map from easy to difficult: first, vegetation is identified based on the common graphic features of vegetation; special shaped landscapes are manually identified; circular landscapes are identified based on the circular features of circular landscapes; then, more difficult viewing roads are identified, at least one viewing road is identified based on two parallel curves with a length greater than or equal to 10 meters, and each viewing road is identified based on the features that some viewing roads are connected to each other and that some viewing roads have one end connected to a community road; a complex shaped landscape is obtained using the landscape layer elimination method; thereby, each closed graphic representing a landscape element in the green belt is sequentially and accurately, batch-wise, efficiently, and digitally identified;
[0045] (2) The present invention first identifies the closed figures of each landscape element in the green belt, and then completes the green belt boundary line according to the community roads and building outlines, forming a closed figure between the green belt boundary line and the vegetation, circular landscape, special landscape, viewing road, and complex landscape, so that the green belt is divided into a plurality of closed blocks, so as to facilitate rendering and shaping of each closed block separately, without omission, and improve the accuracy;
[0046] (3) The present invention facilitates the precise positioning of each landscape element in the green belt in an actual large digital scene by accurately identifying and rendering all closed figures within the boundary line of the green belt, and more intuitively displays the simple outline and overall layout of each landscape element in the green belt. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0048] Figure 1 It is a partial schematic diagram of the general building plan positioning diagram of an embodiment of the present invention;
[0049] Figure 2 It is a flow chart of a method for automatically identifying green belts based on a building general plan location diagram according to an embodiment of the present invention;
[0050] Figure 3 is a schematic diagram of vegetation after conversion according to an embodiment of the present invention;
[0051] Figure 4 A schematic diagram of a special shaped landscape manually identified according to an embodiment of the present invention;
[0052] Figure 5 A schematic diagram of an annular landscape extracted according to an embodiment of the present invention;
[0053] Figure 6 A schematic diagram of the relationship between a green belt and a community road where a green belt boundary line has not been determined according to an embodiment of the present invention;
[0054] Figure 7 A schematic diagram of a green belt for determining a green belt boundary line according to an embodiment of the present invention;
[0055] Figure 8 A schematic diagram of a rendered green belt according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0057] In order to realize the rapid, batch and digital modeling of the building general plan location map, it is necessary to identify and extract the plane figures of various building objects and model them separately. Figure 1 As shown, the architectural objects included therein are very rich, including buildings, parking spaces, fire platforms, roads, landscapes, etc., and according to CAD drawing rules, each architectural object is drawn on at least one layer. When a computer program is used to recognize drawings, each architectural object cannot be directly recognized, and only curves, characters, annotations, etc., and their attribute information can be recognized, and it is impossible to determine which layer is the layer corresponding to the architectural object to be recognized. Different architectural objects interfere with each other, which brings difficulty to the automatic recognition of architectural object graphics in the building general plan positioning map. Moreover, the present invention needs to identify and extract landscape green belts and shape them. Since the landscape green belts include landscape elements such as various vegetation, circular landscapes, viewing roads, and special landscapes, each landscape element needs to be planted with vegetation, laid with stones, etc. according to different situations, and rendered and shaped separately. Moreover, the landscape area is generally a semi-closed figure without obvious boundaries in the drawings. Therefore, it is difficult to identify different landscape elements in the landscape, divide different types of boundaries, and render and shape different elements separately. The present invention is an automatic recognition method for green belts based on a building general plan positioning map, such as Figure 2 As shown, the following steps are included:
[0058] S1, respectively identifying and extracting parking spaces, building outlines, fire platforms, urban roads and community roads on the building master plan positioning map into corresponding sets;
[0059] The method for identifying parking spaces on the building master plan location map may adopt the prior art with patent application number CN2021110587816, or other methods for identifying parking spaces; the method for identifying building outlines on the building master plan location map may adopt the prior art with patent application number CN2021110481277, or other methods for identifying building outlines; the method for identifying urban roads and community roads on the building master plan location map may adopt the prior art with patent application number CN2021111262065, or other methods for identifying roads; the fire fighting platform on the building master plan location map may be identified by the following method, or other methods for identifying fire fighting platforms may be used:
[0060] Since the fire fighting platform on the building general plan location map is a rectangular box with two diagonal lines on the same layer, the fire fighting platform is identified according to its graphic features and character features in the following steps:
[0061] S1.1. Obtain all curves on the master plan and find rectangles on the same layer;
[0062] S1.2, determine whether there are two diagonal lines in the rectangle, if yes, proceed to step S1.3, otherwise, the rectangle is not a fire fighting platform, determine the next rectangle;
[0063] S1.3, determine whether the diagonal line passes through the character string, if so, proceed to step S1.4; otherwise, the rectangle is not a fire fighting platform, return to step S1.2, and determine the next rectangle;
[0064] Since the flat rectangular shape of the fire climbing surface is relatively small, the text of the logo is not necessarily within the rectangular range. The text logo is generally marked from the inside of the rectangle and may exceed the rectangular range, but it will definitely be crossed by the diagonal line. Therefore, instead of looking for a string containing specific characters first, we first look for a rectangle with a diagonal line, and then judge the string that the diagonal line passes through.
[0065] S1.4, determine whether the character string contains specific characters, if so, the character is a fire text mark, and the rectangle is a fire platform; otherwise, the character is not a fire text mark, and the rectangle is not a fire platform, return to step S1.2, and determine the next rectangle;
[0066] The specific characters are "fire" characters or characters in the format of "number*number". Because the fire text label may be "fire climbing surface", "fire platform", a number in the format of "18*18", or "fire climbing surface 18*18", so as long as the character string meets one of the conditions of containing "fire" characters or characters in the format of "number*number", it can be identified as a fire text label, and the rectangle with a diagonal line passing through the character string is the plan view of the fire platform.
[0067] S1.5. Extract the curve on the layer where the fire fighting platform is located to obtain all the fire fighting platforms.
[0068] A fire fighting platform generally has only one layer. By identifying and extracting one fire fighting platform, all fire fighting platforms can be obtained based on the layer of the fire fighting platform.
[0069] At this point, the parking spaces, building outlines, fire platforms, urban roads and community roads in the building master plan positioning map have been identified and extracted respectively, and only the graphics elements of the various landscape elements of the green belt remain in the building master plan positioning map.
[0070] S2. According to the set graphics of different types of vegetation, all vegetation are identified, and the graphics of all vegetation are replaced by a point coordinate respectively;
[0071] Different types of vegetation are generally circles or triangles with different curves inside. Different types of vegetation can be identified according to the rules of setting graphics of different types of vegetation. For example, if the setting graphic is a vegetation with an × in the circle, first find the circle, and then find whether there are two intersecting diameters in the circle, so as to determine the vegetation represented by the setting graphic. In this way, according to the rules of the setting graphics of vegetation, vegetation represented by other setting graphics can be found; the extracted point coordinates representing vegetation are as follows Figure 3 As shown, each point coordinate representing vegetation has the type and height attributes of the vegetation for subsequent modeling.
[0072] S3, manually identifying the special shaped landscape, retaining the contour line of the special shaped landscape, and removing the internal curves within the contour line of the special shaped landscape;
[0073] The special landscape is as follows Figure 4 As shown, it is generally a large-scale landscape decoration, an irregular closed polygon, and no internal material selection design is required, so only the outline is retained and the internal curves are removed; because there is no graphic rule to follow for special-shaped landscapes, special-shaped landscapes are manually identified and cut out, and the number of special-shaped landscapes is small, which consumes less manpower and time;
[0074] S4, identify the circular landscape;
[0075] S4.1. Find the first closed figure;
[0076] S4.2, searching for the largest second closed figure in the first closed figure;
[0077] S4.3, determining whether the curves forming the second closed figure are nearly parallel to the curves forming the first closed figure, if so, proceeding to step S4.4, otherwise the first closed figure and the second closed figure are not annular landscapes;
[0078] S4.4, determining whether there is a curve between each curve forming the second closed figure and each curve forming the first closed figure, if so, the first closed figure and the second closed figure are not an annular landscape, otherwise, the first closed figure and the second closed figure form an annular landscape;
[0079] The method for finding the first closed figure and the second closed figure is as follows:
[0080] S4.1.1. Obtain unidentified curves within the search range and sort them from longest to shortest;
[0081] S4.1.2. Take the longest curve as curve 1, find curve 2 connected to curve 1 on the same layer, and the endpoint B of curve 1 overlaps with the endpoint A of curve 2, ..., find curve i connected to curve i-1 on the same layer, and the endpoint B of curve i-1 overlaps with the endpoint A of curve i, ..., until no new curve connected to curve n is found;
[0082] S4.1.3, determine whether the endpoint B of curve n overlaps with the endpoint A of curve 1. If so, curve 1 to curve n form a closed figure, and the curve forming the closed figure is marked as "identified", and the process proceeds to step S4.1.4; if not, curve 1 to curve n do not form a closed figure, and are marked as "identified", and the process proceeds to step S4.1.4;
[0083] S4.1.4. Determine whether there are any unidentified curves. If so, return to step S4.1.2. Otherwise, end the search for closed figures.
[0084] Whether the curves forming the second closed figure are nearly parallel to the curves forming the first closed figure is determined by the coordinates of the curves.
[0085] There are usually circular landscapes such as circular flower beds in green belts. The two curves that make up the circular shape are nearly parallel and there are no extra curves in the circular area. The circular area and the internal graphic area may have different arrangements such as planting flowers, planting grass, paving pebbles, and paving marble. Therefore, it is necessary to preserve the parallel outer and inner curves of the circular landscape, that is, the outer contour line and the inner curve; the graphics of the circular landscape are not limited to two circular circles or regular polygons, but can also be two irregular shapes. The extracted circular landscape is as follows: Figure 5 shown.
[0086] S5. The layer where the special shaped landscape and the annular landscape are located is the landscape layer. The viewing road is identified in the landscape layer, and the remaining graphics in the landscape layer are complex shaped landscapes;
[0087] Generally, vegetation is not in the landscape layer, while special landscapes, circular landscapes, viewing roads and complex landscapes are all in the landscape layer. Therefore, it is more accurate to determine the landscape layer through the identified special landscapes and circular landscapes, and to find the viewing roads in the landscape layer; and when the viewing roads in the landscape layer are also identified, the remaining layers in the landscape layer are complex landscapes.
[0088] Among them, the method of identifying the viewing road in the landscape layer is:
[0089] S5.1. In the landscape layer, find two parallel curves with a length greater than or equal to 10 m, classify them into the "viewing road curve set", and mark them as "unidentified";
[0090] Since the two side lines of the viewing road are parallel and must include a viewing road with a length greater than or equal to 10 meters, and in the landscape layer, special shaped landscapes and circular landscapes have been identified, and complex shaped landscapes generally do not have parallel lines greater than or equal to 10 meters in length, therefore, based on this feature, we first find parallel lines greater than or equal to 10 meters in the landscape layer, all of which are viewing roads.
[0091] S5.2. Take the two longest parallel curves that are “unidentified” in the “viewing road curve set” as a set of parallel lines;
[0092] S5.3, extending along the set of parallel lines to a closed position, the set of parallel lines and the curves extending therefrom are all scenic roads, marked as "identified"; determining whether the curves connected to the closed position and the set of parallel lines are two parallel curves, if so, proceeding to step S5.4, otherwise, proceeding to step S5.5;
[0093] However, there must be viewing roads with a length of less than 10 meters among the viewing roads. Therefore, based on the interconnected relationship between the viewing roads, other connected viewing roads are found by extending the parallel lines with a length greater than or equal to 10 meters. However, the two connected viewing roads may be separated by lines in the drawings due to reasons such as the different road materials used. In order not to miss this part of the viewing road, the two parallel curves connected at the closed part continue to be judged.
[0094] S5.4, determine whether one end of the two parallel curves connected to the group of parallel lines at the closed position is connected to the community road. If so, make the two parallel curves a group of parallel lines and return to step S5.3; otherwise, go to step S5.5;
[0095] Scenic roads and community roads are generally connected. If they are further judged as scenic roads based on this feature, the process returns to step S5.3 and extends to identify more scenic roads. This cycle is repeated until there are no connected scenic roads in the closed area. At this time, all the connected scenic roads that can be found based on a set of parallel lines with a length greater than or equal to 10 meters have been found and are all marked as "identified".
[0096] S5.5. Determine whether there are two "unidentified" parallel curves in the "viewing road curve set". If so, return to step S5.2. Otherwise, the viewing road has been identified.
[0097] Since there may be more than one viewing road with a length greater than or equal to 10 meters, the viewing roads connected to the previous viewing road with a length greater than or equal to 10 meters found through steps S5.3 to S5.4 may contain viewing roads with a length greater than or equal to 10 meters. Therefore, after excluding them through the "unrecognized" mark, new viewing roads with a length greater than or equal to 10 meters are taken to find the viewing roads connected to them, avoiding repeated searches and improving efficiency. This cycle is repeated until there are no "unrecognized" viewing roads with a length greater than or equal to 10 meters. The viewing roads finally identified and extracted are as follows: Figure 6 The above method has tried to identify the viewing roads as much as possible. Even if there may be omissions and they are regarded as special landscapes, the lines of the special landscapes will be retained and will not affect the overall rendering effect.
[0098] Complex shaped landscape is different from special shaped landscape. The external contour lines and internal curves of complex shaped landscape are retained because different internal areas of the complex shaped landscape may be designed with marble and flowers.
[0099] S6. Draw a line on the landscape layer as the boundary line of the green belt along a sideline of the nearest residential road surrounding the vegetation, special shapes, circular landscape, viewing road, or complex shapes, as well as the intersection line of a sideline of the residential road and the building outline;
[0100] Green belts are generally surrounded by community roads. Along the community roads that surround the vegetation, special shapes, circular landscapes, viewing roads, and complex shapes, take the nearest edge of the community road and draw a line on the landscape layer, such as Figure 6 As shown in Figure 1, one edge line of the road in the community is a non-closed curve. Figure 6 The upper left, upper right, lower left and lower right of the middle area cannot form a closed figure for rendering; one sideline of the community road is connected to the building, so a line is drawn on the landscape layer along the intersection of one sideline of the community road and the building to close the unclosed part of the boundary line of the green belt, such as Figure 7 As shown, Figure 7 The upper left, upper right, lower left and lower right all form closed figures, which are convenient for rendering in step S7.
[0101] S7, rendering all closed figures within the boundary line of the green belt into designated colors;
[0102] All closed figures within the boundary of the green belt include the vegetation, special landscapes, circular landscapes, viewing roads, complex landscapes, and closed figures formed between the boundary of the green belt and the vegetation, special landscapes, circular landscapes, viewing roads, and complex landscapes, such as Figure 8 As shown, the rendering color is determined according to the landscape elements, materials, and uses of the closed figure. Vegetation is converted into point coordinates. Special landscapes only retain the outer contour lines, and are rendered in only one color. However, circular landscapes and complex landscapes retain internal curves, and there may be different uses such as planting grass, flowers, paving pebbles, and marble inside. The viewing road may be divided into sections using different materials, such as pebbles, marble, etc. Therefore, the rendering colors of circular landscapes, viewing roads, and complex landscapes are not limited to one.
[0103] By rendering all the closed figures within the boundary of the green belt separately, the simple outline and overall layout of each landscape element in the green belt can be more intuitively displayed, which is also conducive to the precise positioning of each landscape element in the actual large digital scene.
[0104] This method can be used independently for the identification of green belts in the building master plan location map; it can also work in conjunction with the identification methods for other building objects in the building master plan location map. For example, it can be performed after the identification methods for parking spaces based on the building master plan location map, the identification methods for buildings based on the building master plan location map, and the identification methods for roads based on the building master plan location map. The relatively easier-to-identify parking spaces, building outlines, and roads are first identified. On the one hand, it is convenient to distinguish the types of other complex graphics in the scene, improve the accurate identification of each building object in the building master plan location map, and speed up the calculation speed. On the other hand, the boundary line of the green belt is obtained based on the identified building outlines and community road sidelines.
[0105] Finally, it should be noted that the above method can be converted into software program instructions, which can be implemented by using a system including a processor and a memory, or by computer instructions stored in a non-transitory computer-readable storage medium. The above integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above software functional unit is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0106] In summary, the above-mentioned method for automatically identifying green belts based on the building general plan positioning map has the following beneficial effects:
[0107] (1) The present invention identifies and extracts the graphic features of each landscape element on the building master plan location map from easy to difficult: first, vegetation is identified based on the common graphic features of vegetation; special shaped landscapes are manually identified; circular landscapes are identified based on the circular features of circular landscapes; then, more difficult viewing roads are identified, at least one viewing road is identified based on two parallel curves with a length greater than or equal to 10 meters, and each viewing road is identified based on the features that some viewing roads are connected to each other and that some viewing roads have one end connected to a community road; a complex shaped landscape is obtained using the landscape layer elimination method; thereby, each closed graphic representing a landscape element in the green belt is sequentially and accurately, batch-wise, efficiently, and digitally identified;
[0108] (2) The present invention first identifies the closed figures of each landscape element in the green belt, and then completes the green belt boundary line according to the community roads and building outlines, forming a closed figure between the green belt boundary line and the vegetation, circular landscape, special landscape, viewing road, and complex landscape, so that the green belt is divided into a plurality of closed blocks, so as to facilitate rendering and shaping of each closed block separately, without omission, and improve the accuracy;
[0109] (3) The present invention facilitates the precise positioning of each landscape element in the green belt in an actual large digital scene by accurately identifying and rendering all closed figures within the boundary line of the green belt, and more intuitively displays the simple outline and overall layout of each landscape element in the green belt.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations shall fall within the scope defined by the appended claims.
Claims
1. A method for automatically identifying green belts based on a building master plan location map, characterized in that: The following steps are involved: S1, respectively identifying and extracting parking spaces, building outlines, fire platforms, urban roads and community roads on the building master plan positioning map into corresponding sets; S2. According to the set graphics of different types of vegetation, all vegetation are identified, and the graphics of all vegetation are replaced by a point coordinate respectively; S3, manually identifying special shaped landscapes, retaining the contours of the special shaped landscapes, and removing the internal curves within the contours of the special shaped landscapes; the special shaped landscapes are irregular closed polygons that do not require internal material selection and design; S4, identify the circular landscape; S4.
1. Find the first closed figure; S4.2, searching for the largest second closed figure in the first closed figure; S4.3, determining whether the curves forming the second closed figure are parallel to the curves forming the first closed figure, if so, proceeding to step S4.4, otherwise the first closed figure and the second closed figure are not annular landscapes; S4.4, determining whether there is a curve between each curve forming the second closed figure and each curve forming the first closed figure, if so, the first closed figure and the second closed figure are not an annular landscape, otherwise, the first closed figure and the second closed figure form an annular landscape; S4.1.
1. Obtain unidentified curves within the search range and sort them from longest to shortest; S4.1.
2. Take the longest curve as curve 1, find curve 2 connected to curve 1 on the same layer, and the endpoint B of curve 1 overlaps with the endpoint A of curve 2, find curve i connected to curve i-1 on the same layer, and the endpoint B of curve i-1 overlaps with the endpoint A of curve i, until no new curve connected to curve n is found, 3≤i≤n; S4.1.3, determine whether the endpoint B of curve n overlaps with the endpoint A of curve 1. If so, curve 1 to curve n form a closed figure, and the curve forming the closed figure is marked as "identified", and the process proceeds to step S4.1.4; if not, curve 1 to curve n do not form a closed figure, and are marked as "identified", and the process proceeds to step S4.1.4; S4.1.4, determine whether there are any unidentified curves, if yes, return to step S4.1.2, otherwise, end the search for closed figures; S5. The layer where the special shaped landscape and the annular landscape are located is the landscape layer. The viewing road is identified in the landscape layer, and the remaining graphics in the landscape layer are complex shaped landscapes; S6. Draw a line on the landscape layer as the boundary line of the green belt along a sideline of the nearest community road surrounding the vegetation, special landscape, circular landscape, viewing road, or complex landscape, and the intersection line of a sideline of the community road and the building outline; S7, rendering all closed figures within the boundary line of the green belt into designated colors; All the closed figures include the vegetation, special shaped landscapes, circular landscapes, viewing roads, complex shaped landscapes, and closed figures formed between the boundary line of the green belt and the vegetation, special shaped landscapes, circular landscapes, viewing roads, and complex shaped landscapes.
2. The method for automatically identifying green belts based on a building master plan location map according to claim 1, characterized in that: In step S1, the fire fighting platform identification method is as follows: S1.
1. Obtain all curves on the master plan and find rectangles on the same layer; S1.2, determine whether there are two diagonal lines in the rectangle, if yes, proceed to step S1.3, otherwise, the rectangle is not a fire fighting platform, determine the next rectangle; S1.3, determine whether the diagonal line passes through the character string, if so, proceed to step S1.4; otherwise, the rectangle is not a fire fighting platform, return to step S1.2, and determine the next rectangle; S1.4, determine whether the character string contains specific characters, if so, the character is a fire text mark, and the rectangle is a fire platform; otherwise, the character is not a fire text mark, and the rectangle is not a fire platform, return to step S1.2, and determine the next rectangle; S1.
5. Extract the curve on the layer where the fire fighting platform is located to obtain all the fire fighting platforms.
3. The automatic identification method of green belts based on the building general plan positioning diagram according to claim 1 is characterized in that: In step S5, the method for identifying a viewing road in a landscape layer includes: S5.
1. In the landscape layer, find two parallel curves with a length greater than or equal to 10m, classify them into the "viewing road curve set", and mark them as "unidentified"; S5.
2. In the "viewing road curve set", take the two longest parallel curves that are "unidentified" as a set of parallel lines; S5.3, extending along the set of parallel lines to a closed position, the set of parallel lines and the curves extending therefrom are all scenic roads, marked as "identified"; determining whether the curves connected to the closed position and the set of parallel lines are two parallel curves, if so, proceeding to step S5.4, otherwise, proceeding to step S5.5; S5.4, determine whether one end of the two parallel curves connected to the group of parallel lines at the closed position is connected to the community road. If so, make the two parallel curves a group of parallel lines and return to step S5.3; otherwise, go to step S5.5; S5.
5. Determine whether there are two "unidentified" parallel curves in the "viewing road curve set". If so, return to step S5.
2. Otherwise, the viewing road has been identified.
4. The method for automatically identifying green belts based on a building master plan location map according to claim 1, characterized in that: In step S5, both the outer contour lines and the inner curves of the complex landscape are retained.
5. An automatic identification system for green belts based on a building master plan location map, characterized in that: include: at least one processor; and at least one memory in communication with the processor, wherein: The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the automatic identification method of green belts based on the building general plan positioning map as described in any one of claims 1 to 4.
6. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method for automatically identifying green belts based on a building general plan positioning map as described in any one of claims 1 to 4.
