CN109961400A - A kind of posture setting method, device and its relevant device of three-dimensional municipal model - Google Patents

A kind of posture setting method, device and its relevant device of three-dimensional municipal model Download PDF

Info

Publication number
CN109961400A
CN109961400A CN201910271969.5A CN201910271969A CN109961400A CN 109961400 A CN109961400 A CN 109961400A CN 201910271969 A CN201910271969 A CN 201910271969A CN 109961400 A CN109961400 A CN 109961400A
Authority
CN
China
Prior art keywords
coordinate information
road
object module
model
road axis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910271969.5A
Other languages
Chinese (zh)
Inventor
李斌
俞蔚
黄磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Kelan Information Technology Co Ltd
Original Assignee
Zhejiang Kelan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Kelan Information Technology Co Ltd filed Critical Zhejiang Kelan Information Technology Co Ltd
Priority to CN201910271969.5A priority Critical patent/CN109961400A/en
Publication of CN109961400A publication Critical patent/CN109961400A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • G06T3/608Rotation of whole images or parts thereof by skew deformation, e.g. two-pass or three-pass rotation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application discloses a kind of posture setting methods of three-dimensional municipal model, including parse to received surveying and mapping data, obtain the coordinate information and attribute information of target urban operating mechanism;Received road axis data are parsed, road axis coordinate information is obtained;Object module is transferred in preset model library according to attribute information;Object module is arranged on heart line in the road according to coordinate information and road axis coordinate information;It is calculated according to coordinate information and road axis coordinate information, obtains the corresponding rotation angle of object module;Object module is rotated by rotating angle, completes posture setting;This method can effectively reduce the manual intervention of three-dimensional data, improve production efficiency, while improving the accuracy of municipal model attitude, guarantee work quality.Disclosed herein as well is posture setting device, equipment and the computer readable storage mediums of a kind of three-dimensional municipal model, all have above-mentioned beneficial effect.

Description

A kind of posture setting method, device and its relevant device of three-dimensional municipal model
Technical field
This application involves field of computer technology, in particular to a kind of posture setting method of three-dimensional municipal model also relates to And a kind of posture setting device, equipment and the computer readable storage medium of three-dimensional municipal model.
Background technique
In the construction of three-dimensional digital city, it is related to the three-dimensional reconstruction built to urban surface, wherein not only including building Object also includes the urban operating mechanism of road both sides, such as ammeter box, street lamp etc..However, urban operating mechanism is many kinds of, in mapping number According to position and the type that in the process, can only often measure single urban operating mechanism, available information is seldom.Therefore, in three-dimensional city It in production, needs to model personnel, 3D model be put on coordinate, specific workflow is as follows:
Firstly, being gone to match corresponding 3D model according to the type of urban operating mechanism, which needs to model personnel's basis one by one Surveying and mapping data searches corresponding model, for example, needing to match a 3D fire hydrant mould if a point is marked as fire hydrant Type;Further, after completing Model Matching, 3D model is manually put corresponding position and adjusts model attitude by dependence, i.e. the southeast The direction of northwest makes it closer to reality, for example, street lamp direction is and the perpendicular relationship of trend of road, electric power, traffic signals case Chamber door side be it is parallel with road, it is easy to repair.
As can be seen that since urban operating mechanism lacks raw measurement data, building process be completely dependent on manually put, Adjustment posture, however such urban operating mechanism enormous amount in city, handle these mini Mods and but need to take a significant amount of time, efficiency It is extremely inefficient.Meanwhile when workload to be processed is excessive, it will a large amount of energy of staff and patience are expended, so as to cause The situation that the link is simplified or omits in data production process causes the abundant degree of scene details to reduce, work quality It is linear to glide.
Therefore, the manual intervention of three-dimensional data how is effectively reduced, improves production efficiency, while improving municipal model attitude Accuracy, guarantee that work quality is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of posture setting method of three-dimensional municipal model, the posture of three-dimensional municipal administration model Setting method can effectively reduce the manual intervention of three-dimensional data, improve production efficiency, while improving the accurate of municipal model attitude Property, guarantee work quality;The another object of the application be to provide the posture setting device of three-dimensional municipal model a kind of, equipment and Computer readable storage medium, it may have above-mentioned beneficial effect.
In order to solve the above technical problems, this application provides a kind of posture setting method of three-dimensional municipal model, the side Method includes:
Received surveying and mapping data is parsed, the coordinate information and attribute information of target urban operating mechanism are obtained;
Received road axis data are parsed, road axis coordinate information is obtained;
Object module is transferred in preset model library according to the attribute information;
The heart in the road is arranged in the object module according to the coordinate information and the road axis coordinate information On line;
It is calculated according to the coordinate information and the road axis coordinate information, it is corresponding to obtain the object module Rotation angle;
The object module is rotated by the rotation angle, completes posture setting.
Preferably, described that received surveying and mapping data is parsed, obtain the coordinate information and attribute of target urban operating mechanism Information, comprising:
Library is parsed by GDAL to parse the surveying and mapping data, obtains the coordinate information and the attribute information.
Preferably, described that received road axis data are parsed, before obtaining road axis coordinate information, Further include:
The road axis is smoothed, standard road center line is obtained.
It is preferably, described that the road axis is smoothed, comprising:
The smoothing processing is carried out to the road axis by Bezier algorithm.
Preferably, when the quantity of the standard road center line exceeds 1, the method also includes:
According to the coordinate information, all standard road center lines are screened by minimum range rule, are obtained Obtain target road center line.
It is preferably, described that object module is transferred in preset model library according to the attribute information, comprising:
Object module filename is determined according to the attribute information;
It is retrieved in the preset model library according to the object module filename, obtains object module file;
The object module file is read, generates the object module in conjunction with corresponding file structure.
Preferably, described to be calculated according to the coordinate information and the road axis coordinate information, described in acquisition The corresponding rotation angle of object module, comprising:
Using the corresponding coordinate points of the coordinate information as starting point, hanging down for the starting point and the road axis is calculated Straight direction vector;
Using the corresponding coordinate points of the coordinate information as cartesian coordinate system origin, the vertical direction vector is calculated in institute The angle value that cartesian coordinate is fastened is stated, the angle value is denoted as the rotation angle.
In order to solve the above technical problems, present invention also provides a kind of postures of three-dimensional municipal model, and device is arranged, it is described Device includes:
First parsing module obtains the coordinate information of target urban operating mechanism for parsing to received surveying and mapping data And attribute information;
Second parsing module obtains road-center line coordinates letter for parsing to received road axis data Breath;
Model transfers module, for transferring object module in preset model library according to the attribute information;
Model setup module, for according to the coordinate information and the road axis coordinate information by the target mould Type setting is in the road on heart line;
Angle calculation module is rotated, based on carrying out according to the coordinate information and the road axis coordinate information It calculates, obtains the corresponding rotation angle of the object module;
Model correction module completes posture setting for rotating by the rotation angle to the object module.
In order to solve the above technical problems, present invention also provides a kind of postures of three-dimensional municipal model, and equipment is arranged, it is described The posture of three-dimensional municipal administration model is arranged equipment and includes:
Memory, for storing computer program;
Processor realizes the posture setting of the three-dimensional municipal model of any one of the above when for executing the computer program The step of method.
In order to solve the above technical problems, the computer can present invention also provides a kind of computer readable storage medium It reads to be stored with computer program on storage medium, the computer program realizes any one of the above three-dimensional when being executed by processor The step of posture setting method of municipal model.
A kind of posture setting method of three-dimensional municipal model provided herein, including received surveying and mapping data is carried out Parsing obtains the coordinate information and attribute information of target urban operating mechanism;Received road axis data are parsed, are obtained Road axis coordinate information;Object module is transferred in preset model library according to the attribute information;Believed according to the coordinate The object module is arranged on heart line in the road for breath and the road axis coordinate information;According to the coordinate information and The road axis coordinate information is calculated, and the corresponding rotation angle of the object module is obtained;Pass through the rotation angle Degree rotates the object module, completes posture setting.
As it can be seen that the posture setting method of the municipal model of three-dimensional provided herein, is replaced artificial by automation means Process is realized according to the types of models of surveying and mapping data automatic adaptation urban operating mechanism, model coordinate and self-optimizing model appearance State, the 1:1 for realizing surveying and mapping data to three-dimensional data are restored, are effectively increased the accuracy of municipal model attitude, further mention The high abundant degree of three-dimensional scenic details, ensure that work quality;Meanwhile these municipal administrations are handled by way of automation and are set The posture applied, effectively reduces the workload of manual intervention, significantly has compressed the modeling time, greatly improves modeling efficiency, Human resources are liberated.
Posture setting device, equipment and the computer-readable storage medium of a kind of three-dimensional municipal model provided herein Matter all has above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the posture setting method of three-dimensional municipal model provided herein;
Fig. 2 is the element structure figure in a kind of surveying and mapping data analytic method provided herein;
Fig. 3 is a kind of schematic diagram of original road axis provided herein;
Fig. 4 is the schematic diagram of road axis after a kind of smoothing processing provided herein;
Fig. 5 is a kind of road axis distribution map provided herein;
Fig. 6 is that the structural schematic diagram of device is arranged in a kind of posture of three-dimensional municipal model provided herein;
Fig. 7 is that the structural schematic diagram of equipment is arranged in a kind of posture of three-dimensional municipal model provided herein.
Specific embodiment
The core of the application is to provide a kind of posture setting method of three-dimensional municipal model, the posture of three-dimensional municipal administration model Setting method can effectively reduce the manual intervention of three-dimensional data, improve production efficiency, while improving the accurate of municipal model attitude Property, guarantee work quality;Another core of the application be to provide the posture setting device of three-dimensional municipal model a kind of, equipment and Computer readable storage medium, it may have above-mentioned beneficial effect.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of process signal of the posture setting method of three-dimensional municipal model provided herein Scheme, the posture setting method of three-dimensional municipal administration model may include:
S101: parsing received surveying and mapping data, obtains the coordinate information and attribute information of target urban operating mechanism;
In the building process of three-dimensional digital city, for urban operating mechanism, need for its corresponding model to be set to corresponding On urban road line, therefore, it is necessary first to the acquisition of urban operating mechanism surveying and mapping data and road axis data is realized, thus base The automation building of three-dimensional digital city is realized in these data.This step is the solution aimed to urban operating mechanism surveying and mapping data Analysis.
It is specifically, when receive about urban operating mechanism to be placed, i.e., right when the surveying and mapping data of above-mentioned target urban operating mechanism The surveying and mapping data carries out dissection process, obtains the coordinate information and attribute information of the target urban operating mechanism, wherein coordinate information is It needs to be placed in intersection for the location information at target urban operating mechanism place in city, such as target urban operating mechanism;Belong to Property information be target urban operating mechanism affiliated type information, such as target urban operating mechanism be street lamp or fire hydrant.
Preferably, above-mentioned that received surveying and mapping data is parsed, obtain the coordinate information and attribute of target urban operating mechanism Information may include: to parse library (Geospatial Data Abstraction Library, in X/MIT license by GDAL Open source raster spatial data transformation warehouse under agreement) surveying and mapping data is parsed, obtain coordinate information and attribute information.
For the resolving of surveying and mapping data, this application provides a kind of more concrete implementation modes, that is, are based on GDAL Library is parsed to realize.Specifically, firstly, the data format of surveying and mapping data be ESRI ShpFile format, pass through GDAL parse library pair Surveying and mapping data carries out objectification, formative element structure, with storing and resolving result.
Referring to FIG. 2, Fig. 2 is the element structure figure in a kind of surveying and mapping data analytic method provided herein, Plain structure combines from bottom to top.Wherein, 3D_Point represents a coordinate points;X indicates the seat of plane X-axis in cartesian coordinate system Mark, Y indicate that the coordinate of plane Y-axis in cartesian coordinate system, Z indicate elevation.Geometry is a geometric object, for representing Point, line, surface;GeometryType indicates that geometric type, i.e. one of point, line, surface, PointSet indicate to constitute the point of geometry Collection, for storing a series of 3D_Point.Feature represents an element, attribute information and geometry comprising an object Information;Attribute indicates attribute, can be text, encoded information etc., Geometry for describing the feature of corresponding element For the geometric description of element.
Data resolving based on GDAL parsing library is as follows: reading the coordinate data in surveying and mapping data, building Geometry structure, with clear geometric type, point or line in this way;The attribute data in surveying and mapping data is read, in conjunction with Geometry constructs Feature, and a Feature indicates the simple abstract of a urban operating mechanism, element structure is consequently formed, It is stored with the coordinate information and attribute information that can be used for carrying out the target urban operating mechanism of three-dimensionalreconstruction
S102: parsing received road axis data, obtains road axis coordinate information;
This step is the parsing aimed to road axis data.Specifically, road axis data be to The data information of road axis in city is constructed, road axis as sketch the contours along road-center position obtained Broken line can reflect out the trend and tortuous of road.Wherein, the quantity of road axis is not unique.Obtaining road Lu Zhizheng line number can parse it after, obtain the location information of coordinate information namely road axis.
For the resolving of road axis data, can equally be realized based on above-mentioned GDAL parsing library, to form road The corresponding Feature structure of center line, specific resolving is referring to a upper preferred embodiment, and the application is not herein superfluous It states.
It should be noted that above-mentioned S101 and S102 can be performed simultaneously, can also successively it execute in order, execution sequence is simultaneously The implementation of the technical program is not influenced.Certainly, to guarantee working efficiency, the application is by the way of being performed simultaneously, such as Fig. 1 institute Show.
S103: object module is transferred in preset model library according to attribute information;
After the attribute information for obtaining target urban operating mechanism, phase can be transferred in preset model library based on the attribute information The object module answered.Wherein, preset model library is the file locally for storage model, according to the type of urban operating mechanism With the prefabricated corresponding threedimensional model of parameter, wherein prestore the model of a large amount of urban operating mechanism, as 3D fire hydrant, 3D street lamp, 3D traffic signals case etc., and each model has preset initial angle, facilitates the calculating of subsequent rotation angle.
Preferably, above-mentioned that object module is transferred in preset model library according to attribute information, it may include: to be believed according to attribute It ceases and determines object module filename;It is retrieved in preset model library according to object module filename, obtains object module text Part;Object module file is read, generates object module in conjunction with corresponding file structure.
Method is transferred this application provides a kind of more specific object module, specifically, the model of urban operating mechanism It can be stored in the form of model file in preset model library, model file name can be carried out according to the type of urban operating mechanism Name.Model file name is the key value that document retrieval is carried out in preset model library as a result,.In the category for obtaining object module Property information after, can determine its corresponding filename according to the attribute information, and examined in model library based on file name Rope obtains corresponding object module file, which is read in memory, in conjunction with file structure, generates object module, It includes the parameters such as vertex, index, texture, deviant, scaling, the rotation of model.Wherein, for object module file Reading process can read and write plug-in unit based on the model in 3DVP6.0 and complete.
S104: object module is arranged on heart line in the road according to coordinate information and road axis coordinate information;
This step aims at object module pre-seting on heart line in the road, i.e., places object module in the road On heart line, for example, street lamp threedimensional model method is placed on both sides of the road, the threedimensional model of traffic lights is placed on road and is handed over Cross road mouth etc., coordinate information and road axis coordinate information of the process based on target urban operating mechanism are realized.
S105: being calculated according to coordinate information and road axis coordinate information, obtains the corresponding rotation of object module Angle;
The pose adjustment of object module can be based on rotation angle realization, this step aims at object module rotation angle Calculating, coordinate information and road axis coordinate information with specific reference to target urban operating mechanism are calculated.For it Calculation method, referring to any one in prior art, the application is not limited this.
Preferably, above-mentioned to be calculated according to coordinate information and road axis coordinate information, it is corresponding to obtain object module Rotation angle, may include: to calculate hanging down for starting point and road axis using the corresponding coordinate points of coordinate information as starting point Straight direction vector;Using the corresponding coordinate points of coordinate information as cartesian coordinate system origin, vertical direction vector is calculated in Descartes Angle value is denoted as the rotation angle by the angle value on coordinate system.
This application provides a kind of calculation method of more specific rotation angle, rotation angle follows right-handed coordinate system method Then, the calculating of rotation angle can be realized based on cartesian coordinate system.
S106: rotating object module by rotating angle, completes posture setting.
This step aims at pose adjustment of the object module in the road on heart line, specific to combine rotation angle to target Model is rotated, i.e., object module is written in rotation angle, to modify the original rotational value of object module and complete to protect It deposits, to guarantee placement more closer to reality of each three-dimensional municipal model in the road on heart line, such as street lamp threedimensional model face On the inside of to road, and it is parallel with road etc., the posture setting of three-dimensional municipal model is completed as a result,.
The posture setting method of the municipal model of three-dimensional provided herein, replaces artificial process by automation means, It realizes according to the types of models of surveying and mapping data automatic adaptation urban operating mechanism, model coordinate and self-optimizing model posture, it is real The 1:1 for having showed surveying and mapping data to three-dimensional data is restored, and is effectively increased the accuracy of municipal model attitude, is further improved three The abundant degree for tieing up scene details, ensure that work quality;Meanwhile the appearance of these urban operating mechanisms is handled by way of automation State, effectively reduces the workload of manual intervention, significantly has compressed the modeling time, greatly improves modeling efficiency, liberates Human resources.
It is above-mentioned to received road axis data as a kind of preferred embodiment on the basis of the various embodiments described above It is parsed, can also include: to be smoothed to road axis before obtaining road axis coordinate information, obtained Standard road center line.
This step aims at the pretreatment to road axis.Specifically, due to the geometry ratio of road axis Relatively simple, not smooth enough at dog-ear in the turning points such as cross or T font crossing, therefore, it is necessary to carry out at the dog-ear of line segment Density, smooth dog-ear, the road axis after smoothing processing more approaches the road situation original in turning point as a result,.Wherein, For the specific implementation of smoothing processing, can be used it is in the prior art any one, as dependent interpolation algorithm, data are fitted Method etc..
Preferably, above-mentioned that road axis is smoothed, it may include: by Bezier algorithm to road Center line is smoothed.
This application provides a kind of methods of more specific road axis smoothing processing, i.e., are calculated based on Bezier Method is realized.Bezier is the smooth curve drawing out of point coordinate according to any position, mentality of designing be according to Regular u takes a little in the moving process from 0 to 1 in the corresponding position of each control point line, and again to the point in adjacent two lines Secondary line repeats above procedure and makes no attachable two points.
Fig. 3 and Fig. 4 are please referred to, Fig. 3 is a kind of schematic diagram of original road axis provided herein, and Fig. 4 is this The schematic diagram of road axis after a kind of smoothing processing provided by application, by Bezier algorithm to two lines in Fig. 3 Dog-ear between section AB and BC is smoothed, and can be obtained camber line AC shown in Fig. 4.
As a kind of preferred embodiment, when the quantity of above-mentioned standard road axis exceeds 1, this method can also be wrapped It includes: according to coordinate information, all standard road center lines being screened by minimum range rule, obtain target road center Line.
Specifically, each coordinate points nearby may have a plurality of road axis in surveying and mapping data, to determine target municipal administration The corresponding target road center line of facility completes the posture setting of target urban operating mechanism, needs to sieve from multiple road axis The target road center line is selected, for the screening process, can be realized by minimum range rule.Minimum range rule is to calculate Point matches at a distance from line apart from nearest person's dotted line, carries out the calculating of subsequent rotation angle.
Specifically, referring to FIG. 5, Fig. 5 is a kind of road axis distribution map provided herein, point (Fig. 5 institute Show coordinate points) near there are three Roads, it is therefore desirable to determine which road axis is point need with into rotation angle meter It calculates.Line segment screening is carried out first, picks out the line segment positioned at point periphery, and centered on point, threshold value is radius, draws one Border circular areas forms buffer area;Further, intersect with the buffer area (i.e. collision detection) road axis will be recorded and It remains, as shown in figure 5, there is two road center line to intersect with buffer area.At this point, point and this two road can be calculated The linear distance of center line, wherein be target's center's line apart from nearest road axis, the subsequent meter for participating in rotation angle Calculation.Wherein, the specific value of above-mentioned threshold value is not unique, is set according to the actual situation by technical staff.
To solve the above problems, referring to FIG. 6, the posture that Fig. 6 is a kind of three-dimensional municipal model provided herein is set The structural schematic diagram of device is set, device is arranged in the posture of three-dimensional municipal administration model can include:
First parsing module 10 obtains the coordinate letter of target urban operating mechanism for parsing to received surveying and mapping data Breath and attribute information;
Second parsing module 20 obtains road-center line coordinates for parsing to received road axis data Information;
Model transfers module 30, for transferring object module in preset model library according to attribute information;
Model setup module 40, for object module to be arranged in road according to coordinate information and road axis coordinate information On Lu Zhizheng line;
Angle calculation module 50 is rotated, for being calculated according to coordinate information and road axis coordinate information, is obtained The corresponding rotation angle of object module;
Model correction module 60 completes posture setting for rotating by rotating angle to object module.
As a kind of preferred embodiment, above-mentioned first parsing module 10 can be specifically used for parsing library by GDAL to mapping number According to being parsed, coordinate information and attribute information are obtained.
As a kind of preferred embodiment, the posture setting device of three-dimensional municipal administration model may also include that
Road axis preprocessing module obtains standard road center line for being smoothed to road axis.
As a kind of preferred embodiment, above-mentioned preprocessing module can be specifically used for through Bezier algorithm in road Heart line is smoothed.
As a kind of preferred embodiment, the posture setting device of three-dimensional municipal administration model may also include that
Road axis screening module, for according to coordinate information, leading to when the quantity of standard road center line exceeds 1 It crosses minimum range rule to screen all standard road center lines, obtains target road center line.
As a kind of preferred embodiment, above-mentioned model transfers module 30 can include:
File determines submodule, for determining object module filename according to attribute information;
Document retrieval submodule obtains target for being retrieved in preset model library according to object module filename Model file;
Model generates submodule, for reading object module file, generates object module in conjunction with corresponding file structure.
As a kind of preferred embodiment, above-mentioned rotation angle calculation module 50 can include:
First computational submodule, for calculating in starting point and road using the corresponding coordinate points of coordinate information as starting point The vertical direction vector of heart line;
Second computational submodule, it is vertical for calculating using the corresponding coordinate points of coordinate information as cartesian coordinate system origin Angle value is denoted as rotation angle by the angle value that direction vector is fastened in cartesian coordinate.
Above method embodiment is please referred to for the introduction of device provided by the present application, this will not be repeated here by the application.
To solve the above problems, referring to FIG. 7, the posture that Fig. 7 is a kind of three-dimensional municipal model provided herein is set Standby structural schematic diagram is installed, equipment is arranged in the posture of three-dimensional municipal administration model can include:
Memory 1, for storing computer program;
Processor 2, realizes following steps when for executing computer program:
Received surveying and mapping data is parsed, the coordinate information and attribute information of target urban operating mechanism are obtained;To reception Road axis data parsed, obtain road axis coordinate information;It is adjusted in preset model library according to attribute information Take object module;Object module is arranged on heart line in the road according to coordinate information and road axis coordinate information;According to Coordinate information and road axis coordinate information are calculated, and the corresponding rotation angle of object module is obtained;By rotating angle Object module is rotated, posture setting is completed.
Above method embodiment is please referred to for the introduction of equipment provided by the present application, this will not be repeated here by the application.
To solve the above problems, present invention also provides a kind of computer readable storage medium, the computer-readable storage It is stored with computer program on medium, can be realized when computer program is executed by processor following rapid:
Received surveying and mapping data is parsed, the coordinate information and attribute information of target urban operating mechanism are obtained;To reception Road axis data parsed, obtain road axis coordinate information;It is adjusted in preset model library according to attribute information Take object module;Object module is arranged on heart line in the road according to coordinate information and road axis coordinate information;According to Coordinate information and road axis coordinate information are calculated, and the corresponding rotation angle of object module is obtained;By rotating angle Object module is rotated, posture setting is completed.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Above method embodiment is please referred to for the introduction of computer readable storage medium provided by the present application, the application exists This is not repeated them here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
It above can to posture setting method, device, equipment and the computer of the municipal model of three-dimensional provided herein Storage medium is read to be described in detail.Specific case used herein explains the principle and embodiment of the application It states, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this skill For the those of ordinary skill in art field, under the premise of not departing from the application principle, several change can also be carried out to the application Into and modification, these improvement and modification also fall into the protection scope element of the claim of this application.

Claims (10)

1. a kind of posture setting method of three-dimensional municipal model, which is characterized in that the described method includes:
Received surveying and mapping data is parsed, the coordinate information and attribute information of target urban operating mechanism are obtained;
Received road axis data are parsed, road axis coordinate information is obtained;
Object module is transferred in preset model library according to the attribute information;
The object module is arranged on heart line in the road according to the coordinate information and the road axis coordinate information;
It is calculated according to the coordinate information and the road axis coordinate information, obtains the corresponding rotation of the object module Gyration;
The object module is rotated by the rotation angle, completes posture setting.
2. the method as described in claim 1, which is characterized in that it is described that received surveying and mapping data is parsed, obtain target The coordinate information and attribute information of urban operating mechanism, comprising:
Library is parsed by GDAL to parse the surveying and mapping data, obtains the coordinate information and the attribute information.
3. the method as described in claim 1, which is characterized in that it is described that received road axis data are parsed, it obtains Before road-center line coordinates information, further includes:
The road axis is smoothed, standard road center line is obtained.
4. method as claimed in claim 3, which is characterized in that described to be smoothed to the road axis, comprising:
The smoothing processing is carried out to the road axis by Bezier algorithm.
5. method as claimed in claim 4, which is characterized in that when the quantity of the standard road center line exceeds 1, also wrap It includes:
According to the coordinate information, all standard road center lines are screened by minimum range rule, obtain mesh Mark road axis.
6. the method as described in claim 1, which is characterized in that described to be transferred in preset model library according to the attribute information Object module, comprising:
Object module filename is determined according to the attribute information;
It is retrieved in the preset model library according to the object module filename, obtains object module file;
The object module file is read, generates the object module in conjunction with corresponding file structure.
7. the method as described in claim 1 to 6 any one, which is characterized in that described according to the coordinate information and described Road axis coordinate information is calculated, and the corresponding rotation angle of the object module is obtained, comprising:
Using the corresponding coordinate points of the coordinate information as starting point, the Vertical Square of the starting point Yu the road axis is calculated To vector;
Using the corresponding coordinate points of the coordinate information as cartesian coordinate system origin, the vertical direction vector is calculated in the flute The angle value is denoted as the rotation angle by the angle value on karr coordinate system.
8. device is arranged in a kind of posture of three-dimensional municipal model, which is characterized in that described device includes:
First parsing module obtains the coordinate information and category of target urban operating mechanism for parsing to received surveying and mapping data Property information;
Second parsing module obtains road axis coordinate information for parsing to received road axis data;
Model transfers module, for transferring object module in preset model library according to the attribute information;
Model setup module, for being set the object module according to the coordinate information and the road axis coordinate information It sets on heart line in the road;
Rotation angle calculation module is obtained for being calculated according to the coordinate information and the road axis coordinate information Obtain the corresponding rotation angle of the object module;
Model correction module completes posture setting for rotating by the rotation angle to the object module.
9. equipment is arranged in a kind of posture of three-dimensional municipal model characterized by comprising
Memory, for storing computer program;
Processor realizes three-dimensional municipal mould as claimed in any one of claims 1 to 7 when for executing the computer program The step of posture setting method of type.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize three-dimensional municipal model as claimed in any one of claims 1 to 7 when being executed by processor Posture setting method the step of.
CN201910271969.5A 2019-04-04 2019-04-04 A kind of posture setting method, device and its relevant device of three-dimensional municipal model Pending CN109961400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910271969.5A CN109961400A (en) 2019-04-04 2019-04-04 A kind of posture setting method, device and its relevant device of three-dimensional municipal model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910271969.5A CN109961400A (en) 2019-04-04 2019-04-04 A kind of posture setting method, device and its relevant device of three-dimensional municipal model

Publications (1)

Publication Number Publication Date
CN109961400A true CN109961400A (en) 2019-07-02

Family

ID=67025762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910271969.5A Pending CN109961400A (en) 2019-04-04 2019-04-04 A kind of posture setting method, device and its relevant device of three-dimensional municipal model

Country Status (1)

Country Link
CN (1) CN109961400A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807219A (en) * 2019-10-16 2020-02-18 湖北亿咖通科技有限公司 Three-dimensional simulation modeling method, device, terminal and storage medium for road network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734775A (en) * 2018-05-22 2018-11-02 中国地质大学(武汉) A kind of the road asset automation fast modeling method and system of low cost

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108734775A (en) * 2018-05-22 2018-11-02 中国地质大学(武汉) A kind of the road asset automation fast modeling method and system of low cost

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任二峰: "《地质软件应用基础教程》", 31 January 2018, 天津大学出版社 *
巩岩: "利用GDAL实现导航道路的外扩线生成", 《测绘通报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807219A (en) * 2019-10-16 2020-02-18 湖北亿咖通科技有限公司 Three-dimensional simulation modeling method, device, terminal and storage medium for road network
CN110807219B (en) * 2019-10-16 2021-06-01 湖北亿咖通科技有限公司 Three-dimensional simulation modeling method, device, terminal and storage medium for road network

Similar Documents

Publication Publication Date Title
CN109472870B (en) Model matching method based on grid reconstruction and multi-influence-domain correction
CN104766366A (en) Method for establishing three-dimensional virtual reality demonstration
CN103871102B (en) A kind of road three-dimensional fine modeling method based on elevational point and road profile face
CN104835202A (en) Quick three-dimensional virtual scene constructing method
US7002570B2 (en) System and method for generating adaptively sampled distance fields with bounded distance trees
CN106898045A (en) A kind of very three-dimensional geography scene adaptive construction method in big region based on SGOG tile fragments
US7034818B2 (en) System and method for converting range data to 3D models
CN111784840A (en) LOD level three-dimensional data unitization method and system based on vector data automatic segmentation
CN108717729A (en) A kind of online method for visualizing of landform multi-scale TIN of the Virtual earth
CN114926602B (en) Building singleization method and system based on three-dimensional point cloud
CN114998544B (en) Building entity model light-weight method considering visual main body
CN105205861A (en) Tree three-dimensional visualization model realization method based on Sphere-Board
CN111915726A (en) Construction method of three-dimensional scene of overhead transmission line
CN108765538A (en) The method that OSGB data stagings based on CAD platforms render
CN109961400A (en) A kind of posture setting method, device and its relevant device of three-dimensional municipal model
CN110148219A (en) The creation method of 3D model
CN113516777A (en) Three-dimensional automatic modeling and visualization method for urban building
US20020130860A1 (en) Method for selectively regenerating an adaptively sampled distance field
CN111311745B (en) Model placement method and device
CN112150628A (en) Method for building three-dimensional data model in GIS platform by BIM data
Chen et al. 3D model deformation along a parametric surface
CN110136261A (en) A kind of tunnel virtual reality fast modeling method
CN118052947B (en) Three-dimensional geographic model building method and device based on big data
CN118470173B (en) Underground pipe network display method and device based on cloud rendering and computer equipment
Huang et al. Study on dynamic labeling of building in 3D virtual city

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190702