Method and system for regularizing a building cluster
By obtaining the vector polygons of the building complex, determining the direction vectors, and identifying collinear and non-collinear contour edges, the problems of gaps and overlaps in the building complex are solved, the regularization of the building complex is achieved, and the topological relationship characteristics of adjacent contour edges are preserved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING INST OF SURVEYING & MAPPING SCI & TECH (CHONGQING MAP COMPILATION CENT)
- Filing Date
- 2023-05-25
- Publication Date
- 2026-05-29
AI Technical Summary
Existing technologies fail to effectively consider the relationships between building groups when dealing with clusters of buildings, leading to topological problems such as gaps and overlaps, and making it impossible to achieve regularized processing of building groups.
By obtaining the vector polygons of the building complex, determining the direction vectors, identifying collinear and non-collinear contour edges, determining the collinear equations and straight line equations respectively, solving the coordinates of each contour node of the regularized building complex, and preserving the topological relationship characteristics of adjacent contour edges.
The system achieves regularization of the building complex, avoiding gaps and overlaps, and maintaining the topological relationship characteristics of adjacent outline edges.
Smart Images

Figure CN116628812B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided design technology, specifically to a method and system for regularizing building complexes. Background Technology
[0002] For clusters of buildings, especially in urban communities, the buildings exhibit certain regular distribution characteristics. Errors can cause individual buildings or building groups to fail to meet the corresponding rules. To make the outline of the building group more reasonable, it is necessary to regularize the building group and strengthen its regular characteristics. Existing technologies mainly regularize individual buildings without considering the relationships between buildings in the building group. Moreover, processing each building separately can easily cause topological problems such as gaps and overlaps. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention proposes a method and system for regularizing building clusters. This method preserves the topological relationships between adjacent contour edges and avoids gaps and overlaps. The specific technical solution is as follows:
[0004] Firstly, a method for regularizing building clusters is provided, including:
[0005] Obtain the vector polygon corresponding to the building complex, and determine the direction vector of the building complex based on the vector polygon;
[0006] All collinear and non-collinear contour edges are identified by the direction vector of the building complex, and the collinear equation and the straight line equation are determined according to the collinear and non-collinear contour edges respectively.
[0007] The coordinates of each outline node of the regularized building complex are obtained by solving the collinearity equation and the straight line equation, and the regularized building complex polygon is determined based on the coordinates of each outline node.
[0008] In conjunction with the first aspect, in the first possible implementation of the first aspect, determining the direction vector of the building complex includes:
[0009] The starting points of each contour edge in the vector polygon are translated to the same point to obtain the reconstructed edges;
[0010] Group all recombined edges according to their corresponding azimuth angles;
[0011] Transform the recombined edges after grouping, so that all recombined edges corresponding to each group are transformed to the same direction, and calculate the grouping direction vector;
[0012] Based on the angular relationship between the grouped direction vectors, the grouped direction vectors are corrected accordingly to obtain the corrected direction vectors.
[0013] In conjunction with the first aspect, in the second possible implementation of the first aspect, identifying collinear contour edges includes:
[0014] Determine the azimuth angle of each direction vector;
[0015] Based on the azimuth angle, select contour edges that are in the same direction as the azimuth vector from other direction vectors, and calculate the midpoint value of each selected contour edge in the same direction.
[0016] The midpoint value of each selected contour edge is compared with the midpoint value corresponding to the direction vector, and the collinear contour edges are determined based on the comparison result.
[0017] In conjunction with the first aspect, in the third possible implementation of the first aspect, determining the collinearity equation based on the collinear profile edges includes:
[0018] Determine the starting and ending coordinates of each collinear contour edge;
[0019] The coordinates of the points traversed by the collinear equation are determined by the starting and ending coordinates of all collinear contour edges;
[0020] The collinear equation is determined based on the coordinates of the points through which the collinear equation passes.
[0021] In conjunction with the first aspect, in the fourth possible implementation of the first aspect, determining the equation of the straight line based on the non-collinear profile edges includes:
[0022] Determine the start and end coordinates of the current non-collinear contour edge, as well as the front angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous non-collinear contour edge, and the back angle between the current non-collinear contour edge and the direction vector of the next non-collinear contour edge;
[0023] Based on the starting point coordinates, ending point coordinates, front included angle, and back included angle of the current non-collinear contour edge, determine the coordinates of the points through which the line equation passes;
[0024] The equation of the line is determined by the coordinates of the points it passes through.
[0025] Secondly, a system for standardizing building complexes is provided, including:
[0026] The vector determination module is configured to obtain the vector polygons corresponding to the building complex and determine the direction vectors of the building complex based on the vector polygons.
[0027] The equation determination module is configured to identify all collinear and non-collinear contour edges through the direction vector of the building complex, and to determine the collinear equation and the straight line equation based on the collinear and non-collinear contour edges respectively.
[0028] The coordinate solving module is configured to solve for the coordinates of each outline node of the regularized building complex using the collinearity equation and the straight line equation, and to determine the regularized building complex polygon based on the coordinates of each outline node.
[0029] In conjunction with the second aspect, in a first possible implementation of the second aspect, the vector determination module includes:
[0030] The translation unit is configured to translate the starting point of each contour edge in the vector polygon to the same point to obtain reconstructed edges;
[0031] Grouping unit, configured to group all recombined edges according to the corresponding azimuth angle;
[0032] The transformation unit is configured to transform the recombined edges after grouping, transform all the recombined edges corresponding to each group to the same direction, and calculate the grouping direction vector;
[0033] The correction unit is configured to correct the grouped direction vectors according to the angular relationship between the grouped direction vectors, so as to obtain the corrected direction vectors.
[0034] In conjunction with the second aspect, in a second possible implementation of the second aspect, the equation determining module includes:
[0035] The azimuth angle determination unit is configured to determine the azimuth angle of each direction vector;
[0036] The midpoint value determination unit is configured to select contour edges that are in the same direction as the azimuth vector from other direction vectors based on the azimuth angle, and calculate the midpoint value of each selected contour edge in the same direction.
[0037] The comparison and determination unit is configured to compare the midpoint value of each selected contour edge with the midpoint value corresponding to the direction vector, and determine the collinear contour edges based on the comparison result.
[0038] In conjunction with the second aspect, in a third possible implementation of the second aspect, the equation determining module includes:
[0039] The coordinate determination unit is configured to determine the start and end coordinates of each collinear contour edge;
[0040] The point coordinate determination unit is configured to determine the coordinates of the points traversed by the collinear equation through the start and end coordinates of all collinear contour edges;
[0041] The collinearity equation determination unit is configured to determine the collinearity equation based on the coordinates of the points through which the collinearity equation passes.
[0042] In conjunction with the second aspect, in a fourth possible implementation of the second aspect, the equation determining module includes:
[0043] The parameter determination unit is configured to determine the starting coordinates and ending coordinates of the current non-collinear contour edge, as well as the front angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous non-collinear contour edge, and the back angle between the direction vector of the current non-collinear contour edge and the direction vector of the next non-collinear contour edge.
[0044] The point coordinate positioning unit is configured to determine the coordinates of the points through which the line equation passes based on the starting point coordinates, ending point coordinates, front included angle, and back included angle of the current non-collinear contour edge.
[0045] The line equation determination unit is configured to determine the line equation by the coordinates of the points through which the line equation passes.
[0046] Beneficial effects: By using the building cluster regularization method and system of the present invention, the direction vector of the building cluster can be determined by the vector polygon corresponding to the building cluster. Then, using the direction vector of the building cluster as a constraint, the collinear and non-collinear contour edges in the vector polygon of the building cluster are identified. The collinear equation and the straight line equation are determined respectively. Finally, the coordinates of each contour node after the building cluster is regularized are determined by the collinear equation and the straight line equation. While realizing the regularization of the building cluster, the topological relationship features of adjacent contour edges are preserved, and gaps and overlaps are avoided. Attached Figure Description
[0047] To more clearly illustrate the specific embodiments of the present invention, the accompanying drawings used in the specific embodiments will be briefly described below. In all the drawings, the elements or parts are not necessarily drawn to scale.
[0048] Figure 1 A flowchart of a method for regularizing building clusters according to an embodiment of the present invention;
[0049] Figure 2 A flowchart illustrating a method for determining the orientation vector of a building complex according to an embodiment of the present invention;
[0050] Figure 3 A flowchart of a method for identifying collinear contour edges provided in an embodiment of the present invention;
[0051] Figure 4 A flowchart of a method for determining collinearity equations according to an embodiment of the present invention;
[0052] Figure 5 This is a system principle block diagram of a building complex regularization system provided in an embodiment of the present invention;
[0053] Figure 6 This is a system principle block diagram of a vector determination module provided in an embodiment of the present invention;
[0054] Figure 7A system principle block diagram of an equation determination module provided in an embodiment of the present invention;
[0055] Figure 8 This is a schematic diagram of a building complex before regularization, provided in an embodiment of the present invention.
[0056] Figure 9 This is a schematic diagram of the original reconstructed edges of a building outline provided in an embodiment of the present invention;
[0057] Figure 10 This is a schematic diagram of the recombined edges after grouping, provided in an embodiment of the present invention;
[0058] Figure 11 A schematic diagram of the orientation vector of a building complex determined using the method provided by this invention;
[0059] Figure 12 This invention provides a comparison image of the building outline before and after regularization using the method of this invention. Detailed Implementation
[0060] The embodiments of the technical solution of the present invention will now be described in detail with reference to the accompanying drawings. These embodiments are merely illustrative of the technical solution of the present invention and are therefore intended to limit the scope of protection of the present invention.
[0061] like Figure 1 The flowchart shown illustrates a method for regularizing building clusters, which includes:
[0062] Step 1: Obtain the vector polygon corresponding to the building complex, and determine the direction vector of the building complex based on the vector polygon;
[0063] Step 2: Identify all collinear and non-collinear contour edges using the direction vector of the building complex, and determine the collinear equation and the straight line equation based on the collinear and non-collinear contour edges respectively;
[0064] Step 3: Solve for the coordinates of each outline node of the regularized building complex using the collinearity equation and the straight line equation, and determine the regularized building complex polygon based on the coordinates of each outline node.
[0065] Specifically, firstly, the vector polygons corresponding to the building complex can be obtained using existing methods. Then, the direction vectors of the building complex can be determined from the vector polygons. Next, collinear and non-collinear contour edges within the building complex can be identified using the direction vectors. Then, the collinearity equations are determined based on the various parameters corresponding to all collinear contour edges, and the line equations are determined based on the various parameters corresponding to each non-collinear contour edge. Finally, using the collinearity and line equations as control conditions, the coordinates of the regularized building complex contour nodes are solved to obtain the regularized building complex polygons.
[0066] The following will combine Figure 2 The specific steps for determining the direction vector of the building complex in step 1 are explained in detail.
[0067] In this embodiment, optionally, determining the direction vector of the building complex includes:
[0068] Step 1-1: Translate the starting points of each contour edge in the vector polygon to the same point to obtain the reconstructed edges;
[0069] Step 1-2: Group all recombined edges according to the corresponding azimuth angles;
[0070] Steps 1-3: Transform the recombined edges after grouping, transforming all recombined edges corresponding to each group to the same direction, and calculate the grouping direction vector;
[0071] Steps 1-4: Based on the angular relationship between the grouped direction vectors, correct the grouped direction vectors accordingly to obtain the corrected direction vectors.
[0072] Specifically, with Figure 8 Taking the outline of the building complex shown as an example, the building complex consists of 5 buildings, in which building 1, building 2, and building 4 are adjacent, building 2 and building 3 are arranged horizontally, building 4 and building 5 are arranged horizontally, building 2 and building 4 are arranged vertically, and building 3 and building 5 are arranged vertically.
[0073] When determining the direction vector of a building complex, firstly, the starting points of the edges of the building complex vector polygon outline are translated to the same point to obtain the reconstructed edges. The original reconstructed edges are as follows: Figure 9 As shown. Then, based on the azimuth angle of each recombined edge, recombined edges with approximately the same or opposite directions are grouped together. Figure 10 The recombined edges shown can be divided into two groups.
[0074] Next, the recombined edges after grouping are transformed to align all edges in the same direction. The original transformation result is as follows: Figure 4 As shown, the grouping direction vectors are calculated. Finally, based on the angular relationship between the grouping direction vectors, the existing right-angle correction method is used to correct the grouping direction vectors accordingly, obtaining the corrected direction vectors. For specific steps, please refer to the prior application "Method for Determining Building Direction Vectors and Its Regularization Method" (application number CN202110523335.1).
[0075] This embodiment yields two direction vectors, the final direction vector being as follows: Figure 11 As shown.
[0076] The following will combine Figure 3 The specific steps for identifying collinear contour edges in step 2 are explained in detail.
[0077] In this embodiment, optionally, identifying collinear contour edges in step 2 includes:
[0078] Step 2-1-1: Determine the azimuth angle of each direction vector;
[0079] Step 2-1-2: Based on the azimuth angle, select contour edges that are in the same direction as the azimuth vector from other direction vectors, and calculate the midpoint value of each selected contour edge in the same direction.
[0080] Step 2-1-3: Compare the midpoint value of each selected contour edge with the midpoint value corresponding to the direction vector, and determine the collinear contour edges based on the comparison result.
[0081] Specifically, first, we can start with any direction vector and determine the azimuth angle of that direction vector. Then, based on the azimuth angle, we can select contour edges that are in the same direction as that direction vector from all contour edges and calculate the midpoint value of each selected contour edge in the same direction.
[0082] Specifically, the process is as follows: First, the equation of the line corresponding to each contour edge in the same direction is determined using the coordinate parameters of each edge. Then, the equation y = kx + b is transformed into b = kx - y. Since k, x, and y are all known, the midpoint value b of each contour edge in the same direction can be easily obtained. Finally, the midpoint values of each contour edge in the same direction are compared, and a threshold α is set. In this embodiment, α = 0.5. If the b values of two contour edges in the same direction satisfy |b1 - b2| < α, then the two contour edges are collinear. This process is repeated to determine all collinear contour edges.
[0083] In step 2, as Figure 4 As shown, determining the collinearity equation based on the collinear profile edges includes:
[0084] Step 2-2-1: Determine the starting and ending coordinates of each collinear contour edge;
[0085] Step 2-2-2: Determine the coordinates of the points traversed by the collinear equation using the starting and ending coordinates of all collinear contour edges;
[0086] Step 2-2-3: Determine the collinear equation based on the coordinates of the points through which the collinear equation passes.
[0087] Specifically, suppose there are n collinear contour edges, each with a start and an end point. First, the coordinates of the start point of each collinear contour edge can be determined by the corresponding direction vector (x...). if ,y if The endpoint coordinates are (x it ,y it ).
[0088] Then, based on the start and end points of the n collinear contour edges, calculate the coordinates of the points traversed by the collinear equation:
[0089]
[0090]
[0091] Will and Substituting b = kx - y, we can obtain b and thus the collinear equations of the n contour edges.
[0092] The following section will provide a detailed explanation of the specific steps involved in determining the equation of the straight line based on the non-collinear contour edges in step 2, with reference to the figures.
[0093] In this embodiment, determining the equation of the straight line includes:
[0094] Step 2-3-1: Determine the starting and ending coordinates of the current non-collinear contour edge, as well as the front angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous non-collinear contour edge, and the back angle between the current non-collinear contour edge and the direction vector of the next non-collinear contour edge.
[0095] Step 2-3-2: Determine the coordinates of the points through which the line equation passes based on the starting point coordinates, ending point coordinates, front included angle, and back included angle of the current non-collinear contour edge;
[0096] Step 2-3-3: Determine the equation of the line by using the coordinates of the points it passes through.
[0097] Specifically, through collinear profile edge calculation, the profile edges of buildings 2, 3, and 4 all satisfy the corresponding collinearity equations, while building 1 has three edges that are not collinear with the edges of other buildings. Therefore, the straight line equations for the direction vector constraints can be obtained as follows:
[0098] The starting coordinates of the non-collinear contour edges are determined by the corresponding direction vectors as (x1, y1) and the ending coordinates as (x2, y2). The angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous contour edge of the building is α1, and the angle between the direction vector of the previous contour edge and the direction vector of the next contour edge is α2. The coordinates of the points through which the direction vector constraints pass are:
[0099]
[0100]
[0101] When α1 = α2, we have:
[0102]
[0103]
[0104] Substituting x and y into b = kx - y, we obtain b, thus getting the line equation. Repeating this process yields the equations for the remaining three sides. Through collinear profile edge calculations, the profile edges of buildings 2, 3, and 4 all satisfy the corresponding collinear equations. Building 1 has three edges that are not collinear with the edges of other buildings. Therefore, the line equations constrained by the direction vector can be obtained as follows:
[0105] The starting coordinates of the non-collinear contour edges are determined by the corresponding direction vectors as (x1, y1) and the ending coordinates as (x2, y2). The angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous contour edge of the building is α1, and the angle between the direction vector of the previous contour edge and the direction vector of the next contour edge is α2. The coordinates of the points through which the direction vector constraints pass are:
[0106]
[0107]
[0108] When α1 = α2, we have:
[0109]
[0110]
[0111] Substitute x and y into b = kx - y to find b, thus obtaining the equation of the line. Repeat this process to obtain the equations of the lines for the other three sides.
[0112] After determining the collinearity equations and the equations of the lines, for a contour node that satisfies only one collinearity condition (i.e., only one contour edge passes through the contour node), the projected coordinates of the contour node on the line equation can be obtained through the line equation. These projected coordinates can be used as the regularized contour node coordinates. For a contour node that is passed through by two contour edges, the coordinates of the intersection point of the collinearity equations corresponding to these two contour edges can be used as the regularized contour node coordinates.
[0113] In this embodiment, all contour nodes in the aforementioned building complex satisfy two straight line equations. Therefore, the coordinates of the intersection of the two straight line equations can be used as the regularized node coordinates. A comparison between the regularized and unregistered nodes is shown below. Figure 12 As shown. After regularization, building 1, building 2, and building 4 maintain their topological relationships, while the outlines of the remaining buildings maintain their collinearity while preserving their directional characteristics.
[0114] like Figure 5 The diagram shown is a system block diagram of a building complex regularization system, which includes:
[0115] The vector determination module is configured to obtain the vector polygons corresponding to the building complex and determine the direction vectors of the building complex based on the vector polygons.
[0116] The equation determination module is configured to identify all collinear and non-collinear contour edges through the direction vector of the building complex, and to determine the collinear equation and the straight line equation based on the collinear and non-collinear contour edges respectively.
[0117] The coordinate solving module is configured to solve for the coordinates of each outline node of the regularized building complex using the collinearity equation and the straight line equation, and to determine the regularized building complex polygon based on the coordinates of each outline node.
[0118] Specifically, the regularization system consists of a vector determination module, an equation determination module, and a coordinate solving module. The vector determination module can obtain the vector polygons corresponding to the building complex using existing methods, and then determine the direction vectors of the building complex from these vector polygons. The equation determination module can identify collinear and non-collinear contour edges within the building complex using the direction vectors, and determine the collinearity equations based on various parameters corresponding to all collinear contour edges, as well as the line equations based on various parameters corresponding to each non-collinear contour edge. The coordinate solving module can use the direction vectors and collinearity equations as control conditions to solve for the coordinates of the regularized building complex contour nodes, obtaining the regularized building complex polygons.
[0119] In this embodiment, optionally, such as Figure 6 As shown, the vector determination module includes:
[0120] The translation unit is configured to translate the starting point of each contour edge in the vector polygon to the same point to obtain reconstructed edges;
[0121] Grouping unit, configured to group all recombined edges according to the corresponding azimuth angle;
[0122] The transformation unit is configured to transform the recombined edges after grouping, transform all the recombined edges corresponding to each group to the same direction, and calculate the grouping direction vector;
[0123] The correction unit is configured to correct the grouped direction vectors according to the angular relationship between the grouped direction vectors, so as to obtain the corrected direction vectors.
[0124] In this embodiment, the vector determination module consists of a translation unit, a grouping unit, a transformation unit, and a correction unit. The translation unit can translate the starting points of the building complex vector polygon outline edges to the same point, obtaining recombined edges. The grouping unit can group the recombined edges according to their azimuth angles, grouping recombined edges with approximately the same or opposite directions together. The transformation unit can transform the grouped recombined edges, transforming all edges to the same direction and calculating the grouping direction vector. The correction unit can correct the grouping direction vectors according to the relationship between their angles, obtaining the corrected direction vectors.
[0125] In this embodiment, optionally, such as Figure 7 As shown, the equation determination module includes:
[0126] The azimuth angle determination unit is configured to determine the azimuth angle of each direction vector;
[0127] The midpoint value determination unit is configured to select contour edges that are in the same direction as the azimuth vector from other direction vectors based on the azimuth angle, and calculate the midpoint value of each selected contour edge in the same direction.
[0128] The comparison and determination unit is configured to compare the midpoint value of each selected contour edge with the midpoint value corresponding to the direction vector, and determine the collinear contour edges based on the comparison result.
[0129] Specifically, the equation determination module includes an azimuth angle determination unit, a midpoint value determination unit, and a comparison determination unit. The azimuth angle determination unit can determine the azimuth angle of each contour edge using the corresponding direction vector. The midpoint value determination unit can filter out contour edges in the same direction from all contour edges based on the azimuth angle and calculate the midpoint value of each filtered contour edge in the same direction. The comparison determination unit can compare the midpoint values of each contour edge in the same direction; if the difference between the midpoint values of two contour edges in the same direction is less than a set threshold, then the two contour edges are collinear contour edges.
[0130] In this embodiment, optionally, the equation determination module includes:
[0131] The coordinate determination unit is configured to determine the start and end coordinates of each collinear contour edge;
[0132] The point coordinate determination unit is configured to determine the coordinates of the points traversed by the collinear equation through the start and end coordinates of all collinear contour edges;
[0133] The collinearity equation determination unit is configured to determine the collinearity equation based on the coordinates of the points through which the collinearity equation passes.
[0134] Specifically, the equation determination module also includes a coordinate determination unit, a point coordinate determination unit, and a collinear equation determination unit. The coordinate determination unit can determine the starting coordinates (x, y, z) of each collinear contour edge based on the direction vector corresponding to that edge. if ,y if The endpoint coordinates are (x it ,y it The point coordinate determination unit can determine the starting coordinates of all collinear contour edges determined by the coordinate determination unit as (x...). if ,y if The endpoint coordinates are (x it ,y it Calculate the coordinates of the points through which the collinear equation passes:
[0135]
[0136]
[0137] The collinearity equation determines the element, which can then calculate the coordinates of the points. and Substituting b = kx - y, we can find b and obtain the equation for the collinearity.
[0138] In this embodiment, optionally, the equation determination module includes:
[0139] The parameter determination unit is configured to determine the starting coordinates and ending coordinates of the current non-collinear contour edge, as well as the front angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous non-collinear contour edge, and the back angle between the direction vector of the current non-collinear contour edge and the direction vector of the next non-collinear contour edge.
[0140] The point coordinate positioning unit is configured to determine the coordinates of the points through which the line equation passes based on the starting point coordinates, ending point coordinates, front included angle, and back included angle of the current non-collinear contour edge.
[0141] The line equation determination unit is configured to determine the line equation by the coordinates of the points through which the line equation passes.
[0142] Specifically, the equation determination module also includes a parameter determination unit, a point coordinate positioning unit, and a line equation determination unit. The parameter determination unit can determine the starting coordinates (x1, y1) and ending coordinates (x2, y2) of non-collinear contour edges within a building that are not collinear with other buildings, using corresponding direction vectors. It also determines the angle α1 between the direction vector of the current non-collinear contour edge and the direction vector of the building's previous contour edge, and the angle α2 between the direction vector of the building's next contour edge and the direction vector of the building's next contour edge.
[0143] The point coordinate positioning unit can determine the coordinates of the points through which the line equation passes based on the starting coordinates (x1, y1), the ending coordinates (x2, y2), and the included angles α1 and α2.
[0144]
[0145]
[0146] When α1 = α2, we have:
[0147]
[0148]
[0149] The unit for determining the equation of a straight line can substitute the calculated point coordinates x and y into b = kx - y to obtain b and thus the equation of the straight line.
[0150] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered within the scope of the claims and specification of the present invention.
Claims
1. A method for regularizing building complexes, characterized in that, include: Obtain the vector polygon corresponding to the building complex, and determine the direction vector of the building complex based on the vector polygon; All collinear and non-collinear contour edges are identified by the direction vector of the building complex, and the collinear equation and the straight line equation are determined according to the collinear and non-collinear contour edges respectively. The coordinates of each outline node of the regularized building complex are obtained by solving the collinearity equation and the straight line equation, and the regularized building complex polygon is determined based on the coordinates of each outline node.
2. The method for regularizing building complexes according to claim 1, characterized in that, Determining the orientation vector of the building complex includes: The starting points of each contour edge in the vector polygon are translated to the same point to obtain the reconstructed edges; Group all recombined edges according to their corresponding azimuth angles; Transform the recombined edges after grouping, so that all recombined edges corresponding to each group are transformed to the same direction, and calculate the grouping direction vector; Based on the angular relationship between the grouped direction vectors, the grouped direction vectors are corrected accordingly to obtain the corrected direction vectors.
3. The method for regularizing building complexes according to claim 1, characterized in that, Identifying collinear contour edges includes: Determine the azimuth angle of each direction vector; Based on the azimuth angle, select contour edges that are in the same direction as the azimuth vector from other direction vectors, and calculate the midpoint value of each selected contour edge in the same direction. The midpoint value of each selected contour edge is compared with the midpoint value corresponding to the direction vector, and the collinear contour edges are determined based on the comparison result.
4. The method for regularizing building complexes according to claim 1, characterized in that, Determining the collinearity equation based on collinear profile edges includes: Determine the starting and ending coordinates of each collinear contour edge; The coordinates of the points traversed by the collinear equation are determined by the starting and ending coordinates of all collinear contour edges; The collinear equation is determined based on the coordinates of the points through which the collinear equation passes.
5. The method for regularizing building complexes according to claim 1, characterized in that, Determining the equation of a straight line based on non-collinear profile edges includes: Determine the start and end coordinates of the current non-collinear contour edge, as well as the front angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous non-collinear contour edge, and the back angle between the current non-collinear contour edge and the direction vector of the next non-collinear contour edge; Based on the starting point coordinates, ending point coordinates, front included angle, and back included angle of the current non-collinear contour edge, determine the coordinates of the points through which the line equation passes; The equation of the line is determined by the coordinates of the points it passes through.
6. A system for standardizing building complexes, characterized in that, include: The vector determination module is configured to obtain the vector polygons corresponding to the building complex and determine the direction vectors of the building complex based on the vector polygons. The equation determination module is configured to identify all collinear and non-collinear contour edges through the direction vector of the building complex, and to determine the collinear equation and the straight line equation based on the collinear and non-collinear contour edges respectively. The coordinate solving module is configured to solve for the coordinates of each outline node of the regularized building complex using the collinearity equation and the straight line equation, and to determine the regularized building complex polygon based on the coordinates of each outline node.
7. The building complex regularization system according to claim 6, characterized in that, The vector determination module includes: The translation unit is configured to translate the starting point of each contour edge in the vector polygon to the same point to obtain reconstructed edges; Grouping unit, configured to group all recombined edges according to the corresponding azimuth angle; The transformation unit is configured to transform the recombined edges after grouping, transform all the recombined edges corresponding to each group to the same direction, and calculate the grouping direction vector; The correction unit is configured to correct the grouped direction vectors according to the angular relationship between the grouped direction vectors, so as to obtain the corrected direction vectors.
8. The building complex regularization system according to claim 6, characterized in that, The equation determination module includes: The azimuth angle determination unit is configured to determine the azimuth angle of each direction vector; The midpoint value determination unit is configured to select contour edges that are in the same direction as the azimuth vector from other direction vectors based on the azimuth angle, and calculate the midpoint value of each selected contour edge in the same direction. The comparison and determination unit is configured to compare the midpoint value of each selected contour edge with the midpoint value corresponding to the direction vector, and determine the collinear contour edges based on the comparison result.
9. The building complex regularization system according to claim 6, characterized in that, The equation determination module includes: The coordinate determination unit is configured to determine the start and end coordinates of each collinear contour edge; The point coordinate determination unit is configured to determine the coordinates of the points traversed by the collinear equation through the start and end coordinates of all collinear contour edges; The collinearity equation determination unit is configured to determine the collinearity equation based on the coordinates of the points through which the collinearity equation passes.
10. The building complex regularization system according to claim 6, characterized in that, The equation determination module includes: The parameter determination unit is configured to determine the starting coordinates and ending coordinates of the current non-collinear contour edge, as well as the front angle between the direction vector of the current non-collinear contour edge and the direction vector of the previous non-collinear contour edge, and the back angle between the direction vector of the current non-collinear contour edge and the direction vector of the next non-collinear contour edge. The point coordinate positioning unit is configured to determine the coordinates of the points through which the line equation passes based on the starting point coordinates, ending point coordinates, front included angle, and back included angle of the current non-collinear contour edge. The line equation determination unit is configured to determine the line equation by the coordinates of the points through which the line equation passes.