Method and system for automatically generating well bore structure chart based on chart layer superposition
By automatically generating wellbore structure diagrams using layer overlay, the problems of low efficiency, inconsistent layer management, and poor readability in traditional methods are solved. This enables rapid generation and efficient retrieval of wellbore structure diagrams, adapting to complex well types and multiple data sources.
Patent Information
- Application Number
- CN202511719242.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
AI Technical Summary
Traditional wellbore structure drawing methods are inefficient, difficult to adapt to multi-well synchronous design and automation platform integration, have inconsistent layer management, inconsistent map standards, large and poorly readable graphic files, lack intelligent annotation and avoidance mechanisms, and are difficult to be compatible with multi-source drilling data.
Employing a layer-overlay-based approach, this method automatically generates wellbore structure diagrams through data structure parsing, layer control logic, primitive specification interfaces, and intelligent annotation and avoidance mechanisms. This includes data classification, layer drawing, graphic overlay, and compression optimization, and supports multiple well types and data sources.
It enables rapid generation and efficient retrieval of well structure diagrams, with clear and controllable diagram structure, good consistency in graphic expression, adaptability to complex well types and multiple data sources, improved mapping efficiency and readability, and support for multiple well types and data formats.
Smart Images

Figure CN121544753A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of oil and gas drilling engineering technology, and in particular to a method and system for automatically generating wellbore structure diagrams based on layer overlay. Background Technology
[0002] Wellbore structure diagrams and tubing string structure diagrams are among the most basic and critical technical drawings in drilling engineering. They are widely used in various stages, including drilling design, construction plan formulation, well control analysis, well completion engineering, project archiving, and post-analysis.
[0003] Traditional wellbore structure diagram drawing methods primarily rely on manual labor using CAD platforms, well control design software, or general drawing tools to stitch together elements, draw trajectories, and annotate structures. While this method offers some flexibility, it still suffers from the following significant shortcomings in applications involving large data volumes, complex structural hierarchies, and high requirements for diagram standardization: 1. Traditional methods require technicians to manually draw well sections, layers, and component elements based on the well structure description. Processing a single well typically takes 30 minutes to several hours and is not suitable for simultaneous design of multiple wells or integration with automated platforms, resulting in low efficiency.
[0004] 2. Existing tools mostly use blocks for drawing, resulting in inconsistent layer management and a lack of clear layer separation mechanisms. This is not conducive to the visualization management and subsequent maintenance of the structure, especially in well types with complex tubing combinations and dense downhole tools.
[0005] 3. Different technical personnel or software platforms have different standards in terms of element selection, dimensioning, and color coding. Inconsistent drawing specifications and styles result in large visual differences in drawings, making it difficult to form a unified standard, which is not conducive to project handover and quality control.
[0006] 4. The large number of repetitive primitives and nested layer structures generated during the drawing process result in large graphic file sizes, making compression difficult and causing significant performance bottlenecks in the transmission, embedding, and system calls of the graphics.
[0007] 5. Current methods mostly use fixed or manual annotation positions, lacking intelligent annotation and avoidance mechanisms. Problems such as component occlusion, text overlap, and unreadable key information are prone to occur in the drawings, affecting the readability of the well structure diagram and the accuracy of engineering decisions.
[0008] Although some engineering software (such as Landmark and WellView) supports the generation of wellbore structure diagrams, they usually rely on proprietary data formats, making it difficult to be compatible with multi-source drilling data. Moreover, most of them still require manual configuration and have a low degree of automation.
[0009] In addition, most existing studies on automated wellbore structure diagrams focus on 3D visualization or structural model management, and there is a lack of integrated diagram generation solutions that address layer management, element standardization, diagram compression, and drawing optimization.
[0010] Therefore, there is an urgent need for a technical method and system that can automatically generate standardized wellbore structure diagrams from drilling data. Summary of the Invention
[0011] The purpose of this invention is to provide a method and system for automatically generating wellbore structure diagrams based on layer overlay. This method should possess data structure parsing capabilities, layer control logic, standardized graphic element interfaces, compression optimization strategies, and intelligent annotation avoidance mechanisms to meet the needs of rapid generation, unified management, and efficient retrieval of engineering drawings for complex well configurations. The numerous technical effects of the preferred solutions among the many technical solutions provided by this invention are detailed below.
[0012] To achieve the above objectives, the present invention provides the following technical solution: This invention provides a method for automatically generating wellbore structure diagrams based on layer overlay, comprising the following steps: S1, Read drilling engineering data, which includes casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information; S2, classify the drilling engineering data according to data type and construct independent data layers for each layer. Each layer corresponds to a downhole element and uses standard primitives to express its shape and position. S3, based on the layer drawing template and symbol library, draw the data of each layer in layers to generate layer graphic objects. The graphic parameters of the layer drawing template include at least: well depth coordinates, color codes and line type codes. S4. According to the predefined layer overlay rules, the layer graphic objects are overlaid in an orderly manner according to the well depth and the tubing structure to generate a complete tubing diagram and well structure diagram. The layer overlay rules include priority strategy, occlusion control strategy and automatic labeling avoidance mechanism. S5 performs graphic data compression processing on the generated graphic results, including graphic vector compression and metadata encoding compression, and stores the compressed results in a specified path location.
[0013] Preferably, in step S1, reading drilling engineering data includes: obtaining the casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information from the drilling database, real-time acquisition system or engineering design documents, and formatting and structuring the raw data.
[0014] Preferably, in step S2, the data layers include at least: casing layer, drill pipe layer, downhole tool layer, and wellbore trajectory layer. Each layer is managed independently and supports transparency settings and graphic overlay.
[0015] Preferably, the layer drawing template used in step S3 includes a symbol library calling interface for calling a standard primitive library to draw standard components, wherein the standard components include at least: casing, drill bit, centralizer and packer.
[0016] Preferably, the well depth position in the layer drawing with the vertical axis coordinate The mapping satisfies the following formula: in, The vertical pixel coordinates of the component's center position in the graphic coordinate system; For reference well depth The corresponding coordinates of the starting point of the graph; This is the plot scaling factor; The well depth disturbance correction function is used to calculate the fine-tuning pixels based on the component density.
[0017] Preferably, the priority strategy in step S4 includes: layer overlay rules are controlled according to priority parameters; when multiple layers have overlapping areas, the content of the layer with higher priority overlays the content of the layer with lower priority; wherein, the layer overlay priority is determined by the following weighting function: in, For the first The priority of each layer; Indicates the weight of the component type to which the layer belongs; This represents the average depth within the well depth range of the layer. This refers to the layer width density index; These are adjustable weighting coefficients.
[0018] Preferably, the automatic annotation avoidance mechanism in step S4 automatically adjusts the annotation position by detecting the spatial relationship between the annotation object and the layer boundary, so as to avoid the graphic content from being obscured. The automatic label avoidance mechanism determines the label offset position based on the following minimum overlap function: in, This represents the candidate location area after the current bounding box has been offset. For the first Each layer bounding box; It is a function of the overlapping area; To minimize this function.
[0019] Preferably, the image compression processing in step S5 employs a layer-structure-aware vector compression algorithm, with an image compression ratio of [missing value]. With layer fidelity factor primitive retention rate The following joint model is satisfied: in, The image compression ratio is defined as the ratio of the image data size before and after compression. Primitive retention rate; For the first Number of primitives before layer compression The number of primitives retained after compression; For the first Layer retention weights; The layer fidelity factor; For the first Well depth offset caused by compression in the layer This represents the original well depth range for this layer; This represents the total number of layers.
[0020] Preferably, the graphics storage in step S5 adopts a standardized vector graphic format, including SVG, DXF, or JSON format.
[0021] This invention provides an automatic generation system for wellbore structure diagrams based on layer overlay, comprising: The data reading module is used to read drilling engineering data, which includes casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information; The layer construction module is used to classify the drilling engineering data according to data type and construct independent data layers for each layer. Each layer corresponds to a downhole element and uses standard primitives to express its shape and position. The drawing module is used to draw layer data in layers according to the layer drawing template and symbol library, and generate layer graphic objects. The graphic parameters of the layer drawing template include at least: well depth coordinates, color codes and line type codes. The overlay optimization module is used to overlay layer graphic objects in an orderly manner according to well depth and tubing structure order based on predefined layer overlay rules, generating a complete tubing diagram and well structure diagram. The layer overlay rules include priority strategy, occlusion control strategy and automatic label avoidance mechanism. The compression and storage module is used to compress the generated graphic results, including graphic vector compression and metadata encoding compression, and store the compressed results at a specified path location.
[0022] This invention provides a method and system for automatically generating wellbore structure diagrams based on layer overlay. It employs a layer analysis and drawing strategy derived from drilling engineering data, replacing the traditional manual CAD drawing process. This achieves fully automated drawing of wellbore structure diagrams and tubing diagrams, significantly improving drafting efficiency. By constructing multiple structural layers, such as casing layers, drill pipe layers, downhole tool layers, and trajectory layers, the diagram structure becomes clear and controllable. Furthermore, it introduces drawing formulas and a standard element library to ensure consistent graphic representation and features intelligent annotation and avoidance functions, enhancing diagram readability. The system also employs a structure-aware compression mechanism to effectively control diagram volume, adapting to complex well types and multiple data sources. It has strong engineering applicability, supports various well structures such as vertical, inclined, and horizontal wells, and supports multi-source data input, such as databases, WITSML, EXCEL, and JSON. It possesses excellent engineering application prospects and system integration compatibility. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a schematic diagram of the structure of the automatic generation method for wellbore structure diagram based on layer overlay of the present invention; Figure 2 Diagram of the well shaft structure; Figure 3 Draw a priority distribution map for the layers.
[0025] Figure 4 This is a schematic diagram of automatically labeled offset vectors.
[0026] Figure 5 This is a comparison image of compressed files.
[0027] Figure 6 Efficiency comparison charts are generated for multi-well structure diagrams.
[0028] Figure 7 This is a rendering of an example. Figure 8 This is a schematic diagram of the automatic generation system for wellbore structure diagrams based on layer overlay of the present invention. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be described in detail below. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other implementation methods obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0030] Please see Figure 1 This invention provides a method for automatically generating wellbore structure diagrams based on layer overlay, comprising the following steps: S1, Read drilling engineering data, which includes casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information; S2, classify drilling engineering data according to data type and construct independent data layers for each layer. Each layer corresponds to a downhole element and uses standard primitives to express its shape and location. S3, based on the layer drawing template and symbol library, draws the data of each layer in layers to generate layer graphic objects. The graphic parameters of the layer drawing template include at least: well depth coordinates, color codes and line type codes. S4. According to the predefined layer overlay rules, the layer graphic objects are overlaid in an orderly manner according to the well depth and the tubing structure to generate a complete tubing diagram and well structure diagram. The layer overlay rules include priority strategy, occlusion control strategy and automatic labeling avoidance mechanism. S5 performs graphic data compression processing on the generated graphic results, including graphic vector compression and metadata encoding compression, and stores the compressed results in a specified path location.
[0031] This method for automatically generating wellbore structure diagrams based on layer overlay employs a layer analysis and drawing strategy derived from drilling engineering data, replacing the traditional manual CAD drawing process. It achieves fully automated drawing of wellbore structure diagrams and tubing string diagrams, significantly improving drafting efficiency. By constructing multiple structural layers, such as casing layers, drill pipe layers, downhole tool layers, and trajectory layers, the diagram structure becomes clear and controllable. Furthermore, it incorporates drawing formulas and a standard element library to ensure consistent graphic representation and features intelligent annotation and avoidance capabilities, enhancing readability. The method also employs a structure-aware compression mechanism to effectively control diagram size, adapting to complex well types and multiple data sources. It boasts strong engineering applicability, supporting various well structures such as vertical, inclined, and horizontal wells, and supports multi-source data input, including databases, WITSML, EXCEL, and JSON. It demonstrates promising prospects for engineering application and system integration compatibility.
[0032] In step S1, reading drilling engineering data includes: obtaining casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information from drilling database, real-time acquisition system or engineering design documents, and formatting and structuring the raw data.
[0033] Specifically, drilling engineering data can originate from drilling design documents, real-time monitoring databases, or historical well control systems. Data formats include, but are not limited to, structured tables, JSON files, or database structured data. To meet the requirements of layer construction and element drawing, this embodiment uses a data formatting module to preprocess the raw data. This module converts casing outer diameter, wall thickness, material, connection type, drill pipe specifications, installation positions of downhole tools such as centralizers and packers, and wellbore three-dimensional trajectories such as well depth, vertical depth, and offset into standardized fields and assigns them unique identifiers. A structured extraction algorithm maps this information into a list of component unit objects for subsequent use by the layer construction module.
[0034] By employing a layer analysis and drawing strategy based on drilling engineering data, the traditional manual CAD drawing process is replaced, enabling fully automated drawing of wellbore structure diagrams and tubing string diagrams. In practical applications, the generation time for a single wellbore structure diagram can be reduced from 45 minutes to 3 seconds, significantly improving the processing capability for batch well control engineering projects. This makes it suitable for the integration needs of digital oil and gas fields and intelligent well control platforms.
[0035] In step S2, the data layers of the component include at least the casing layer, drill pipe layer, downhole tool layer, and wellbore trajectory layer. Each layer is managed independently and supports transparency settings and graphic overlay.
[0036] To facilitate automatic graphic rendering and style consistency, the system uses a standard primitive library to geometrically represent components in each layer. For example, casing is represented by a hollow rectangle, drill pipe by a solid strip, and wellbore trajectory by a centerline. Primitive drawing parameters include attributes such as position coordinates, length, height, color, line type, and transparency, which can be uniformly defined by style templates or dynamically calculated.
[0037] By constructing multiple structural layers, such as casing layer, drill pipe layer, downhole tool layer, and trajectory layer, and setting attributes such as priority, transparency, and style template for each type of layer, the visualization and layered management of wellbore structural components can be achieved, facilitating later maintenance, reconstruction, and multi-view output of the drawings.
[0038] The layer drawing template used in step S3 includes a symbol library call interface for calling a standard primitive library to draw standard components, wherein the standard components include at least: casing, drill bit, centralizer and packer.
[0039] Well depth position in layer drawing with the vertical axis coordinate The mapping satisfies the following formula: in, The vertical pixel coordinates of the component's center position in the graphic coordinate system; For reference well depth The corresponding coordinates of the starting point of the graph; This is the drawing scaling factor, whose value is adaptively generated based on the page height and the total depth of the well section; The well depth disturbance correction function is used to calculate fine-tuned pixels based on component density to avoid visual overlap.
[0040] The drawing template defines a symbol call interface, which can call a standardized symbol library to draw corresponding components according to component categories, including graphic elements such as casing, drill bit, packer, centralizer, and retrieval tools, ensuring that the drawings have visual standardization and consistency.
[0041] By introducing graphical control mechanisms such as well depth-pixel mapping formula and disturbance correction function, and combining them with a standard graphic symbol library, icons such as packers, MWD, and shock absorbers can be automatically called and corresponding graphics can be drawn, ensuring that the visual effect of the graphics is standardized and uniform, and solving the problem of inconsistent traditional graphic styles.
[0042] The priority strategy in step S4 includes: layer overlay rules are controlled according to priority parameters; when multiple layers have overlapping areas, the content of the higher-priority layer covers the content of the lower-priority layer; wherein, the layer overlay priority is determined by the following weighting function: in, For the first The priority of each layer; This indicates the weight of the component type to which the layer belongs (e.g., casing is 1, drill pipe is 2, etc.). This is the average depth of the well depth range where the layer is located (used to distinguish the main layers). This refers to the layer width density index; These are adjustable weighting coefficients used to adapt to different layout requirements.
[0043] The automatic annotation avoidance mechanism in step S4 automatically adjusts the annotation position by detecting the spatial relationship between the annotation object and the layer boundary to avoid occlusion by graphic content; the automatic annotation avoidance mechanism determines the annotation offset position based on the following minimum overlap function: in, This represents the candidate location area after the current bounding box has been offset. For the first Each layer bounding box; This is the overlap area function, used to calculate the degree of occlusion between candidate locations and the graphic region; To minimize this function means selecting the label position that least obscures the content.
[0044] By setting up an automatic annotation offset algorithm based on minimizing occlusion, the algorithm evaluates the occlusion area between the layer and the candidate annotation position to achieve automatic annotation offset and layout optimization. This effectively avoids problems such as text stacking and graphic overlay in the drawing, and improves the readability and engineering interpretability of the drawing.
[0045] The image compression process in step S5 employs a layer-structure-aware vector compression algorithm, with an image compression ratio of [missing information]. With layer fidelity factor primitive retention rate The following joint model is satisfied: in, The image compression ratio is defined as the ratio of the image data size before and after compression. Primitive retention rate; For the first Number of primitives before layer compression The number of primitives retained after compression; For the first Layer retention weights prioritize retaining structurally critical layers such as sleeve layers; The layer fidelity factor reflects the degree of change in well depth data after compression for each layer; For the first Well depth offset caused by compression in the layer This represents the original well depth range for this layer; This represents the total number of layers.
[0046] The compression strategy prioritizes preserving the main wellbore structure, such as casing and drill pipe elements, while compressing secondary layers, such as repeated tool segments, to ensure overall graphic accuracy and the accuracy of the core structure.
[0047] The graphics storage in step S5 adopts a standardized vector graphic format, including SVG, DXF or JSON format, to facilitate interfacing with third-party wellbore visualization systems.
[0048] By using a joint control model of primitive retention rate and layer fidelity, the size of graphic files can be significantly compressed while ensuring the integrity of structural information. This makes output formats such as SVG and DXF suitable for web-based calls, system integration, and data archiving, solving problems such as bloated graphics and difficulty in embedding in existing technologies.
[0049] The following is an implementation description of well A1H on the S platform of an oilfield. The block in this example is a typical low-porosity, low-permeability tight gas reservoir, with reservoir depths mostly between 3000 and 3800 meters. The producing layer is mainly the Shahejie Formation, and a three-stage well design combined with staged fracturing is commonly used. Well A1H is a development well on the S platform, designed as a horizontal well, with the target layer being the main producing layer of the Shahejie Formation. Please refer to... Figure 2 Wellbore structure diagram. Design well depth: 4620m; vertical depth: 3450m; horizontal section length: 1060m; target producing layer thickness: 8.4m; horizontal section target point inclination angle controlled within ±1.5°.
[0050] The well has a complex structure, a demanding wellbore trajectory design, a variety of downhole tools, and a large workload for drawing. Manual drawing is time-consuming, making this invention suitable for automatic drawing and compressed drawing management.
[0051] The specific steps are as follows: Step S1: Read drilling engineering data.
[0052] The following engineering data were extracted from the well's integrated drilling database and the service company's drill string configuration platform: Surface casing: Φ508×9.53mm, depth: 0–410m, steel grade: J55, cement returned to the ground. Technical casing: Φ339.7×10.54mm, depth: 410–1580m, steel grade: N80, cement returned to the surface shoe. Production casing: Φ177.8×8.56mm, depth: 1580–4620m, steel grade: P110, cement returned to technical shoes. Drill pipe assembly (horizontal section): Φ127×9.19mm G105 grade drill pipe, length: 1700m MWD tool: Starting well depth 1850m, ending well depth 4350m Shock absorber: installed in the 2100m well section Wellbore trajectory: Well depth, dip angle, and azimuth angle were collected every 0.5m, totaling 9280 data points. The system unifies the data field structure through the API and adopts a standardized JSON dictionary structure for subsequent layer drawing calls.
[0053] Step S2: Layer construction.
[0054] The layer system constructs the following layers based on component type: In the tool layer, MWD uses a "lower circle + antenna" graphic, and the shocker is represented by a stepped bar symbol. All elements reference a unified style library and support displaying parameter information when the mouse hovers over them.
[0055] Step S3: Primitive drawing and coordinate transformation.
[0056] Well depth position in layer drawing with the vertical axis coordinate The mapping satisfies the following formula: ,in, The vertical pixel coordinates of the component's center position in the graphic coordinate system; For reference well depth The corresponding coordinates of the starting point of the graph; This is the drawing scaling factor, whose value is adaptively generated based on the page height and the total depth of the well section; The well depth disturbance correction function is used to calculate fine-tuned pixels based on component density to avoid visual overlap.
[0057] In this embodiment, the plotting vertical axis transformation parameters are set as follows: scaling factor. Starting well depth The vertical axis of the starting point of the graph Taking the starting point of MWD (1850m) as an example, its pixel position is: Disturbance correction =+3px (due to the dense tool segment), the final coordinate is 263px.
[0058] The system batch-draws a total of the following elements: 3 casing elements (one per segment), 5 drill pipe assembly elements (5 segments in total), 1 set of tool elements (MWD component) (9 elements), and 1 oscillator.
[0059] Step S4: Layer Overlay and Avoidance Control When multiple layers overlap, the content of the layer with higher priority overwrites the content of the layer with lower priority. Layer overlay priority is determined using the following weighting function: ,in, For the first The priority of each layer; This indicates the weight of the component type to which the layer belongs (e.g., casing is 1, drill pipe is 2, etc.). This is the average depth of the well depth range where the layer is located (used to distinguish the main layers). This refers to the layer width density index; These are adjustable weighting coefficients used to adapt to different layout requirements.
[0060] According to the priority function, we have: Please see Figure 3 We set the weights as follows: casing has the highest priority (T=3), drill rod has the highest priority (T=2), and tools have the highest priority (T=1). Combining this with layer depth and width density, we get the following priority order: casing > tools > drill rod > trajectory.
[0061] Please see Figure 4 The annotation of MWD and shock absorber components adopts an intelligent avoidance mechanism. Based on the adjacent bounding boxes of the components, 10 candidate annotation points are set. The occlusion area of each point with the already drawn layer is calculated, and the point with the smallest occlusion is selected as the final annotation position. The formula is: ,in, This represents the candidate location area after the current bounding box has been offset. For the first Each layer bounding box; This is the overlap area function, used to calculate the degree of occlusion between candidate locations and the graphic region; To minimize this function means selecting the label position that least obscures the content.
[0062] Step S5: Image Compression and Export The image compression process employs a layer-structure-aware vector compression algorithm, achieving an image compression ratio of [missing information]. With layer fidelity factor primitive retention rate The following joint model is satisfied: in, The image compression ratio is defined as the ratio of the image data size before and after compression. For primitive retention rate, For the first Number of primitives before layer compression This refers to the number of primitives retained after compression. For the first Layer retention weights prioritize retaining structurally critical layers such as sleeve layers; The layer fidelity factor reflects the degree of change in well depth data after compression for each layer; For the first Well depth offset caused by compression in the layer This represents the original well depth range for this layer; This represents the total number of layers.
[0063] In this embodiment, the initial generated graphic size is: SVG original image size: 1368KB, DXF engineering image size: 2042KB.
[0064] The compressed results are as follows: SVG compressed image: 462KB, DXF compressed image: 712KB, compression ratio R≈2.96.
[0065] Please see Figure 5 The primitive retention rate η=0.984, the maximum displacement after compression is 2.4px, corresponding to a well depth error of 0.24m, and the layer fidelity factor. .
[0066] The output file includes: SVG graphics: embedded in the web platform browser, DXF graphics: for designers to edit, and JSON metadata: used for association of well control system parameters.
[0067] Please see Figure 6 and Figure 7 After adopting the method of the present invention, the well structure diagram is automatically generated in less than 3 seconds, and the first-time qualification rate of the diagram reaches 97.5%, which replaces the original manual drawing method (average time ≥ 45 minutes), greatly improves the design efficiency and standardization, and realizes the efficient closed-loop conversion between engineering data and structure diagram.
[0068] This embodiment also provides an automatic generation system for wellbore structure diagrams based on layer overlay, such as... Figure 8 As shown, it includes a data reading module, a layer building module, a drawing module, an overlay optimization module, and a compression storage module, among which: The data reading module is used to read drilling engineering data, which includes casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information; The layer construction module is used to classify the drilling engineering data according to data type and construct independent data layers for each layer. Each layer corresponds to a downhole element and uses standard primitives to express its shape and position. The drawing module is used to draw layer data in layers according to the layer drawing template and symbol library, and generate layer graphic objects. The graphic parameters of the layer drawing template include at least: well depth coordinates, color codes and line type codes. The overlay optimization module is used to overlay layer graphic objects in an orderly manner according to well depth and tubing structure order based on predefined layer overlay rules, generating a complete tubing diagram and well structure diagram. The layer overlay rules include priority strategy, occlusion control strategy and automatic label avoidance mechanism. The compression and storage module is used to compress the generated graphic results, including graphic vector compression and metadata encoding compression, and store the compressed results at a specified path location.
[0069] This automatic wellbore structure diagram generation system based on layer overlay structures engineering data into layer representations. Combined with layer priority drawing and annotation avoidance mechanisms, it enables rapid, standardized, and efficient generation of structure diagrams under complex well conditions. It is suitable for scenarios such as well control design, drilling analysis, and platform visualization integration.
[0070] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for automatically generating wellbore structure diagrams based on layer overlay, characterized in that, Includes the following steps: S1, Read drilling engineering data, which includes casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information; S2, classify the drilling engineering data according to data type and construct independent data layers for each layer. Each layer corresponds to a downhole element and uses standard primitives to express its shape and position. S3, based on the layer drawing template and symbol library, draw the data of each layer in layers to generate layer graphic objects. The graphic parameters of the layer drawing template include at least: well depth coordinates, color codes and line type codes. S4. According to the predefined layer overlay rules, the layer graphic objects are overlaid in an orderly manner according to the well depth and the tubing structure to generate a complete tubing diagram and well structure diagram. The layer overlay rules include priority strategy, occlusion control strategy and automatic labeling avoidance mechanism. S5 performs graphic data compression processing on the generated graphic results, including graphic vector compression and metadata encoding compression, and stores the compressed results in a specified path location.
2. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that, In step S1, reading drilling engineering data includes: obtaining the casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information from the drilling database, real-time acquisition system or engineering design documents, and formatting and structuring the raw data.
3. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that: In step S2, the data layers include at least: casing layer, drill pipe layer, downhole tool layer, and wellbore trajectory layer. Each layer is managed independently and supports transparency settings and graphic overlay.
4. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that: The layer drawing template used in step S3 includes a symbol library call interface for calling a standard primitive library to draw standard components, wherein the standard components include at least: casing, drill bit, centralizer and packer.
5. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 4, characterized in that: Well depth position in layer drawing with the vertical axis coordinate The mapping satisfies the following formula: in, The vertical pixel coordinates of the component's center position in the graphic coordinate system; For reference well depth The corresponding coordinates of the starting point of the graph; This is the plot scaling factor; The well depth disturbance correction function is used to calculate the fine-tuning pixels based on the component density.
6. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that, The priority strategy in step S4 includes: layer overlay rules are controlled according to priority parameters; when multiple layers have overlapping areas, the content of the higher-priority layer covers the content of the lower-priority layer; wherein, the layer overlay priority is determined by the following weighting function: in, For the first The priority of each layer; Indicates the weight of the component type to which the layer belongs; This represents the average depth within the well depth range of the layer. This refers to the layer width density index; These are adjustable weighting coefficients.
7. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that: The automatic annotation avoidance mechanism in step S4 automatically adjusts the annotation position by detecting the spatial relationship between the annotation object and the layer boundary in order to avoid the graphic content from being obscured. The automatic label avoidance mechanism determines the label offset position based on the following minimum overlap function: in, This represents the candidate location area after the current bounding box has been offset. For the first Each layer bounding box; It is a function of the overlapping area; To minimize this function.
8. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that: The image compression process in step S5 employs a layer-structure-aware vector compression algorithm, with an image compression ratio of [missing information]. With layer fidelity factor primitive retention rate Satisfy the following joint model: in, The image compression ratio is defined as the ratio of the image data size before and after compression. Primitive retention rate; For the first Number of primitives before layer compression The number of primitives retained after compression; For the first Layer retention weights; The layer fidelity factor; For the first Well depth offset caused by compression in the layer This represents the original well depth range for this layer; This represents the total number of layers.
9. The method for automatically generating wellbore structure diagrams based on layer overlay according to claim 1, characterized in that: The graphics storage in step S5 uses a standardized vector graphics format, including SVG, DXF, or JSON formats.
10. An automatic generation system for wellbore structure diagrams based on layer overlay, characterized in that, include: The data reading module is used to read drilling engineering data, which includes casing parameters, drill pipe assembly, downhole tool sequence and wellbore trajectory information; The layer construction module is used to classify the drilling engineering data according to data type and construct independent data layers for each layer. Each layer corresponds to a downhole element and uses standard primitives to express its shape and position. The drawing module is used to draw layer data in layers according to the layer drawing template and symbol library, and generate layer graphic objects. The graphic parameters of the layer drawing template include at least: well depth coordinates, color codes and line type codes. The overlay optimization module is used to overlay layer graphic objects in an orderly manner according to well depth and tubing structure order based on predefined layer overlay rules, generating a complete tubing diagram and well structure diagram. The layer overlay rules include priority strategy, occlusion control strategy and automatic label avoidance mechanism. The compression and storage module is used to compress the generated graphic results, including graphic vector compression and metadata encoding compression, and store the compressed results at a specified path location.