Method, device and equipment for quickly drawing plane scatter diagram of mass data and medium

Through technologies such as multivariate primitives and direct mapping of geographical coordinates and equipment coordinates, the problem that traditional drawing technology is difficult to deal with massive seismic data is solved, and the rapid drawing and efficient analysis of massive data plane scatter plots is realized, and the processing capabilities of computer visualization technology are improved.

CN120047571APending Publication Date: 2025-05-27CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311593168.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In the context of massive earthquake data, traditional drawing technology is difficult to meet the rapid drawing requirements of scatter plots of the order of millions of data, resulting in lag and flickering.

Method used

Using multiple genres, direct mapping of geographical coordinates and device coordinates, buffer pixel map drawing and other technologies, we can quickly draw massive data plane scatter plots by classifying scatter information, instantiating scenes and views, calculating the total transformation matrix, transforming coordinates, generating pixel patterns and adding them to the scene viewport.

Benefits of technology

It significantly improves the drawing efficiency of plan scatter plots, eliminates the flickering and waiting phenomena in the interactive operation of the base map of the massive geographic point work area in refreshing, scaling, etc., and improves the accuracy of seismic data analysis and the processing capability of computer visualization technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120047571A_ABST
    Figure CN120047571A_ABST
Patent Text Reader

Abstract

The invention provides a mass data plane scatter diagram rapid drawing method and device, equipment and a medium, and belongs to the technical field of scientific calculation visualization, and the method comprises the following steps: classifying scatter information to be drawn to obtain a plurality of scatter primitives; instantiating a scene and a view; putting the scatter primitives into the scene, and associating the scene with the view; obtaining a view pointer through the scene pointer; calculating a total transformation matrix, and establishing a direct mapping relation from geographic coordinates to equipment coordinates; converting the geographic coordinates of the ground feature points to be drawn into equipment coordinates by using the total transformation matrix; generating a pixel pattern shared by all ground feature points of the primitive class; and step S8, adding pixel patterns of all ground feature points on the corresponding equipment coordinates through the scene viewport. According to the method, the drawing efficiency of the plane scatter diagram is effectively improved, and the drawing efficiency and flexibility of the work area base map of massive object points are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of scientific computing visualization in the field of computers, and particularly relates to a method, device, equipment and medium for quickly drawing a plane scatter plot of massive data. Background Art

[0002] Scientific computing visualization is an important research direction in the current computer discipline, originating in the late 1980s. Image visualization in the fields of geology and geophysics is an important field of scientific computing visualization and has become a hot topic in scientific research and application software development in the fields of geology and geophysics. Maps are important carriers of geological and geophysical survey data, and the drawing of result maps is a key task. Geological and geophysical exploration uses physical and chemical principles combined with specific instruments to obtain the physical property parameters and structural compositions of known rock and ore specimens or geological bodies, and then interprets the key parameter values in the field based on the established theoretical models to form geological and geophysical exploration results. In geological and geophysical exploration, the formed geological and geophysical results need to be presented in the form of maps. According to the dimensions of the results and maps, the maps can be divided into one-dimensional maps, two-dimensional maps and three-dimensional maps. Two-dimensional maps can be further divided into sectional views and plan views. Among them, a plan view is a two-dimensional map drawn according to a certain scale parallel or approximately parallel to the earth's horizontal plane or a certain stratigraphic interface for displaying geological and geophysical characteristic information. At present, a considerable part of geological and geophysical survey information needs to be presented in the form of two-dimensional plan views so that relevant practitioners can carry out research and analysis. As the saying goes, a picture is worth a thousand words. It is a comprehensive and powerful basis for scientific research and resource development decision-making in the fields of geology and geophysics. Its accuracy determines the success or failure of the application of geological and geophysical survey results, and its drawing efficiency also affects the progress of research and analysis work to a considerable extent.

[0003] In the early stage of the development of geological and geophysical exploration, due to the immaturity of computer equipment and computer graphics technology, map drawing was basically completely dependent on manual operation, with extremely low efficiency and difficult to guarantee accuracy. With the rapid development of computer equipment and computer graphics technology, more and more scientific research institutions, professional research scholars and software developers have actively participated in the theoretical research and software application design of scientific computing visualization (map drawing) in geological and geophysical fields, and a number of practical map drawing program packages and software have emerged, such as GMT, Surfer, etc. However, in recent years, with the continuous deepening of exploration and development, the requirements for seismic exploration accuracy have become higher and higher. Wide-azimuth and high-density seismic data acquisition has gradually become the current mainstream seismic exploration data acquisition method, and the data volume of seismic data has also shown an exponential growth characteristic, bringing a large amount of seismic data (TB level), which puts forward higher requirements for the drawing of result maps. Taking the drawing of the working area base map as an example, in the context of the current large amount of seismic acquisition data, millions of scattered points, including but not limited to shot points, geophone points, etc., often need to be drawn on the base map, and real-time drawing, zooming, moving and other interactive operations also need to be supported, which puts forward higher requirements for the rapid drawing of scattered points. Traditional drawing techniques mostly rely on point-by-point rendering and drawing, and it is difficult to meet the current quantity and accuracy requirements of seismic data. When drawing, especially when zooming, phenomena such as drawing jamming and flickering usually occur. Further improving the graphics visualization technology related to seismic data processing and analysis has become the key work in the research and development of current geophysical exploration interactive software. Summary of the Invention

[0004] The purpose of the present invention is to propose a method, device, equipment and medium for quickly drawing a plane scatter plot of massive data. By adopting technologies such as multi-element primitive classes, direct mapping between geographic coordinates and device coordinates, and buffer pixel map drawing, the drawing efficiency of the plane scatter plot is effectively improved, so as to adapt to the massive data requirements of current seismic data, improve the accuracy of seismic data analysis, and enrich the existing computing visualization technology. Improve the processing ability of computer visualization technology for massive geological survey and seismic exploration data, and provide an interface for human-computer interaction operation, providing a convenient tool for relevant technical personnel to analyze survey data, study geological structures and oil and gas deposits.

[0005] A method for quickly drawing a plane scatter plot of massive data proposed by the present invention includes the following steps:

[0006] Step S1, classifying the scatter point information to be drawn to obtain a plurality of scatter plot primitives;

[0007] Step S2, instantiating a scene (QGraphicsScene) and a view (QGraphicsView);

[0008] Step S3: Place the scatter plot elements into the scene and associate the view with the scene;

[0009] Step S4: Obtain the view pointer through the scene pointer;

[0010] Step S5: Calculate the total transformation matrix and establish a direct mapping relationship from geographic coordinates to device coordinates;

[0011] Step S6: Use the total transformation matrix to convert the geographic coordinates of the feature points to be drawn into device coordinates;

[0012] Step S7: Generate a pixel pattern (Pixmap) shared by all feature points of this type of graphic element;

[0013] Step S8: Add the pixel patterns (Pixmap) of all feature points at the corresponding device coordinates through the scene viewport.

[0014] Preferably, before the step S1, it further includes: preparing scatter information to be drawn, and the scatter information at least includes at least one of geographic coordinates, elevation values, and sampling values.

[0015] Preferably, in the step S1, multiple scatter plot element classes (CRcvShtItem) are instantiated according to the number of types to classify the scatter information.

[0016] Preferably, between the step S1 and the step S2, it further includes: inputting the scatter information into the corresponding scatter plot elements, and each scatter plot element corresponds to one type of scatter information.

[0017] Preferably, the step S5 specifically includes the following steps:

[0018] Step S5.1: Calculate the transformation matrix M1 from the scatter plot element to the viewport;

[0019] Step S5.2: Calculate the transformation matrix M2 from geographic coordinates to logical coordinates;

[0020] Step S5.3: Calculate the total transformation matrix M3, M3 = M1 * M2, and establish a direct mapping relationship from geographic coordinates to device coordinates.

[0021] Preferably, between the step S5 and the step S6, it further includes: calculating the inverse matrix of the total transformation matrix, and using the inverse matrix of the total transformation matrix to convert the vertex coordinates of the scene viewport rectangle into the corresponding geographic coordinates.

[0022] The present invention also provides a device for quickly drawing a plane scatter plot of massive data, including:

[0023] A data classification unit, which is configured to: classify the scatter point information to be drawn to obtain a plurality of scatter point primitives;

[0024] An information instantiation unit, which is configured to: instantiate a scene and a view;

[0025] A data association unit, which is configured to: place the scatter point primitives into the scene, associate the scene with the view, and obtain a view pointer through a scene pointer;

[0026] A data mapping unit, which is configured to: calculate a total transformation matrix and establish a direct mapping relationship from geographic coordinates to device coordinates;

[0027] A coordinate transformation unit, which is configured to: use the total transformation matrix to transform the geographic coordinates of the feature points to be drawn into device coordinates;

[0028] A pattern generation unit, which is configured to: generate a pixel pattern shared by all feature points of the primitive class and add the pixel patterns of all feature points to the corresponding device coordinates in the scene viewport.

[0029] Preferably, the data mapping unit includes:

[0030] A first calculation unit, which is configured to: calculate a transformation matrix M1 from the scatter point primitive to the viewport;

[0031] A second calculation unit, which is configured to: calculate a transformation matrix M2 from geographic coordinates to logical coordinates;

[0032] A third calculation unit, which is configured to: calculate a total transformation matrix M3, where M3 = M1 * M2, so as to establish a direct mapping relationship from geographic coordinates to device coordinates.

[0033] The present invention also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein, the processor is connected to the memory, and the above one or more computer programs are stored in the memory. When the electronic device runs, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the above-mentioned method for quickly drawing a scatter plot of massive data on a plane.

[0034] The present invention also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the above-mentioned method for quickly drawing a scatter plot of massive data on a plane is completed.

[0035] The beneficial effects of the present invention at least include:

[0036] The method and device for quickly drawing a mass data plane scatter plot according to the present invention classify scatter information to obtain a plurality of scatter plot elements, instantiate a scene and a view, associate the view with the scene, obtain a view pointer through a scene pointer, calculate a total transformation matrix, establish a direct mapping relationship from geographic coordinates to device coordinates, use the total transformation matrix to convert the geographic coordinates of the ground object points to be drawn into device coordinates, and generate a pixel pattern shared by all ground object points of this plot element class. The present invention effectively improves the drawing efficiency of the plane scatter plot by adopting technologies such as multiple plot element classes, direct mapping between geographic coordinates and device coordinates, and buffer pixel map drawing, can effectively improve the drawing efficiency and flexibility of the work area base map of a large number of ground object points, and eliminates the flickering and waiting phenomena during interactive operations such as refreshing and zooming of the work area base map of a large number of ground object points.

[0037] The method and device of the present invention also improve the processing ability of computer visualization technology for mass geological survey and seismic exploration data, and provide an interface for human-computer interaction operations, providing a convenient tool for relevant technical personnel to analyze survey data, study geological structures and oil and gas deposits.

[0038] The method and device of the present invention have other characteristics and advantages, which will be obvious in the accompanying drawings and subsequent specific embodiments incorporated herein, or will be described in detail in the accompanying drawings and subsequent specific embodiments incorporated herein. These accompanying drawings and specific embodiments are jointly used to explain the specific principles of the present invention. Brief Description of the Drawings

[0039] By describing the exemplary embodiments of the present invention in more detail in conjunction with the accompanying drawings, the above and other objects, features and advantages of the present invention will become more obvious.

[0040] Figure 1 Shows the flowchart of the method for quickly drawing a mass data plane scatter plot according to the present invention;

[0041] Figure 2 Shows the schematic diagram of the ground object point plot element class for drawing a plane scatter plot in the present invention;

[0042] Figure 3 Shows the schematic diagram of drawing a mass data plane scatter plot in a certain work area in the actual application of the present invention. Detailed Description of the Invention

[0043] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0044] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein.

[0045] It should be understood that in various embodiments of the present invention, the magnitude of the serial numbers of the processes does not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logics, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

[0046] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0047] It should be understood that in the present invention, "a plurality of" means two or more. "And / or" is merely a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. "Including A, B, and C" and "including A, B, C" mean that all of A, B, and C are included. "Including A, B, or C" means including any one of A, B, and C. "Including A, B, and / or C" means including any one, any two, or all three of A, B, and C.

[0048] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A relatively", "A corresponding to B relatively", or "B corresponding to A relatively" means that B is associated with A, and B can be determined according to A. Determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information. The matching of A and B means that the similarity between A and B is greater than or equal to a preset threshold.

[0049] Depending on the context, as used herein, "if" may be interpreted as "when", "while", "in response to determining", or "in response to detecting".

[0050] The technical solutions of the present invention will be described in detail below with specific embodiments. These specific embodiments may be combined with each other, and for the same or similar concepts or processes, they may not be repeated in some embodiments.

[0051] The method and device for quickly drawing scatter plots of massive data planes of the present invention are mainly designed and developed based on the Qt graphics library. Qt is a cross-platform interactive graphical user interface application development framework based on the C++ language, which can provide all the functions required for developers to build an interactive graphical user interface. At the same time, Qt is an object-oriented program framework with good encapsulation, supports component-based programming, has good scalability, a very high degree of modularity, and good reusability in Qt programs. The GraphicsView framework is a mainstream visualization graphics component development framework in Qt, which implements a graphics management structure of primitives - scene - view, can manage a large number of primitives, and supports various convenient functions such as collision detection, coordinate transformation, and primitive groups. The GraphicsView framework structure mainly includes three main classes: QGraphicsScene (scene), QGraphicsView (view), and QGraphicsItem (primitive). QGraphicsScene itself is invisible and is a container for storing primitives. It must be displayed and interact with the outside world through the connected QGraphicsView view. It mainly provides operation interfaces for primitives, passes events, and manages the states of each primitive, and provides a drawing function without transformation (such as printing); QGraphicsView provides a visible window for displaying the primitives in the scene, and there can be multiple views in a scene. QGraphicsItem is the base class for each primitive in the scene. QT provides standard classes for common graphical primitives, such as rectangles (QGraphicsRectItem), ellipses (QGraphicsEllipseItem), and texts (QGraphicsTextItem). GraphicsView is a framework based on the Model / View architecture of primitives, and each component is an independent element. The traditional QPainter draws pictures using a procedure-oriented description method, while GraphicsView draws pictures using an object-oriented description method. When drawing with GraphicsView, first create a scene, then create primitive objects, add the primitive objects to the scene, and finally display them through the view. For complex images, if the image contains a large number of primitive objects such as straight lines, curves, and polygons, it is easier to manage the primitive objects than to manage the drawing process statements of QPainter, which undoubtedly makes a step forward in the efficiency of graphics drawing and management. Moreover, the primitive objects are more in line with the object-oriented concept, and the reusability of the graphics is better. These excellent characteristics make GraphicsView superior to the traditional direct drawing method of QPainter in scenarios where a large number of primitive elements need to be managed, and can handle operations such as rotation, scaling, and interaction between primitives more efficiently. However, in the context of the rapid growth of current field seismic acquisition data volume, this method is also difficult to meet the requirements of fast and real-time drawing.For the base map drawing with hundreds of thousands of ground feature points, the GraphicsView framework needs to generate the same number of graphics primitives, add these massive graphics primitives to the scene GraphicsScene, and perform rendering and drawing, which will bring heavy computational and display loads.

[0052] Example 1

[0053] According to an embodiment of the present invention, a method for quickly drawing a scatter plot of massive data on a plane is provided. The flowchart is as Figure 1 shown, and the method includes the following steps:

[0054] Step S1: Classify the scatter information to be drawn to obtain multiple scatter graphics primitives;

[0055] Step S2: Instantiate a scene and a view;

[0056] Step S3: Place the scatter graphics primitives into the scene and associate the scene with the view;

[0057] Step S4: Obtain the view pointer through the scene pointer;

[0058] Step S5: Calculate the total transformation matrix and establish a direct mapping relationship from geographic coordinates to device coordinates. Among them, geographic coordinates are spherical coordinates representing the position of a ground point with latitude and longitude. The geographic coordinate system takes the earth's axis as the polar axis, and all planes passing through the north and south poles of the earth are called meridian planes. Geographic coordinates are spherical coordinates representing the position of a ground point with longitude and latitude. Device coordinates (Device Coordinate), also known as physical coordinates (Physical Coordinate), refer to the coordinates on the output device, also known as viewport coordinates. Usually, the device coordinates on the screen are called screen coordinates. Device coordinates specify the position of an object by the horizontal distance and vertical distance of the object from the upper left corner of the window, and are represented in pixels. The positive direction of the X-axis of device coordinates is to the right, the positive direction of the Y-axis is downward, and the coordinate origin is located at the upper left corner of the window.

[0059] Step S6: Use the total transformation matrix to convert the geographic coordinates of the ground feature points to be drawn into device coordinates;

[0060] Step S7: Generate a pixel pattern shared by all ground feature points of this graphics primitive class;

[0061] Step S8: Add the pixel patterns of all ground feature points at the corresponding device coordinates through the scene viewport.

[0062] The present invention designs a multi - element primitive class that can contain a vast amount of ground feature points. Using this primitive class, a vast amount of ground feature information points can be classified into a single primitive for management, drawing, and display, and operations such as rapid zooming are supported. The number of primitives that the GraphicsView framework needs to manage is reduced from millions to single - digit numbers, greatly improving the efficiency of drawing and operations. And technologies such as direct mapping between geographic coordinates and device coordinates, and drawing of buffer pixel maps are used to effectively improve the drawing efficiency of planar scatter plots.

[0063] The ground feature primitive class designed by the present invention is as Figure 2 shown. In this primitive class, the core implementation methods are included inside paint and calcTransform. The CalcTransform function implements matrix multiplication operations. The internal implementation process of the paint function is as follows: obtain the scene pointer where the current primitive is located; obtain the view pointer from the scene pointer; calculate the transformation matrix (M1) from the primitive to the viewport; calculate the transformation matrix (M2) from geographic coordinates to logical coordinates; calculate the total transformation matrix (M3 = M1 * M2) to establish a direct mapping relationship from geographic coordinates to device coordinates; use the inverse matrix of the total transformation matrix to convert the vertex coordinates of the scene viewport rectangle into corresponding geographic coordinates; use the total transformation matrix to convert the geographic coordinates of the ground feature points to be drawn into device coordinates; generate a pixel pattern (Pixmap) shared by all ground feature points of this primitive class; add the Pixmap of all ground feature points at the corresponding device coordinates in the scene viewport. In this way, the drawing of the ground feature points included in this primitive class is completed, and the drawing efficiency is greatly improved.

[0064] In a possible implementation manner, before step S1, it further includes: preparing scatter point information to be drawn, and the scatter point information includes at least one of geographic coordinates, elevation values, and sampling values.

[0065] In a possible implementation manner, in step S1, multiple scatter point primitive classes are instantiated according to the number of categories to classify the scatter point information.

[0066] In a possible implementation manner, between step S1 and step S2, it further includes: inputting the scatter point information into the corresponding scatter point primitive, and each scatter point primitive corresponds to one type of scatter point information.

[0067] In a possible implementation manner, step S5 specifically includes the following steps:

[0068] Step S5.1, calculate the transformation matrix M1 from the scatter point primitive to the viewport;

[0069] Step S5.2, calculate the transformation matrix M2 from geographic coordinates to logical coordinates;

[0070] Step S5.3: Calculate the total transformation matrix M3, where M3 = M1 * M2, and establish a direct mapping relationship from geographic coordinates to device coordinates.

[0071] In a possible implementation, between step S5 and step S6, it further includes: calculating the inverse matrix of the total transformation matrix, and using the inverse matrix of the total transformation matrix to convert the vertex coordinates of the scene viewport rectangle into the corresponding geographic coordinates.

[0072] The method for quickly drawing a massive data planar scatter plot of the present invention uses technologies such as multi - element primitives, direct mapping between geographic coordinates and device coordinates, and buffer pixel map drawing to effectively improve the drawing efficiency of the planar scatter plot, making it adapt to the massive data requirements of current seismic data, improving the accuracy of seismic data analysis, and enriching existing computational visualization technologies.

[0073] Example 2

[0074] According to an embodiment of the present invention, a device for quickly drawing a massive data planar scatter plot is provided, including:

[0075] A data classification unit, configured to: classify the scatter information to be drawn to obtain multiple scatter plot primitives;

[0076] An information instantiation unit, configured to: instantiate a scene and a view;

[0077] A data association unit, configured to: place the scatter plot primitives into the scene, associate the scene with the view, and obtain the view pointer through the scene pointer;

[0078] A data mapping unit, configured to: calculate the total transformation matrix and establish a direct mapping relationship from geographic coordinates to device coordinates;

[0079] A coordinate transformation unit, configured to: use the total transformation matrix to convert the geographic coordinates of the feature points to be drawn into device coordinates;

[0080] A pattern generation unit, configured to: generate a pixel pattern shared by all feature points of the primitive class, and add the pixel patterns of all feature points at the corresponding device coordinates of the scene viewport.

[0081] In a possible implementation, the data mapping unit includes:

[0082] A first calculation unit, configured to: calculate the transformation matrix M1 from the scatter plot primitive to the viewport;

[0083] A second calculation unit, configured to: calculate the transformation matrix M2 from geographic coordinates to logical coordinates;

[0084] A third computing unit, configured to: calculate a total transformation matrix M3, where M3 = M1 * M2, thereby establishing a direct mapping relationship from geographic coordinates to device coordinates.

[0085] The present invention effectively improves the drawing efficiency of the planar scatter plot by using technologies such as multi - element primitive classes, direct mapping between geographic coordinates and device coordinates, and buffer pixel map drawing, eliminating the flickering and waiting phenomena during interactive operations such as refreshing and zooming of the massive feature point work area base map; it also improves the processing ability of computer visualization technology for massive geological survey and seismic exploration data, and provides an interface for human - computer interaction operations, providing a convenient tool for relevant technical personnel to analyze survey data, study geological structures, and oil and gas deposits.

[0086] Example 3

[0087] According to another aspect of the present invention, an electronic device is also provided. The electronic device includes: one or more processors, one or more memories, and one or more computer programs; wherein, the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device runs, the processor executes the one or more computer programs stored in the memory, so that the electronic device executes the method for quickly drawing a massive data planar scatter plot of the present invention.

[0088] The method includes the following steps:

[0089] Step S1, classify the scatter information to be drawn to obtain multiple scatter plot primitives;

[0090] Step S2, instantiate a scene and a view;

[0091] Step S3, put the scatter plot primitives into the scene and associate the scene with the view;

[0092] Step S4, obtain the view pointer through the scene pointer;

[0093] Step S5, calculate the total transformation matrix to establish a direct mapping relationship from geographic coordinates to device coordinates;

[0094] Step S6, use the total transformation matrix to convert the geographic coordinates of the feature points to be drawn into device coordinates;

[0095] Step S7, generate a pixel pattern shared by all feature points of this primitive class;

[0096] Step S8, add the pixel patterns of all feature points on the corresponding device coordinates through the scene viewport.

[0097] In a possible implementation, before step S1, it further includes: preparing scatter point information to be drawn, where the scatter point information includes at least one of geographical coordinates, elevation values, and sampling values.

[0098] In a possible implementation, in step S1, multiple scatter point primitive classes are instantiated according to the number of categories to classify the scatter point information.

[0099] In a possible implementation, between step S1 and step S2, it further includes: inputting the scatter point information into the corresponding scatter point primitives, and each scatter point primitive corresponds to one category of scatter point information.

[0100] In a possible implementation, step S5 specifically includes the following steps:

[0101] Step S5.1, calculating the transformation matrix M1 from the scatter point primitive to the viewport;

[0102] Step S5.2, calculating the transformation matrix M2 from the geographical coordinates to the logical coordinates;

[0103] Step S5.3, calculating the total transformation matrix M3, where M3 = M1 * M2, and establishing a direct mapping relationship from the geographical coordinates to the device coordinates.

[0104] In a possible implementation, between step S5 and step S6, it further includes: calculating the inverse matrix of the total transformation matrix, and using the inverse matrix of the total transformation matrix to convert the vertex coordinates of the scene viewport rectangle into the corresponding geographical coordinates.

[0105] Example 4

[0106] According to another aspect of the present invention, there is also provided a computer-readable storage medium, including a memory storing computer program instructions, and the computer program instructions can be executed by a processor of an electronic device to complete the method for quickly drawing a scatter point map of a massive data plane of the present invention.

[0107] The method includes the following steps:

[0108] Step S1, classifying the scatter point information to be drawn to obtain multiple scatter point primitives;

[0109] Step S2, instantiating a scene and a view;

[0110] Step S3, putting the scatter point primitives into the scene and associating the scene with the view;

[0111] Step S4, obtaining the view pointer through the scene pointer;

[0112] Step S5, calculating the total transformation matrix and establishing a direct mapping relationship from the geographical coordinates to the device coordinates;

[0113] Step S6: Convert the geographic coordinates of the feature points to be drawn into device coordinates using the total transformation matrix;

[0114] Step S7: Generate a pixel pattern shared by all feature points of this primitive class;

[0115] Step S8: Add the pixel patterns of all feature points at the corresponding device coordinates through the scene viewport.

[0116] In a possible implementation, before step S1, it further includes: preparing the scatter point information to be drawn, where the scatter point information includes at least one of geographic coordinates, elevation values, and sampling values.

[0117] In a possible implementation, in step S1, instantiate multiple scatter point primitive classes according to the number of categories to classify the scatter point information.

[0118] In a possible implementation, between step S1 and step S2, it further includes: inputting the scatter point information into the corresponding scatter point primitive, and each scatter point primitive corresponds to a category of scatter point information.

[0119] In a possible implementation, step S5 specifically includes the following steps:

[0120] Step S5.1: Calculate the transformation matrix M1 from the scatter point primitive to the viewport;

[0121] Step S5.2: Calculate the transformation matrix M2 from geographic coordinates to logical coordinates;

[0122] Step S5.3: Calculate the total transformation matrix M3, where M3 = M1 * M2, and establish a direct mapping relationship from geographic coordinates to device coordinates.

[0123] In a possible implementation, between step S5 and step S6, it further includes: calculating the inverse matrix of the total transformation matrix, and using the inverse matrix of the total transformation matrix to convert the vertex coordinates of the scene viewport rectangle into the corresponding geographic coordinates.

[0124] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. The computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device, such as a punched card or raised structures in grooves storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage medium used herein is not construed as an instantaneous signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.

[0125] Example 5

[0126] The method and device for quickly drawing a scatter plot of massive data planes of the present invention are tested using data from an actual work area. The work area contains more than 8 million ground object coordinate points. Color triangles are used to mark shot points and geophone points. It only takes 0.8 s to complete the drawing. The local area zoom-in diagram is as Figure 3 shown, effectively improving the drawing efficiency of the scatter plot of the plane and enhancing the processing ability of computer visualization technology for massive geological survey and seismic exploration data.

[0127] It can be understood that the above-mentioned embodiments mentioned in the present invention can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present invention will not elaborate further. Those skilled in the art can understand that in the above method of the specific implementation manner, the specific execution order of each step should be determined according to its function and possible internal logic.

[0128] Note that, unless otherwise directly stated, all features disclosed in this specification (including any appended claims, abstract, and drawings) may be replaced by alternative features serving the same, equivalent, or similar purposes. Therefore, unless otherwise clearly stated, each feature disclosed is only an example of a group of equivalent or similar features. Where used, further, preferably, furthermore, and more preferably are simple introductions for elaborating another embodiment based on the foregoing embodiments. The content following the further, preferably, furthermore, or more preferably, in combination with the foregoing embodiments, constitutes a complete composition of another embodiment. Combinations can be arbitrarily made among several further, preferably, furthermore, or more preferably settings following the same embodiment to form yet another embodiment.

[0129] Those skilled in the art should understand that the embodiments of the present invention described above and shown in the drawings are only examples and do not limit the present invention. The objectives of the present invention have been fully and effectively achieved. The functions and structural principles of the present invention have been demonstrated and explained in the embodiments. Without departing from the said principles, the embodiments of the present invention may be subject to any deformation or modification.

[0130] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for quickly drawing a scatter plot of massive data plane, characterized in that, it includes the following steps: Step S1, classify the scatter information to be drawn to obtain multiple scatter plot elements; Step S2, instantiate a scene and a view; Step S3, put the scatter plot elements into the scene and associate the view with the scene; Step S4, obtain the view pointer through the scene pointer; Step S5, calculate the total transformation matrix and establish a direct mapping relationship from geographic coordinates to device coordinates; Step S6, use the total transformation matrix to convert the geographic coordinates of the ground object points to be drawn into device coordinates; Step S7, generate a pixel pattern shared by all ground object points of this primitive class; Step S8, add the pixel patterns of all ground object points on the corresponding device coordinates through the scene viewport.

2. The method for quickly drawing a scatter plot of massive data plane according to claim 1, characterized in that, before the step S1, it further includes: preparing the scatter information to be drawn, and the scatter information includes at least one of geographic coordinates, elevation values, and sampling values.

3. The method for quickly drawing a scatter plot of massive data plane according to claim 1, characterized in that, in the step S1, instantiate multiple scatter plot element classes according to the number of types to classify the scatter information.

4. The method for quickly drawing a scatter plot of massive data plane according to claim 1, characterized in that, between the step S1 and the step S2, it further includes: input the scatter information into the corresponding scatter plot element, and each scatter plot element corresponds to a class of scatter information.

5. The method for quickly drawing a scatter plot of massive data plane according to claim 1, characterized in that, the step S5 specifically includes the following steps: Step S5.1, calculate the transformation matrix M1 from the scatter plot element to the viewport; Step S5.2, calculate the transformation matrix M2 from geographic coordinates to logical coordinates; Step S5.3, calculate the total transformation matrix M3, M3 = M1 * M2, and establish a direct mapping relationship from geographic coordinates to device coordinates.

6. The method for quickly drawing a scatter plot of massive data plane according to claim 1, characterized in that, between the step S5 and the step S6, it further includes: calculate the inverse matrix of the total transformation matrix, and use the inverse matrix of the total transformation matrix to convert the vertex coordinates of the scene viewport rectangle into the corresponding geographic coordinates.

7. A device for quickly drawing a scatter plot of massive data plane, characterized in that, it includes: A data classification unit configured to: classify the scatter information to be drawn to obtain multiple scatter plot elements; An information instantiation unit configured to: instantiate a scene and a view; A data association unit configured to: put the scatter plot elements into the scene, associate the view with the scene, and obtain the view pointer through the scene pointer; A data mapping unit configured to: calculate the total transformation matrix and establish a direct mapping relationship from geographic coordinates to device coordinates; A coordinate conversion unit configured to: use the total transformation matrix to convert the geographic coordinates of the ground object points to be drawn into device coordinates; A pattern generation unit, configured to: generate a pixel pattern shared by all feature points of the primitive class, and add the pixel patterns of all feature points to the corresponding device coordinates in the scene viewport.

8. A rapid drawing device for a massive data plane scatter plot according to claim 7, wherein, the data mapping unit includes: a first calculation unit, configured to: calculate a transformation matrix M1 from the scatter plot primitive to the viewport; a second calculation unit, configured to: calculate a transformation matrix M2 from geographical coordinates to logical coordinates; a third calculation unit, configured to: calculate a total transformation matrix M3, M3 = M1 * M2, so as to establish a direct mapping relationship from geographical coordinates to device coordinates.

9. An electronic device, characterized in that it includes: one or more processors, one or more memories, and one or more computer programs; wherein, the processor is connected to the memory, and the above one or more computer programs are stored in the memory. When the electronic device runs, the processor executes the one or more computer programs stored in the memory, so that the electronic device executes the method according to any one of claims 1-6 above.

10. A computer-readable storage medium, characterized in that it is used to store computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1-6 is completed.