The content of the invention
The embodiment of the present invention provides a kind of determination method and device of coordinate in three-dimensional map, for solving in the prior art
The technical problem for the coordinate points for not having day existing for model aerial in three-dimensional map can not effectively be obtained, reach can quickly, it is high
Effect obtains the technique effect of the coordinate points that it is aerial in three-dimensional map.
The application provides following technical scheme by the embodiment of the application:
The determination method of coordinate, methods described include in a kind of three-dimensional map:Obtain a coordinate determine instruction;According to described
Coordinate determine instruction, transfer a scene collector;Obtain the scene collector first coordinate position in the three-dimensional map;
First coordinate position is defined as to the first output content of the coordinate determine instruction.
Further, methods described also includes:Obtain second coordinate of the scene collector in the three-dimensional map
Position, wherein first coordinate position is different from second coordinate position;Second coordinate position is defined as described
Second output content of coordinate determine instruction.
Further, described according to the coordinate determine instruction, before transferring a scene collector, methods described is also wrapped
Include:Judge the object that the coordinate determine instruction is directed in the three-dimensional map;When the object being directed to is located at described three
When tieing up the Aerial parts in map, the scene collector is transferred, wherein, the three-dimensional map includes Aerial parts and ground
Part.
Further, methods described also includes:When the object being directed to is located at the above ground portion in the three-dimensional map
When, the 3rd coordinate position of the above ground portion is obtained, and using the 3rd coordinate position as the coordinate determine instruction
3rd output content.
Further, the scene collector includes angular adjustment axle, wherein, methods described also includes:Determine the field
The 4-coordinate position of scape collector;The threedimensional model according to corresponding to the 4-coordinate position determines the scene collector;
Rotate the angular adjustment axle;The threedimensional model is rotated according to the angular adjustment axle.
The embodiment of the present invention additionally provides a kind of determining device of coordinate in three-dimensional map, and described device includes:First obtains
Unit is obtained, the first obtains unit is used to obtain a coordinate determine instruction;First transfers unit, and described first transfers unit use
According to the coordinate determine instruction, a scene collector is transferred;Second obtaining unit, second obtaining unit are used to obtain
The scene collector first coordinate position in the three-dimensional map;First determining unit, first determining unit are used for
First coordinate position is defined as to the first output content of the coordinate determine instruction.
Further, described device also includes:3rd obtaining unit, the 3rd obtaining unit are used to obtain the scene
Second coordinate position of the collector in the three-dimensional map, wherein first coordinate position is different from second coordinate bit
Put;Second determining unit, second determining unit are used to second coordinate position being defined as the coordinate determine instruction
Second output content.
Further, described device also includes:Judging unit, the judging unit are used to judge the coordinate determine instruction
The object being directed in the three-dimensional map;Second transfers unit, described second transfer unit be used for when described in the object that is directed to
During Aerial parts in the three-dimensional map, the scene collector is transferred, wherein, the three-dimensional map is included in the air
Part and above ground portion.
Further, described device also includes:3rd determining unit, the 3rd determining unit are used for what is be directed to described in
When object is located at the above ground portion in the three-dimensional map, the 3rd coordinate position of the above ground portion is obtained, and by described
Three coordinate positions export content as the 3rd of the coordinate determine instruction.
Further, the scene collector includes angular adjustment axle, wherein, described device also includes:3rd determines list
Member, the 3rd determining unit are used for the 4-coordinate position for determining the scene collector;4th determining unit, the described 4th
Determining unit is used for the threedimensional model according to corresponding to the 4-coordinate position determines the scene collector;First rotation is single
Member, the rotary unit are used to rotate the angular adjustment axle;Second rotary unit, second rotary unit are used for according to institute
State angular adjustment axle and rotate the threedimensional model.
The embodiment of the present invention has the beneficial effect that:
The determination method and device of coordinate in a kind of three-dimensional map that one embodiment of the invention provides, sat by obtaining one
Mark determine instruction;According to the coordinate determine instruction, a scene collector is transferred;Obtain the scene collector described three
Tie up the first coordinate position in map;First coordinate position is defined as to the first output content of the coordinate determine instruction.
That is, one embodiment of the invention by establishing a scene collector, is obtained in three-dimensional map by scene collector
Coordinate points, then as the output content of three-dimensional coordinate determine instruction, reach sky in quick, efficient acquisition three-dimensional map
In coordinate points technique effect.
Further, one embodiment of the invention is adjusted by increasing angular adjustment axle in scene collector, and by angle
Bearing carries out the technique effect of threedimensional model various dimensions presentation.
Embodiment one
To enable those skilled in the art to understand the present invention in more detail, the present invention is retouched in detail below in conjunction with accompanying drawing
State.
The concept of three-dimensional map is introduced first.
The three-dimensional map be based on electronic three-dimensional map database, according to a certain percentage to real world or its
In a part a many aspects three-dimensional, abstract description.In general, three-dimensional map can include ground and aerial
Two parts, wherein, the part on ground can typically include specific model, and aerial part will not typically include specific mould
Type.Say so and, when needing by coordinate determine instruction to obtain coordinate points, especially by mouse click on really
When position fixing point, the part for facing ground is selected easily by the click of mouse, and aerial part is not easy to lead to
The click for crossing mouse carries out the technical problem of selection.
As described in Figure 1, Fig. 1 is a kind of determination method of coordinate in three-dimensional map in one embodiment of the invention, wherein, it is described
Method includes:
Step 110:Obtain a coordinate determine instruction;
Specifically, the mode for obtaining a coordinate determine instruction has a many kinds, such as by the click action of mouse by mouse
The instruction that the coordinate points of mark cursor position are determined.Wherein, step 110 is a kind of three-dimensional in the embodiment of the present invention in order to start
The determination of coordinate in map.
Step 120:According to the coordinate determine instruction, a scene collector is transferred;
Specifically, step 120 is to transfer a scene collector according to coordinate determine instruction, and its Scene collection equipment has
The coordinate value of itself, also it is achieved that the seat that scene collector position is converted to by the scene collector coordinate value of itself
Scale value.The coordinate determination mode commonly used for three-dimensional map, i.e., for cursor of mouse acquisition modes, the present invention can pass through mouse
Drag scene collector, and then obtain the accurate coordinates value of specified location, solve can not skyborne point coordinate identification
The problem of.Specifically, scene collector includes reference axis base class parameter, and the reference axis base class parameter is mainly used in gathering scene
The coordinate value parameter information of collector, wherein, reference axis base class parameter mainly includes two classes, and one is position shifting axle;Two be angle
Degree adjustment axle.Specifically, position shifting axle mainly mainly passes through angle by position shifting axle event handling class, angular adjustment axle
Degree adjusts event handling class to monitor all kinds of events of scene collector respectively.
Step 130:Obtain the first coordinate position in the three-dimensional map of the scene collector;
Specifically, step 130 obtains first coordinate position of the scene collector in the three-dimensional map, that is, obtains
The scene collector coordinate position of itself was obtained, the scene collector belongs to a real model for three-dimensional map,
Also just it is provided with the coordinate position of itself.So for three-dimensional map, the coordinate bit of model existing for a reality is obtained
Put the normal attribute for belonging to three-dimensional map.
Step 140:First coordinate position is defined as to the first output content of the coordinate determine instruction;
Specifically, the first coordinate position of the scene collector is defined as the defeated of coordinate determine instruction by step 140
Go out content, i.e., the present invention passes through the simple, fast and efficient coordinate determine instruction that realizes of the own coordinate value of scene collector
Export content.
Further, coordinate can be carried out to position different in three-dimensional map to realize by mobile context collector
It is determined that.One embodiment of the invention additionally provides following method:
Step 150:Second coordinate position of the scene collector in the three-dimensional map is obtained, wherein described first
Coordinate position is different from second coordinate position;
Specifically, scene collector is moved to three-dimensional map by step 150 by the first coordinate position in three-dimensional map
In the second coordinate position, wherein, the first coordinate position is different from the second coordinate position;
Step 151:Second coordinate position is defined as to the second output content of the coordinate determine instruction.
Specifically, second coordinate position of the scene collector in three-dimensional map is obtained in step 151, second seat
Scale value is still itself coordinate value of the scene collector in three-dimensional map, and the step is also achieved that to be gathered according to mobile context
The position of device reaches the technique effect for determining the coordinate value in multiple three-dimensional maps.
As mentioned above, three-dimensional map generally comprises ground and aerial two parts, and wherein Aerial parts are not due to having
Concrete model, it is difficult to determine the coordinate value of Aerial parts, that is to say, that because Aerial parts and above ground portion have difference
Attribute, the embodiments of the invention provide checking whether to belong to Aerial parts first, it is then determined that whether transferring scene collector
Process, as described below:
Step 160:Judge the object that the coordinate determine instruction is directed in the three-dimensional map;
Step 161:When the object being directed to is located at the Aerial parts in the three-dimensional map, transfers the scene and adopt
Storage, wherein, the three-dimensional map includes Aerial parts and above ground portion.
Step 162:When the object being directed to is located at the above ground portion in the three-dimensional map, the floor portion is obtained
The 3rd coordinate position divided, and export content using the 3rd coordinate position as the 3rd of the coordinate determine instruction.
Specifically, the object that the present embodiment is directed to by determining coordinate determine instruction first, whether it is specifically not
The Aerial parts of coordinate position can be effectively determined, in this way, then transfer scene collector;If not, directly it is directed to by transferring
Object in the coordinate position of threedimensional model realize the technique effect of effective output content of coordinate determine instruction.
Further, as mentioned above, scene collector both includes position shifting axle, and it is by position shifting axle come real
Move to determine the coordinate value of diverse location the position of live scape collector;Also include angular adjustment axle, it is certain by rotating
Angle so that realize the angle change of the model behind scene collector, and then show for the various dimensions of model.Tool
For body, methods described also includes:
Step 170:Determine the 4-coordinate position of the scene collector;
Step 171:The threedimensional model according to corresponding to the 4-coordinate position determines the scene collector;
Step 172:Rotate the angular adjustment axle;
Step 173:The threedimensional model is rotated according to the angular adjustment axle.
Specifically, then above-mentioned steps pass through the position of scene collector by determining scene collector position first
Put to determine the threedimensional model in three-dimensional map corresponding to scene collector, then by adjusting the angle adjustment of scene collector
The angle of axle, you can to rotate the threedimensional model, reach and skill that threedimensional model various dimensions show is realized by scene collector
Art effect.
As mentioned previously, present invention also offers a kind of determining device of coordinate in three-dimensional map, described device to include:
First obtains unit 10, the first obtains unit 10 are used to obtain a coordinate determine instruction;
First transfers unit 20, and described first, which transfers unit 20, is used for according to the coordinate determine instruction, transfers a scene
Collector;
Second obtaining unit 30, second obtaining unit 30 are used to obtain the scene collector in the three-dimensional map
In the first coordinate position;
First determining unit 40, first determining unit 40 are used to first coordinate position being defined as the coordinate
First output content of determine instruction.
Further, described device also includes:
3rd obtaining unit, the 3rd obtaining unit are used to obtain the scene collector in the three-dimensional map
Second coordinate position, wherein first coordinate position is different from second coordinate position;
Second determining unit, second determining unit are used to second coordinate position being defined as the coordinate determination
Second output content of instruction.
Further, described device also includes:
Judging unit, the judging unit are used to judge pair that the coordinate determine instruction is directed in the three-dimensional map
As;
Second transfers unit, described second transfer unit be used for when described in the object that is directed to be located in the three-dimensional map
During Aerial parts, the scene collector is transferred, wherein, the three-dimensional map includes Aerial parts and above ground portion.
Further, described device also includes:
3rd determining unit, the 3rd determining unit are used for when the object being directed to is located in the three-dimensional map
During above ground portion, the 3rd coordinate position of the above ground portion is obtained, and the 3rd coordinate position is true as the coordinate
Surely the 3rd output content instructed.
Further, the scene collector includes angular adjustment axle, wherein, described device also includes:
3rd determining unit, the 3rd determining unit are used for the 4-coordinate position for determining the scene collector;
4th determining unit, the 4th determining unit are used to determine that the scene gathers according to the 4-coordinate position
Threedimensional model corresponding to device;
First rotary unit, the rotary unit are used to rotate the angular adjustment axle;
Second rotary unit, second rotary unit are used to rotate the threedimensional model according to the angular adjustment axle.
In summary, the determination method and apparatus of coordinate have such as in a kind of three-dimensional map that the embodiment of the present invention is provided
Lower technique effect:
The determination method and device of coordinate in a kind of three-dimensional map that one embodiment of the invention provides, sat by obtaining one
Mark determine instruction;According to the coordinate determine instruction, a scene collector is transferred;Obtain the scene collector described three
Tie up the first coordinate position in map;First coordinate position is defined as to the first output content of the coordinate determine instruction.
That is, one embodiment of the invention by establishing a scene collector, is obtained in three-dimensional map by scene collector
Coordinate points, then as the output content of three-dimensional coordinate determine instruction, reach sky in quick, efficient acquisition three-dimensional map
In coordinate points technique effect.
Further, one embodiment of the invention is adjusted by increasing angular adjustment axle in scene collector, and by angle
Bearing carries out the technique effect of threedimensional model various dimensions presentation.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.