CN107480174A - The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium - Google Patents

The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium Download PDF

Info

Publication number
CN107480174A
CN107480174A CN201710527018.0A CN201710527018A CN107480174A CN 107480174 A CN107480174 A CN 107480174A CN 201710527018 A CN201710527018 A CN 201710527018A CN 107480174 A CN107480174 A CN 107480174A
Authority
CN
China
Prior art keywords
window
dimensional map
urban model
geographical coordinate
building
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
CN201710527018.0A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710527018.0A priority Critical patent/CN107480174A/en
Publication of CN107480174A publication Critical patent/CN107480174A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures

Abstract

The present invention provides a kind of interlock method, device and the computer-readable recording medium of D Urban model and two-dimensional map.Its method includes:Two-dimensional map is shown into the first window under the framework where D Urban model;In the second window under the framework where D Urban model, renders three-dimensional city model;Based on geographical coordinate, the two-dimensional map in the first window under same framework and the D Urban model linkage in the second window are got up.By using technical scheme, the deficiencies in the prior art can be made up, realize the linkage of D Urban model and two-dimensional map, and then subsequently can more directly perceived in D Urban model, more galore show the function of two-dimensional map.

Description

The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium
【Technical field】
The present invention relates to Computer Applied Technology field, more particularly to the linkage of a kind of D Urban model and two-dimensional map Method, apparatus and computer-readable recording medium.
【Background technology】
D Urban model (3 Dimensional City Model;3D), threedimensional model or 3D can also be referred to as Model, by years of researches and application, obtained in traffic, prospecting, mapping, particularly urban planning and construction etc. Extensive use, and played certain effect.D Urban model can show the building in city from the angle of 3 D stereo, The form of expression is very directly perceived, abundant.
Existing electronic map generally use two-dimensional map, for three-dimensional, two-dimensional map uses the two dimension of plane Form, shows the building in city, and the building of presentation does not have D Urban model more directly perceived and abundant.But based on two Point of interest (the Point of Interest for tieing up electronic map and providing;POI optional position determines in mark), inquiry, map The function such as position and navigation is very powerful.
But it can not realize in the prior art and the building of same coordinate in D Urban model and two-dimensional map links Come, show existing function in two-dimensional map using D Urban model.Therefore, need badly offer it is a kind of by D Urban model and The technical scheme that two-dimensional map linkage is got up.
【The content of the invention】
The invention provides the interlock method of a kind of D Urban model and two-dimensional map, device and computer-readable recording medium, it is used for The deficiencies in the prior art are made up, realize the linkage of D Urban model and two-dimensional map.
The present invention provides a kind of interlock method of D Urban model and two-dimensional map, and methods described includes:
Two-dimensional map is shown into the first window under the framework where D Urban model;
In the second window under the framework where the D Urban model, the D Urban model is rendered;
Based on geographical coordinate, by the two-dimensional map in the first window under the same framework and described second D Urban model linkage in window is got up.
Still optionally further, in method as described above, two-dimensional map is shown to the framework to where D Urban model Under first window in, specifically include:
Using the API of the two-dimensional map, with reference to COM technologies, the two-dimensional map is shown to the institute to the framework State in first window.
Still optionally further, in method as described above, under the framework where the D Urban model In two windows, the D Urban model is rendered, is specifically included:
Using OpenGL, described second under the D Urban model to the framework at place is rendered with reference to VCG storehouses In window.
Still optionally further, in method as described above, based on geographical coordinate, by described first under the same framework The two-dimensional map in window gets up with the D Urban model linkage in second window, specifically includes:
In second window, the building figure that user selects in the D Urban model is received;
Obtain the geographical coordinate of building figure described in the D Urban model of second window;
In second window, the geographical coordinate of the building figure is sent to the first window;
The geographical coordinate for the building figure that second window is sent is received in the first window;
In the first window, the API of the two-dimensional map is called according to the geographical coordinate of the building figure, with Target location corresponding to positioning the geographical coordinate in the two-dimensional map of the first window, realizes the first window In the two-dimensional map and second window in the D Urban model link.
Still optionally further, in method as described above, based on geographical coordinate, by described first under the same framework The two-dimensional map in window gets up with the D Urban model linkage in second window, specifically includes:
The target location that user selects in the two-dimensional map is received in the first window;
In the first window, the API of the two-dimensional map is called according to the target location, to obtain the two dimension The geographical coordinate of target location described in map;
In the first window, the geographical coordinate of the target location is sent to second window;
In second window, the geographical coordinate for the target location that the first window is sent is received;
Building figure corresponding to the geographical coordinate is positioned in the D Urban model of second window, it is real The D Urban model in existing second window links with the two-dimensional map in the first window.
Still optionally further, in method as described above, based on geographical coordinate, by described first under the same framework After the two-dimensional map in window gets up with the D Urban model linkage in second window, methods described is also Including:
If the building figure in the D Urban model in second window is chosen, described the Shown in the two-dimensional map of one window, with target location described in the geographical coordinate identical of the building figure selected The mark selected;
If or the target location in the two-dimensional map of the first window is when being chosen, in second window In the D Urban model in mouthful, it is chosen with building figure shows described in the geographical coordinate identical of the target location The mark selected.
The present invention provides a kind of linkage of D Urban model and two-dimensional map, and described device includes:
Display processing module, for two-dimensional map to be shown to the first window under the framework where D Urban model In;
Rendering module, it is described in the second window under the framework where the D Urban model, rendering D Urban model;
Interlocking module, for based on geographical coordinate, by the two dimension in the first window under the same framework Map gets up with the D Urban model linkage in second window.
Still optionally further, in device as described above, the Display processing module, specifically for utilize described in two-dimensionally The API of figure, with reference to COM technologies, the two-dimensional map is shown in the first window to the framework.
Still optionally further, in device as described above, the rendering module, specifically for using OpenGL, with reference to VCG Storehouse is rendered in second window under the D Urban model to the framework at place.
Still optionally further, in device as described above, the interlocking module, it is specifically used for:
In second window, the building figure that user selects in the D Urban model is received;
Obtain the geographical coordinate of building figure described in the D Urban model of second window;
In second window, the geographical coordinate of the building figure is sent to the first window;
The geographical coordinate for the building figure that second window is sent is received in the first window;
In the first window, the API of the two-dimensional map is called according to the geographical coordinate of the building figure, with Target location corresponding to positioning the geographical coordinate in the two-dimensional map of the first window, realizes the first window In the two-dimensional map and second window in the D Urban model link.
Still optionally further, in device as described above, the interlocking module, it is specifically used for:
The target location that user selects in the two-dimensional map is received in the first window;
In the first window, the API of the two-dimensional map is called according to the target location, to obtain the two dimension The geographical coordinate of target location described in map;
In the first window, the geographical coordinate of the target location is sent to second window;
In second window, the geographical coordinate for the target location that the first window is sent is received;
Building figure corresponding to the geographical coordinate is positioned in the D Urban model of second window, it is real The D Urban model in existing second window links with the two-dimensional map in the first window.
Still optionally further, in device as described above, the Display processing module, if being additionally operable in second window The D Urban model in the building figure be chosen when, in the two-dimensional map of the first window, Selected mark is shown with target location described in the geographical coordinate identical of the building figure;
Or the Display processing module, if being additionally operable to the target position in the two-dimensional map of the first window It is identical with the geographical coordinate of the target location in the D Urban model in second window when putting selected The selected mark of building figure shows.
The present invention also provides a kind of computer equipment, and the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processing Device realizes the interlock method of D Urban model and two-dimensional map as described above.
The present invention also provides a kind of computer-readable medium, is stored thereon with computer program, the program is held by processor The interlock method of D Urban model and two-dimensional map as described above is realized during row.
The D Urban model of the present invention and interlock method, device and the computer-readable recording medium of two-dimensional map, by will two-dimensionally Figure is shown into the first window under the framework where D Urban model;Second under the framework where D Urban model In window, renders three-dimensional city model;Based on geographical coordinate, by the two-dimensional map in the first window under same framework and second D Urban model linkage in window is got up.By using technical scheme, the deficiencies in the prior art can be made up, The linkage of D Urban model and two-dimensional map is realized, and then subsequently can be more directly perceived, richer in D Urban model Show the function of two-dimensional map richly.
【Brief description of the drawings】
Fig. 1 be the present invention D Urban model and two-dimensional map interlock method embodiment one flow chart.
Fig. 2 is the exemplary plot of the two-dimensional map and D Urban model in the present embodiment under same framework.
Fig. 3 be the present invention D Urban model and two-dimensional map interlock method embodiment two flow chart.
Fig. 4 be the present invention D Urban model and two-dimensional map interlock method embodiment three flow chart.
Fig. 5 be the present invention D Urban model and two-dimensional map linkage embodiment structure chart.
Fig. 6 is the structure chart of the computer equipment embodiment of the present invention.
Fig. 7 is a kind of exemplary plot of computer equipment provided by the invention.
【Embodiment】
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.
Fig. 1 be the present invention D Urban model and two-dimensional map interlock method embodiment one flow chart.Such as Fig. 1 institutes Show, the D Urban model of the present embodiment and the interlock method of two-dimensional map, specifically may include steps of:
100th, two-dimensional map is shown into the first window under the framework where D Urban model;
The two-dimensional map of the present embodiment is a kind of map application (Application;App the map in).The two-dimensional map For a kind of common map, two-dimensional map generally use JavaScript (abbreviation JS) form web page is shown.The present embodiment D Urban model, D Urban model can be referred to as, by the true panorama in city come the three-dimensional mould drawn out Type.Current D Urban model operates in personal computer (Person Computer;PC on).Due to the two of form web page Dimension map is under different frameworks (framework) from the D Urban model on PC, so as to which both can not link. In the present embodiment, by the way that the two-dimensional map of form web page is shown to a window under the framework where D Urban model such as In first window, realize and two-dimensional map is embedded in PC window.Such as the map App of two-dimensional map application can be used Program Interfaces (Application Programming Interface;API), coupling unit object model (Component Object Model;COM) technology, first two-dimensional map is shown on the PC where D Urban model In window.The a set of interface specification of COM technology limitings, can by setting the standard and agreement that need between different components to observe With for realize the module between language, striding course communicate.In the present embodiment, by using COM technologies, two-dimensional map is called API, realize and show two-dimensional map into the first window under PC frameworks.
101st, in the second window under the framework where D Urban model, renders three-dimensional city model;
The framework where D Urban model in the present embodiment can be Ke Yi under Windows PC frameworks Renders three-dimensional city model in Windows pc client.For example, it can specifically utilize open graphic library (Open Graphics Library;OpenGL), with reference to visualization and computer graphics (Visulization and Computer Graphics; VCG) in the second window under storehouse (Library) renders three-dimensional city model to place framework.So, first window show two The D Urban model that dimension map and the second window are shown is under same framework, to realize that both linkages create condition.Example If Fig. 2 is the two-dimensional map and the exemplary plot of D Urban model under same framework in the present embodiment.Left side as shown in Figure 2 shows What is shown is the second window under the framework, it is shown that D Urban model, right side as shown in Figure 2 is shown under the framework First window, it is shown that two-dimensional map.So, D Urban model and two-dimensional map are shown under same framework.
102nd, based on geographical coordinate, by the three-dimensional in the two-dimensional map in the first window under same framework and the second window City model linkage is got up.
, then can profit by the way that two-dimensional map and D Urban model are included under same framework in the present embodiment With geographical coordinate, linked by the linkage object of same geographical coordinate in D Urban model and two-dimensional map and by linkage object Come, realize and the two-dimensional map in the first window under same framework and the D Urban model in the second window link.
The D Urban model of the present embodiment and the interlock method of two-dimensional map, when realizing, can by script or The component being inserted under the framework where D Urban model, as the D Urban model of the present embodiment and the connection of two-dimensional map Dynamic device, realize the above method of the present embodiment.
The D Urban model of the present embodiment and the interlock method of two-dimensional map, by the way that two-dimensional map is shown to three-dimensional city City's model framework under first window in;In the second window under the framework where D Urban model, three are rendered Tie up city model;Based on geographical coordinate, by the three-dimensional in the two-dimensional map in the first window under same framework and the second window City model linkage is got up.By using the technical scheme of the present embodiment, the deficiencies in the prior art can be made up, realize three-dimensional city The linkage of city's model and two-dimensional map, so subsequently can it is more directly perceived in D Urban model, more galore show two Tie up the function of map.
Fig. 3 be the present invention D Urban model and two-dimensional map interlock method embodiment two flow chart.This implementation The D Urban model of example and the interlock method of two-dimensional map, on the basis of the technical scheme of above-mentioned embodiment illustrated in fig. 1, enter One step introduces technical scheme in further detail.As shown in figure 3, the D Urban model and two-dimensional map of the present embodiment Interlock method, specifically may include steps of:
200th, using the API of two-dimensional map, with reference to COM technologies, two-dimensional map is shown to where D Urban model In first window under framework;
201st, using OpenGL, with reference in the second window under VCG storehouses renders three-dimensional city model to place framework;
Step 200 and 201 in the present embodiment are respectively the step 100 and 101 specific reality of above-mentioned embodiment illustrated in fig. 1 Existing mode.Record, will not be repeated here referring in detail to the correlation of above-mentioned embodiment illustrated in fig. 1.
202nd, in a second window, the building figure that user selects in D Urban model is received;
It should be noted that common D Urban model of the prior art is to pass through oblique photograph according to aerophotograph data The mode of modeling is established, and such D Urban model can also be referred to as oblique photograph model.But such a mode is established D Urban model in building, ground and trees etc. all the things it is integrated.For example, by three-dimensional city mould Type is illustrated in personal computer (Person Computer;PC when on), the list in D Urban model can not individually be selected Body building, so as to can not also be linked based on the single building with two-dimensional map.And the step 202 in the present embodiment In, the figure for the target structures thing that user selects in D Urban model can be received, i.e. user can be in three-dimensional city mould The figure of the target structures thing is selected in type.The D Urban model is just different from existing oblique photograph model.
For example, before the step 202, can also include:Oblique photograph model is handled, extracts single building Figure;Figure based on oblique photograph model and the single building extracted from oblique photograph model, generate three-dimensional city Model.
For example, can be according to the profile of each single building model in oblique photograph model, from oblique photograph model The figure of middle each single building of extraction, and based on oblique photograph model and the single building extracted from oblique photograph model Figure, generate D Urban model, by using the program, each building can be allowd from oblique photograph model Made a distinction in background, so that each building in D Urban model is single building, can be independent It is chosen.
203rd, the geographical coordinate of building figure in the D Urban model of the second window is obtained;
204th, in a second window, the geographical coordinate of building figure is sent to first window;
205th, the geographical coordinate of the building figure of the second window transmission is received in first window;
206th, in first window, the API of two-dimensional map is called according to the geographical coordinate of building figure, with the first window The target location that geographical coordinate pair is answered is positioned in the two-dimensional map of mouth, is realized in the two-dimensional map and the second window in first window D Urban model linkage;
Step 202-206 is a kind of specific implementation of the step 102 of above-mentioned embodiment illustrated in fig. 1, in the present embodiment, Building figure is selected in the D Urban model of the second window with user, as the object to be linked, using the present embodiment Technical scheme, target position corresponding to the geographical coordinate of Automatic-searching building figure in the two-dimensional map in first window Put, as the object of linkage, realize and the D Urban model in the two-dimensional map in first window and the second window links.
The present embodiment can also set component to realize the present embodiment when realizing under the framework of the D Urban model Technical scheme.For example, user can obtain a building figure in the second window under the PC frameworks by clicking on, make For by linkage object.Because D Urban model is drawn according to the time of day in city, so meeting in D Urban model Record the geographical coordinate of the building figure.So if when detecting that user clicks on the building figure, the one of second window Individual processing component can get the geographical coordinate of the building figure from the database of D Urban model;And by the geography Coordinate is sent in first window, and processing component can also be provided with first window, for receiving the ground of the building figure Manage coordinate.Because the two-dimensional map shown in first window is only the function of display, and the function of positioning can not be realized.Cause This, now the processing component in the first window, it is necessary to according to the geographical coordinate of building figure call two-dimensional map API, , so can be with by D Urban model to position the target location that geographical coordinate pair is answered in the two-dimensional map of first window The building figure and two-dimensional map in target location linkage get up., can be by second by using aforesaid way Each of D Urban model in window is got up with each linkage object linkage in two-dimensional map by linkage object, So as to realize that the D Urban model in two-dimensional map and the second window in first window links.
The 207th, if the building figure in the D Urban model in the second window is chosen, in the two dimension of first window Selected mark is shown in map, with the geographical coordinate identical target location of building figure.
The step is that effect during use is in by after two-dimensional map and D Urban model linkage in above-described embodiment It is existing.For example, if user selects the building figure in the D Urban model in the second window by mouse, now in the first window In two-dimensional map in mouthful, selected mark, example are shown with the geographical coordinate identical target location of the building figure Such as target location can show the highlighted mark selected by mouse.I.e. represent three-dimensional map the building figure with two-dimensionally Target location linkage in figure is together., can be by each in D Urban model according to the scheme of the present embodiment Building figure etc. other by linkage object, all with two-dimensional map with this by the geographical coordinate identical target of linkage object Position linkage is got up, and realizes the Coupled motion of D Urban model and two-dimensional map.Similarly, if D Urban model with two-dimensionally After the Coupled motion of figure, if the target location in the two-dimensional map of first window is chosen, three-dimensional in a second window In city model, selected mark can be also shown with the geographical coordinate identical building figure of target location, reason is same as above, It will not be repeated here.
The D Urban model of the present embodiment and the interlock method of two-dimensional map, can be with by using above-mentioned technical proposal The deficiencies in the prior art are made up, realize the linkage of D Urban model and two-dimensional map, and then subsequently can be in three-dimensional city mould Function that is more directly perceived in type, more galore showing two-dimensional map.
Fig. 4 be the present invention D Urban model and two-dimensional map interlock method embodiment three flow chart.This implementation The D Urban model of example and the interlock method of two-dimensional map, on the basis of the technical scheme of above-mentioned embodiment illustrated in fig. 1, enter One step introduces technical scheme in further detail.As shown in figure 4, the D Urban model and two-dimensional map of the present embodiment Interlock method, specifically may include steps of:
300th, using the API of two-dimensional map, with reference to COM technologies, two-dimensional map is shown to where D Urban model In first window under framework;
301st, using OpenGL, with reference in the second window under VCG storehouses renders three-dimensional city model to place framework;
Step 300 and 301 in the present embodiment are respectively the step 100 and 101 specific reality of above-mentioned embodiment illustrated in fig. 1 Existing mode.Record, will not be repeated here referring in detail to the correlation of above-mentioned embodiment illustrated in fig. 1.
302nd, the target location that user selects in two-dimensional map is received in first window;
303rd, in first window, the API of two-dimensional map is called according to target location, to obtain target position in two-dimensional map The geographical coordinate put;
304th, in first window, the geographical coordinate of target location is sent to the second window;
305th, in a second window, the geographical coordinate for the target location that first window is sent is received;
306th, the building figure that geographical coordinate pair is answered is positioned in the D Urban model of the second window, realizes the second window Two-dimensional map linkage in D Urban model and first window in mouthful;
Step 302-306 is a kind of specific implementation of the step 102 of above-mentioned embodiment illustrated in fig. 1, in the present embodiment, One target location is selected in the two-dimensional map of first window with user, as the object to be linked, using the present embodiment Technical scheme, building figure corresponding to the Automatic-searching target geographic position in D Urban model in a second window, As the object of linkage, realize and the two-dimensional map in the D Urban model and first window in the second window links.This reality The linkage process for applying example is the step 202-206 of above-mentioned embodiment illustrated in fig. 3 inverse process, and its realization principle is similar, in detail also The record of above-mentioned embodiment illustrated in fig. 3 is may be referred to, will not be repeated here.
The 307th, if the target location in the two-dimensional map of first window is chosen, three-dimensional city mould in a second window In type, the selected mark of geographical coordinate identical building figure shows with target location.
Similarly, if the building figure in D Urban model in the second window is chosen, the two of first window Selected mark can be also shown in dimension map, with the geographical coordinate identical target location of building figure, referring in detail to The record of above-mentioned embodiment illustrated in fig. 3, will not be repeated here.
The D Urban model of the present embodiment and the interlock method of two-dimensional map, can be with by using above-mentioned technical proposal The deficiencies in the prior art are made up, realize the linkage of D Urban model and two-dimensional map, and then subsequently can be in three-dimensional city mould Function that is more directly perceived in type, more galore showing two-dimensional map.
Fig. 5 be the present invention D Urban model and two-dimensional map linkage embodiment structure chart.Such as Fig. 5 institutes Show, the D Urban model of the present embodiment and the linkage of two-dimensional map, can specifically include:
Display processing module 10 is used to show two-dimensional map to the first window under the framework where D Urban model In;
Rendering module 11 is used in the second window under the framework where D Urban model, renders three-dimensional city mould Type;
Interlocking module 12 is used to be based on geographical coordinate, and under same framework, Display processing module 10 is included in the first window The D Urban model that two-dimensional map in mouthful renders in a second window with rendering module 11 links.
The D Urban model of the present embodiment and the linkage of two-dimensional map, three-dimensional city is realized by using above-mentioned module The realization principle and technique effect of the linkage of city's model and two-dimensional map are identical with realizing for above-mentioned related method embodiment, in detail The record of above-mentioned related method embodiment is carefully may be referred to, will not be repeated here.
Still optionally further, in the linkage of the D Urban model in above-mentioned embodiment illustrated in fig. 5 and two-dimensional map, Display processing module 10 is specifically used for the API using two-dimensional map, and with reference to COM technologies, two-dimensional map is shown to framework In first window.
Still optionally further, in the linkage of the D Urban model in above-mentioned embodiment illustrated in fig. 5 and two-dimensional map, Rendering module 11 is specifically used for utilizing OpenGL, with reference to the second window under VCG storehouses renders three-dimensional city model to the framework at place In mouthful.
Still optionally further, in the linkage of the D Urban model in above-mentioned embodiment illustrated in fig. 5 and two-dimensional map, Interlocking module 12 is specifically used for:
In a second window, the building that user selects in the D Urban model that rendering module 11 renders to obtain is received Figure;
Obtain the geographical coordinate of building figure in the D Urban model of the second window;
In a second window, the geographical coordinate of building figure is sent to first window;
The geographical coordinate of the building figure of the second window transmission is received in first window;
In first window, the API of two-dimensional map is called according to the geographical coordinate of building figure, with display processing mould The target location that geographical coordinate pair is answered is positioned in the two-dimensional map that block 10 is shown in first window, realizes two in first window The D Urban model tieed up in map and the second window links.
Or alternatively, D Urban model in above-mentioned embodiment illustrated in fig. 5 and in the linkage of two-dimensional map, connection Dynamic model block 12 is specifically used for:
The target location that user selects in the two-dimensional map that Display processing module 10 is shown is received in first window;
In first window, the API of two-dimensional map is called according to target location, to obtain target location in two-dimensional map Geographical coordinate;
In first window, the geographical coordinate of target location is sent to the second window;
In a second window, the geographical coordinate for the target location that first window is sent is received;
The building that geographical coordinate pair is answered is positioned in the second window, D Urban model that rendering module 11 renders to obtain Thing figure, realize the two-dimensional map linkage in the D Urban model and first window in the second window.
Still optionally further, in the linkage of the D Urban model in above-mentioned embodiment illustrated in fig. 5 and two-dimensional map, If the building figure that Display processing module 10 is additionally operable in the D Urban model in the second window is chosen, in the first window Mouthful two-dimensional map in, with the geographical coordinate identical target location of building figure show selected mark;
Or if Display processing module 10 is when being additionally operable to target location in the two-dimensional map of first window and being chosen, the In D Urban model in two windows, the selected mark of geographical coordinate identical building figure shows with target location Know.
Fig. 6 is the structure chart of the computer equipment embodiment of the present invention.As shown in fig. 6, the computer equipment of the present embodiment, Including:One or more processors 30, and memory 40, memory 40 are used to store one or more programs, work as memory The one or more programs stored in 40 are performed by one or more processors 30 so that one or more processors 30 are realized such as The D Urban model of figure 1 above-embodiment illustrated in fig. 4 and the interlock method of two-dimensional map.With including more in embodiment illustrated in fig. 6 Exemplified by individual processor 30.
For example, Fig. 7 is a kind of exemplary plot of computer equipment provided by the invention.Fig. 7 is shown suitable for being used for realizing this The exemplary computer device 12a of invention embodiment block diagram.The computer equipment 12a that Fig. 7 is shown is only an example, Any restrictions should not be brought to the function and use range of the embodiment of the present invention.
As shown in fig. 7, computer equipment 12a is showed in the form of universal computing device.Computer equipment 12a component can To include but is not limited to:One or more processor 16a, system storage 28a, connection different system component (including system Memory 28a and processor 16a) bus 18a.
Bus 18a represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Computer equipment 12a typically comprises various computing systems computer-readable recording medium.These media can be it is any can The usable medium accessed by computer equipment 12a, including volatibility and non-volatile media, moveable and immovable Jie Matter.
System storage 28a can include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 30a and/or cache memory 32a.Computer equipment 12a may further include it is other it is removable/ Immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 34a can be used for reading Write immovable, non-volatile magnetic media (Fig. 7 is not shown, is commonly referred to as " hard disk drive ").Although not shown in Fig. 7, It can provide for the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-easy The CD drive of the property lost CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each Driver can be connected by one or more data media interfaces with bus 18a.System storage 28a can be included at least One program product, the program product have one group of (for example, at least one) program module, and these program modules are configured to hold The function of the above-mentioned each embodiments of Fig. 1-Fig. 5 of the row present invention.
Program with one group of (at least one) program module 42a/utility 40a, such as system can be stored in and deposited In reservoir 28a, such program module 42a include --- but being not limited to --- operating system, one or more application program, Other program modules and routine data, the reality of network environment may be included in each or certain combination in these examples It is existing.Program module 42a generally performs the function and/or method in above-mentioned each embodiments of Fig. 1-Fig. 5 described in the invention.
Computer equipment 12a can also be with one or more external equipment 14a (such as keyboard, sensing equipment, display 24a etc.) communication, the equipment communication interacted with computer equipment 12a can be also enabled a user to one or more, and/or (such as network interface card is adjusted with enabling any equipment that computer equipment 12a communicated with one or more of the other computing device Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 22a.Also, computer equipment 12a can also by network adapter 20a and one or more network (such as LAN (LAN), wide area network (WAN) and/or Public network, such as internet) communication.As illustrated, network adapter 20a by bus 18a and computer equipment 12a its Its module communicates.It should be understood that although not shown in the drawings, other hardware and/or software can be used with reference to computer equipment 12a Module, include but is not limited to:Microcode, device driver, redundant processor, external disk drive array, RAID system, tape Driver and data backup storage system etc..
Processor 16a is stored in program in system storage 28a by operation, so as to perform various function application and Data processing, such as realize the interlock method of the D Urban model and two-dimensional map shown in above-described embodiment.
The present invention also provides a kind of computer-readable medium, is stored thereon with computer program, the program is held by processor The interlock method of the D Urban model and two-dimensional map as shown in above-mentioned embodiment is realized during row.
The computer-readable medium of the present embodiment can be included in the system storage 28a in above-mentioned embodiment illustrated in fig. 7 RAM30a, and/or cache memory 32a, and/or storage system 34a.
With the development of science and technology, the route of transmission of computer program is no longer limited by tangible medium, can also be directly from net Network is downloaded, or is obtained using other modes.Therefore, the computer-readable medium in the present embodiment can not only include tangible Medium, invisible medium can also be included.
The computer-readable medium of the present embodiment can use any combination of one or more computer-readable media. Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable storage medium Matter for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or Combination more than person is any.The more specifically example (non exhaustive list) of computer-readable recording medium includes:With one Or the electrical connections of multiple wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable recording medium can Be it is any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium beyond computer-readable recording medium, the computer-readable medium can send, propagate or Transmit for by instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that operates of the present invention Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with Fully perform, partly perform on the user computer on the user computer, the software kit independent as one performs, portion Divide and partly perform or performed completely on remote computer or server on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service Pass through Internet connection for business).
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode when actually realizing.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are causing a computer It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.

Claims (14)

1. the interlock method of a kind of D Urban model and two-dimensional map, it is characterised in that methods described includes:
Two-dimensional map is shown into the first window under the framework where D Urban model;
In the second window under the framework where the D Urban model, the D Urban model is rendered;
Based on geographical coordinate, by the two-dimensional map in the first window under the same framework and second window In the D Urban model linkage get up.
2. according to the method for claim 1, it is characterised in that two-dimensional map is shown to the frame to where D Urban model In first window under structure, specifically include:
Using the API of the two-dimensional map, with reference to COM technologies, the two-dimensional map is shown to described to the framework In one window.
3. according to the method for claim 1, it is characterised in that under the framework where the D Urban model In second window, the D Urban model is rendered, is specifically included:
Using OpenGL, second window under the D Urban model to the framework at place is rendered with reference to VCG storehouses In.
4. according to the method for claim 1, it is characterised in that based on geographical coordinate, described under the same framework The two-dimensional map in first window gets up with the D Urban model linkage in second window, specifically includes:
In second window, the building figure that user selects in the D Urban model is received;
Obtain the geographical coordinate of building figure described in the D Urban model of second window;
In second window, the geographical coordinate of the building figure is sent to the first window;
The geographical coordinate for the building figure that second window is sent is received in the first window;
In the first window, the API of the two-dimensional map is called according to the geographical coordinate of the building figure, with institute Target location corresponding to positioning the geographical coordinate in the two-dimensional map of first window is stated, is realized in the first window The two-dimensional map links with the D Urban model in second window.
5. according to the method for claim 1, it is characterised in that based on geographical coordinate, described under the same framework The two-dimensional map in first window gets up with the D Urban model linkage in second window, specifically includes:
The target location that user selects in the two-dimensional map is received in the first window;
In the first window, the API of the two-dimensional map is called according to the target location, to obtain the two-dimensional map Described in target location geographical coordinate;
In the first window, the geographical coordinate of the target location is sent to second window;
In second window, the geographical coordinate for the target location that the first window is sent is received;
Building figure corresponding to the geographical coordinate is positioned in the D Urban model of second window, realizes institute The D Urban model stated in the second window links with the two-dimensional map in the first window.
6. according to the method described in claim 4 or 5, it is characterised in that based on geographical coordinate, by under the same framework After the two-dimensional map in the first window gets up with the D Urban model linkage in second window, institute Stating method also includes:
If the building figure in the D Urban model in second window is chosen, in first window Shown in the two-dimensional map of mouth, with target location described in the geographical coordinate identical of the building figure selected Mark;
If or the target location in the two-dimensional map of the first window is when being chosen, in second window The D Urban model in, it is selected with building figure shows described in the geographical coordinate identical of the target location Mark.
7. the linkage of a kind of D Urban model and two-dimensional map, it is characterised in that described device includes:
Display processing module, for two-dimensional map to be shown into the first window under the framework where D Urban model;
Rendering module, in the second window under the framework where the D Urban model, rendering the three-dimensional City model;
Interlocking module, for based on geographical coordinate, by the two-dimensional map in the first window under the same framework Get up with the D Urban model linkage in second window.
8. device according to claim 7, it is characterised in that the Display processing module, specifically for utilizing described two The API of map is tieed up, with reference to COM technologies, the two-dimensional map is shown in the first window to the framework.
9. device according to claim 7, it is characterised in that the rendering module, specifically for using OpenGL, with reference to VCG storehouses are rendered in second window under the D Urban model to the framework at place.
10. device according to claim 7, it is characterised in that the interlocking module, be specifically used for:
In second window, the building figure that user selects in the D Urban model is received;
Obtain the geographical coordinate of building figure described in the D Urban model of second window;
In second window, the geographical coordinate of the building figure is sent to the first window;
The geographical coordinate for the building figure that second window is sent is received in the first window;
In the first window, the API of the two-dimensional map is called according to the geographical coordinate of the building figure, with institute Target location corresponding to positioning the geographical coordinate in the two-dimensional map of first window is stated, is realized in the first window The two-dimensional map links with the D Urban model in second window.
11. device according to claim 7, it is characterised in that the interlocking module, be specifically used for:
The target location that user selects in the two-dimensional map is received in the first window;
In the first window, the API of the two-dimensional map is called according to the target location, to obtain the two-dimensional map Described in target location geographical coordinate;
In the first window, the geographical coordinate of the target location is sent to second window;
In second window, the geographical coordinate for the target location that the first window is sent is received;
Building figure corresponding to the geographical coordinate is positioned in the D Urban model of second window, realizes institute The D Urban model stated in the second window links with the two-dimensional map in the first window.
12. according to the device described in claim 10 or 11, it is characterised in that the Display processing module, if being additionally operable to institute When stating the building figure in the D Urban model in the second window and being chosen, described in the first window Selected mark is shown in two-dimensional map, with target location described in the geographical coordinate identical of the building figure;
Or the Display processing module, if being additionally operable to the target location quilt in the two-dimensional map of the first window During selection, in the D Urban model in second window, the geographical coordinate identical institute with the target location State the selected mark of building figure shows.
13. a kind of computer equipment, it is characterised in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-6.
14. a kind of computer-readable medium, is stored thereon with computer program, it is characterised in that the program is executed by processor Methods of the Shi Shixian as described in any in claim 1-6.
CN201710527018.0A 2017-06-30 2017-06-30 The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium Pending CN107480174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527018.0A CN107480174A (en) 2017-06-30 2017-06-30 The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527018.0A CN107480174A (en) 2017-06-30 2017-06-30 The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107480174A true CN107480174A (en) 2017-12-15

Family

ID=60596397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527018.0A Pending CN107480174A (en) 2017-06-30 2017-06-30 The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107480174A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857825A (en) * 2019-01-16 2019-06-07 广州城投发展研究院有限公司 A kind of threedimensional model methods of exhibiting and system
CN109885369A (en) * 2019-02-22 2019-06-14 北京知道创宇信息技术股份有限公司 Image interlock method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243086A1 (en) * 2004-05-03 2005-11-03 Microsoft Corporation Integration of three dimensional scene hierarchy into two dimensional compositing system
CN101630419A (en) * 2009-08-13 2010-01-20 苏州市数字城市工程研究中心有限公司 Structuring method for three-dimensional visualizing system of urban synthesis pipeline network
CN103399928A (en) * 2013-08-07 2013-11-20 中国水电顾问集团成都勘测设计研究院 Method for achieving linkage between two-dimensional map and three-dimensional map on Web page
CN103971589A (en) * 2013-01-28 2014-08-06 腾讯科技(深圳)有限公司 Processing method and device for adding interest point information of map to street scene images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050243086A1 (en) * 2004-05-03 2005-11-03 Microsoft Corporation Integration of three dimensional scene hierarchy into two dimensional compositing system
CN101630419A (en) * 2009-08-13 2010-01-20 苏州市数字城市工程研究中心有限公司 Structuring method for three-dimensional visualizing system of urban synthesis pipeline network
CN103971589A (en) * 2013-01-28 2014-08-06 腾讯科技(深圳)有限公司 Processing method and device for adding interest point information of map to street scene images
CN103399928A (en) * 2013-08-07 2013-11-20 中国水电顾问集团成都勘测设计研究院 Method for achieving linkage between two-dimensional map and three-dimensional map on Web page

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857825A (en) * 2019-01-16 2019-06-07 广州城投发展研究院有限公司 A kind of threedimensional model methods of exhibiting and system
CN109857825B (en) * 2019-01-16 2021-09-14 广州城投发展研究院有限公司 Three-dimensional model display method and system
CN109885369A (en) * 2019-02-22 2019-06-14 北京知道创宇信息技术股份有限公司 Image interlock method and device
CN109885369B (en) * 2019-02-22 2022-04-29 北京知道创宇信息技术股份有限公司 Image linkage method and device

Similar Documents

Publication Publication Date Title
KR102047031B1 (en) Deep Stereo: Learning to predict new views from real world images
Keil et al. Creating immersive virtual environments based on open geospatial data and game engines
AU2017251816B2 (en) Rendering map images using modifications of non-raster map data
US10593098B2 (en) Smooth draping layer for rendering vector data on complex three dimensional objects
CN107515888A (en) Hooking method, device and the computer-readable recording medium of POI in D Urban model
US20190026400A1 (en) Three-dimensional modeling from point cloud data migration
Hill et al. Kharma: An open kml/html architecture for mobile augmented reality applications
US20150243073A1 (en) Systems and Methods for Refining an Aerial Image
CN110379010A (en) Three-dimensional geographic information method for visualizing and system based on video fusion
Nurminen m-LOMA-a mobile 3D city map
US20190026938A1 (en) Three-dimensional modeling from optical capture
EP2806645B1 (en) Image enhancement using a multi-dimensional model
AU2008344241A1 (en) Method and system for serving three dimension web map service using augmented reality
CN102782729A (en) Integrated Gis system with interactive 3D interface
CN108597021B (en) Integrated display method and system for three-dimensional models above and below ground
US20130083015A1 (en) Occlusion of vector image data
US10504283B2 (en) Method and apparatus for regularizing building footprints using taxicab distance
CN107452061A (en) Generation method, device, equipment and the computer-readable recording medium of building model based on oblique photograph technology
CN107464286A (en) Hole repair method and device, equipment and computer-readable recording medium in D Urban model
CN107084740A (en) A kind of air navigation aid and device
CN107480173A (en) The methods of exhibiting and device of POI, equipment and computer-readable recording medium
CN107480174A (en) The interlock method of D Urban model and two-dimensional map, device and computer-readable recording medium
CN107481316A (en) Indoor and outdoor panorama switching method, device and the computer-readable recording medium of D Urban model
Le Hoang Son et al. Developing JSG framework and applications in COMGIS project
CN107452046A (en) The Texture Processing Methods and device of D Urban model, equipment and computer-readable recording medium

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: 20171215