Contour plotting methods, apparatus, storage media, and electronic equipment
By using a map editing plugin in the browser to obtain data and parameter information, and generating and editing contour maps, the problem of complex operation of desktop software is solved, enabling fast and convenient contour map drawing and meeting the needs of old oilfield evaluation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA NAT PETROLEUM CORP
- Filing Date
- 2024-12-19
- Publication Date
- 2026-06-30
Smart Images

Figure CN122312801A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of oil well logging technology, specifically to a contour line drawing method, a contour line drawing device, a machine-readable storage medium, and an electronic device. Background Technology
[0002] Contour maps are a type of map that uses lines connecting points of equal value to represent continuously distributed and gradually changing quantitative characteristics. In daily mine production, thematic maps related to contour lines are frequently used and important map types, such as: coal seam floor contour maps, coal seam isopyrographs, ash content contour maps, sulfur content contour maps, gas content contour maps, water level contour maps, and aquifer thickness contour maps.
[0003] The existing contour map drawing method uses professional desktop software, which is slow and complicated to operate. Summary of the Invention
[0004] The purpose of this invention is to provide a contour line drawing method, a contour line drawing device, a machine-readable storage medium, and an electronic device. This contour line drawing method can provide users with a faster and more convenient operating experience.
[0005] To achieve the above objectives, the first aspect of this application provides a contour line drawing method applied to a map page in a browser, the contour line drawing method comprising: Call the map editing plugin to obtain data source and parameter information; Based on the parameter information and the data source, an initial contour map is generated on the map page; Obtain layer operation instructions, and based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
[0006] In this embodiment of the application, generating an initial contour map on the map page based on the parameter information and the data source includes: Spatial correlation modeling of the data source was performed using the Kriging interpolation method to obtain isosurface data; Based on the parameter information and the isosurface data, an initial contour map is generated on the map page.
[0007] In this embodiment of the application, the step of using the Kriging interpolation method to model the spatial correlation of the data source to obtain isosurface data includes: The data from the data source is processed according to a preset first data format to obtain data in the first format. The first format data is processed according to the preset second data format to obtain the second format data; Spatial correlation modeling of the second format data is performed using the Kriging interpolation method to obtain isosurface data.
[0008] In this embodiment of the application, the step of processing the first format data according to a preset second data format to obtain the second format data includes: Based on the preset geographic location information, the first format data is filtered to obtain location data; The location data is processed according to a preset second data format to obtain second format data.
[0009] In this embodiment of the application, the step of processing the location data according to a preset second data format to obtain second format data includes: The location data is converted according to a preset second data format to obtain second initial format data; The second initial format data is sorted according to the preset sorting rules to obtain the second format data.
[0010] In this embodiment of the application, generating an initial contour map on the map page based on the parameter information and the isosurface data includes: Calculate the cache area for each point in the isosurface data to obtain the cache elements for each point; The cached elements of each point are integrated to obtain the clipping region data; Based on the parameter information, the cropping region data, and the isosurface data, an initial contour map is generated on the map page.
[0011] In this embodiment of the application, it also includes: Based on the new contour map, a legend control is created on the map page.
[0012] In this embodiment of the application, obtaining parameter information includes: Obtain well parameters, contour range, and contour interval; Gradient information is calculated based on the contour range and the contour interval; Based on the gradient information, the contour line color information is obtained; Based on the well parameters, the gradient information, and the contour line color information, parameter information is obtained.
[0013] A second aspect of this application provides a contour line drawing device for use on a map page in a browser, the contour line drawing device comprising: The acquisition module is used to call the map editing plugin to obtain data source and parameter information; A drawing module is used to generate an initial contour map on the map page based on the parameter information and the data source. The editing module is used to obtain layer operation instructions and, based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
[0014] In this embodiment of the application, the drawing module includes: The modeling unit is used to perform spatial correlation modeling on the data source using the Kriging interpolation method to obtain isosurface data. The generation unit is used to generate an initial contour map on the map page based on the parameter information and the contour data.
[0015] A third aspect of this application provides an electronic device, the electronic device comprising: At least one processor; A memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the contour line drawing method described above by executing the instructions stored in the memory.
[0016] A fourth aspect of this application provides a machine-readable storage medium storing instructions that, when executed by a processor, configure the processor to perform the contour drawing method described above.
[0017] The above technical solution utilizes a map editing plugin accessed via a browser-based map page to obtain data source and parameter information. Based on this information, an initial contour map is generated on the map page. Layer operation commands are then obtained, and based on these commands, layers within the contour map are edited to obtain a new contour map, thus achieving online contour map generation. The map editing plugin enables functions such as editing, dragging, cutting, and deleting layers. Compared to the slow map generation and complex operation of professional desktop software, this solution provides a lightweight web-based drawing experience with flexible configuration options, offering users a faster and more convenient operating experience. This meets the data mapping needs of the old oilfield potential tapping and evaluation process and provides graphical numerical references for old oilfield evaluation.
[0018] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0019] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 The illustration shows a flowchart of a contour line drawing method according to an embodiment of this application; Figure 2 A contour map according to an embodiment of this application is illustrated schematically; Figure 3 This schematically illustrates a contour line drawing interface diagram according to an embodiment of the present application; Figure 4 The schematic diagram illustrates the structure of a contour plotting apparatus according to an embodiment of this application; Figure 5 The diagram illustrates the internal structure of a computer device according to an embodiment of this application.
[0020] Explanation of reference numerals in the attached figures 410 - Acquisition module; 420 - Drawing module; 430 - Editing module; A01 - Processor; A02 - Network interface; A03 - Internal memory; A04 - Display screen; A05 - Input device; A06 - Non-volatile storage medium; B01 - Operating system; B02 - Computer program. Detailed Implementation
[0021] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.
[0022] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.
[0023] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0024] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0025] Please refer to Figure 1 , Figure 1 The illustration shows a flowchart of a contour line drawing method according to an embodiment of this application. This embodiment provides a contour line drawing method applied to a map page in a browser, the contour line drawing method comprising the following steps: Step 210: Invoke the map editing plugin to obtain data source and parameter information; In this embodiment, the map editing plugins mentioned above include Leaflet, OpenLayers, etc., which enable the function of editing drag-and-drop layers on the page. Among them, Leaflet.pm (Leaflet-Plugin for Draw / Edit / TransformGeometries) is a powerful plugin for Leaflet.js, which focuses on adding functions for drawing, editing, and transforming geometry on maps. This plugin greatly enhances Leaflet's map editing capabilities, allowing users to easily create and modify geospatial data on maps. For ease of explanation, this embodiment mainly uses Leaflet.pm as an example for map editing plugin. Open the map page in the browser and call the map editing plugin. There are two ways to obtain data: one is to obtain the data source by copying and pasting Excel data of well feature values, and then generate a contour map; the other is to obtain the data source by selecting well feature values in an online data table, and then draw the contour map. The above parameter information refers to the parameters used to draw contour lines, including well parameters, gradient, gradient color, etc. The above data source includes a list of well names, feature values, etc.
[0026] In some embodiments, obtaining parameter information includes the following steps: First, obtain the well parameters, contour range, and contour interval; In this embodiment, well parameters include information such as well location, model, and weights, and contour ranges include maximum and minimum contour values. The contour range and contour intervals can be user-defined.
[0027] Then, gradient information is calculated based on the contour range and the contour interval; In this embodiment, the gradient information includes the number of gradients and the gradient values of each contour line. Each gradient value is: minimum contour value + gradient index * contour interval. First, the difference between the maximum and minimum contour values is calculated, and then the difference is divided by the contour interval to obtain the number of gradients, thereby obtaining the gradient index of each gradient.
[0028] Then, based on the gradient information, the contour line color information is obtained; In this embodiment, the contour line color information includes the color corresponding to each gradient. Each gradient has a color selector, and the user can customize the color to obtain the color corresponding to each gradient, so as to distinguish the gradients later.
[0029] Finally, based on the well parameters, the gradient information, and the contour line color information, the parameter information is obtained.
[0030] In this embodiment, the parameter information includes well parameters, gradient information, and contour line color information.
[0031] In practice, the relevant information can be obtained by calling a dialog box, for example: please refer to Figure 3 , Figure 3 The diagram illustrates a contour line drawing interface according to an embodiment of this application.
[0032] 1. After bringing up the contour configuration dialog box, paste the data source (well name list and feature values).
[0033] 2. Click the Parameters tab to select the interval, maximum value, and minimum value data, then click Next to switch to the Contour Configuration tab.
[0034] 3. After editing the gradient color in the contour tab, click the generate button.
[0035] By acquiring well parameters, contour range, and contour interval; calculating gradient information based on the contour range and contour interval; and acquiring contour color information based on the gradient information, parameter information can be accurately obtained, facilitating user operation.
[0036] Step 220: Based on the parameter information and the data source, generate an initial contour map on the map page; The step of generating an initial contour map on the map page based on the parameter information and the data source includes: First, spatial correlation modeling of the data source is performed using the Kriging interpolation method to obtain isosurface data; In this embodiment, the kriging-contour library can be selected to process the source data and output it as geoJSON format. The kriging-contour library is used to generate Kriging interpolation contour lines. This library focuses on generating corresponding contour maps based on Kriging interpolation to visually display the spatial distribution characteristics of the data. The above-mentioned estimation of the values of unknown points using the ordinary Kriging interpolation algorithm by modeling spatial correlation specifically includes the following steps: 1) Data collection and preprocessing a) Collect spatially distributed data points, namely: well coordinates and well parameter attribute values.
[0037] b) Preprocess the data to remove outliers and fill in missing values.
[0038] 2) Semivariogram analysis a) Calculate the semivariogram values between known points to quantify their spatial correlation.
[0039] b) Select a suitable semivariogram model (here, an exponential model is used) and fit the model parameters.
[0040] 3) Construct the weight matrix a) Calculate the spatial correlation between unknown points and known points based on the semi-variogram model.
[0041] b) Construct a weight matrix that reflects the contribution of known points to the interpolation results of unknown points.
[0042] 4) Interpolation calculation a) Calculate the interpolation results for unknown points using the weight matrix and the attribute values (well parameter values) of known points.
[0043] b) The interpolation result is usually a weighted average, with the weights determined by the semi-variogram function.
[0044] 5) Results Verification and Evaluation a) Use methods such as cross-validation to evaluate the accuracy of the interpolation results.
[0045] b) Compare the interpolation results with the actual situation to conduct error analysis and accuracy evaluation.
[0046] In some embodiments, the step of using the Kriging interpolation method to model the spatial correlation of the data source to obtain isosurface data includes the following steps: The first step is to organize the data from the data source according to the preset first data format to obtain the first format data; In this embodiment, the aforementioned preset first data format refers to: value, longitude, and latitude. The data source is organized according to the first data format into data containing feature values, longitude, and latitude. This organization may involve finding the longitude and latitude corresponding to the feature values separately.
[0047] The second step is to organize the first format data according to the preset second data format to obtain the second format data; In this embodiment, the aforementioned preset second data format refers to the geoJSON format. The geoJSON format is an open standard format for representing geospatial data, capable of describing geographic features such as points, lines, and polygons. The data can be formatted into geoJSON using existing technologies, and will not be elaborated upon further here.
[0048] In some embodiments, the step of processing the first format data according to a preset second data format to obtain the second format data includes the following steps: First, based on the preset geographic location information, the first format data is filtered to obtain location data; In this embodiment, the preset geographical location information can be latitude and longitude information, such as: domestic latitude and longitude (72.004 < longitude < 137.8347) (0.8293 < latitude < 55.8271). The above filtering refers to filtering out data whose latitude and longitude meet the preset geographical location information to obtain location data.
[0049] Then, the location data is processed according to the preset second data format to obtain second format data.
[0050] In this embodiment, after obtaining the location data, the data is converted into a second data format to obtain second format data. Specifically, this can be done by iterating through the first format data, extracting the logitude (longitude) and latitude (latitude) field values of each item in the data to form an array called coordinates, then iterating through coordinates, filtering out domestic longitude and latitude (72.004 < longitude < 137.8347) (0.8293 < latitude < 55.8271), and then putting the location data into the coordinates property of gometry in boundaries (geoJSON format). At this point, a standard geoJSON format object is completed.
[0051] In some embodiments, the step of processing the location data according to a preset second data format to obtain second format data includes: First, the location data is converted according to a preset second data format to obtain second initial format data; Then, the second initial format data is sorted according to the preset sorting rules to obtain the second format data.
[0052] In this embodiment, the values of `boundaries.features` must be positive and in ascending order; otherwise, the libraries referenced by the `kriging-contour` library will not be able to return the correct values. Therefore, the `boundaries` object needs further processing to ensure that the values are positive and ordered. That is, the second initial format data needs to be sorted by positive and ascending values. The preset sorting rule refers to positive and ascending value sorting. This sorting can be achieved by calling the `sort` method on the `boundaries.feature` array, comparing adjacent values, placing the smaller one first and the larger one last.
[0053] The third step involves using the Kriging interpolation method to model the spatial correlation of the second format data, thereby obtaining isosurface data.
[0054] In this embodiment, the `kriging.getVectorContour` method is used to generate vector data of isosurfaces, i.e., isosurface data, based on the well's location, model, and weights. Specifically, the `kriging.getVectorContour` function can be used, represented as: `kriging.getVectorContour(dataSet, value, param, level)`, where `dataSet` is a GeoJSON format Feature Collection dataset, i.e., second-format data; `value` is the name of the weighted field; and `param` is: `model`: the interpolation model (here, an exponential model is used), `sigma2`: variance, and `level` is the weighted isosurface classification data. The `kriging.getVectorContour` method mainly uses the ordinary Kriging interpolation algorithm to estimate the values of unknown points by modeling spatial correlation.
[0055] Then, based on the parameter information and the isosurface data, an initial contour map is generated on the map page.
[0056] The step of generating an initial contour map on the map page based on the parameter information and the isosurface data includes the following steps: The first step is to calculate the cache area for each point in the isosurface data to obtain the cache elements for each point; In this embodiment, the vector data of the isosurface can be a buffer that calculates each point in the isosurface data using the turf.buffer function of the turf library.
[0057] The second step is to integrate the cached elements of each point to obtain the clipping region data; In this embodiment, the `turf.featureCollection` method is used to convert the data to a feature collection format in GeoJSON to obtain the final clipped region. The `turf.featureCollection` method then integrates all the previously calculated and buffered features into a single `FeatureCollection` conforming to the GeoJSON specification. This collection represents the final clipped region data.
[0058] The third step is to generate an initial contour map on the map page based on the parameter information, the cropping area data, and the isosurface data.
[0059] In this embodiment, geoJSON data format is used in Leaflet to mark each point, draw the region, and finally plot it on a map to obtain an initial contour map. Specifically, the previously generated GeoJSON data representing the clipping region is added to the Leaflet map. Custom style settings can be applied to different geometric types (points, polygons, etc.) to ensure a clear and aesthetically pleasing display on the map. Figure 2 As shown, Figure 2 A contour map according to an embodiment of this application is illustrated schematically.
[0060] Step 230: Obtain layer operation instructions, and based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
[0061] In this embodiment, the editing can be done by clicking on any layer of the contour map to display the control points of that gradient range layer, and then dragging to modify the generated layer style. Alternatively, it can be done by clicking on two adjacent layers, dragging two control points from one layer to the other layer to make them intersect, and then clicking the merge button to merge the layers.
[0062] In the above implementation process, a map editing plugin is invoked on the map page in the browser to obtain data source and parameter information; based on the parameter information and the data source, an initial contour map is generated on the map page; layer operation instructions are obtained, and based on the layer operation instructions, the layers in the contour map are edited to obtain a new contour map, thus realizing the function of online contour map generation. The map editing plugin allows for editing, dragging, cutting, and deleting layers. Compared to the slow map generation and complex operation of professional desktop software, it provides a lightweight web-based drawing display and flexible configuration, offering users a faster and more convenient operating experience. This meets the data mapping needs of the old oilfield potential tapping and evaluation production process and provides graphical numerical references for the evaluation of old oilfields.
[0063] Based on the fundamental capabilities of the map component library Leaflet.js, the function of generating contour maps online is implemented through libraries such as kriging-contour.js, Turf.js, leaflet.pm.js, and leaflet-polylinedecorator.js.
[0064] In some embodiments, the method further includes: creating a legend control on the map page based on the new contour map.
[0065] In this embodiment, a control object can be initialized using the L.control() method provided by Leaflet, and then the onAdd function can be defined to customize the control's content and behavior when added to the map. Creating a legend control can improve map readability and facilitate user interaction.
[0066] Figure 1 This is a flowchart illustrating the contour line drawing method in this embodiment. It should be understood that, although... Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0067] Please refer to Figure 4 , Figure 4The schematic diagram illustrates a contour line drawing device according to an embodiment of this application. This embodiment provides a contour line drawing device applied to a map page in a browser. The contour line drawing device includes an acquisition module 410, a drawing module 420, and an editing module 430, wherein: Module 410 is used to call the map editing plugin to obtain data source and parameter information; The drawing module 420 is used to generate an initial contour map on the map page based on the parameter information and the data source. The editing module 430 is used to obtain layer operation instructions and, based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
[0068] The drawing module 420 includes: The modeling unit is used to perform spatial correlation modeling on the data source using the Kriging interpolation method to obtain isosurface data. The generation unit is used to generate an initial contour map on the map page based on the parameter information and the contour data.
[0069] The contour line drawing device includes a processor and a memory. The acquisition module 410, drawing module 420 and editing module 430 are all stored in the memory as program units. The processor executes the program units stored in the memory to realize the corresponding functions.
[0070] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and contour plotting is achieved by adjusting kernel parameters.
[0071] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0072] This invention provides a machine-readable storage medium storing a program that, when executed by a processor, implements the contour line drawing method.
[0073] This invention provides a processor for running a program, wherein the program executes the contour line drawing method during runtime.
[0074] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown in the figure, the computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05, and a memory (not shown) connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A06. The network interface A02 is used for communication with external terminals via a network connection. When the computer program is executed by the processor A01, it implements a contour plotting method. The display screen A04 can be a liquid crystal display (LCD) or an e-ink display. The input device A05 can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0075] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0076] In one embodiment, the contour line drawing method apparatus provided in this application can be implemented as a computer program, and the computer program can be implemented in the form of, for example, Figure 5 The method runs on the computer device shown. The computer device's memory can store the various program modules that make up the contour line drawing method apparatus, for example, Figure 4 The acquisition module 410, drawing module 420, and editing module 430 are shown. The computer program, consisting of these modules, causes the processor to execute the steps in the contour line drawing methods of the various embodiments of this application described in this specification.
[0077] Figure 5 The computer equipment shown can be used as follows Figure 4 The contour line drawing method apparatus shown executes step 210 via the acquisition module 410. A computer device can execute step 220 via the drawing module 420. A computer device can execute step 230 via the editing module 430.
[0078] This application provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the contour line drawing method described above by executing the instructions stored in the memory, applied to a map page in a browser. When the processor executes the instructions, it performs the following steps: Call the map editing plugin to obtain data source and parameter information; Based on the parameter information and the data source, an initial contour map is generated on the map page; Obtain layer operation instructions, and based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
[0079] In one embodiment, generating an initial contour map on the map page based on the parameter information and the data source includes: Spatial correlation modeling of the data source was performed using the Kriging interpolation method to obtain isosurface data; Based on the parameter information and the isosurface data, an initial contour map is generated on the map page.
[0080] In one embodiment, the step of using the Kriging interpolation method to model the spatial correlation of the data source to obtain isosurface data includes: The data from the data source is processed according to a preset first data format to obtain data in the first format. The first format data is processed according to the preset second data format to obtain the second format data; Spatial correlation modeling of the second format data is performed using the Kriging interpolation method to obtain isosurface data.
[0081] In one embodiment, the step of processing the first format data according to a preset second data format to obtain the second format data includes: Based on the preset geographic location information, the first format data is filtered to obtain location data; The location data is processed according to a preset second data format to obtain second format data.
[0082] In one embodiment, the step of processing the location data according to a preset second data format to obtain second format data includes: The location data is converted according to a preset second data format to obtain second initial format data; The second initial format data is sorted according to the preset sorting rules to obtain the second format data.
[0083] In one embodiment, generating an initial contour map on the map page based on the parameter information and the isosurface data includes: Calculate the cache area for each point in the isosurface data to obtain the cache elements for each point; The cached elements of each point are integrated to obtain the clipping region data; Based on the parameter information, the cropping region data, and the isosurface data, an initial contour map is generated on the map page.
[0084] In one embodiment, it also includes: Based on the new contour map, a legend control is created on the map page.
[0085] In one embodiment, obtaining parameter information includes: Obtain well parameters, contour range, and contour interval; Gradient information is calculated based on the contour range and the contour interval; Based on the gradient information, the contour line color information is obtained; Based on the well parameters, the gradient information, and the contour line color information, parameter information is obtained.
[0086] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0087] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0088] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0089] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0091] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0092] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0093] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0094] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for drawing contour lines, characterized in that, The contour line drawing method, applied to a map page in a browser, includes: Call the map editing plugin to obtain data source and parameter information; Based on the parameter information and the data source, an initial contour map is generated on the map page; Obtain layer operation instructions, and based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
2. The contour line drawing method according to claim 1, characterized in that, The step of generating an initial contour map on the map page based on the parameter information and the data source includes: Spatial correlation modeling of the data source was performed using the Kriging interpolation method to obtain isosurface data; Based on the parameter information and the isosurface data, an initial contour map is generated on the map page.
3. The contour line drawing method according to claim 2, characterized in that, The spatial correlation modeling of the data source using the Kriging interpolation method to obtain isosurface data includes: The data from the data source is processed according to a preset first data format to obtain data in the first format. The first format data is processed according to the preset second data format to obtain the second format data; Spatial correlation modeling of the second format data is performed using the Kriging interpolation method to obtain isosurface data.
4. The contour line drawing method according to claim 3, characterized in that, The step of processing the first format data according to a preset second data format to obtain the second format data includes: Based on the preset geographic location information, the first format data is filtered to obtain location data; The location data is processed according to a preset second data format to obtain second format data.
5. The contour line drawing method according to claim 4, characterized in that, The step of processing the location data according to a preset second data format to obtain second format data includes: The location data is converted according to a preset second data format to obtain second initial format data; The second initial format data is sorted according to the preset sorting rules to obtain the second format data.
6. The contour line drawing method according to claim 2, characterized in that, The step of generating an initial contour map on the map page based on the parameter information and the isosurface data includes: Calculate the cache area for each point in the isosurface data to obtain the cache elements for each point; The cached elements of each point are integrated to obtain the clipping region data; Based on the parameter information, the cropping region data, and the isosurface data, an initial contour map is generated on the map page.
7. The contour line drawing method according to claim 1, characterized in that, Also includes: Based on the new contour map, a legend control is created on the map page.
8. The contour line drawing method according to claim 1, characterized in that, The parameter information obtained includes: Obtain well parameters, contour range, and contour interval; Gradient information is calculated based on the contour range and the contour interval; Based on the gradient information, the contour line color information is obtained; Based on the well parameters, the gradient information, and the contour line color information, parameter information is obtained.
9. A contour plotting device, characterized in that, The contour line drawing device, used in a browser-based map page, includes: The acquisition module is used to call the map editing plugin to obtain data source and parameter information; A drawing module is used to generate an initial contour map on the map page based on the parameter information and the data source. The editing module is used to obtain layer operation instructions and, based on the layer operation instructions, edit the layers in the contour map to obtain a new contour map.
10. The contour plotting apparatus according to claim 9, characterized in that, The drawing module includes: The modeling unit is used to perform spatial correlation modeling on the data source using the Kriging interpolation method to obtain isosurface data. The generation unit is used to generate an initial contour map on the map page based on the parameter information and the contour data.
11. An electronic device, characterized in that, The electronic device includes: At least one processor; A memory connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the contour line drawing method according to any one of claims 1 to 8 by executing the instructions stored in the memory.
12. A machine-readable storage medium storing instructions thereon, characterized in that, When executed by a processor, this instruction causes the processor to be configured to perform the contour drawing method according to any one of claims 1 to 8.