Summary of the invention
The embodiment of the present invention provides defining method and the device of coordinate in a kind of three-dimensional map, for solving the technical matters that effectively can not obtain in three-dimensional map the coordinate points not having the sky of model aerial in prior art, reach the technique effect that fast, efficiently can obtain the aerial coordinate points in sky in three-dimensional map.
The application provides following technical scheme by an embodiment of the application:
A defining method for coordinate in three-dimensional map, described method comprises: obtain a coordinate determination instruction; According to described coordinate determination instruction, transfer a scene collector; Obtain described scene collector first coordinate position in described three-dimensional map; Described first coordinate position is defined as the first output content of described coordinate determination instruction.
Further, described method also comprises: obtain second coordinate position of described scene collector in described three-dimensional map, wherein said first coordinate position is different from described second coordinate position; Described second coordinate position is defined as the second output content of described coordinate determination instruction.
Further, described according to described coordinate determination instruction, before transferring a scene collector, described method also comprises: judge described coordinate determination instruction in described three-dimensional map for object; When described for object be arranged in the Aerial parts of described three-dimensional map time, transfer described scene collector, wherein, described three-dimensional map comprises Aerial parts and above ground portion.
Further, described method also comprises: when described for object be arranged in the above ground portion of described three-dimensional map time, obtain the three-dimensional position of described above ground portion, and using three output content of described three-dimensional position as described coordinate determination instruction.
Further, described scene collector comprises angular adjustment axle, and wherein, described method also comprises: the 4-coordinate position determining described scene collector; The three-dimensional model that described scene collector is corresponding is determined according to described 4-coordinate position; Rotate described angular adjustment axle; Described three-dimensional model is rotated according to described angular adjustment axle.
The embodiment of the present invention additionally provides the determining device of coordinate in a kind of three-dimensional map, and described device comprises: first obtains unit, and described first obtains unit for obtaining a coordinate determination instruction; First transfers unit, and described first transfers unit for according to described coordinate determination instruction, transfers a scene collector; Second obtains unit, and described second obtains unit for obtaining described scene collector first coordinate position in described three-dimensional map; First determining unit, described first determining unit is used for the first output content described first coordinate position being defined as described coordinate determination instruction.
Further, described device also comprises: the 3rd obtains unit, and the described 3rd obtains unit for obtaining second coordinate position of described scene collector in described three-dimensional map, and wherein said first coordinate position is different from described second coordinate position; Second determining unit, described second determining unit is used for the second output content described second coordinate position being defined as described coordinate determination instruction.
Further, described device also comprises: judging unit, described judging unit for judge described coordinate determination instruction in described three-dimensional map for object; Second transfers unit, described second transfer unit for when described for object be arranged in the Aerial parts of described three-dimensional map time, transfer described scene collector, wherein, described three-dimensional map comprises Aerial parts and above ground portion.
Further, described device also comprises: the 3rd determining unit, described 3rd determining unit be used for when described for object be arranged in the above ground portion of described three-dimensional map time, obtain the three-dimensional position of described above ground portion, and using three output content of described three-dimensional position as described coordinate determination instruction.
Further, described scene collector comprises angular adjustment axle, and wherein, described device also comprises: the 3rd determining unit, and described 3rd determining unit is for determining the 4-coordinate position of described scene collector; 4th determining unit, described 4th determining unit is used for determining according to described 4-coordinate position the three-dimensional model that described scene collector is corresponding; First rotary unit, described rotary unit is for rotating described angular adjustment axle; Second rotary unit, described second rotary unit is used for rotating described three-dimensional model according to described angular adjustment axle.
The beneficial effect of the embodiment of the present invention is as follows:
The defining method of the coordinate in a kind of three-dimensional map that one embodiment of the invention provides and device, by obtaining a coordinate determination instruction; According to described coordinate determination instruction, transfer a scene collector; Obtain first coordinate position in described three-dimensional map of described scene collector; Described first coordinate position is defined as the first output content of described coordinate determination instruction.That is, one embodiment of the invention are by setting up a scene collector, obtain the coordinate points in three-dimensional map by scene collector, then it can be used as the output content of three-dimensional coordinate determination instruction, reach fast, efficiently obtain the technique effect of the coordinate points that it is aerial in three-dimensional map.
Further, one embodiment of the invention by increasing angular adjustment axle in scene collector, and carries out by angular adjustment axle the technique effect that three-dimensional model various dimensions present.
Embodiment one
For enabling those skilled in the art understand the present invention more in detail, describe the present invention below in conjunction with accompanying drawing.
First the concept of three-dimensional map is introduced.
Described three-dimensional map is based on electronic three-dimensional map database, according to a certain percentage to three-dimensional, the abstract description of many aspects of real world or a part wherein.In general, three-dimensional map can comprise ground and aerial two parts, and wherein, the part on ground generally can comprise concrete model, and aerial part generally can not comprise concrete model.So in fact, when needs obtain coordinate points by coordinate determination instruction time, particularly by mouse carry out clicking determine coordinate points time, the part facing ground is easily selected by the click of mouse, and aerial part is not easy to carry out by the click of mouse the technical matters selected.
As described in Figure 1, Fig. 1 is the defining method of coordinate in a kind of three-dimensional map in one embodiment of the invention, and wherein, described method comprises:
Step 110: obtain a coordinate determination instruction;
Specifically, the mode obtaining a coordinate determination instruction has a variety of, and the coordinate points of mouse cursor position is carried out the instruction determined by the click action as by mouse.Wherein, step 110 is the determinations in order to start coordinate in a kind of three-dimensional map in the embodiment of the present invention.
Step 120: according to described coordinate determination instruction, transfer a scene collector;
Specifically, step 120 transfers a scene collector according to coordinate determination instruction, and its Scene collection equipment has self coordinate figure, also just achieves the coordinate figure being converted to scene collector position by the coordinate figure of scene collector self.For the coordinate determination mode that three-dimensional map is conventional, i.e. cursor of mouse obtain manner, the present invention can pass through mouse drag scene collector, and then obtains the accurate coordinates value of assigned address, and solving can not the problem of identification of coordinate of skyborne point.Specifically, scene collector comprises coordinate axis base class parameter, and this coordinate axis base class parameter is mainly used in the coordinate figure parameter information gathering scene collector, and wherein, coordinate axis base class parameter mainly comprises two classes, and one is position shifting axle; Two is angular adjustment axle.Specifically, position shifting axle monitors all kinds of events of scene collector respectively mainly through angular setting event handling class mainly through position shifting axle event handling class, angular adjustment axle.
Step 130: the first coordinate position in described three-dimensional map obtaining described scene collector;
Specifically, step 130 obtains first coordinate position of scene collector in described three-dimensional map, namely obtains the coordinate position of scene collector self, and this scene collector is for three-dimensional map, belong to a real model, be also just provided with the coordinate position of self.So for three-dimensional map, the coordinate position obtaining the model of an exist actually belongs to the normal attribute of three-dimensional map.
Step 140: the first output content described first coordinate position being defined as described coordinate determination instruction;
Specifically, the first coordinate position of described scene collector is defined as the output content of coordinate determination instruction by step 140, and namely the present invention is by the simple, fast and efficient output content achieving coordinate determination instruction of self coordinate figure of scene collector.
Further, can realize by mobile context collector determination positions different in three-dimensional map being carried out to coordinate.One embodiment of the invention additionally provide following method:
Step 150: obtain second coordinate position of described scene collector in described three-dimensional map, wherein said first coordinate position is different from described second coordinate position;
Specifically, scene collector is moved to the second coordinate position in three-dimensional map by step 150 by the first coordinate position in three-dimensional map, wherein, the first coordinate position is different from the second coordinate position;
Step 151: the second output content described second coordinate position being defined as described coordinate determination instruction.
Specifically, second coordinate position of scene collector in three-dimensional map is obtained in step 151, this second coordinate figure is still self the coordinate figure of scene collector in three-dimensional map, and this step also just achieves the technique effect reaching the coordinate figure determined in multiple three-dimensional map according to the position of mobile context collector.
As mentioned above, three-dimensional map generally comprises ground and aerial two parts, wherein Aerial parts is not owing to having concrete model, generally be difficult to the coordinate figure determining Aerial parts, that is, because Aerial parts and above ground portion have different attributes, embodiments provide first to check whether belong to Aerial parts, then the process transferring scene collector is determined whether, as described below:
Step 160: judge described coordinate determination instruction in described three-dimensional map for object;
Step 161: when described for object be arranged in the Aerial parts of described three-dimensional map time, transfer described scene collector, wherein, described three-dimensional map comprises Aerial parts and above ground portion.
Step 162: when described for object be arranged in the above ground portion of described three-dimensional map time, obtain the three-dimensional position of described above ground portion, and using three output content of described three-dimensional position as described coordinate determination instruction.
Specifically, the present embodiment by first to determine coordinate determination instruction for object, whether be the Aerial parts effectively can not determining coordinate position specifically, in this way, then transfer scene collector; If not, then direct by transfer for object in the coordinate position of three-dimensional model realize the technique effect of effective output content of coordinate determination instruction.
Further, as mentioned above, scene collector had both comprised position shifting axle, and the coordinate figure determining diverse location is moved in its position realizing scene collector by position shifting axle; Also comprise angular adjustment axle, it is by rotating a certain angle and then realizing the angle change of the model after scene collector, and then the various dimensions reached for model represent.Specifically, described method also comprises:
Step 170: the 4-coordinate position determining described scene collector;
Step 171: determine the three-dimensional model that described scene collector is corresponding according to described 4-coordinate position;
Step 172: rotate described angular adjustment axle;
Step 173: rotate described three-dimensional model according to described angular adjustment axle.
Specifically, first above-mentioned steps by determining the position of scene collector, then the three-dimensional model in the three-dimensional map that scene collector is corresponding is determined by the position of scene collector, then by the angle of the angular adjustment axle of adjustment scene collector, namely can rotate described three-dimensional model, be reached through scene collector and realize the technique effect that three-dimensional model various dimensions represent.
As mentioned previously, present invention also offers the determining device of coordinate in a kind of three-dimensional map, described device comprises:
First obtains unit 10, and described first obtains unit 10 for obtaining a coordinate determination instruction;
First transfers unit 20, and described first transfers unit 20 for according to described coordinate determination instruction, transfers a scene collector;
Second obtains unit 30, and described second obtains unit 30 for obtaining described scene collector first coordinate position in described three-dimensional map;
First determining unit 40, described first determining unit 40 is for being defined as the first output content of described coordinate determination instruction by described first coordinate position.
Further, described device also comprises:
3rd obtains unit, and the described 3rd obtains unit for obtaining second coordinate position of described scene collector in described three-dimensional map, and wherein said first coordinate position is different from described second coordinate position;
Second determining unit, described second determining unit is used for the second output content described second coordinate position being defined as described coordinate determination instruction.
Further, described device also comprises:
Judging unit, described judging unit for judge described coordinate determination instruction in described three-dimensional map for object;
Second transfers unit, described second transfer unit for when described for object be arranged in the Aerial parts of described three-dimensional map time, transfer described scene collector, wherein, described three-dimensional map comprises Aerial parts and above ground portion.
Further, described device also comprises:
3rd determining unit, described 3rd determining unit be used for when described for object be arranged in the above ground portion of described three-dimensional map time, obtain the three-dimensional position of described above ground portion, and using three output content of described three-dimensional position as described coordinate determination instruction.
Further, described scene collector comprises angular adjustment axle, and wherein, described device also comprises:
3rd determining unit, described 3rd determining unit is for determining the 4-coordinate position of described scene collector;
4th determining unit, described 4th determining unit is used for determining according to described 4-coordinate position the three-dimensional model that described scene collector is corresponding;
First rotary unit, described rotary unit is for rotating described angular adjustment axle;
Second rotary unit, described second rotary unit is used for rotating described three-dimensional model according to described angular adjustment axle.
In sum, in a kind of three-dimensional map of providing of the embodiment of the present invention, the determination method and apparatus of coordinate has following technique effect:
The defining method of the coordinate in a kind of three-dimensional map that one embodiment of the invention provides and device, by obtaining a coordinate determination instruction; According to described coordinate determination instruction, transfer a scene collector; Obtain first coordinate position in described three-dimensional map of described scene collector; Described first coordinate position is defined as the first output content of described coordinate determination instruction.That is, one embodiment of the invention are by setting up a scene collector, obtain the coordinate points in three-dimensional map by scene collector, then it can be used as the output content of three-dimensional coordinate determination instruction, reach fast, efficiently obtain the technique effect of the coordinate points that it is aerial in three-dimensional map.
Further, one embodiment of the invention by increasing angular adjustment axle in scene collector, and carries out by angular adjustment axle the technique effect that three-dimensional model various dimensions present.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.