A method for automatic spatial matching of three-dimensional models for smart city planning

By calculating the bounding box of the 3D model and the red line range, the zoom ratio and rotation angle of the 3D model are automatically adjusted, and the model is rendered within the red line range, which solves the problem of tedious manual adjustments and improves the positioning accuracy and spatial consistency of the model. Efficient automatic spatial matching is achieved to meet large-scale data processing needs.

CN118365840BActive Publication Date: 2024-09-03GUANGDONG URBAN & RURAL PLANNING & DESIGN INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410790280.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-03
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

In the existing technology, three-dimensional models require manual adjustment of position, angle, and size in urban design, resulting in cumbersome operations, low efficiency, and high cost. Automatic spatial matching cannot be achieved, affecting the authenticity and credibility of the model, and it cannot adapt to the second-dimensional environment. The spatial scale and coordinate system of the three-dimensional integrated world map.

Method used

By calculating the bounding box of the 3D model and the bounding box of the red line range, the scaling ratio and rotation angle are automatically calculated, and the model is rendered within the red line range using the concept of red line range, eliminating the need to manually adjust the position, angle and size of the model. The design is based on The automatic matching algorithm of bounding box transformation performs position transformation and scale rotation.

Benefits of technology

It improves the positioning accuracy and spatial consistency of the model, saves time and labor costs, improves work efficiency and quality, enhances user experience and satisfaction, realizes batch processing and rapid alignment of large-scale data, and significantly improves data utilization and value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365840B
    Figure CN118365840B
Patent Text Reader

Abstract

Aiming at the problem that traditional tools and platforms are cumbersome to adjust three-dimensional manual modeling models and cannot be processed in batches, the present invention discloses a method for automatic spatial matching of three-dimensional models for smart city planning, which improves the efficiency of model import. The present invention introduces the concept of red line range, renders the three-dimensional model within the red line range, avoids the trouble of manually adjusting the model position, and solves the problem of inaccurate model positioning; at the same time, a series of automatic matching algorithms based on bounding box conversion are designed, including position matching, direction calibration, elevation correction, etc., which eliminates the steps of manually adjusting the model angle and size and reduces labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional model space matching, and more specifically, to an automatic space matching method for three-dimensional models of intelligent city planning. Background Art

[0002] Three-dimensionality is the basic characteristic of urban space. Urban design expresses the vision of the city's future space. In particular, urban design has three-dimensional characteristics of urban space, such as urban form, urban skyline, architectural form, and visual corridors between buildings. Therefore, there is a native demand for the three-dimensional expression of urban design results. The construction and application of digital platforms first depends on the degree of digitization of the object itself, and urban design results have long been presented in the form of drawings, which greatly restricts the transmission and organic connection of urban design with upper and lower planning and planning implementation management, and cannot give full play to its mutual complementation with related planning.

[0003] In order to integrate oblique photography, 3D modeling data, 2D spatial data, etc., and realize the superposition and intuitive display of urban design schemes and real scenes, based on 3D spatial computing capabilities, spatial measurement and skyline, sight line and other analysis as well as scheme quantitative statistics are realized. Introducing 3D data processing and analysis capabilities, technical innovation and upgrading in the subdivision of urban design, assisting scheme display and reporting, design adjustment, scheme comparison and selection, etc.

[0004] In the existing technology, no matter what tools are used to design and model 3D models, they are ultimately exported in common formats such as fbx (recommended), obj or dae. The data processing tools or solutions currently on the market mainly come from the following: Github open source plug-ins (such as Obj2Tiles) and tool sets launched by some businesses (such as cesiumlab).

[0005] Obj2Tiles is an open source command line tool for generating 3D Tiles. It requires manual placement of the top point (only the center point can be set) and the size, and the effect adjustment cannot be viewed in real time. The operation is cumbersome and the technical threshold is high.

[0006] CesiumLab is a mainstream geographic information basic data processing platform. Since the artificial model does not include geographic location information, you need to manually set the landing point, size and angle after importing the artificial model. At the same time, CesiumLab can only support the setting of the center point.

[0007] The above methods can only manually set the landing point, size, and angle of the artificial model (.obj) on the world map, which has the problems of high cost, low efficiency, and inability to be applied on a large scale. In addition, the methods cannot automatically adapt to the spatial scale and coordinate system of the two-dimensional and three-dimensional integrated world map, resulting in deviations in the position, angle, size, etc. of the model, affecting the authenticity and credibility of the model and making it prone to errors. Summary of the invention

[0008] The present invention provides a method for automatic spatial matching of three-dimensional models for intelligent city planning, which solves the technical problems in the prior art that tedious manual adjustment and optimization are required, which is time-consuming and labor-intensive.

[0009] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0010] The present invention provides a method for automatic spatial matching of a three-dimensional model for intelligent city planning, comprising the following steps:

[0011] Calculating a bounding box of the three-dimensional model, where the bounding box of the three-dimensional model is a minimum cube that completely includes the three-dimensional model;

[0012] Calculating a planar mapping of the three-dimensional model on a horizontal plane;

[0013] Determining the geometric center point of the planar mapping;

[0014] Get the coordinate position of the red line data;

[0015] Obtaining a red line range according to the coordinate position of the red line data;

[0016] Calculate the bounding box of the red line range, where the bounding box of the red line range is the smallest rectangle that completely includes the red line range on a horizontal plane;

[0017] Determine the center point of the bounding box of the red line range;

[0018] Calculating the scaling ratio and rotation angle of the three-dimensional model according to the bounding box of the three-dimensional model and the bounding box of the red line range;

[0019] The bottom of the three-dimensional model is moved to the horizontal plane, and the position of the three-dimensional model is transformed according to the geometric center point of the plane mapping and the center point of the bounding box of the red line range;

[0020] The three-dimensional model is scaled and rotated according to the scaling ratio and the rotation angle.

[0021] In the above technical means, by introducing the concept of red line range, the three-dimensional model is rendered within the red line range, avoiding the trouble of manually adjusting the model position and solving the problem of inaccurate model positioning; in addition, by calculating the bounding box, the steps of manually adjusting the model angle and size are eliminated, reducing labor costs.

[0022] Furthermore, the calculation of the bounding box of the three-dimensional model includes:

[0023] Read the vertex data of the three-dimensional model to obtain an n×3 matrix , where n is the number of vertices;

[0024] Calculate the mean of the vertex data to get a 1×3 matrix ;

[0025] Calculate the covariance matrix of the vertex data ;

[0026] Calculate the eigenvalues ​​and eigenvectors of the covariance matrix and obtain three eigenvalues ​​respectively: And the corresponding three eigenvectors ;

[0027] The eigenvalues ​​are sorted from large to small, and the corresponding eigenvectors are arranged in the same order to obtain three axis vectors of the bounding box of the three-dimensional model;

[0028] The vertex data is converted to a new coordinate system based on the eigenvector to obtain an n×3 matrix, which represents the vertex data of the three-dimensional model in the new coordinate system;

[0029] Calculating the minimum and maximum values ​​of the converted vertex data on each axis to obtain the positions of the six faces of the bounding box of the three-dimensional model;

[0030] The eight vertex coordinates of the bounding box of the three-dimensional model are converted back to the original coordinate system, that is, the bounding box of the three-dimensional model.

[0031] Furthermore, the plane mapping of the three-dimensional model on the horizontal plane is calculated, and the vertex coordinates of the plane mapping are expressed as:

[0032]

[0033] In the formula, is the bounding box of the three-dimensional model i The coordinates of the vertices, , It is the first i The coordinates of the vertices.

[0034] Further, determining the geometric center point of the plane mapping includes:

[0035]

[0036] In the formula, The coordinates of the geometric center point of the plane mapping.

[0037] Further, calculating the bounding box of the red line range includes:

[0038] Use principal component analysis to calculate the red line range bounding box:

[0039]

[0040] In the formula, are the coordinates of the center point of the red line bounding box, α2, β2, and γ2 represent the rotation angles around the X, Y, and Z axes, respectively, and L2, W2, and H2 represent the length, width, and height of the red line bounding box, respectively.

[0041] Further, calculating the scaling ratio of the three-dimensional model includes:

[0042]

[0043] In the formula, is the scaling factor, are the lengths of the bounding box of the three-dimensional model and the bounding box of the red line range, respectively. They are respectively the width of the bounding box of the 3D model and the width of the bounding box of the red line range.

[0044] Further, calculating the rotation angle of the three-dimensional model includes:

[0045]

[0046] The rotation angle required for rotating the long side of the bounding box of the three-dimensional model to be the same as the long side angle of the bounding box of the red line range.

[0047] Further, moving the bottom of the three-dimensional model to the horizontal plane includes:

[0048] Determine the coordinates of a reference point p at the bottom of the 3D model and the coordinates of the center point O2 of the red line range , calculate the height difference between the reference point p and the center point O2 on the z-axis:

[0049]

[0050] Apply the height difference to all vertices of the 3D model to move the bottom of the model to the horizontal plane:

[0051] .

[0052] Furthermore, the three-dimensional model is transformed in position, including:

[0053] Calculate the coordinate difference between the geometric center point of the plane mapping and the center point of the bounding box of the red line range:

[0054]

[0055]

[0056] Apply the coordinate difference to all vertices of the 3D model:

[0057]

[0058] .

[0059] Furthermore, scaling and rotating the three-dimensional model includes:

[0060]

[0061] in, is the original coordinate of the 3D model, is the coordinate after the three-dimensional model is transformed, is the scaling factor, is the rotation angle, is the center point of the plane projection, It is the center point of the red line range.

[0062] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0063] The present invention introduces the concept of red line range, renders the three-dimensional artificial model within the red line range, ensures the positioning accuracy and spatial consistency of the model, improves the efficiency of modeling model import, avoids the tedious process of manually adjusting the model position, angle and size, saves time and labor costs, improves work efficiency and quality, and enhances user experience and satisfaction; at the same time, the present invention also designs an automatic matching algorithm based on bounding box conversion, which can realize the rapid alignment and adaptation of three-dimensional artificial modeling models of different shapes and sizes with the red line range, realizes the function of batch processing, meets the needs of large-scale data, and improves the utilization rate and value of data. By designing an automatic matching algorithm based on bounding box conversion, the processing time is greatly reduced, the batch processing speed is improved, and the large-scale data processing capability is significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 A schematic diagram of a process flow of a method for automatic spatial matching of a three-dimensional model for smart city planning provided by an embodiment of the present invention;

[0065] Figure 2 A technical roadmap for the automatic spatial matching method of three-dimensional models for smart city planning provided by an embodiment of the present invention;

[0066] Figure 3 A schematic diagram of a three-dimensional model bounding box provided by an embodiment of the present invention;

[0067] Figure 4 A schematic diagram of a red line range bounding box provided in an embodiment of the present invention;

[0068] Figure 5 A schematic diagram of the principle of position conversion of a three-dimensional model provided by an embodiment of the present invention;

[0069] Figure 6 A schematic diagram comparing the processing time of data of different scales before and after optimization provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0070] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0071] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0072] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0073] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0074] Example 1

[0075] The embodiment of the present invention provides a method for automatic spatial matching of three-dimensional models for smart city planning, such as Figure 1 and Figure 2 As shown, the following steps are included:

[0076] Calculating a bounding box of the three-dimensional model, where the bounding box of the three-dimensional model is a minimum cube that completely includes the three-dimensional model;

[0077] Calculating a planar mapping of the three-dimensional model on a horizontal plane;

[0078] Determining the geometric center point of the planar mapping;

[0079] Get the coordinate position of the red line data;

[0080] Obtaining a red line range according to the coordinate position of the red line data;

[0081] Calculate the bounding box of the red line range, where the bounding box of the red line range is the smallest rectangle that completely includes the red line range on a horizontal plane;

[0082] Determine the center point of the bounding box of the red line range;

[0083] Calculating the scaling ratio and rotation angle of the three-dimensional model according to the bounding box of the three-dimensional model and the bounding box of the red line range;

[0084] The bottom of the three-dimensional model is moved to the horizontal plane, and the position of the three-dimensional model is transformed according to the geometric center point of the plane mapping and the center point of the bounding box of the red line range;

[0085] The three-dimensional model is scaled and rotated according to the scaling ratio and the rotation angle.

[0086] In view of the problem that traditional tools and platforms are cumbersome to adjust three-dimensional manual modeling models and cannot be processed in batches, the embodiment of the present invention proposes a method for automatically matching three-dimensional models with red line ranges on two-dimensional maps, thereby improving the efficiency of model import. The embodiment of the present invention introduces the concept of red line ranges, rendering the three-dimensional model within the red line range, avoiding the trouble of manually adjusting the model position. This import method solves the problem of inaccurate model positioning; in addition, the embodiment of the present invention also designs a series of automatic matching algorithms based on bounding box conversion, including position matching, direction calibration, elevation correction, etc., eliminating the steps of manually adjusting the model angle and size, and reducing labor costs.

[0087] Example 2

[0088] Based on Example 1, this example further provides the following contents:

[0089] The bounding box of a 3D model is the smallest cube that can completely contain the 3D model. Figure 3 As shown, the bounding box of the three-dimensional model can be used for collision detection, model transformation and other operations. The bounding box of the three-dimensional model is calculated using the principal component analysis (PCA) method. Specifically, the calculation of the bounding box of the three-dimensional model includes the following steps:

[0090] Read the vertex data of the three-dimensional model to obtain an n×3 matrix , where n is the number of vertices, and 3 corresponds to the x, y, and z coordinates respectively;

[0091] Calculate the mean of the vertex data to get a 1×3 matrix , represents the center point of the three-dimensional model;

[0092] Calculate the covariance matrix of the vertex data , Represents the transpose of the matrix. The covariance matrix represents the degree of change of the three-dimensional model in each direction. It is a symmetric matrix whose diagonal elements represent the variance on each coordinate axis and the non-diagonal elements represent the covariance between the coordinate axes.

[0093] Calculate the eigenvalues ​​and eigenvectors of the covariance matrix and obtain three eigenvalues ​​respectively: And the corresponding three eigenvectors , then it satisfies , respectively represent the degree and direction of the model’s changes in the three main directions;

[0094] The eigenvalues ​​are sorted from large to small, and the corresponding eigenvectors are arranged in the same order to obtain three axis vectors of the bounding box of the three-dimensional model;

[0095] Convert the vertex data to a new coordinate system based on the eigenvector to obtain an n×3 matrix , represents the vertex data of the 3D model in the new coordinate system, then ,in is a matrix consisting of eigenvectors;

[0096] Calculating the minimum and maximum values ​​of the converted vertex data on each axis to obtain the positions of the six faces of the bounding box of the three-dimensional model;

[0097] The eight vertex coordinates of the bounding box of the three-dimensional model are converted back to the original coordinate system. The bounding box of the three-dimensional model, assuming that these vertex coordinates are ,but .

[0098] The length, width, and height of the bounding box of the 3D model finally obtained are L, W, and H respectively. The center point of the bounding box of the 3D model is O. The rotation angles of the bounding box of the 3D model are α, β, and γ, which represent the rotation angles around the X, Y, and Z axes respectively. The vertex coordinates of the bounding box of the 3D model can be expressed by the following formula:

[0099]

[0100] in, is the coordinate of the center point of the bounding box of the 3D model, is the coordinate of the ith vertex, .

[0101] In a further embodiment, a planar mapping of the three-dimensional model on a horizontal plane is calculated, such as Figure 3 For the rectangle R1 in the plane, the vertex coordinates of the plane mapping are expressed as:

[0102]

[0103] In the formula, is the bounding box of the three-dimensional model i The coordinates of the vertices, , It is the first i The coordinates of the vertices.

[0104] In a further embodiment, determining the geometric center point of the planar mapping includes:

[0105]

[0106] In the formula, The coordinates of the geometric center point of the plane mapping.

[0107] In a further embodiment, by reading the input shp file storing information such as coordinate positions, the shp file is parsed to obtain a red line range shape S1, which can be represented by a polygon, and its vertex coordinates are , , where m is the number of vertices.

[0108] In a further embodiment, the center point of the red line range is determined:

[0109] Because the red line range is a two-dimensional vector superimposed on the earth's surface, in order to simplify the calculation, the plane where the red line range is located is set as the reference coordinate system, that is, Z2 is 0. The center point O2, its coordinates are ( ). This coordinate can be expressed by the following formula:

[0110]

[0111] in, is the coordinate of the jth vertex of the projected bounding box, .

[0112] In a further embodiment, the bounding box of the red line range is calculated, and the bounding box of the red line range is as follows: Figure 4 As shown, including:

[0113] Use principal component analysis to calculate the red line range bounding box:

[0114]

[0115] In the formula, are the coordinates of the center point of the red line bounding box, α2, β2, and γ2 represent the rotation angles around the X, Y, and Z axes, respectively, and L2, W2, and H2 represent the length, width, and height of the red line bounding box, respectively.

[0116] In a further embodiment, calculating the scaling ratio of the three-dimensional model includes:

[0117]

[0118] In the formula, is the scaling factor, are the lengths of the bounding box of the three-dimensional model and the bounding box of the red line range, respectively. They are respectively the width of the bounding box of the 3D model and the width of the bounding box of the red line range.

[0119] In a further embodiment, calculating the rotation angle of the three-dimensional model includes:

[0120]

[0121] The rotation angle required for rotating the long side of the bounding box of the three-dimensional model to be the same as the long side angle of the bounding box of the red line range.

[0122] In this embodiment, in the application of smart city planning, the scaling ratio S and the rotation angle It is affected by other additional factors, including:

[0123] •The orientation of the building, such as south or north, which affects the display of the front and back of the building.

[0124] •The orientation of the building's main entrance, such as east or west, which affects the display of the building's entrances and exits.

[0125] • The relationship of the building to other road network data, such as whether it is parallel or perpendicular to the main road or branch road, which will affect the determination of the building's location and orientation.

[0126] •The building's tile distance, such as whether it is close to or far from the edge or center of the map, which affects how the building's size and shape are determined.

[0127] •The way buildings are represented on Baidu Maps, such as using real-life or satellite images to obtain the characteristics of surrounding buildings, which affects the determination of the location and orientation of the building.

[0128] •The lighting conditions of the building, such as the duration of sunlight in the surrounding area, will affect the determination of the building's location.

[0129] In a further embodiment, moving the bottom of the three-dimensional model to the horizontal plane comprises:

[0130] Determine the coordinates of a reference point p at the bottom of the 3D model and the coordinates of the center point O2 of the red line range , calculate the height difference between the reference point p and the center point O2 on the z-axis:

[0131]

[0132] Apply the height difference to all vertices of the 3D model to move the bottom of the model to the horizontal plane:

[0133] .

[0134] In a further embodiment, performing position conversion on the three-dimensional model includes:

[0135] Calculate the coordinate difference between the geometric center point of the plane mapping and the center point of the bounding box of the red line range:

[0136]

[0137]

[0138] Apply the coordinate difference to all vertices of the 3D model:

[0139]

[0140] .

[0141] In a further embodiment, the three-dimensional model is scaled and rotated, such as Figure 5 Said, including:

[0142]

[0143] in, is the original coordinate of the 3D model, is the coordinate after the three-dimensional model is transformed, is the scaling factor, is the rotation angle, is the center point of the plane projection, It is the center point of the red line range.

[0144] Example 3

[0145] This embodiment provides a comparative example of the automatic spatial matching method of the three-dimensional model of the embodiment and embodiment 2 with obj2tiles and cesiumlab.

[0146] As shown in Table 1, the present invention introduces the concept of redline range and renders the 3D artificial model within the redline range, thereby ensuring the positioning accuracy and spatial consistency of the model, improving the authenticity and credibility of the model, and enhancing the user experience and satisfaction. By introducing the concept of redline range, the positioning accuracy of the model is improved by 3.79%, the spatial consistency is increased by 6.3%, the authenticity and credibility of the model are improved by 3.5%, and the user experience and satisfaction are improved by 22.13%.

[0147] Table 1

[0148]

[0149] The present invention improves the efficiency of model import by automatically matching the three-dimensional artificial model within the red line range defined in the two-dimensional map. This method can avoid the tedious process of manually adjusting the model position, angle and size, save time and labor costs, and improve work efficiency and quality. By adopting the automatic matching method, the model import efficiency is improved by 71%, 78.4% of time and labor costs are saved, and the work efficiency and quality are improved by 73.2%.

[0150] The present invention designs a series of automatic matching algorithms based on bounding box conversion, which can realize the rapid alignment and adaptation of 3D artificial modeling models of different shapes and sizes with the red line range, realize the function of batch processing, meet the needs of large-scale data, and improve the utilization and value of data. By designing an automatic matching algorithm based on bounding box conversion, the processing time is greatly reduced, the batch processing speed is increased, and the large-scale data processing capability is significantly improved. Figure 6 shown.

[0151] The same or similar reference numerals correspond to the same or similar components;

[0152] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;

[0153] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A method for automatic spatial matching of three-dimensional models for smart city planning, characterized in that: The following steps are involved: Calculating a bounding box of the three-dimensional model, where the bounding box of the three-dimensional model is a minimum cube that completely includes the three-dimensional model; Calculating a planar mapping of the three-dimensional model on a horizontal plane; Determining the geometric center point of the planar mapping; Get the coordinate position of the red line data; Obtaining a red line range according to the coordinate position of the red line data; Calculate the bounding box of the red line range, where the bounding box of the red line range is the smallest rectangle that completely includes the red line range on a horizontal plane; Determine the center point of the bounding box of the red line range; Calculating the scaling ratio and rotation angle of the three-dimensional model according to the bounding box of the three-dimensional model and the bounding box of the red line range; The bottom of the three-dimensional model is moved to the horizontal plane, and the position of the three-dimensional model is transformed according to the geometric center point of the plane mapping and the center point of the bounding box of the red line range; The three-dimensional model is scaled and rotated according to the scaling ratio and the rotation angle.

2. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1 is characterized in that: The calculating of the bounding box of the three-dimensional model comprises: Read the vertex data of the three-dimensional model to obtain an n×3 matrix , where n is the number of vertices; Calculate the mean of the vertex data to get a 1×3 matrix ; Calculate the covariance matrix of the vertex data ; Calculate the eigenvalues ​​and eigenvectors of the covariance matrix and obtain three eigenvalues ​​respectively: And the corresponding three eigenvectors ; The eigenvalues ​​are sorted from large to small, and the corresponding eigenvectors are arranged in the same order to obtain three axis vectors of the bounding box of the three-dimensional model; The vertex data is converted to a new coordinate system based on the eigenvector to obtain an n×3 matrix, which represents the vertex data of the three-dimensional model in the new coordinate system; Calculating the minimum and maximum values ​​of the converted vertex data on each axis to obtain the positions of the six faces of the bounding box of the three-dimensional model; The eight vertex coordinates of the bounding box of the three-dimensional model are converted back to the original coordinate system.

3. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: The plane mapping of the three-dimensional model on the horizontal plane is calculated, and the vertex coordinates of the plane mapping are expressed as: In the formula, is the bounding box of the three-dimensional model i The coordinates of the vertices, , It is the first i The coordinates of the vertices.

4. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Determining the geometric center point of the plane mapping includes: In the formula, The coordinates of the geometric center point of the plane mapping.

5. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Calculate the bounding box of the red line range, including: Use principal component analysis to calculate the red line range bounding box: In the formula, are the coordinates of the center point of the red line bounding box, α2, β2, and γ2 represent the rotation angles around the X, Y, and Z axes, respectively, and L2, W2, and H2 represent the length, width, and height of the red line bounding box, respectively.

6. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Calculating the scaling ratio of the three-dimensional model includes: In the formula, is the scaling factor, are the lengths of the bounding box of the three-dimensional model and the bounding box of the red line range, respectively. They are respectively the width of the bounding box of the 3D model and the width of the bounding box of the red line range.

7. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Calculating the rotation angle of the three-dimensional model includes: The rotation angle required for rotating the long side of the bounding box of the three-dimensional model to be the same as the long side angle of the bounding box of the red line range.

8. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Moving the bottom of the three-dimensional model to the horizontal plane comprises: Determine the coordinates of a reference point p at the bottom of the 3D model and the coordinates of the center point O2 of the red line range , calculate the height difference between the reference point p and the center point O2 on the z-axis: Apply the height difference to all vertices of the 3D model to move the bottom of the model to the horizontal plane: 。 9. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Performing position conversion on the three-dimensional model includes: Calculate the coordinate difference between the geometric center point of the plane mapping and the center point of the bounding box of the red line range: Apply the coordinate difference to all vertices of the 3D model: 。 10. The automatic spatial matching method of three-dimensional model for intelligent city planning according to claim 1, characterized in that: Scaling and rotating the three-dimensional model includes: in, is the original coordinate of the 3D model, is the coordinate after the three-dimensional model is transformed, is the scaling factor, is the rotation angle, are the coordinates of the geometric center point of the plane mapping, It is the center point of the red line range.