CN111930282A - Data editing method and platform based on QGIS and electronic equipment - Google Patents

Data editing method and platform based on QGIS and electronic equipment Download PDF

Info

Publication number
CN111930282A
CN111930282A CN202011027075.0A CN202011027075A CN111930282A CN 111930282 A CN111930282 A CN 111930282A CN 202011027075 A CN202011027075 A CN 202011027075A CN 111930282 A CN111930282 A CN 111930282A
Authority
CN
China
Prior art keywords
map data
dimensional map
dimensional
window
editing
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
CN202011027075.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.)
Mushroom Car Union Information Technology Co Ltd
Original Assignee
Mushroom Car Union Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mushroom Car Union Information Technology Co Ltd filed Critical Mushroom Car Union Information Technology Co Ltd
Priority to CN202011027075.0A priority Critical patent/CN111930282A/en
Publication of CN111930282A publication Critical patent/CN111930282A/en
Pending legal-status Critical Current

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/06Topological mapping of higher dimensional structures onto lower dimensional surfaces
    • 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/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Geometry (AREA)
  • Data Mining & Analysis (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • Instructional Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application relates to a QGIS-based data editing method, a QGIS-based data editing platform and electronic equipment. The method comprises the following steps: acquiring three-dimensional map data; performing two-dimensional projection on the three-dimensional map data to obtain and display two-dimensional map data on a first window; and displaying three-dimensional map data corresponding to the selected two-dimensional map data in a second window according to the two-dimensional map data selected in the first window. According to the scheme, the two-dimensional map data and the three-dimensional map data of the map data can be displayed at different windows at the same time.

Description

Data editing method and platform based on QGIS and electronic equipment
Technical Field
The application relates to the technical field of navigation, in particular to a data editing method and platform based on a QGIS and an electronic device.
Background
The QGIS is a user-friendly cross-platform open-source desktop geographic information system developed by using C + + based on Qt (application development framework), and supports map creation.
In the real world, objective objects always exist in a three-dimensional space, and the two-dimensional QGIS can only provide information of a user plane, so that the expression of the three-dimensional QGIS on the objective world can be more really felt compared with the two-dimensional QGIS. Because the two-dimensional map and the three-dimensional map system of the related technology are developed independently, the two-dimensional map editing is completed in the QGIS, and after the two-dimensional map is closed, the three-dimensional map corresponding to the two-dimensional map is opened to edit the three-dimensional map. The related art map editing operation based on the QGIS is complicated and not intuitive.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a data editing method, a data editing platform and electronic equipment based on a QGIS (geographic information system), which can simultaneously display two-dimensional map data and three-dimensional map data of map data in different windows.
A first aspect of the present application provides a data editing method based on a QGIS, including:
acquiring three-dimensional map data;
performing two-dimensional projection on the three-dimensional map data to obtain and display two-dimensional map data on a first window;
and displaying three-dimensional map data corresponding to the selected two-dimensional map data in a second window according to the two-dimensional map data selected in the first window.
Preferably, the method further comprises:
displaying the three-dimensional map data on a second window;
according to the three-dimensional map data selected in the second window, obtaining two-dimensional map data corresponding to the three-dimensional map data;
and displaying the two-dimensional map data in a first window.
Preferably, the displaying, according to the two-dimensional map data selected in the first window, the three-dimensional map data corresponding to the selected two-dimensional map data in the second window includes:
according to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained;
rendering and displaying the three-dimensional map data in the second window.
Preferably, the method further comprises:
editing the two-dimensional map data in the first window according to the received user instruction; or editing the three-dimensional map data in the second window according to the received user instruction.
Preferably, the method further comprises:
the editing of the two-dimensional map data and/or the three-dimensional map data will be synchronized.
A second aspect of the present application provides a data editing platform based on a QGIS, including:
an acquisition unit configured to acquire three-dimensional map data;
the two-dimensional window unit is used for performing two-dimensional projection on the three-dimensional map data acquired by the acquisition unit to acquire and display two-dimensional map data in a first window;
and the three-dimensional window unit is used for displaying the three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window.
Preferably, the three-dimensional window unit is further configured to display the three-dimensional map data acquired by the acquisition unit in a second window;
the two-dimensional window unit is further used for obtaining two-dimensional map data corresponding to the three-dimensional map data according to the three-dimensional map data selected in the second window, and displaying the two-dimensional map data in the first window.
Preferably, the three-dimensional window unit is specifically configured to:
according to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained;
rendering and displaying the three-dimensional map data in the second window.
Preferably, the platform further comprises a two-dimensional editing unit, a three-dimensional editing unit and a synchronization unit;
the two-dimensional editing unit is used for editing the two-dimensional map data in the first window according to the received user instruction;
the three-dimensional editing unit is used for editing the three-dimensional map data in the second window according to the received user instruction;
and the synchronization unit is used for synchronizing the two-dimensional map data edited by the two-dimensional editing unit and/or the three-dimensional map data edited by the three-dimensional editing unit.
A third aspect of the present application provides an electronic device comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform a method as described above.
The technical scheme provided by the application can comprise the following beneficial effects:
according to the QGIS-based map editing method, the two-dimensional map data is obtained and displayed on the first window by performing two-dimensional projection on the obtained three-dimensional map data; and displaying three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window. The two-dimensional map data of the three-dimensional map data are displayed in the first window, the three-dimensional map data are displayed in the second window, and the two-dimensional map data and the three-dimensional map data of the same map data are displayed in different windows, so that a user can compare, correct and edit the two-dimensional map data and the three-dimensional map data conveniently, and the editing efficiency of the map data is improved.
Further, according to the data editing method based on the QGIS in the embodiment of the present application, two-dimensional map data corresponding to the three-dimensional map data is obtained according to the three-dimensional map data selected in the second window; and displaying the two-dimensional map data in a first window. According to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained; rendering and displaying the three-dimensional map data in the second window. The two-dimensional map data and the three-dimensional map data of the same map data are synchronized through longitude and latitude coordinates, the two-dimensional map data and the three-dimensional map data can be switched and displayed in different windows at the same time, real-time synchronous editing of the two-dimensional map data and the three-dimensional map data is achieved, and the achieving mode is simple and fast.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application, as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic flowchart of a QGIS-based data editing method according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a QGIS-based data editing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a QGIS-based data editing platform according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a QGIS-based data editing platform according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
The embodiment of the application provides a data editing method based on a QGIS (geographic information system), which can simultaneously display two-dimensional map data and three-dimensional map data of map data in different windows.
The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a data editing method based on QGIS according to an embodiment of the present application.
Referring to fig. 1, a method for editing data based on QGIS, the method comprising:
in step 101, three-dimensional map data is acquired.
In one embodiment, the map data is acquired according to an imported electronic map, and the map data is three-dimensional map data.
In step 102, the three-dimensional map data is two-dimensionally projected, and two-dimensional map data is obtained and displayed in a first window.
In an embodiment, the three-dimensional map data comprises three-dimensional data of a three-dimensional scene, the three-dimensional data comprising longitude, latitude, altitude of the object. And performing projection conversion on the three-dimensional map data to obtain two-dimensional map data with two-dimensional coordinates, and generating a two-dimensional map according to the two-dimensional map data, wherein the two-dimensional coordinates can be represented by longitude and latitude carried in the three-dimensional data. And generating a two-dimensional map according to the obtained two-dimensional map data and displaying the two-dimensional map on the first window.
In step 103, three-dimensional map data corresponding to the selected two-dimensional map data is displayed in the second window according to the two-dimensional map data selected in the first window.
In one embodiment, according to a two-dimensional map selected by a user through a mouse, including but not limited to, in a first window, three-dimensional map data corresponding to the two-dimensional map data of the selected two-dimensional map is acquired, and a three-dimensional map is generated according to the three-dimensional map data and displayed in a second window.
According to the QGIS-based map editing method, the two-dimensional map data is obtained and displayed on the first window by performing two-dimensional projection on the obtained three-dimensional map data; and displaying the three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window. Meanwhile, the two-dimensional map data and the three-dimensional map data of the same map data are respectively displayed in different windows, so that a user can conveniently compare, correct and edit the two-dimensional map data and the three-dimensional map data, and the editing efficiency of the map data is improved.
Fig. 2 is another schematic flow chart of a QGIS-based data editing method according to an embodiment of the present application. Fig. 2 describes the solution of the present application in more detail with respect to fig. 1.
Referring to fig. 2, a method for editing data based on QGIS, the method comprising:
in step 201, three-dimensional map data is acquired.
In one embodiment, the map data is acquired according to an imported electronic map, and the map data is three-dimensional map data.
In step 202, the three-dimensional map data is two-dimensionally projected, and two-dimensional map data is obtained and displayed in a first window.
In an embodiment, the three-dimensional map data comprises three-dimensional data of a three-dimensional scene, the three-dimensional data comprising longitude, latitude, altitude of the object. And performing projection conversion on the three-dimensional map data to obtain two-dimensional map data with two-dimensional coordinates, and generating a two-dimensional map according to the two-dimensional map data, wherein the two-dimensional coordinates can be represented by longitude and latitude carried in the three-dimensional data. A two-dimensional map is generated based on the obtained two-dimensional map data, a first window is created, and the generated two-dimensional map is displayed on the first window.
In step 203, a second window is generated according to the received editing instruction.
In an embodiment, a user views two-dimensional map data in a first window, and if the three-dimensional map data needs to be displayed, the user inputs an editing instruction, for example, when the user selects a two-dimensional map through a mouse, the user generates a second window according to the editing instruction of the user, including but not limited to dragging the mouse; or after the user selects the two-dimensional map in the first window, generating a second window according to the editing instruction of the user including but not limited to pressing the keyboard 'Enter' key; or, the second window is generated according to the clicked information of the menu of the first window for creating the second window.
In step 204, three-dimensional map data, of which longitude and latitude coordinates are matched with the selected two-dimensional map data, is obtained from the two-dimensional map data selected in the first window.
In an embodiment, a user may select a two-dimensional map of a certain area range or an object on the two-dimensional map through an interactive tool including, but not limited to, a mouse, and the like in a first window, and obtain two-dimensional map data of the certain area range or the object; or the user may also select the two-dimensional map currently displayed in the first window to obtain the two-dimensional map data of the two-dimensional map currently displayed in the first window. The two-dimensional map data includes two-dimensional coordinates expressed by longitude and latitude of the three-dimensional data. Obtaining map data of the two-dimensional coordinates obtained by projection according to the two-dimensional coordinates represented by the longitude and the latitude; and obtaining three-dimensional map data matched with the selected two-dimensional map data according to the map data.
In one embodiment, the two-dimensional coordinates may be represented by longitude and latitude of the three-dimensional data. The two-dimensional map data and the three-dimensional map data establish a corresponding relationship by longitude and latitude of the three-dimensional data.
In step 205, the three-dimensional map data is rendered and displayed in a second window.
Rendering the three-dimensional map data to generate a three-dimensional map according to the three-dimensional map data obtained in step 204, and displaying the three-dimensional map on a second window.
In step 206, editing the two-dimensional map data in the first window according to the received user instruction; or editing the three-dimensional map data in the second window according to the received user instruction.
In one embodiment, the two-dimensional map belongs to a vector diagram, which is generally used to show artificially divided functional logical areas, such as points for representing location information of different levels of cities, airports, gas stations, etc., broken lines for representing linear information of roads, rivers, etc., and polygons for representing regional information of lakes, various land types, etc.
The two-dimensional map, i.e., vector map, displayed in the QGIS can be edited in the first window according to the received user instruction, including but not limited to direct modification thereof by mouse manipulation. Such as adding points or line segments, dragging polygon vertices, etc. Own vector maps can also be created in the same way, according to project needs.
The vector diagram has a great adjustment space for displaying effects, attributes such as color, transparency, texture, width, size and the like can be set, descriptive characters or labels (such as road names) can be displayed, and more importantly, each element in the vector diagram can have any more attribute values besides coordinate information and be used for recording a plurality of additional information such as road types, building purposes, area areas and the like.
In an embodiment, the three-dimensional map data of the map element may be displayed in a menu of a second window displaying the three-dimensional map. The three-dimensional map data may be edited at the second window according to the received user instruction.
In one embodiment, the first window and the second window are simultaneously displayed on the QGIS interface, the first window displays a two-dimensional map, the second window displays a three-dimensional map, a user can simultaneously view the two-dimensional map and the three-dimensional map displayed according to map data, and the three-dimensional map is corrected and edited in real time by comparing the two-dimensional map and the three-dimensional map.
In step 207, the editing of the two-dimensional map data and/or the three-dimensional map data will be synchronized.
In one embodiment, the editing of the two-dimensional map data and the editing of the three-dimensional map data are synchronized into the map data, so that the two-dimensional map data and the three-dimensional map data are synchronized in real time.
The data editing method based on the QGIS can realize display switching between the two-dimensional map data and the three-dimensional map data, and therefore on the basis of the embodiment, the data editing method based on the QGIS, which displays the corresponding two-dimensional map data according to the three-dimensional map data selected by the user, is further included. The method comprises the following steps:
and displaying the three-dimensional map data in a second window.
In one embodiment, three-dimensional map data may be acquired from an imported electronic map.
And obtaining two-dimensional map data corresponding to the three-dimensional map data according to the three-dimensional map data selected in the second window.
In an embodiment, a user may select a three-dimensional map of a certain area range or an object on the three-dimensional map through an interactive tool including, but not limited to, a mouse and the like in the second window, and obtain three-dimensional map data of the certain area range or the object; or the user can also select the currently displayed three-dimensional map in the second window to obtain the three-dimensional map data of the currently displayed three-dimensional map in the second window. The three-dimensional map data includes longitude, latitude and altitude of the three-dimensional data, and the three-dimensional map data is projected to obtain two-dimensional map data corresponding to the three-dimensional map data and including the same longitude and latitude.
Two-dimensional map data is displayed in a first window.
In one embodiment, two-dimensional map data including the same longitude and latitude as the three-dimensional map data is loaded in the first window, a two-dimensional map is generated from the two-dimensional map data, and the two-dimensional map is displayed in the first window.
According to the QGIS-based map editing method, the two-dimensional map data is obtained and displayed on the first window by performing two-dimensional projection on the obtained three-dimensional map data; and displaying the three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window. The two-dimensional map data of the three-dimensional map data are displayed on the first window, the three-dimensional map data are displayed on the second window, and meanwhile the two-dimensional map data and the three-dimensional map data of the same map data are respectively displayed on different windows, so that a user can conveniently compare, correct and edit the two-dimensional map data and the three-dimensional map data, and the editing efficiency of the map data is improved.
Further, according to the data editing method based on the QGIS in the embodiment of the present application, two-dimensional map data corresponding to the three-dimensional map data is obtained according to the three-dimensional map data selected in the second window; two-dimensional map data is displayed in a first window. According to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained; and rendering and displaying the three-dimensional map data in a second window. The two-dimensional map data and the three-dimensional map data of the same map data are synchronized through longitude and latitude coordinates, the two-dimensional map data and the three-dimensional map data can be switched and displayed in different windows at the same time, real-time synchronous editing of the two-dimensional map data and the three-dimensional map data is achieved, and the achieving mode is simple and fast.
Corresponding to the embodiment of the application function implementation method, the application also provides a data editing platform based on the QGIS, an electronic device and a corresponding embodiment.
Fig. 3 is a schematic structural diagram of a QGIS-based data editing platform according to an embodiment of the present application. Referring to fig. 3, a data editing platform based on QGIS includes an acquisition unit 301, a two-dimensional window unit 302, and a three-dimensional window unit 303.
An acquisition unit 301 for acquiring three-dimensional map data.
In one embodiment, the acquisition unit 301 acquires three-dimensional map data from an imported electronic map.
A two-dimensional window unit 302, configured to perform two-dimensional projection on the three-dimensional map data acquired by the acquisition unit 301, to obtain and display two-dimensional map data in a first window.
In an embodiment, the three-dimensional map data comprises three-dimensional data of a three-dimensional scene, the three-dimensional data comprising longitude, latitude, altitude of the object. The two-dimensional window unit 302 performs projection conversion on the three-dimensional map data to obtain two-dimensional map data having two-dimensional coordinates, and generates a two-dimensional map from the two-dimensional map data, where the two-dimensional coordinates may be represented by longitude and latitude carried in the three-dimensional data. The two-dimensional window unit 302 generates a two-dimensional map from the obtained two-dimensional map data and displays the two-dimensional map on the first window.
The three-dimensional window unit 303 displays, in the second window, three-dimensional map data corresponding to the two-dimensional map data selected in the first window.
In an embodiment, the three-dimensional window unit 303 obtains three-dimensional map data corresponding to two-dimensional map data of a selected two-dimensional map according to a two-dimensional map selected by a user through a mouse, and generates a three-dimensional map according to the three-dimensional map data, and displays the three-dimensional map on a second window.
According to the technical scheme of the embodiment of the application, the two-dimensional map data is obtained and displayed on the first window by performing two-dimensional projection on the obtained three-dimensional map data; and displaying the three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window. The two-dimensional map data of the three-dimensional map data are displayed on the first window, the three-dimensional map data are displayed on the second window, and meanwhile the two-dimensional map data and the three-dimensional map data of the same map data are respectively displayed on different windows, so that a user can conveniently compare, correct and edit the two-dimensional map data and the three-dimensional map data, and the editing efficiency of the map data is improved.
Fig. 4 is another schematic structural diagram of a QGIS-based data editing platform according to an embodiment of the present application. Fig. 4 describes the solution of the present application in more detail with respect to fig. 3.
Referring to fig. 4, a QGIS-based data editing platform includes: an acquisition unit 301, a two-dimensional window unit 302, a three-dimensional window unit 303, a two-dimensional editing unit 404, a three-dimensional editing unit 405, and a synchronization unit 406.
An acquisition unit 301 for acquiring three-dimensional map data.
In one embodiment, the acquisition unit 301 acquires three-dimensional map data from an imported electronic map.
A two-dimensional window unit 302, configured to perform two-dimensional projection on the three-dimensional map data acquired by the acquisition unit 301, to obtain and display two-dimensional map data in a first window.
In an embodiment, the three-dimensional map data comprises three-dimensional data of a three-dimensional scene, the three-dimensional data comprising longitude, latitude, altitude of the object. The two-dimensional window unit 302 performs projection conversion on the three-dimensional map data to obtain two-dimensional map data having two-dimensional coordinates, and generates a two-dimensional map from the two-dimensional map data, where the two-dimensional coordinates may be represented by longitude and latitude carried in the three-dimensional data. The two-dimensional window unit 302 generates a two-dimensional map from the obtained two-dimensional map data, creates a first window, and displays the generated two-dimensional map on the first window.
A three-dimensional window unit 303, configured to generate a second window according to the received editing instruction; according to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained; and rendering and displaying the three-dimensional map data in a second window.
In an embodiment, a user views two-dimensional map data in a first window, and if the three-dimensional map data needs to be displayed, the user inputs an editing instruction, for example, when the user selects a two-dimensional map through a mouse, the three-dimensional window unit 303 generates a second window according to the editing instruction of the user, including but not limited to dragging the mouse; or after the user selects the two-dimensional map in the first window, the three-dimensional window unit 303 generates a second window according to an editing instruction of the user including but not limited to pressing an Enter key of the keyboard; alternatively, the three-dimensional window unit 303 generates the second window according to clicked information of a menu for creating the second window at the first window.
In an embodiment, a user may select a two-dimensional map of a certain area range or an object on the two-dimensional map through an interactive tool including, but not limited to, a mouse, and the like in the first window, and the three-dimensional window unit 303 obtains the two-dimensional map data of the certain area range or the object; or the user may also select the two-dimensional map currently displayed in the first window, and the three-dimensional window unit 303 acquires the two-dimensional map data of the two-dimensional map currently displayed in the first window. The two-dimensional map data includes two-dimensional coordinates expressed by longitude and latitude of the three-dimensional data. The three-dimensional window unit 303 obtains map data of the two-dimensional coordinates obtained by projection according to the two-dimensional coordinates represented by the longitude and the latitude; and obtaining three-dimensional map data matched with the selected two-dimensional map data according to the map data.
In one embodiment, the two-dimensional coordinates may be represented by longitude and latitude of the three-dimensional data. The three-dimensional window unit 303 may establish a correspondence relationship between the two-dimensional map data and the three-dimensional map data by the longitude and latitude of the three-dimensional data. The three-dimensional window unit 303 renders the three-dimensional map data to generate a three-dimensional map according to the obtained three-dimensional map data, and displays the three-dimensional map on the second window.
And a two-dimensional editing unit 404, configured to edit the two-dimensional map data in the first window according to the received user instruction.
In one embodiment, the two-dimensional map belongs to a vector diagram, which is generally used to show artificially divided functional logical areas, such as points for representing location information of different levels of cities, airports, gas stations, etc., broken lines for representing linear information of roads, rivers, etc., and polygons for representing regional information of lakes, various land types, etc.
In a two-dimensional map, i.e., a vector map, displayed in the QGIS, the two-dimensional editing unit 404 may edit the two-dimensional map data in the first window according to the received user instruction, including but not limited to directly modifying it by a mouse operation. Such as adding points or line segments, dragging polygon vertices, etc. Own vector maps can also be created in the same way, according to project needs.
The vector diagram has a great adjustment space for displaying effects, attributes such as color, transparency, texture, width, size and the like can be set, descriptive characters or labels (such as road names) can be displayed, and more importantly, each element in the vector diagram can have any more attribute values besides coordinate information and be used for recording a plurality of additional information such as road types, building purposes, area areas and the like.
And a three-dimensional editing unit 405 configured to edit the three-dimensional map data in the second window according to the received user instruction.
In an embodiment, the three-dimensional window unit 303 may display the three-dimensional map data of the map element in a menu of a second window displaying the three-dimensional map. The three-dimensional editing unit 405 may edit the three-dimensional map data in the second window according to the received user instruction.
In one embodiment, the first window and the second window are simultaneously displayed on the QGIS interface, the first window displays a two-dimensional map, the second window displays a three-dimensional map, a user can simultaneously view the two-dimensional map and the three-dimensional map displayed according to map data, and the three-dimensional map is corrected and edited in real time by comparing the two-dimensional map and the three-dimensional map.
A synchronization unit 406 for synchronizing the editing of the two-dimensional map data by the two-dimensional editing unit 404 and/or the three-dimensional map data by the three-dimensional editing unit 405.
In one embodiment, the synchronization unit 406 synchronizes the editing of the two-dimensional map data and the editing of the three-dimensional map data into the map data, so that the two-dimensional map data and the three-dimensional map data are synchronized in real time.
In an embodiment, the three-dimensional window unit 303 is further configured to display the three-dimensional map data acquired by the acquiring unit 301 in a second window; the two-dimensional window unit 302 is further configured to obtain two-dimensional map data corresponding to the three-dimensional map data according to the three-dimensional map data selected in the second window, and display the two-dimensional map data in the first window. The data editing platform based on the QGIS can realize display switching between two-dimensional map data and three-dimensional map data.
According to the technical scheme of the embodiment of the application, the two-dimensional map data is obtained and displayed on the first window by performing two-dimensional projection on the obtained three-dimensional map data; and displaying the three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window. The two-dimensional map data of the three-dimensional map data are displayed on the first window, the three-dimensional map data are displayed on the second window, and meanwhile the two-dimensional map data and the three-dimensional map data of the same map data are respectively displayed on different windows, so that a user can conveniently compare, correct and edit the two-dimensional map data and the three-dimensional map data, and the editing efficiency of the map data is improved.
Further, according to the technical scheme of the embodiment of the application, two-dimensional map data corresponding to the three-dimensional map data is obtained according to the three-dimensional map data selected in the second window; two-dimensional map data is displayed in a first window. According to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained; and rendering and displaying the three-dimensional map data in a second window. The two-dimensional map data and the three-dimensional map data of the same map data are synchronized through longitude and latitude coordinates, the two-dimensional map data and the three-dimensional map data can be switched and displayed in different windows at the same time, real-time synchronous editing of the two-dimensional map data and the three-dimensional map data is achieved, and the achieving mode is simple and fast.
With regard to the platform in the above-described embodiment, the specific manner in which each unit performs operations has been described in detail in the embodiment related to the method, and will not be elaborated upon here.
Fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Referring to fig. 5, the electronic device 50 includes a memory 501 and a processor 502.
The Processor 502 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 501 may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage. . Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 501 has stored thereon executable code that, when processed by the processor 502, may cause the processor 502 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform some or all of the steps of the above-described method in accordance with the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the applications disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A data editing method based on QGIS is characterized by comprising the following steps:
acquiring three-dimensional map data;
performing two-dimensional projection on the three-dimensional map data to obtain and display two-dimensional map data on a first window;
and displaying three-dimensional map data corresponding to the selected two-dimensional map data in a second window according to the two-dimensional map data selected in the first window.
2. The method of claim 1, further comprising:
displaying the three-dimensional map data on a second window;
according to the three-dimensional map data selected in the second window, obtaining two-dimensional map data corresponding to the three-dimensional map data;
and displaying the two-dimensional map data in a first window.
3. The method of claim 2, wherein displaying three-dimensional map data corresponding to the selected two-dimensional map data in the second window based on the two-dimensional map data selected in the first window comprises:
according to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained;
rendering and displaying the three-dimensional map data in the second window.
4. A method according to any one of claims 1 to 3, characterized in that the method further comprises:
editing the two-dimensional map data in the first window according to the received user instruction; or editing the three-dimensional map data in the second window according to the received user instruction.
5. The method of claim 4, further comprising:
the editing of the two-dimensional map data and/or the three-dimensional map data will be synchronized.
6. A QGIS-based data editing platform, comprising:
an acquisition unit configured to acquire three-dimensional map data;
the two-dimensional window unit is used for performing two-dimensional projection on the three-dimensional map data acquired by the acquisition unit to acquire and display two-dimensional map data in a first window;
and the three-dimensional window unit is used for displaying the three-dimensional map data corresponding to the selected two-dimensional map data in the second window according to the two-dimensional map data selected in the first window.
7. The platform of claim 6, wherein the three-dimensional window unit is further configured to display the three-dimensional map data acquired by the acquisition unit in a second window;
the two-dimensional window unit is further used for obtaining two-dimensional map data corresponding to the three-dimensional map data according to the three-dimensional map data selected in the second window, and displaying the two-dimensional map data in the first window.
8. The platform of claim 7, wherein the three-dimensional window unit is specifically configured to:
according to the two-dimensional map data selected in the first window, three-dimensional map data with longitude and latitude coordinates matched with the selected two-dimensional map data in the three-dimensional map data are obtained;
rendering and displaying the three-dimensional map data in the second window.
9. The platform of any one of claims 6 to 8, further comprising a two-dimensional editing unit, a three-dimensional editing unit, a synchronization unit;
the two-dimensional editing unit is used for editing the two-dimensional map data in the first window according to the received user instruction;
the three-dimensional editing unit is used for editing the three-dimensional map data in the second window according to the received user instruction;
and the synchronization unit is used for synchronizing the two-dimensional map data edited by the two-dimensional editing unit and/or the three-dimensional map data edited by the three-dimensional editing unit.
10. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any one of claims 1-5.
CN202011027075.0A 2020-09-25 2020-09-25 Data editing method and platform based on QGIS and electronic equipment Pending CN111930282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011027075.0A CN111930282A (en) 2020-09-25 2020-09-25 Data editing method and platform based on QGIS and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011027075.0A CN111930282A (en) 2020-09-25 2020-09-25 Data editing method and platform based on QGIS and electronic equipment

Publications (1)

Publication Number Publication Date
CN111930282A true CN111930282A (en) 2020-11-13

Family

ID=73333646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011027075.0A Pending CN111930282A (en) 2020-09-25 2020-09-25 Data editing method and platform based on QGIS and electronic equipment

Country Status (1)

Country Link
CN (1) CN111930282A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114706936A (en) * 2022-05-13 2022-07-05 高德软件有限公司 Map data processing method and location-based service providing method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209356A (en) * 2019-11-18 2020-05-29 广州南方卫星导航仪器有限公司 Cross-platform vector map element symbol rendering method and device based on QGIS

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209356A (en) * 2019-11-18 2020-05-29 广州南方卫星导航仪器有限公司 Cross-platform vector map element symbol rendering method and device based on QGIS

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GIS工具: "二三维一体化功能", 《HTTPS://WWW.JIANSHU.COM/P/23257A62C9E1》 *
一个追逐星星的孩子: "地图二三维联动原理", 《HTTPS://BLOG.CSDN.NET/QQ_23490365/ARTICLE/DETAILS/77336025》 *
胖胖雕: "基于ArcGIS Pro的二三维一体化功能初探", 《HTTPS://BLOG.CSDN.NET/ESA_DSQ/ARTICLE/DETAILS/53510268?UTM_MEDIUM=DISTRIBUTE.PC_RELEVANT.NONE-TASK-BLOG-TITLE-2&SPM=1001.2101.3001.4242》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114706936A (en) * 2022-05-13 2022-07-05 高德软件有限公司 Map data processing method and location-based service providing method

Similar Documents

Publication Publication Date Title
US11042278B2 (en) Providing graphical indication of label boundaries in digital maps
EP3170151B1 (en) Blending between street view and earth view
US20180276882A1 (en) Systems and methods for augmented reality art creation
EP3664040A1 (en) Information processing device, authoring method, and program
Portalés et al. Augmented reality and photogrammetry: A synergy to visualize physical and virtual city environments
CN106197445A (en) A kind of method and device of route planning
US20190051029A1 (en) Annotation Generation for an Image Network
JP6096634B2 (en) 3D map display system using virtual reality
US20130127852A1 (en) Methods for providing 3d building information
EP3655928A1 (en) Soft-occlusion for computer graphics rendering
CN111639149B (en) Ocean data visualization method and device
Fukuda et al. Improvement of registration accuracy of a handheld augmented reality system for urban landscape simulation
CN111583379A (en) Rendering method and device of virtual model, storage medium and electronic equipment
Pasewaldt et al. Multi-perspective 3D panoramas
Liarokapis et al. Mobile augmented reality techniques for geovisualisation
JP2010506337A (en) System and method for visualizing and measuring real-world 3-D spatial data
CN114742931A (en) Method and device for rendering image, electronic equipment and storage medium
CN111930282A (en) Data editing method and platform based on QGIS and electronic equipment
CN113094457B (en) Incremental generation method of digital orthophoto map and related components
Pan et al. Perception-motivated visualization for 3D city scenes
JP2004233711A (en) Map data construction system
JP2001084303A (en) Official map correction system
JP6575221B2 (en) Display control method, information processing apparatus, and display control program
JPH09244527A (en) Method for displaying map simulation result
Okazaki Visualizing geographic data through animation

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