Geographic space coordinate conversion method based on monomeric three-dimensional model and equipment medium
By introducing the geospatial coordinate conversion method into the single 3D model, and using the FBX format and the four-parameter transformation principle of surveying and mapping, the problem of low reuse rate of the 3D model between different coordinate systems is solved, and fast and accurate coordinate conversion of the 3D model is achieved. and multi-platform interactivity, reducing costs and increasing application value.
Patent Information
- Application Number
- CN202410837651.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
AI Technical Summary
The existing technology lacks a coordinate conversion method for single 3D models, resulting in a low reuse rate of 3D models between different coordinate systems. Field oblique photography and model reconstruction need to be performed again, resulting in high cost and time investment.
This paper proposes a geospatial coordinate conversion method based on a single three-dimensional model. By obtaining basic parameters and projection transformation parameters, and using the FBX format to maintain the geometric structure and texture information without losing it, the coordinate conversion of the three-dimensional model is realized. Combined with the four methods of surveying and mapping geographical information Parameter transformation principle enables fast and accurate coordinate transformation.
It saves the cost of coordinate system transformation of 3D models, enhances the data interactivity and editability of 3D models, enhances its application value in multi-coordinate system platforms, and realizes precise position projection of 3D model data and various urban units. Integrated synchronous editing.
Smart Images

Figure CN118762124A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional models, and in particular to a geographic space coordinate conversion method and device medium based on a monomeric three-dimensional model. Background Art
[0002] Coordinate conversion technology is usually used to process vector or raster data with geospatial coordinates, and is an important tool in the field of surveying and mapping and geographic information. With the rapid development of 3D technology, the demand for 3D data coordinate conversion has become more urgent.
[0003] Although there are coordinate conversion methods for tilted real-life 3D models (such as OSGB format) in the current market, most of them are limited to specific software environments. In fact, tilted real-life models are only a type of 3D model. For flexible and editable monomeric 3D models, there is still a lack of coordinate conversion methods. The coordinate conversion of monomeric 3D models involves complex point, line, and surface combinations.
[0004] Because the single 3D model lacks the concept of geographic space coordinate system, the current 3D software does not provide a special coordinate conversion tool. In the traditional method, when the 3D model is converted, there is no corresponding coordinate conversion method that can directly convert the coordinates. It is necessary to re-do the field oblique photography, real scene model reconstruction and single model reconstruction, that is, it is necessary to rely on the field real scene model reconstruction and single reconstruction, and the coordinate system is controlled at the data collection end. The process is cumbersome and requires a lot of cost, manpower and time.
[0005] In order to improve the reuse rate of three-dimensional models in multiple coordinate systems and reduce the cost of duplicate construction, there is an urgent need for a set of accurate and complete monomeric three-dimensional model coordinate conversion methods that are suitable for the editing and processing of original three-dimensional model format data. Summary of the invention
[0006] In view of this, the purpose of the present invention is to propose a geographic space coordinate conversion method based on a monomeric three-dimensional model, introduce the coordinate conversion method of surveying and mapping geographic information into the field of three-dimensional model technology without the concept of a coordinate system, enable digital twins and real-life three-dimensional applications, and realize the accurate conversion of the geographic space position projection coordinate system of the three-dimensional model, so as to avoid re-carrying out oblique photography and monomeric modeling to obtain different spatial projections of the same three-dimensional model, thereby saving production costs.
[0007] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0008] The present invention provides a method for geographic space coordinate conversion based on a monomeric three-dimensional model, comprising the following steps:
[0009] Step 1: obtaining a monomerized three-dimensional model, and inspecting and repairing the monomerized three-dimensional model;
[0010] Step 2: Obtain the basic parameters required to transform the current coordinate system in the geographic space;
[0011] Step 3, importing the basic parameters into software that supports corresponding transformation processing of the monomerized three-dimensional model, setting the basic parameters, projection transformation parameters and addition / subtraction of large number translation values required for coordinate transformation in the software according to the central meridian of the current coordinate system in the geographic space, the position of the monomerized three-dimensional model and the required position of the result three-dimensional model, and running the set software to complete the coordinate transformation and output the result three-dimensional model;
[0012] Step 4: Check and repair the three-dimensional model of the result.
[0013] Furthermore, in step 1, the monomerized three-dimensional model is inspected and repaired, specifically including:
[0014] Step 11, determining whether the format of the monomerized 3D model is FBX format, if not, proceeding to step 12; if yes, proceeding to step 13;
[0015] Step 12: while keeping the texture and geometric structure of the monomerized 3D model unchanged, convert the format of the monomerized 3D model into FBX format, and proceed to step 13;
[0016] Step 13, judging whether the monomerized three-dimensional model has missing faces, that is, each geometric face involved in the coordinate transformation needs to be assigned a texture map, if so, proceed to step 14; if not, proceed to step 15;
[0017] Step 14, assigning texture mapping to the leaking surface of the monomerized three-dimensional model, and proceeding to step 15;
[0018] Step 15, judging whether the transparent sticker of the monomerized three-dimensional model is not transparent, that is, the transparent sticker parameters and expressions of the monomerized three-dimensional model involved in the processing must be correct. If yes, proceed to step 16; if not, proceed to step 2;
[0019] Step 16: Repair the transparent surface of the monomerized three-dimensional model to obtain a monomerized three-dimensional model that is completely and correctly covered by the transparent surface, and then proceed to step 2.
[0020] Furthermore, the step 2 specifically includes:
[0021] Step 21, select the target coordinate system after the required conversion;
[0022] Step 22, determine whether the central meridian of the target coordinate system is consistent with the central meridian of the current coordinate system in the geographic space. If so, obtain the basic parameters required for coordinate conversion and proceed to step 3; if not, proceed to step 23;
[0023] Step 23, obtain the two-dimensional vector data coordinate pair in the current coordinate system before conversion and the target coordinate system after conversion, and calculate the basic parameters under the same central meridian but different reference ellipsoids within the control range, and go to step 3.
[0024] Furthermore, the basic parameters include rotation, scaling, lateral translation and longitudinal translation.
[0025] Furthermore, the two-dimensional vector data coordinate pairs include at least five pairs and are evenly distributed.
[0026] Furthermore, the step 3 specifically includes:
[0027] Step 31, importing the obtained basic parameters into software that supports rotation, scaling, translation and projection transformation of the monomerized three-dimensional model, and setting the basic parameters;
[0028] Step 32, determine whether the central meridian of the target coordinate system is consistent with the central meridian of the current coordinate system. If not, it is necessary to transform the central meridian of the current coordinate system before obtaining the target coordinate system, and proceed to step 33; if yes, proceed to step 34;
[0029] Step 33, after the basic parameters are set, add the projection transformation parameters for transforming the central meridian of the current coordinate system in the geographic space into a central meridian consistent with the target coordinate system, calculate the new projection coordinate system through the projection transformation, and enter step 34;
[0030] Step 34, importing the monomerized three-dimensional model to be transformed;
[0031] Step 35: determine whether the position of the current monomerized three-dimensional model is near the origin. If so, proceed to step 36; if not, proceed to step 37;
[0032] Step 36: before setting the basic parameters, add a large numerical translation value to obtain a monomeric three-dimensional model of the real coordinate position, and then proceed to step 37;
[0033] Step 37, determine whether the position of the three-dimensional model of the output product needs to be near the origin, if so, proceed to step 38, if not, proceed to step 39;
[0034] Step 38, add a large translation value to the end of the set basic parameters or projection transformation parameters to obtain a three-dimensional model of the result near the origin, and then go to step 39;
[0035] Step 39, run the set software, the software performs rotation, scaling, lateral translation, longitudinal translation, projection, plus / minus large number transformation according to the basic parameters, projection transformation parameters and plus / minus large number translation values, and then completes the coordinate conversion. The content of the transformation depends on the basic parameters, projection transformation parameters and plus / minus large number translation values set in different situations; after the coordinate conversion, the monomerized three-dimensional model in FBX format is output as the result three-dimensional model, and enter step 4.
[0036] Furthermore, in step 33, a new projection coordinate system is calculated by projection transformation, specifically:
[0037] The coordinates in the coordinate system based on different central meridians under the same reference ellipsoid are converted into another projection coordinate system based on different central meridians through Gauss's forward and inverse calculation formulas.
[0038] Furthermore, the step 4 specifically includes:
[0039] Step 41, judging whether the resultant three-dimensional model has missing faces or disordered textures, if so, proceeding to step 14; if not, proceeding to step 42;
[0040] Step 42, determining whether the perspective pasting of the resultant three-dimensional model is wrong, if so, proceeding to step 43; if not, proceeding to step 44;
[0041] Step 43, repairing the transparent surface of the resultant three-dimensional model, and proceeding to step 44;
[0042] Step 44: Obtain the final three-dimensional model of the target coordinate system, and the process ends.
[0043] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the geographic space coordinate conversion method based on the monomerized three-dimensional model as described above is implemented.
[0044] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for converting geographic space coordinates based on a monomerized three-dimensional model as described above is implemented.
[0045] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:
[0046] The present invention introduces the concept of coordinate system conversion in two-dimensional geographic space into the monomeric three-dimensional model space that lacks such a definition. By selecting the format of the monomeric three-dimensional model, the data format most suitable for three-dimensional geographic space processing is found: FBX. Under the premise of maintaining the geometric structure and texture information to the greatest extent, the four-parameter transformation principle of coordinate conversion in the surveying and mapping field (referring to the four parameters of rotation, scaling, horizontal translation and vertical translation) is used to achieve rapid coordinate conversion of three-dimensional model data, breaking the situation in which the traditional three-dimensional model conversion coordinate system relies solely on re-modeling, giving the monomeric three-dimensional model a more flexible data life, enhancing the interactivity and editability of the three-dimensional model data, and improving its application value in the multi-coordinate system platform. The advantages are as follows:
[0047] 1. Cost saving: The present invention introduces the concept of coordinate system conversion in two-dimensional geographic space into the monomeric three-dimensional model space that lacks such a definition, and uses the coordinate system in the two-dimensional geographic space corresponding to the spatial position of the built monomeric three-dimensional model as the current coordinate system, and uses the coordinate system to be implemented as the target coordinate system. The present invention can convert the current coordinate system of the built monomeric three-dimensional model into the target coordinate system through this coordinate conversion method by obtaining the four parameters of the coordinate system conversion and the target coordinate system, thereby realizing the precise transformation of the spatial position and obtaining the resultant three-dimensional model under the target coordinate system. If you want to transform into other new target coordinate systems, that is, you need to use the coordinate system of the three-dimensional model as the current coordinate system, obtain the corresponding four parameters according to the relationship between the current coordinate system and the new target coordinate system in the two-dimensional geographic space, and then combine the four parameters with the parameters of the new target coordinate system. By using this coordinate transformation method, you can directly transform the current coordinate system into the new target coordinate system without re-establishing the monomeric three-dimensional model; this can save the investment costs of re-performing field oblique photography, real scene model reconstruction and monomeric model reconstruction due to the coordinate system transformation of the monomeric three-dimensional model, such as manpower, time and money;
[0048] 2. Maintaining features: The present invention fully considers the geometric accuracy and texture features of the monomeric 3D model, adopts the FBX data format, and performs geospatial processing on the 3D data in a processing method that does not destroy the feature structure of the original data, thereby achieving lossless conversion of the results;
[0049] 3. Introduction of concepts: Traditional 3D model data only expresses relative positions (X, Y, Z) and does not have the concept of coordinate system. By adding large number translation steps before / after the four-parameter conversion, the effect of constraining the projection band of the target object is achieved, laying the foundation for the coordinate conversion of 3D model data. Introducing the surveying and mapping methods of 2D geographic space rotation, scaling, and translation into the geographic processing of 3D model data, building a 3D model coordinate conversion bridge, and realizing accurate coordinate conversion.
[0050] 4. Inspection and repair: Considering that the 3D model data contains not only geometric features but also rich texture features, in order to maintain the inheritance and continuation of such basic features of the 3D model, the 3D model data is inspected and repaired before and after the coordinate conversion process to ensure the acquisition of complete data results.
[0051] 5. Enhanced interaction: Traditional 3D models are difficult to implement geographic processing of such data due to their rich geometric structure and texture information. The present invention provides a new idea for 3D model data processing, which focuses on data repair and feature preservation before and after data processing, thereby enhancing the usability of 3D model data and its interactivity between multi-coordinate system platforms.
[0052] 6. Enhanced editing: The processing methods such as rotation, scaling, translation and projection transformation used in the coordinate transformation of the monomeric three-dimensional model data in the present invention undoubtedly open up a new editing idea for the geographic processing of three-dimensional model data, that is, performing the same type of operations on the data as a whole, thereby realizing the synchronous editing of multiple monomeric three-dimensional models of cities. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 It is an execution flow chart of a geographic space coordinate conversion method based on a monomeric three-dimensional model provided by an embodiment of the present invention.
[0055] Figure 2 It is a schematic diagram of an electronic device provided by an embodiment of the present invention.
[0056] Figure 3 It is a schematic diagram of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.
[0058] See also Figure 1A geographic space coordinate conversion method based on a monomerized three-dimensional model of the present invention comprises the following steps:
[0059] Step 1: obtaining a monomerized three-dimensional model, and inspecting and repairing the monomerized three-dimensional model;
[0060] In this embodiment, the step 1 of checking and repairing the monomerized three-dimensional model specifically includes:
[0061] Step 11, determine whether the format of the monomerized 3D model is FBX format, if not, proceed to step 12; if yes, proceed to step 13; FBX format is a file format suitable for describing and exchanging flexible objects in the production of 3D animations, with high flexibility, physical engine support, and import and export capabilities. The FBX format can store various types of 3D data, including static and dynamic 3D models, materials, textures, skeletal animation, physical simulation, lighting settings, and camera settings. The use of the FBX format fully considers the geometric accuracy and texture characteristics of the monomerized 3D model, and performs geospatial processing on the 3D data in a processing method that does not destroy the characteristic structure of the original data, thereby achieving lossless conversion of the results;
[0062] Step 12: while keeping the texture and geometric structure of the monomerized 3D model unchanged, convert the format of the monomerized 3D model into FBX format, and proceed to step 13;
[0063] Step 13, judging whether the monomerized three-dimensional model has missing faces, that is, each geometric face involved in the coordinate transformation needs to be assigned a texture map, if so, proceed to step 14; if not, proceed to step 15;
[0064] Step 14, assigning texture mapping to the missing surfaces of the monomerized three-dimensional model, and proceeding to step 15; checking and repairing the missing surfaces, so as to ensure that each geometric surface involved in the coordinate transformation is assigned with a texture mapping;
[0065] Step 15, judging whether the transparent sticker of the monomerized three-dimensional model is not transparent, that is, the transparent sticker parameters and expressions of the monomerized three-dimensional model involved in the processing must be correct. If yes, proceed to step 16; if not, proceed to step 2;
[0066] Step 16: Repair the transparent surface of the monomerized 3D model to obtain a monomerized 3D model with completely and correctly covered transparent surface, and then proceed to step 2. Checking and repairing the transparent surface can ensure that the transparent surface parameters and expressions of the monomerized 3D model involved in the processing are correct.
[0067] Step 2: Obtain the basic parameters required to transform the current coordinate system in the geographic space;
[0068] In this embodiment, step 2 specifically includes:
[0069] Step 21, select the target coordinate system after the required conversion;
[0070] Step 22, determine whether the central meridian (central meridian) of the target coordinate system is consistent with the current coordinate system in the geographic space. If so, obtain the basic parameters required for coordinate conversion (four parameters: rotation, scaling, horizontal translation and vertical translation) and enter step 3; if not, enter step 23; the purpose of this is: since there are generally four-parameter method and seven-parameter method for coordinate system conversion, the former has a low entry threshold and is easier to operate. Considering simplicity, intuitiveness and calculation efficiency, the four-parameter method is usually selected instead of the seven-parameter method. Since the use of the four-parameter method needs to consider whether the coordinate conversion process involves the replacement of the ellipsoid and the central meridian, it is necessary to determine whether the target coordinate system and the current coordinate system have the same ellipsoid parameters. The judgment of the ellipsoid parameters or central meridian of the current coordinate system and the target coordinate system is conducive to improving the accuracy of the four parameters (rotation, scaling, lateral translation and longitudinal translation) of the coordinate transformation. Only when the ellipsoid parameters are transformed under the same central meridian can the high-precision transformation be maintained; if the central meridians are different, Gaussian forward and inverse calculations must be performed first to obtain the same central meridian; if the ellipsoid parameters are the same, only Gaussian forward and inverse calculations are required without using the four-parameter method.)
[0071] Step 23, obtain the two-dimensional vector data coordinate pairs under the current coordinate system before conversion and the target coordinate system after conversion, the two-dimensional vector data coordinate pairs include at least five pairs, and are evenly distributed; and obtain the basic parameters under the same central meridian but different reference ellipsoids within the control range, and enter step 3. This step refers to the four-parameter method of coordinate transformation to solve the four parameters of "rotation, scaling, horizontal translation and vertical translation" based on the existing two-dimensional vector data coordinate pairs (current coordinates and target coordinates); at least five pairs of two-dimensional vector data coordinate pairs under the current coordinate system and the target coordinate system are required, and they are evenly distributed, so as to ensure that the calculated four parameters can control the coordinate conversion accuracy of the area constituted by the points used, and obtain the four parameters under the same central meridian but different reference ellipsoids within the control range.
[0072] In this embodiment, the basic parameters include rotation, scaling, lateral translation and longitudinal translation. By adding a large number of translation steps before / after the conversion of the four parameters (rotation, scaling, lateral translation and longitudinal translation), the effect of constraining the projection band of the target object is achieved, laying the foundation for the coordinate conversion of the three-dimensional model data. The surveying and mapping methods of two-dimensional geographic space rotation, scaling and translation are introduced into the geographic processing of three-dimensional model data, building a three-dimensional model coordinate conversion bridge and realizing accurate coordinate conversion.
[0073] Step 3, import the basic parameters into the software that supports the corresponding transformation processing of the monomerized three-dimensional model, and set the basic parameters, projection transformation parameters and plus / minus large translation values required for coordinate transformation in the software according to the central meridian of the current coordinate system in the geographic space, the position of the monomerized three-dimensional model and the required position of the result three-dimensional model, and run the set software to complete the coordinate transformation and output the result three-dimensional model; if the target coordinate system is inconsistent with the central meridian of the current coordinate system, there is a need for projection transformation, then the data is projected after rotation, scaling, lateral translation and longitudinal translation processing, so after the set rotation, scaling, lateral translation and longitudinal translation parameters, add the projection transformation parameters. If the monomerized three-dimensional model is near the origin, it is necessary to perform a large-number translation on the monomerized three-dimensional model before the rotation, scaling, lateral translation and longitudinal translation processing to obtain the real position. If the result three-dimensional model to be output needs to be near the origin of the coordinate system, in the case of large values, then add a small-number translation value after the projection transformation to obtain a position near the origin.
[0074] In this embodiment, step 3 specifically includes:
[0075] Step 31: Import the basic parameters obtained into software that supports the rotation, scaling, translation and projection transformation of the monomeric 3D model, and set the basic parameters; since the translation tool of the MAX software will cause the original data accuracy to be distorted, the MAX software cannot be used for processing. It is recommended to use FME software.
[0076] Step 32, determine whether the central meridian of the target coordinate system is consistent with that of the current coordinate system. If not, it is necessary to transform the central meridian of the current coordinate system before obtaining the target coordinate system, and enter step 33; if so, enter step 34; when using the four parameters of "rotation, scaling, lateral translation and longitudinal translation", first determine whether the coordinate conversion requires the transformation of the central meridian, that is, determine whether the central meridian of the target coordinate system needs to be replaced compared with the current coordinate system (because when the ellipsoid parameters of the target coordinate system and the current coordinate system are different but the central meridians are the same, only "rotation, scaling, lateral translation and longitudinal translation" processing is required; when the ellipsoid parameters of the two are different and the central meridians are also different, after performing "rotation, scaling, lateral translation and longitudinal translation" processing to obtain the same ellipsoid parameters, an additional "projection" processing is required to obtain the same central meridian).
[0077] Step 33, after the basic parameters are set, add the projection transformation parameters for transforming the central meridian of the current coordinate system in the geographic space into a central meridian consistent with the target coordinate system, calculate the new projection coordinate system through the projection transformation, and enter step 34;
[0078] The new projection coordinate system is calculated by projection transformation, specifically:
[0079] The coordinates in the coordinate system based on different central meridians under the same reference ellipsoid are converted into another projection coordinate system based on different central meridians through Gauss's forward and inverse calculation formulas.
[0080] Step 34, importing the monomerized three-dimensional model to be transformed;
[0081] Step 35, determine whether the position (X, Y, Z) of the current monomerized three-dimensional model is near the origin (0, 0, 0). The position near the origin is not fixed, and the corresponding range can be set according to the needs. For example, the range near the origin can be taken as the origin position ± 1mm; if so, go to step 36; if not, go to step 37; There are two spatial locations for storing monomerized three-dimensional model data, one is stored near the origin (0, 0, 0) (no large number), and the other is stored at the real position (with a large number, such as (420000+, 2880000+, 0)). In order to keep the monomerized three-dimensional model data from deformation, distortion, and scratches during storage and use, usually, the three-dimensional data at the real position will subtract the large numbers of the horizontal and vertical axes as a whole, such as the horizontal axis minus 420000, and the vertical axis minus 2880000. The corresponding large values can be set according to the needs to obtain monomerized three-dimensional model data that is easy to store near the origin and maintains the original structure. Therefore, it is necessary to determine whether the current position (X, Y, Z) of the 3D model is near the origin. If it is near the origin, a large number needs to be added before the coordinate conversion to return to the real position;
[0082] Step 36: before setting the basic parameters, add a large numerical translation value (add a large numerical value to the X and Y of the position (X, Y, Z) respectively, so that the entire position is translated), obtain a monomeric three-dimensional model of the real coordinate position, and enter step 37;
[0083] Step 37, determine whether the position of the 3D model of the output product needs to be near the origin. If so, proceed to step 38, if not, proceed to step 39; considering that the application requirements of the individual 3D model data are different, if it is directly stored in the library, it is recommended to store it near the origin (the calculated result needs to be subtracted from the large number); if it is directly used for data slicing and publishing, the calculated result needs to be at the real position (the calculated result does not need to be subtracted from the large number). Therefore, it is necessary to determine whether the position of the 3D model of the product needs to be near the origin;
[0084] Step 38, after the basic parameters or projection transformation parameters are set, add a large translation value (subtract a large value from the X and Y of the position (X, Y, Z) respectively, so that the entire position is translated), obtain the result 3D model near the origin, and enter step 39;
[0085] Step 39, run the set software, the software performs rotation, scaling, lateral translation, longitudinal translation, projection, plus / minus large number transformation according to the basic parameters, projection transformation parameters and plus / minus large number translation values, and then completes the coordinate conversion. The content of the transformation depends on the basic parameters, projection transformation parameters and plus / minus large number translation values set in different situations; after the coordinate conversion, the monomerized three-dimensional model in FBX format is output as the result three-dimensional model, and enter step 4.
[0086] For example:
[0087] Case 1: If the target coordinate system is consistent with the central meridian of the current coordinate system, the position of the current monomerized 3D model is near the origin, and the position of the output 3D model needs to be near the origin, then the conversion tool in the software is set in sequence: increasing the numerical translation value, rotation parameter, scaling parameter, horizontal translation parameter, vertical translation parameter and decreasing the numerical translation value. The current coordinate system performs the increasing numerical translation transformation, rotation transformation, scaling transformation, horizontal translation transformation, vertical translation transformation and decreasing numerical translation transformation in sequence according to the set parameters to obtain the target coordinate system;
[0088] Case 2: If the target coordinate system is consistent with the central meridian of the current coordinate system, the position of the current monomerized 3D model is near the origin, and the position of the output 3D model does not need to be near the origin, then the conversion tool in the software is set in sequence: increasing the numerical translation value, rotation parameter, scaling parameter, horizontal translation parameter and vertical translation parameter. The current coordinate system performs the numerical translation transformation, rotation transformation, scaling transformation, horizontal translation transformation and vertical translation transformation in sequence according to the set parameters to obtain the target coordinate system;
[0089] Case 3: If the target coordinate system is consistent with the central meridian of the current coordinate system, the position of the current monomerized 3D model is not near the origin, and the position of the output 3D model needs to be near the origin, then the following are set in sequence on the conversion tool in the software: rotation parameters, scaling parameters, lateral translation parameters, longitudinal translation parameters and subtractive translation values. The current coordinate system performs rotation transformation, scaling transformation, lateral translation transformation, longitudinal translation transformation and subtractive translation transformation in sequence according to the set parameters to obtain the target coordinate system;
[0090] Case 4: If the central meridian of the target coordinate system is inconsistent with that of the current coordinate system, the position of the current monomerized 3D model is near the origin, and the position of the output 3D model needs to be near the origin, then the conversion tool in the software is set in sequence: increasing the numerical translation value, rotation parameter, scaling parameter, lateral translation parameter, longitudinal translation parameter, projection parameter and decreasing the numerical translation value. The current coordinate system performs increasing the numerical translation transformation, rotation transformation, scaling transformation, lateral translation transformation, longitudinal translation transformation, projection transformation and decreasing the numerical translation transformation in sequence according to the set parameters to obtain the target coordinate system;
[0091] Case 5: If the target coordinate system is consistent with the central meridian of the current coordinate system, the position of the current monomerized 3D model is not near the origin, and the position of the output 3D model does not need to be near the origin, then the following parameters are set in the conversion tool in the software: rotation parameters, scaling parameters, horizontal translation parameters, and vertical translation parameters. The current coordinate system performs rotation transformation, scaling transformation, horizontal translation transformation, and vertical translation transformation in sequence according to the set parameters to obtain the target coordinate system.
[0092] Case 6: If the central meridian of the target coordinate system is inconsistent with that of the current coordinate system, the position of the current monomerized 3D model is near the origin, and the position of the output 3D model does not need to be near the origin, then the conversion tool in the software is set in sequence: increasing the numerical translation value, rotation parameter, scaling parameter, horizontal translation parameter, vertical translation parameter and projection parameter. The current coordinate system performs the numerical translation transformation, rotation transformation, scaling transformation, horizontal translation transformation, vertical translation transformation and projection transformation in sequence according to the set parameters to obtain the target coordinate system.
[0093] Case 7: If the central meridian of the target coordinate system is inconsistent with the current coordinate system, the position of the current monomerized 3D model is not near the origin, and the position of the output 3D model needs to be near the origin, then the following are set in sequence on the conversion tool in the software: rotation parameters, scaling parameters, lateral translation parameters, longitudinal translation parameters, projection parameters and subtractive translation values. The current coordinate system performs rotation transformation, scaling transformation, lateral translation transformation, longitudinal translation transformation, projection transformation and subtractive translation transformation in sequence according to the set parameters to obtain the target coordinate system;
[0094] Case 8: If the central meridian of the target coordinate system is inconsistent with that of the current coordinate system, the position of the current monomeric 3D model is not near the origin, and the position of the output 3D model does not need to be near the origin, then the following are set in sequence on the conversion tool in the software: rotation parameters, scaling parameters, lateral translation parameters, longitudinal translation parameters, and projection parameters. The current coordinate system performs rotation transformation, scaling transformation, lateral translation transformation, longitudinal translation transformation, and projection transformation in sequence according to the set parameters to obtain the target coordinate system.
[0095] The present invention can convert the current coordinate system of the built monomeric three-dimensional model into the target coordinate system through this coordinate conversion method as long as the four parameters and the target coordinate system are obtained; if the new target coordinate system is to be transformed, the corresponding four parameters are obtained according to the current coordinate system of the three-dimensional model, the four parameters are combined with the new target coordinate system, and the coordinate conversion method is used to directly convert the current coordinate system into the new target coordinate system without re-establishing the monomeric three-dimensional model; in this way, the investment costs such as manpower, time and money of re-performing field oblique photography, real-scene model reconstruction and monomeric model reconstruction due to the coordinate system transformation requirements of the monomeric three-dimensional model can be saved.
[0096] Step 4: Check and repair the three-dimensional model of the result. Considering that the three-dimensional model data contains not only geometric features but also rich texture features, in order to maintain the inheritance and continuation of such basic features of the three-dimensional model, the three-dimensional model data is checked and repaired before and after the coordinate conversion process to ensure the complete data results. Focusing on data repair and feature retention before and after data processing, the usability of the three-dimensional model data and its interactivity between multi-coordinate system platforms are enhanced.
[0097] In this embodiment, step 4 specifically includes:
[0098] Step 41, judging whether the resultant three-dimensional model has missing faces or disordered textures, if so, proceeding to step 14; if not, proceeding to step 42;
[0099] Step 42, determining whether the perspective pasting of the resultant three-dimensional model is wrong, if so, proceeding to step 43; if not, proceeding to step 44;
[0100] Step 43, repairing the transparent surface of the resultant three-dimensional model, and proceeding to step 44;
[0101] Step 44: Obtain the final three-dimensional model of the target coordinate system, and the process ends.
[0102] The present invention can give stronger vitality and broader application space to data in more types of monomeric three-dimensional model formats (such as "max, obj, fbx" and other formats), promote the development of three-dimensional technology, and inject new vitality into the fields of digital twins and real-life three-dimensional China.
[0103] The present invention can realize accurate geospatial coordinate conversion of large-area data at the model completion stage, greatly simplifying the reconstruction and reconstruction work caused by traditional limitations. This enables the originally isolated three-dimensional model to be flexibly applied in a variety of coordinate systems, retaining fine structure and information while enhancing interactivity and editability, improving its application value in the multi-coordinate system platform, and facilitating accurate spatial analysis and decision-making in the fields of cultural heritage protection, urban planning, architectural design, etc., further broadening the application field of three-dimensional model data and promoting the development of geospatial processing technology.
[0104] The present invention is an innovative geoprocessing technology for 3D model data in formats such as max, obj, and FBX. It combines the concept of coordinate transformation in surveying and mapping, and enhances the characteristic value of 3D model data by empowering 2D geographic spatial data. This method not only reduces the cost of data production and maintains data features, but also enhances interactivity and provides new ideas for multi-platform applications. In the fields of urban planning, architectural design, etc., it will play a wide range of values and promote technological progress.
[0105] like Figure 2 As shown, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for geographic space coordinate conversion based on a monomerized three-dimensional model when executing the program.
[0106] like Figure 3 As shown, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned geographic space coordinate conversion method based on a monomerized three-dimensional model is implemented.
[0107] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0109] The above descriptions are only some embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any equivalent device or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A geographic space coordinate conversion method based on a monomeric three-dimensional model, characterized in that: The steps include: Step 1: obtaining a monomerized three-dimensional model, and inspecting and repairing the monomerized three-dimensional model; Step 2: Obtain the basic parameters required to transform the current coordinate system in the geographic space; Step 3, importing the basic parameters into software that supports corresponding transformation processing of the monomerized three-dimensional model, setting the basic parameters, projection transformation parameters and addition / subtraction of large number translation values required for coordinate transformation in the software according to the central meridian of the current coordinate system in the geographic space, the position of the monomerized three-dimensional model and the required position of the result three-dimensional model, and running the set software to complete the coordinate transformation and output the result three-dimensional model; Step 4: Check and repair the three-dimensional model of the result.
2. The method for geographic space coordinate conversion based on a monomerized three-dimensional model as claimed in claim 1, characterized in that: In step 1, the monomerized three-dimensional model is inspected and repaired, which specifically includes: Step 11, determining whether the format of the monomerized 3D model is FBX format, if not, proceeding to step 12; if yes, proceeding to step 13; Step 12: while keeping the texture and geometric structure of the monomerized 3D model unchanged, convert the format of the monomerized 3D model into FBX format, and proceed to step 13; Step 13, judging whether the monomerized three-dimensional model has missing faces, that is, each geometric face involved in the coordinate transformation needs to be assigned a texture map, if so, proceed to step 14; if not, proceed to step 15; Step 14, assigning texture mapping to the leaking surface of the monomerized three-dimensional model, and proceeding to step 15; Step 15, judging whether the transparent sticker of the monomerized three-dimensional model is not transparent, that is, the transparent sticker parameters and expressions of the monomerized three-dimensional model involved in the processing must be correct. If yes, proceed to step 16; if not, proceed to step 2; Step 16: Repair the transparent surface of the monomerized three-dimensional model to obtain a monomerized three-dimensional model that is completely and correctly covered by the transparent surface, and then proceed to step 2.
3. The geographic space coordinate conversion method based on a monomerized three-dimensional model as claimed in claim 2, characterized in that: The step 2 specifically includes: Step 21, select the target coordinate system after the required conversion; Step 22, determine whether the central meridian of the target coordinate system is consistent with the central meridian of the current coordinate system in the geographic space. If so, obtain the basic parameters required for coordinate conversion and proceed to step 3; if not, proceed to step 23; Step 23, obtain the two-dimensional vector data coordinate pair in the current coordinate system before conversion and the target coordinate system after conversion, and calculate the basic parameters under the same central meridian but different reference ellipsoids within the control range, and go to step 3.
4. The method for geographic space coordinate conversion based on a monomerized three-dimensional model as claimed in claim 3, characterized in that: The basic parameters include rotation, scaling, lateral translation and longitudinal translation.
5. The geographic space coordinate conversion method based on a monomerized three-dimensional model as claimed in claim 3, characterized in that: The two-dimensional vector data coordinate pairs include at least five pairs and are evenly distributed.
6. The method for geographic space coordinate conversion based on a monomerized three-dimensional model as claimed in claim 4, characterized in that: The step 3 specifically includes: Step 31, importing the obtained basic parameters into software that supports rotation, scaling, translation and projection transformation of the monomerized three-dimensional model, and setting the basic parameters; Step 32, determine whether the central meridian of the target coordinate system is consistent with the central meridian of the current coordinate system. If not, it is necessary to transform the central meridian of the current coordinate system before obtaining the target coordinate system, and proceed to step 33; if yes, proceed to step 34; Step 33, after the basic parameters are set, add the projection transformation parameters for transforming the central meridian of the current coordinate system in the geographic space into a central meridian consistent with the target coordinate system, calculate the new projection coordinate system through the projection transformation, and enter step 34; Step 34, importing the monomerized three-dimensional model to be transformed; Step 35: determine whether the position of the current monomerized three-dimensional model is near the origin. If so, proceed to step 36; if not, proceed to step 37; Step 36: before setting the basic parameters, add a large numerical translation value to obtain a monomeric three-dimensional model of the real coordinate position, and then proceed to step 37; Step 37, determine whether the position of the three-dimensional model of the output product needs to be near the origin, if so, proceed to step 38, if not, proceed to step 39; Step 38, add a large translation value to the end of the set basic parameters or projection transformation parameters to obtain a three-dimensional model of the result near the origin, and then go to step 39; Step 39, run the set software, the software performs rotation, scaling, lateral translation, longitudinal translation, projection, plus / minus large number transformation according to the basic parameters, projection transformation parameters and plus / minus large number translation values, and then completes the coordinate conversion. The content of the transformation depends on the basic parameters, projection transformation parameters and plus / minus large number translation values set in different situations; after the coordinate conversion, the monomerized three-dimensional model in FBX format is output as the result three-dimensional model, and enter step 4.
7. The geographic space coordinate conversion method based on a monomerized three-dimensional model as claimed in claim 6, characterized in that: In step 33, a new projection coordinate system is calculated by projection transformation, specifically: The coordinates in the coordinate system based on different central meridians under the same reference ellipsoid are converted into another projection coordinate system based on different central meridians through Gauss's forward and inverse calculation formulas.
8. The geographic space coordinate conversion method based on a monomerized three-dimensional model as claimed in claim 6, characterized in that: The step 4 specifically includes: Step 41, judging whether the resultant three-dimensional model has missing faces or disordered textures, if so, proceeding to step 14; if not, proceeding to step 42; Step 42, determining whether the perspective pasting of the resultant three-dimensional model is wrong, if so, proceeding to step 43; if not, proceeding to step 44; Step 43, repairing the transparent surface of the resultant three-dimensional model, and proceeding to step 44; Step 44: Obtain the final three-dimensional model of the target coordinate system, and the process ends.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the geographic space coordinate conversion method based on the monomerized three-dimensional model as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for geographic space coordinate conversion based on a monomerized three-dimensional model as described in any one of claims 1 to 8 is implemented.
