CN113448472B - Binding method of GIS data and three-dimensional model interaction behavior and related device - Google Patents

Binding method of GIS data and three-dimensional model interaction behavior and related device Download PDF

Info

Publication number
CN113448472B
CN113448472B CN202110633409.7A CN202110633409A CN113448472B CN 113448472 B CN113448472 B CN 113448472B CN 202110633409 A CN202110633409 A CN 202110633409A CN 113448472 B CN113448472 B CN 113448472B
Authority
CN
China
Prior art keywords
dimensional model
gps coordinate
coordinate data
binding
setting
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.)
Active
Application number
CN202110633409.7A
Other languages
Chinese (zh)
Other versions
CN113448472A (en
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.)
Shenlan Technology Wuhan Co ltd
Original Assignee
Shenlan Technology Wuhan 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 Shenlan Technology Wuhan Co ltd filed Critical Shenlan Technology Wuhan Co ltd
Priority to CN202110633409.7A priority Critical patent/CN113448472B/en
Publication of CN113448472A publication Critical patent/CN113448472A/en
Application granted granted Critical
Publication of CN113448472B publication Critical patent/CN113448472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a method and a device for binding GIS data and three-dimensional model interactive behaviors, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: loading a three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library, and displaying the three-dimensional model on a web page of the browser; acquiring first GPS coordinate data corresponding to the first click operation by using a GIS library, and popping up a setting page; receiving a setting operation through a setting page, and setting the value of at least one preset parameter based on the setting operation; and receiving a storage operation through the setting page, responding to the storage operation, acquiring a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and binding the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters. The method can update the three-dimensional model in real time, and has good real-time performance.

Description

Binding method of GIS data and three-dimensional model interaction behavior and related device
Technical Field
The application relates to the technical field of data processing, in particular to a method and a device for binding GIS data and three-dimensional model interaction behaviors, electronic equipment and a computer readable storage medium.
Background
The GIS, i.e., Geographic Information System, is a specific spatial Information System of great importance. The system is a technical system for collecting, storing, managing, operating, analyzing, displaying and describing geographic distribution data in the whole or partial earth surface space under the support of a computer hardware and software system, wherein a geographic information system is a comprehensive subject, combines geography and cartography, remote sensing and computer science, is widely applied to different fields and is a computer system for inputting, storing, inquiring, analyzing and displaying geographic data.
In recent years, three-dimensional real-scene modeling technology is widely applied, and with the development of information technology, the improvement of hardware performance and the support of various advanced algorithms, a three-dimensional geographic information system has been developed to be an important component of a world information system. The intelligent safety system is accepted by users in various industries, and is favored in the fields of urban planning management (smart cities), comprehensive security emergency, public safety (smart public security, fire protection and the like), military simulation, virtual tourism (smart tourism), intelligent transportation, ocean resource management, petroleum pipelines, wireless site selection and the like.
The existing three-dimensional model visualization application program has high requirements on hardware equipment, is very unsmooth as long as the loaded data volume is large, and has serious operation delay under the scene of frequent operation.
Disclosure of Invention
The application aims to provide a method and a device for binding GIS data and three-dimensional model interaction behaviors, electronic equipment and a computer readable storage medium, which can update a three-dimensional model in real time, so that the real-time effect of user input and the model is displayed without delay, and the real-time performance is good.
The purpose of the application is realized by adopting the following technical scheme:
in a first aspect, the present application provides a method for binding interaction behaviors of GIS data and a three-dimensional model, where the method includes: loading a three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library, and displaying the three-dimensional model on a web page of the browser; receiving a first click operation on the three-dimensional model through the web page, acquiring first GPS coordinate data corresponding to the first click operation by using the GIS library, and popping up a setting page, wherein the setting page is used for setting values of preset parameters of a virtual interaction three-dimensional shape corresponding to the first GPS coordinate data; receiving a setting operation through the setting page, and setting a value of at least one preset parameter based on the setting operation; when the value of any preset parameter changes, the three-dimensional model is updated in real time, and the updated three-dimensional model is displayed on the web page in real time; and receiving a storage operation through the setting page, responding to the storage operation, acquiring a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and binding the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters. The technical scheme has the advantages that the three-dimensional model can be loaded by using the browser and displayed on the web page, when any one of the three-dimensional models is clicked, the first GPS coordinate data can be acquired and the corresponding setting page can be popped up, so that the visualization of the setting data is realized, and the user can understand and operate more easily.
On one hand, the value of the preset parameter can be set by using the setting page, and the virtual interactive three-dimensional shape is adjusted, so that the three-dimensional model is adjusted; on one hand, the setting page can be used for binding the GPS coordinate data range corresponding to the virtual interaction three-dimensional shape and values of all preset parameters, so that all the preset parameters can be directly called based on the GPS coordinate data range corresponding to the virtual interaction three-dimensional shape; on the other hand, the existing three-dimensional model visualization application program has high requirements on hardware equipment, is very unsmooth as long as the loaded data volume is large, and is seriously delayed in operation under the scene of frequent operation.
In some optional embodiments, the preset parameters include: the first GPS coordinate data correspond to a virtual interactive three-dimensional shape GPS coordinate, a geometric dimension and an attitude parameter; the method further comprises the following steps: receiving a second click operation on the three-dimensional model through the web page, and acquiring second GPS coordinate data corresponding to the second click operation by using the GIS library; and when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, drawing the virtual interactive three-dimensional shape by using the value of the preset parameter bound to the GPS coordinate data range. The technical scheme has the advantages that when the value setting of all preset parameters is completed and the three-dimensional model is clicked again, whether the second GPS coordinate data are in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape or not can be judged, if yes, the virtual interactive three-dimensional shape can be drawn based on the values of all the preset parameters, and the intelligent level is high.
In some optional embodiments, the setting page is further configured to set a value of a pose parameter of a simulated camera corresponding to the virtual interactive three-dimensional shape; the method further comprises the following steps: and when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, setting corresponding parameters of the analog camera by using values of attitude parameters bound to the GPS coordinate data range. The technical scheme has the advantages that when the value setting of all preset parameters is completed and the three-dimensional model is clicked again, the corresponding parameters of the simulation camera can be set based on the values of the attitude parameters, the observation angle of the three-dimensional model display page can be determined according to the corresponding parameters of the simulation camera, and the corresponding parameters of the simulation camera are different under different observation angles.
In some optional embodiments, the method further comprises: receiving a zoom operation through the web page, and synchronously zooming the three-dimensional model and the virtual interactive three-dimensional shape based on the zoom operation. The technical scheme has the advantages that the user can set a proper scaling on the web page, so that the three-dimensional model and the virtual interactive three-dimensional shape are synchronously scaled, and the whole and the details of the three-dimensional model can be conveniently observed.
In some optional embodiments, the method further comprises: and storing binding data by using a Web Storage technology, wherein the binding data is generated by binding a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters. The technical scheme has the advantages that the Web Storage technology can be used for storing the binding data, the binding operation performance is improved, when the three-dimensional model is clicked again, the speed of obtaining values of all preset parameters can be increased, and the response speed is improved.
In some alternative embodiments, the virtual interactive three-dimensional shape is a virtual interactive cuboid, the geometric dimensions of the virtual interactive three-dimensional shape including a length, a width, and a height. The technical scheme has the beneficial effects that the shape of the virtual interactive cuboid can be adjusted by setting the length, the width and the height of the virtual interactive cuboid.
In some optional embodiments, the preset parameters further include at least one of: color, texture, transparency, brightness, contrast, and saturation of the virtual interactive three-dimensional shape. The technical scheme has the advantages that through setting the preset parameters, the personalized display of the virtual interactive three-dimensional shape can be realized, and the use experience of a user is improved.
In some optional embodiments, a javascript-based MVVM architecture is adopted as a front-end architecture of the browser. The technical scheme has the advantages that the MVVM architecture has the advantages of low coupling, repeatability, testability and the like, and the front-end developer can be simplified by adopting the MVVM architecture based on javascript as the front-end architecture of the browser.
In a second aspect, the present application provides a device for binding GIS data and three-dimensional model interaction behavior, the device comprising: the model loading module is used for loading a three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library and displaying the three-dimensional model on a web page of the browser; the first click module is used for receiving a first click operation on the three-dimensional model through the web page, acquiring first GPS coordinate data corresponding to the first click operation by using the GIS library, and popping up a setting page, wherein the setting page is used for setting values of preset parameters of a virtual interaction three-dimensional shape corresponding to the first GPS coordinate data; the parameter setting module is used for receiving setting operation through the setting page and setting the value of at least one preset parameter based on the setting operation; when the value of any preset parameter changes, the three-dimensional model is updated in real time, and the updated three-dimensional model is displayed on the web page in real time; and the data binding module is used for receiving a storage operation through the setting page, responding to the storage operation, acquiring a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and binding the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters.
In some optional embodiments, the preset parameters include: the first GPS coordinate data correspond to a virtual interactive three-dimensional shape GPS coordinate, a geometric dimension and an attitude parameter; the device further comprises: the second click module is used for receiving a second click operation on the three-dimensional model through the web page and acquiring second GPS coordinate data corresponding to the second click operation by utilizing the GIS library; and the shape drawing module is used for drawing the virtual interactive three-dimensional shape by using the value of a preset parameter bound by the GPS coordinate data range when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape.
In some optional embodiments, the setting page is further configured to set a value of a pose parameter of a simulated camera corresponding to the virtual interactive three-dimensional shape; the device further comprises: and the camera parameter module is used for setting corresponding parameters of the simulation camera by using values of attitude parameters bound by the GPS coordinate data range when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape.
In some optional embodiments, the apparatus further comprises: and the model scaling module is used for receiving scaling operation through the web page and synchronously scaling the three-dimensional model and the virtual interactive three-dimensional shape based on the scaling operation.
In some optional embodiments, the apparatus further comprises: and the data Storage module is used for storing binding data by using a Web Storage technology, wherein the binding data is generated by binding the GP S coordinate data range corresponding to the virtual interactive three-dimensional shape and the values of all preset parameters.
In some alternative embodiments, the virtual interactive three-dimensional shape is a virtual interactive cuboid, the geometric dimensions of the virtual interactive three-dimensional shape including a length, a width, and a height.
In some optional embodiments, the preset parameters further include at least one of: color, texture, transparency, brightness, contrast, and saturation of the virtual interactive three-dimensional shape.
In some optional embodiments, a javascript-based MVVM architecture is adopted as a front-end architecture of the browser.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
Drawings
The present application is further described below with reference to the drawings and examples.
Fig. 1 is a schematic flowchart of a method for binding interaction behaviors of GIS data and a three-dimensional model according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a setup page provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a three-dimensional model rendered with a virtual interactive three-dimensional shape according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another three-dimensional model rendered with a virtual interactive three-dimensional shape according to an embodiment of the present application;
fig. 5 is a partial flowchart of a method for binding interaction behavior of GIS data and a three-dimensional model according to an embodiment of the present application;
FIG. 6 is a partial schematic flowchart of another method for binding GIS data and three-dimensional model interaction behavior provided in the embodiment of the present application;
FIG. 7 is a partial flowchart of a method for binding interaction behavior of GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another method for binding interaction behavior of GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a binding apparatus for interaction between GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 10 is a partial structural schematic diagram of a binding apparatus for interaction between GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 11 is a partial structural schematic diagram of another binding apparatus for interaction between GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 12 is a partial structural schematic diagram of another binding apparatus for interaction between GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another binding apparatus for interaction between GIS data and a three-dimensional model according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a program product for implementing a method for binding GIS data and three-dimensional model interaction behavior according to an embodiment of the present application.
Detailed Description
The present application is further described with reference to the accompanying drawings and the detailed description, and it should be noted that, in the present application, the embodiments or technical features described below may be arbitrarily combined to form a new embodiment without conflict.
Referring to fig. 1, an embodiment of the present application provides a method for binding GIS data and three-dimensional model interaction behaviors, where the method includes steps S101 to S104.
Step S101: and loading the three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library, and displaying the three-dimensional model on a web page of the browser. The GIS library can be a GIS library based on Javascript, the Javascript is a lightweight, interpreted or just-in-time compiled programming language with function priority, and can be used as a scripting language for developing Web pages.
Step S102: and receiving a first click operation on the three-dimensional model through the web page, acquiring first GPS coordinate data corresponding to the first click operation by using the GIS library, and popping up a setting page, wherein the setting page is used for setting values of preset parameters of a virtual interaction three-dimensional shape corresponding to the first GPS coordinate data.
In a specific application, the preset parameters may include: and the GPS coordinates, the geometric dimensions and the attitude parameters of the virtual interactive three-dimensional shape corresponding to the first GPS coordinate data.
The type of the virtual interactive three-dimensional shape is not limited in the embodiment of the application, and the virtual interactive three-dimensional shape can be a cuboid, a cylinder, a cone, a circular truncated cone or other shapes, can be a regular shape or an irregular shape, can be an axisymmetric shape or a non-axisymmetric shape, and has different virtual interactive three-dimensional shapes and different corresponding parameters.
In a specific application, the virtual interactive three-dimensional shape is, for example, a virtual interactive cuboid, in which case the setting page is as shown in fig. 2, and the three-dimensional model with the virtual interactive three-dimensional shape is drawn as shown in fig. 3 and 4. The GPS coordinates of the virtual interactive three-dimensional shape to which the first GPS coordinate data corresponds may include longitude coordinates, such as 114.27185, latitude coordinates, such as 30.57024, and altitude coordinates, such as 124. The geometric dimensions of the virtual interactive three-dimensional shape corresponding to the first GPS coordinate data may include dimensions of three dimensions, i.e., a length dimension, a width dimension, and a height dimension, where the length dimension is, for example, 15, the width dimension is, for example, 2, and the height dimension is, for example, 3.
In one specific application, the virtual interactive three-dimensional shape is, for example, a virtual interactive cylinder, and the geometric dimension of the virtual interactive three-dimensional shape corresponding to the first GPS coordinate data may include a base radius and a height.
The attitude parameters of the virtual interactive three-dimensional shape corresponding to the first GPS coordinate data may include a skew angle, a tilt angle, and a roll angle of the virtual interactive three-dimensional shape.
The offset angle corresponding to the first GPS coordinate data is the header of the model parameter area in fig. 2, the inclination angle corresponding to the first GPS coordinate data is the pitch of the model parameter area in fig. 2, and the roll angle corresponding to the first GPS coordinate data is the roll of the model parameter area in fig. 2, where the value of the header is, for example, -0.1, the value of the pitch is, for example, 0, and the value of the roll is, for example, 0.03.
In a specific application, a right-handed cartesian coordinate system is established in a three-dimensional space, a value of the header is, for example, an angle of rotation of the virtual interactive three-dimensional shape around an X axis, a value of the pitch is, for example, an angle of rotation of the virtual interactive three-dimensional shape around a Y axis, and a value of the roll is, for example, an angle of rotation of the virtual interactive three-dimensional shape around a Z axis.
In a specific application, the setting page is a setting page based on an HTML/CSS technique, and a user can modify values of any one or more preset parameters through an input box in the setting page. HTML, hypertext markup language, is a markup language. The document format on the network can be unified through the labels, so that the scattered Internet resources are connected into a logic whole. CS S, or Cascading Style Sheets, is a computer language used to represent file styles such as HTML (an application of standard universal markup language) or XML (a subset of standard universal markup language).
In a particular application, the virtual interactive three-dimensional shape may be a virtual interactive cuboid, and the geometric dimensions of the virtual interactive three-dimensional shape may include a length, a width, and a height.
Therefore, the shape of the virtual interactive cuboid can be adjusted by setting the length, the width and the height of the virtual interactive cuboid.
In a specific application, the preset parameter may further include at least one of the following: color, texture, transparency, brightness, contrast, and saturation of the virtual interactive three-dimensional shape.
Therefore, through setting the preset parameters, the personalized display of the virtual interactive three-dimensional shape can be realized, and the use experience of a user is improved.
Step S103: receiving a setting operation through the setting page, and setting a value of at least one preset parameter based on the setting operation; and when the value of any preset parameter changes, updating the three-dimensional model in real time, and displaying the updated three-dimensional model on the web page in real time.
In a specific application, a javascript-based MVVM architecture may be adopted as the front-end architecture of the browser. An MVVM, i.e., a Model-view-view Model, is a software architecture Model, which can abstract states and behaviors of a view therein, and separate development of a graphical user interface and business logic or back-end logic (data Model).
The MVVM architecture has the advantages of low coupling, repeatability, testability and the like, and the front-end developer can be simplified by adopting the MVVM architecture based on javascript as the front-end architecture of the browser.
Step S104: and receiving a storage operation through the setting page, responding to the storage operation, acquiring a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and binding the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters.
Therefore, the three-dimensional model can be loaded by using the browser and displayed on the web page, when any one of the three-dimensional models is clicked, the first GPS coordinate data can be acquired and the corresponding setting page can be popped up, so that the visualization of the setting data is realized, and the user can understand and operate more easily.
On one hand, the value of the preset parameter can be set by using the setting page, and the virtual interactive three-dimensional shape is adjusted, so that the three-dimensional model is adjusted; on one hand, the setting page can be used for binding the GPS coordinate data range corresponding to the virtual interaction three-dimensional shape and values of all preset parameters, so that all the preset parameters can be directly called based on the GPS coordinate data range corresponding to the virtual interaction three-dimensional shape; on the other hand, the existing three-dimensional model visualization application program has high requirements on hardware equipment, is very unsmooth as long as the loaded data volume is large, and is seriously delayed in operation under the scene of frequent operation.
Referring to fig. 5, in some embodiments, the method may further include steps S105 to S106.
Step S105: and receiving a second click operation on the three-dimensional model through the web page, and acquiring second GPS coordinate data corresponding to the second click operation by using the GIS library.
Step S106: and when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, drawing the virtual interactive three-dimensional shape by using the value of the preset parameter bound to the GPS coordinate data range.
Therefore, when the value setting of all preset parameters is completed and the three-dimensional model is clicked again, whether the second GPS coordinate data are in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape or not can be judged, if yes, the virtual interactive three-dimensional shape can be drawn based on the values of all the preset parameters, and the intelligent level is high.
Referring to fig. 6, in some embodiments, the setting page may be further configured to set a value of a pose parameter of a simulated camera corresponding to the virtual interactive three-dimensional shape; the method may further comprise step S107.
Step S107: and when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, setting corresponding parameters of the analog camera by using values of attitude parameters bound to the GPS coordinate data range.
Therefore, when the value setting of all preset parameters is completed and the three-dimensional model is clicked again, the corresponding parameters of the simulation camera can be set based on the values of the attitude parameters, the corresponding parameters of the simulation camera can determine the observation visual angle of the three-dimensional model display page, and the corresponding parameters of the simulation camera are different under different observation visual angles.
In a specific application, the attitude parameters of the simulated camera corresponding to the virtual interactive three-dimensional shape may include a skew angle, a tilt angle and a roll angle of the simulated camera, or may include a skew angle, a tilt angle and a height of the simulated camera.
Referring to fig. 2, a skew angle of the analog camera corresponding to the virtual interactive three-dimensional shape is header of the view parameter area in fig. 2, an inclination angle of the analog camera corresponding to the virtual interactive three-dimensional shape is pitch of the view parameter area in fig. 2, and a height of the analog camera corresponding to the virtual interactive three-dimensional shape is range of the view parameter area in fig. 2, where the header has a value of 188.968728834716, the pitch has a value of-31.230880295178, and the range has a value of 85.
In a specific application, a right-hand cartesian coordinate system is established in a three-dimensional space, a value of the header is, for example, an angle of the simulated camera rotating around a Z axis, a value of the pitch is, for example, an angle of the simulated camera rotating around a Y axis, and a value of the range is, for example, a distance between the simulated camera and the three-dimensional model.
Referring to fig. 7, in some embodiments, the method may further include step S108.
Step S108: receiving a zoom operation through the web page, and synchronously zooming the three-dimensional model and the virtual interactive three-dimensional shape based on the zoom operation.
Therefore, a user can set a proper scaling on the web page, so that the three-dimensional model and the virtual interactive three-dimensional shape are synchronously scaled, and the whole and the details of the three-dimensional model can be conveniently observed.
Referring to fig. 8, in some embodiments, the method may further include step S109.
Step S109: and storing binding data by using a Web Storage technology, wherein the binding data are generated by binding a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters. The Web Storage technology is a client Storage technology based on a browser.
Therefore, the Web Storage technology can be used for storing the binding data, the binding operation performance is improved, when the three-dimensional model is clicked again, the speed of obtaining the values of all the preset parameters can be increased, and the response speed is improved.
Referring to fig. 9, an embodiment of the present application further provides a device for binding a GIS data and three-dimensional model interaction behavior, and a specific implementation manner of the device is consistent with the implementation manner and achieved technical effect described in the embodiment of the method for binding a GIS data and three-dimensional model interaction behavior, and details of the implementation manner and achieved technical effect are not repeated.
The device comprises: the model loading module 101 is used for loading a three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library and displaying the three-dimensional model on a web page of the browser; the first click module 102 is configured to receive a first click operation on the three-dimensional model through the web page, acquire first GPS coordinate data corresponding to the first click operation by using the GIS library, and pop up a setting page, where the setting page is used to set a value of a preset parameter of a virtual interactive three-dimensional shape corresponding to the first GPS coordinate data; the parameter setting module 103 is configured to receive a setting operation through the setting page, and set a value of at least one preset parameter based on the setting operation; when the value of any preset parameter changes, the three-dimensional model is updated in real time, and the updated three-dimensional model is displayed on the web page in real time; and the data binding module 104 is configured to receive a saving operation through the setting page, obtain, in response to the saving operation, a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and bind the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters.
In a specific application, a javascript-based MVVM architecture may be adopted as the front-end architecture of the browser.
In a particular application, the virtual interactive three-dimensional shape may be a virtual interactive cuboid, and the geometric dimensions of the virtual interactive three-dimensional shape may include a length, a width, and a height.
Referring to fig. 10, in some embodiments, the preset parameters may include: the first GPS coordinate data correspond to a virtual interactive three-dimensional shape GPS coordinate, a geometric dimension and an attitude parameter; the apparatus may further include: the second click module 105 may be configured to receive a second click operation on the three-dimensional model through the web page, and acquire, by using the GIS library, second GPS coordinate data corresponding to the second click operation; the shape drawing module 106 may be configured to draw the virtual interactive three-dimensional shape by using a value of a preset parameter bound to the GPS coordinate data range when it is detected that the second GPS coordinate data is within the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape.
In a specific application, the preset parameter may further include at least one of the following: color, texture, transparency, brightness, contrast, and saturation of the virtual interactive three-dimensional shape.
Referring to fig. 11, in some embodiments, the setting page may be further configured to set a value of a pose parameter of a simulated camera corresponding to the virtual interactive three-dimensional shape; the apparatus may further include: the camera parameter module 107 may be configured to set, when it is detected that the second GPS coordinate data is within a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, a corresponding parameter of the analog camera using a value of an attitude parameter bound to the GPS coordinate data range.
Referring to fig. 12, in some embodiments, the apparatus may further include: a model scaling module 108 may be configured to receive a scaling operation through the web page, and based on the scaling operation, synchronously scale the three-dimensional model and the virtual interactive three-dimensional shape.
Referring to fig. 13, in some embodiments, the apparatus may further include: the data Storage module 109 may be configured to store binding data, which is generated by binding a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters, using a Web Storage technology.
Referring to fig. 14, an embodiment of the present application further provides an electronic device 200, where the electronic device 200 includes at least one memory 210, at least one processor 220, and a bus 230 connecting different platform systems.
The memory 210 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)211 and/or cache memory 212, and may further include Read Only Memory (ROM) 213.
The memory 210 further stores a computer program, and the computer program can be executed by the processor 220, so that the processor 220 executes the steps of the method for binding the GIS data and the three-dimensional model interaction behavior in the embodiment of the present application, and a specific implementation manner of the method is consistent with the implementation manner and the achieved technical effect described in the embodiment of the method for binding the GIS data and the three-dimensional model interaction behavior, and some contents are not described again.
Memory 210 may also include a utility 214 having at least one program module 215, such program modules 215 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Accordingly, the processor 220 may execute the computer programs described above, and may execute the utility 214.
Bus 230 may be a local bus representing one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or any other type of bus structure.
The electronic device 200 may also communicate with one or more external devices 240, such as a keyboard, pointing device, bluetooth device, etc., and may also communicate with one or more devices capable of interacting with the electronic device 200, and/or with any devices (e.g., routers, modems, etc.) that enable the electronic device 200 to communicate with one or more other computing devices. Such communication may be through input-output interface 250. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 260. The network adapter 260 may communicate with other modules of the electronic device 200 via the bus 230. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and when the computer program is executed, the steps of the method for binding the GIS data and the three-dimensional model interaction behavior in the embodiment of the present application are implemented, and a specific implementation manner of the method is consistent with the implementation manner and the achieved technical effect recorded in the embodiment of the method for binding the GIS data and the three-dimensional model interaction behavior, and some contents are not repeated.
Fig. 15 shows a program product 300 for implementing the binding method for GIS data and three-dimensional model interaction behavior described above according to the present embodiment, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be executed on a terminal device, such as a personal computer. However, the program product 300 of the present invention is not so limited, and in this application, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. Program product 300 may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EP ROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that can communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
While the present application is described in terms of various aspects, including exemplary embodiments, the principles of the invention should not be limited to the disclosed embodiments, but are also intended to cover various modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A method for binding GIS data and three-dimensional model interactive behaviors is characterized by comprising the following steps:
loading a three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library, and displaying the three-dimensional model on a web page of the browser;
receiving a first click operation on the three-dimensional model through the web page, acquiring first GPS coordinate data corresponding to the first click operation by using the GIS library, and popping up a setting page, wherein the setting page is used for setting values of preset parameters of a virtual interaction three-dimensional shape corresponding to the first GPS coordinate data;
receiving a setting operation through the setting page, and setting a value of at least one preset parameter based on the setting operation; when the value of any preset parameter changes, the three-dimensional model is updated in real time, and the updated three-dimensional model is displayed on the web page in real time;
and receiving a storage operation through the setting page, responding to the storage operation, acquiring a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and binding the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters.
2. The method for binding GIS data and three-dimensional model interaction behavior according to claim 1, wherein the preset parameters include: the first GPS coordinate data correspond to a virtual interactive three-dimensional shape GPS coordinate, a geometric dimension and an attitude parameter;
the method further comprises the following steps:
receiving a second click operation on the three-dimensional model through the web page, and acquiring second GPS coordinate data corresponding to the second click operation by using the GIS library;
and when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, drawing the virtual interactive three-dimensional shape by using the value of the preset parameter bound to the GPS coordinate data range.
3. The method for binding GIS data and three-dimensional model interaction behavior according to claim 2, wherein the setting page is further configured to set a value of an attitude parameter of a simulation camera corresponding to the virtual interactive three-dimensional shape;
the method further comprises the following steps:
and when the second GPS coordinate data is detected to be in the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, setting corresponding parameters of the analog camera by using values of attitude parameters bound to the GPS coordinate data range.
4. The method for binding GIS data and three-dimensional model interaction behavior according to claim 2, characterized in that the method further comprises:
receiving a zoom operation through the web page, and synchronously zooming the three-dimensional model and the virtual interactive three-dimensional shape based on the zoom operation.
5. The method for binding GIS data and three-dimensional model interaction behavior according to claim 1, characterized in that the method further comprises:
and storing binding data by using a Web Storage technology, wherein the binding data are generated by binding a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters.
6. The method for binding GIS data and three-dimensional model interaction behavior according to claim 1, characterized in that the virtual interaction three-dimensional shape is a virtual interaction cuboid, and the geometric dimensions of the virtual interaction three-dimensional shape include length, width and height.
7. The method for binding GIS data and three-dimensional model interaction behavior according to claim 1, wherein the preset parameters further comprise at least one of the following: color, texture, transparency, brightness, contrast, and saturation of the virtual interactive three-dimensional shape.
8. The method for binding GIS data and three-dimensional model interaction behavior according to claim 1, characterized in that a javascript-based MVVM architecture is adopted as a front-end architecture of the browser.
9. A device for binding GIS data and three-dimensional model interactive behaviors, which is characterized by comprising:
the model loading module is used for loading a three-dimensional model of a preset area by using a browser through an application program interface provided by a GIS library and displaying the three-dimensional model on a web page of the browser;
the first click module is used for receiving a first click operation on the three-dimensional model through the web page, acquiring first GPS coordinate data corresponding to the first click operation by using the GIS library, and popping up a setting page, wherein the setting page is used for taking values of preset parameters of a virtual interaction three-dimensional shape corresponding to the first GPS coordinate data;
the parameter setting module is used for receiving setting operation through the setting page and setting the value of at least one preset parameter based on the setting operation; when the value of any preset parameter changes, the three-dimensional model is updated in real time, and the updated three-dimensional model is displayed on the web page in real time;
and the data binding module is used for receiving a storage operation through the setting page, responding to the storage operation, acquiring a GPS coordinate data range corresponding to the virtual interactive three-dimensional shape, and binding the GPS coordinate data range corresponding to the virtual interactive three-dimensional shape and values of all preset parameters.
10. An electronic device, characterized in that the electronic device comprises a memory storing a computer program and a processor implementing the steps of the method according to any of claims 1-8 when the processor executes the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202110633409.7A 2021-06-07 2021-06-07 Binding method of GIS data and three-dimensional model interaction behavior and related device Active CN113448472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110633409.7A CN113448472B (en) 2021-06-07 2021-06-07 Binding method of GIS data and three-dimensional model interaction behavior and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110633409.7A CN113448472B (en) 2021-06-07 2021-06-07 Binding method of GIS data and three-dimensional model interaction behavior and related device

Publications (2)

Publication Number Publication Date
CN113448472A CN113448472A (en) 2021-09-28
CN113448472B true CN113448472B (en) 2022-05-20

Family

ID=77811079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110633409.7A Active CN113448472B (en) 2021-06-07 2021-06-07 Binding method of GIS data and three-dimensional model interaction behavior and related device

Country Status (1)

Country Link
CN (1) CN113448472B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824138A (en) * 2012-11-19 2014-05-28 郭志华 Forest fire hazard emergency command decision management GIS three-dimensional platform
CN106408631A (en) * 2016-09-30 2017-02-15 厦门亿力吉奥信息科技有限公司 Three-dimensional macro display method and system
CN108170980A (en) * 2018-01-15 2018-06-15 广州奥格智能科技有限公司 A kind of parametrization structured modeling design method based on BIM and GIS

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7389181B2 (en) * 2004-08-31 2008-06-17 Visre, Inc. Apparatus and method for producing video drive-by data corresponding to a geographic location
US20150178972A1 (en) * 2011-06-14 2015-06-25 Google Inc. Animated Visualization of GPS Data in a GIS System

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103824138A (en) * 2012-11-19 2014-05-28 郭志华 Forest fire hazard emergency command decision management GIS three-dimensional platform
CN106408631A (en) * 2016-09-30 2017-02-15 厦门亿力吉奥信息科技有限公司 Three-dimensional macro display method and system
CN108170980A (en) * 2018-01-15 2018-06-15 广州奥格智能科技有限公司 A kind of parametrization structured modeling design method based on BIM and GIS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
地理信息系统与数字模型集成技术在变电站布置方案优化中的应用;乔卫东等;《建筑技术开发》;20201225;全文 *

Also Published As

Publication number Publication date
CN113448472A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
US9904664B2 (en) Apparatus and method providing augmented reality contents based on web information structure
US8274506B1 (en) System and methods for creating a three-dimensional view of a two-dimensional map
KR101627169B1 (en) System for authorting and providing augmented reality cotents
CN105701103B (en) Three-dimensional application system based on geographic information
CN108280026A (en) Automated testing method and device, storage medium, electronic equipment
JP5697661B2 (en) Platform extensibility framework
US9697751B2 (en) Interactive representation of clusters of geographical entities
CN110855482A (en) Three-dimensional dynamic communication network analog simulation method, system and storage medium
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
CN108536964A (en) Storage medium, satellite constellation covering performance simulating analysis and its system
CN104572107A (en) Method and device for constructing WebGIS (Web Geographic Information System) development framework based on DOJO JavaScript
US8230319B2 (en) Web-based visualization, refresh, and consumption of data-linked diagrams
CN112287056A (en) Navigation management visualization method and device, electronic equipment and storage medium
Tripp Corbin Learning ArcGIS Pro
CN107885840A (en) Urban information model service method and system
CN113448472B (en) Binding method of GIS data and three-dimensional model interaction behavior and related device
CN117742677A (en) XR engine low-code development platform
CN108133029B (en) Map element adjusting method, device and equipment and computer-readable storage medium
JP7375149B2 (en) Positioning method, positioning device, visual map generation method and device
CN114781029A (en) Method, system and storage medium for converting three-dimensional information model into two-dimensional graph
JP4968275B2 (en) Map data editing device and server for map data editing device
Pascaul et al. An architecture for geographic information systems on the web-WebGIS
CN109675314B (en) Virtual model optimization method and device, electronic equipment and storage medium
Nordan An investigation of potential methods for topology preservation in interactive vector tile map applications
CN114078178A (en) Visualizing weather phenomena along a path in three dimensions

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
GR01 Patent grant
GR01 Patent grant