Method and device for drawing single well diagram of curved-edge quadrangle

By connecting the well trajectory points of a single well as the central path and based on polyline representation and coordinate conversion, the problem of pattern drawing in curved quadrilateral is solved, and the data and patterns in curved quadrilaterals are quickly calculated and drawn, simplifying the development process.

CN119006644APending Publication Date: 2024-11-22CHINA NAT PETROLEUM CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310570206.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing curved quadrilateral drawing method is difficult to draw patterns directly in curved polygons. Especially after the trajectory is deformed, the position of the pattern needs to be recalculated, which cannot meet the drawing requirements.

Method used

By connecting the well trajectory points of a single well as the central path, polyline representation is performed based on the central path and the straight edge width, local coordinates are determined and converted into global coordinates, and internal graphic drawing of curved quadrilaterals is realized.

Benefits of technology

It realizes the rapid calculation of coordinates of each point along the trajectory direction in the curved quadrilateral, which reduces the difficulty and time of development, and can directly draw the data and patterns in the curved quadrilateral, simplifying the functional use of the curved quadrilateral.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119006644A_ABST
    Figure CN119006644A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for drawing a single well diagram of a curved-edge quadrangle. The method comprises the following steps: sequentially connecting well track points of a single well as a central path of the curved-edge quadrangle to be drawn; on the basis of the central path and a preset straight line edge width, performing broken line representation on curve edges on two sides of the curve edge quadrangle; and determining global coordinates according to the local coordinates of the internal graph of the curved-edge quadrangle subjected to the broken line representation, and drawing the internal graph based on the global coordinates. According to the method, the curved-edge quadrangle along the track can be solved, the coordinates of all points in the curved-edge quadrangle along the track direction can be calculated, and the coordinates of all kinds of data and patterns needing to be drawn along the track can be rapidly calculated. When the curved-edge quadrangle is developed and used for displaying the curved-edge quadrangle, only the track of the outermost layer needs to be obtained, the coordinate of each internal graph does not need to be additionally calculated, and for the function of the curved-edge quadrangle, the development difficulty can be reduced, and the development time can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a technique for drawing a single well map of a curved quadrilateral. Background Art

[0002] Curved-edge quadrilaterals have a large number of applications in industrial mapping, such as drawing roads and railways. In the petroleum geological mapping industry, a large number of single well maps need to be drawn. In addition to displaying various well data, this type of work also requires drawing single well maps along the well trajectory, that is, the inclined well display mode. This display mode requires the use of curved-edge quadrilaterals.

[0003] Most existing methods are implemented by expanding or contracting polygons or contours at equal distances. Although this method can calculate the inner and outer contours of a given trajectory or polygon well and generate the corresponding curved quadrilateral, it is difficult to meet the requirements if other corresponding data needs to be drawn in the curved quadrilateral, such as drawing various patterns along the trajectory in the curved polygon. The pattern of the quadrilateral is normal when it is upright, and the internal pattern needs to be recalculated after deformation and cannot be drawn directly. Summary of the invention

[0004] In view of the technical defects and technical drawbacks in the prior art, the embodiments of the present invention provide a method and device for drawing a single well map of a curved quadrilateral that overcomes the above problems or at least partially solves the above problems.

[0005] One aspect of an embodiment of the present invention provides a method for drawing a single well map of a curved quadrilateral, comprising:

[0006] Connect the well trajectory points of a single well in sequence as the center path of the curved quadrilateral to be drawn;

[0007] Based on the center path and the predetermined straight edge width, the curved edges on both sides of the curved quadrilateral are represented by polylines;

[0008] The global coordinates are determined according to the local coordinates of the internal figure of the curved quadrilateral after the polyline representation, and the internal figure is drawn based on the global coordinates.

[0009] Optionally, performing the broken line representation includes:

[0010] Determine the tangent direction of each well trajectory point on the center path;

[0011] Determine a corresponding normal direction according to the normal direction;

[0012] According to the straight line edge width, boundary points are intercepted along the normal direction on both sides of the tangent direction of each well trajectory point;

[0013] The boundary points located on both sides of the tangent direction are connected in sequence by straight lines to be represented as the broken line.

[0014] Optionally, performing the broken line representation further includes:

[0015] When the straight line distance between two adjacent well trajectory points is greater than a predetermined value, a key point is added; and corresponding boundary points are intercepted based on the key point.

[0016] Optionally, the predetermined value is set to a value twice the width of the straight line side.

[0017] Optionally, determining the global coordinates according to the local coordinates includes:

[0018] Obtaining the local coordinates of the key point according to the local coordinates of the well trajectory point;

[0019] Obtaining the local coordinates of the corresponding boundary points according to the local coordinates of the well trajectory points and the local coordinates of the key points;

[0020] Obtaining the local coordinates of the internal figure according to the local coordinates of the boundary points;

[0021] The local coordinates of the internal shape are converted to global coordinates.

[0022] Optionally, the method further comprises: checking each well trajectory point on the central path, and removing illegal well trajectory points according to the checking result.

[0023] Optionally, checking each well trajectory point on the central path includes: when the number of the well trajectory points is greater than or equal to 2, and the width value from the intersection of the normals of two adjacent well trajectory points to one of the two well trajectory points is less than a predetermined maximum safety width value, then the well trajectory point is determined to be legal; otherwise, the trajectory point is determined to be illegal.

[0024] Another aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements the above method when executed by a processor.

[0025] Another aspect of an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the program.

[0026] Another aspect of the present invention provides a device for drawing a single well map of a curved quadrilateral, comprising:

[0027] A center path generation module is used to sequentially connect the well trajectory points of a single well as the center path of the curved quadrilateral to be drawn;

[0028] A polyline representation module, used for representing the curved edges on both sides of the curved quadrilateral as polylines based on the central path and a predetermined straight edge width;

[0029] The graphics drawing module is used to determine the global coordinates according to the local coordinates of the internal graphics of the curved quadrilateral after the broken line representation, and draw the internal graphics based on the global coordinates.

[0030] Optionally, the broken line representation module includes:

[0031] A tangent determination unit, used to determine the tangent direction of each well trajectory point on the central path;

[0032] A normal direction determining unit, used to determine a corresponding normal direction according to the normal direction;

[0033] An interception unit, used to intercept boundary points along the normal direction on both sides of the tangent direction of each well trajectory point according to the straight line edge width;

[0034] The connection unit is used to sequentially connect the boundary points located on both sides of the tangent direction in a straight line as the broken line representation.

[0035] Optionally, the broken line representation module further comprises: a key point adding unit, configured to add a key point when the straight line segment distance between two adjacent well trajectory points is greater than a predetermined value;

[0036] The interception unit is further used to intercept corresponding boundary points based on the key points.

[0037] Optionally, the predetermined value is set to a value twice the width of the straight line side.

[0038] Optionally, the graphics drawing module includes:

[0039] A local coordinate acquisition unit, used to obtain the local coordinates of the key point according to the local coordinates of the well trajectory point, obtain the local coordinates of the corresponding boundary point according to the local coordinates of the well trajectory point and the local coordinates of the key point, and obtain the local coordinates of the internal figure according to the local coordinates of the boundary point;

[0040] A conversion unit, used for converting the local coordinates of the internal graphics into global coordinates;

[0041] A drawing unit is used to draw the internal graphics based on the global coordinates.

[0042] Optionally, the device further comprises: an inspection module, configured to inspect each well trajectory point on the central path, and remove illegal well trajectory points according to the inspection result.

[0043] Optionally, the inspection module is used to determine that the well trajectory point is legal when the number of the well trajectory points is greater than or equal to 2 and the width value from the intersection of the normals of two adjacent well trajectory points to one of the two well trajectory points is less than a predetermined maximum safety width value; otherwise, the trajectory point is determined to be illegal.

[0044] The present invention can not only obtain the curved quadrilateral along the trajectory, but also calculate the coordinates of each point in the curved quadrilateral along the trajectory direction, and quickly calculate the coordinates of various data and patterns that need to be drawn along the trajectory. When developing and displaying curved quadrilaterals, only the outermost trajectory needs to be obtained, and there is no need to calculate the coordinates of each internal figure. For functions that use curved quadrilaterals, the development difficulty can be reduced and the development time can be saved.

[0045] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structure described in the written description, claims, and drawings.

[0046] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0048] Figure 1 Schematic diagram of a straight-sided quadrilateral and a curved-sided quadrilateral;

[0049] Figure 2 A schematic diagram of the specific process for broken line representation;

[0050] Figure 3 is a schematic diagram of the tangent direction and the normal direction;

[0051] Figure 4 Schematic diagram of key points;

[0052] Figure 5 Schematic diagram of the width of the intersection of adjacent normal lines;

[0053] Figure 6 is a schematic diagram of the local coordinate system;

[0054] Figure 7 It is a schematic diagram of the deviated well mode of the single well results diagram;

[0055] Figure 8 A flowchart of the drawing method according to an embodiment of the present invention;

[0056] Fig. 9 A schematic diagram of the process of converting local coordinates into global coordinates;

[0057] Fig.10 It is a structural schematic diagram of a drawing device according to an embodiment of the present invention;

[0058] Fig.11 for Fig.10 The broken line in the figure represents a specific structural schematic diagram of the module 20;

[0059] Fig.12 for Fig.10 A schematic diagram of the specific structure of the graphics drawing module 30 in FIG. DETAILED DESCRIPTION

[0060] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0061] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0062] This embodiment provides a method for drawing a single well map of a curved quadrilateral, such as Figure 8 As shown, the following steps are included:

[0063] Step 100, connecting the well trajectory points of a single well in sequence as the center path of the curved quadrilateral to be drawn.

[0064] The well trajectory points of the single well are points obtained by actually mapping the single well, and these well trajectory points are connected together in sequence to form the center path of the curved quadrilateral, also called: center line.

[0065] The curved quadrilateral is an irregular shape, such as Figure 1As shown, the numbers starting from 0 represent the well trajectory points on the center path, the size of the numbers represents the order of the points (which can also be used as the index of these points), the two sides "perpendicular" to the path are the top and bottom sides, and the sides "parallel" to the path are the sides; in the following description, the straight edge AD through the point with the center trajectory index of 0 is defined as the top side, its opposite side BC is the bottom side, and the corresponding two sides are AB and CD. In the straight-sided quadrilateral shown on the left, the side AB and the side CD are both straight edges, while in the curved-sided quadrilateral shown on the right, the side AB and the side CD are both curved edges. According to actual needs, you can also check the inverted Y coordinate during the drawing process to display the well trajectory upside down.

[0066] Optionally, each well trajectory point on the central path may be checked, and illegal well trajectory points may be removed according to the check result.

[0067] For the well trajectory points on the center path that defines the curved edge quadrilateral, it is assumed that the angle between any two adjacent line segments is small enough so that two curved edges can be represented by a broken line. But even so, when the width varies too much relative to the trajectory, problems will arise. For example, if such an in-trajectory point is used, it will bend when drawn, that is, it will go around a circle or form an x-shaped line. To avoid this problem, a maximum safe width value is set in this step so that the curved edge representation of the quadrilateral within this width range will not have singular phenomena.

[0068] Specifically, when the number of the well trajectory points is greater than or equal to 2, and the width value from the intersection of the normals of two adjacent well trajectory points to one of the two well trajectory points is less than a predetermined maximum safety width value, the well trajectory point is determined to be legal; otherwise, the trajectory point is determined to be illegal.

[0069] For example, Figure 5 As shown, the width from the intersection of the 2nd and 3rd well trajectory points to the 3rd well trajectory point, and the width from the intersection of the 3rd and 4th well trajectory points to the 4th well trajectory point are displayed. Assuming that the width value of the 4th well trajectory point is greater than the predetermined maximum safe width value, the 4th well trajectory point is considered illegal and is removed to avoid strange phenomena when drawing.

[0070] Step 200: Based on the center path and a predetermined straight edge width, the curved edges on both sides of the curved quadrilateral are represented by polylines.

[0071] The broken line representation refers to a line formed by connecting two adjacent points with a straight line, and a broken line is used to replace the curved edges on both sides.

[0072] From a geometric point of view, tangents and normals are both for curves, but from the perspective of program implementation, for the sake of algorithm simplicity and computational efficiency, the curve is simplified into a broken line representation, and the direction of the line segment from the previous point to the current point is calculated to approximate the tangent direction of the current point. This accuracy can fully meet the drawing accuracy requirements.

[0073] Specifically, Figure 2 As shown, the process of performing polyline representation may include the following steps:

[0074] Step 210: Determine the tangent direction of each well trajectory point on the center path.

[0075] Specifically, the direction of the straight line between the current well trajectory point and the next adjacent well trajectory point is taken as the tangent direction of the current trajectory point.

[0076] Step 220: Determine the normal direction of each well trajectory point according to the tangent direction of each well trajectory point.

[0077] Specifically, the perpendicular direction of the tangent direction of each well trajectory point is determined as the normal direction of the corresponding well trajectory point.

[0078] Step 230: According to the predetermined width of the straight side of the curved quadrilateral, boundary points are respectively intercepted along the normal direction on both sides of the tangent direction of each well trajectory point.

[0079] The width of the straight side of the curved quadrilateral is as follows: Figure 1 The width of the top edge AD and the bottom edge BC shown in the figure can be preset, for example, it can be set to 80 according to the width of the track in the single well map. There is no specific unit constraint here, which is related to the graphics engine used and the usage scenario. If the scenario requires drawing in millimeters, the value unit can be millimeters. The straight-line distance between two boundary points in the same normal direction is the width of the straight-line edge.

[0080] For example, Figure 3 As shown in FIG. 1 , it is assumed that there are six well trajectory points on the center path, namely: point 1 to point 6, where the tangent direction, normal direction and boundary point of point 2 are as follows: Figure 3 shown.

[0081] At this time, the boundary points located on both sides of the tangent direction are connected in sequence by straight lines, that is, they can be represented as broken lines of the curved sides of the curved quadrilateral to be longitudinally aligned.

[0082] However, in actual applications, due to measurement errors or data loss, sometimes the distance between two adjacent well trajectory points is too far, and the distance between the corresponding boundary points is also very far. The resulting polyline representation cannot fully correspond to the two curved sides of the curved quadrilateral, resulting in an error between the two that exceeds expectations. To solve this problem, you can continue to perform the following steps.

[0083] Step 240: When the straight line distance between two adjacent well trajectory points is greater than a predetermined value, a key point is added and the corresponding boundary point is intercepted.

[0084] Specifically, the straight line segment distance between two adjacent well trajectory points may be compared with the straight line side width. When the straight line segment distance is more than twice the straight line side width, key points are added to the straight line segment based on the straight line side width.

[0085] For example, suppose in Figure 4 In the example, if the straight line distance between point 1 and point 2 is twice the straight line width, a key point is added at a distance from point 2 equal to the straight line width, namely: key point 1; similarly, if the straight line distance between point 2 and point 3 is four times the straight line width, three key points are added in sequence, namely: key point 2, key point 3, key point 4, and so on, to ensure that the straight line distance between any two adjacent points is not too large.

[0086] Corresponding boundary points are also intercepted for the added key points. For details, please refer to the process of step 230 above. According to the straight line edge width, boundary points are intercepted along the normal direction on both sides of the tangent direction of each key point.

[0087] Additionally, each well trajectory point may be checked again after this step.

[0088] Step 300, determining global coordinates according to local coordinates of the internal graphics of the curved quadrilateral after the polyline representation, and drawing the internal graphics based on the global coordinates.

[0089] The internal figure refers to any figure drawn inside the curved quadrilateral, which may be a rectangle, a circle, a line, a complex figure, etc.

[0090] The global coordinate system is the coordinate system where objects in three-dimensional space are located. The vertex coordinates of the model (the three-dimensional geometry that represents the object) are expressed based on this coordinate system. The local coordinate system is an imaginary coordinate system. The relative position of this coordinate system and the object remains unchanged from beginning to end. The purpose of imagining this coordinate system is mainly to positively understand the "translation and rotation" operations performed on objects in the three-dimensional scene. When using the local coordinate system to understand model transformation, all transformation operations act directly on the local coordinate system. Since the relative position of the local coordinate system and the object is incorrect (when using the local coordinate system to understand model transformation, it means that the object is deforming, and only then will the relative position of the local coordinate system and the object be incorrect), therefore, when the local coordinate system is "translated", "rotated" and "scaled", the position and shape of the object in the scene will also change accordingly.

[0091] The width of such objects can be specified as 0. In this case, the center line, AB side, and DC side actually overlap, so some data may need to be processed carefully. For example, a judgment is made in the algorithm. If they overlap, the above processing logic is not followed and the trajectory point is returned directly.

[0092] Specifically, Fig. 9 As shown, the process of converting local coordinates to global coordinates may include the following steps:

[0093] Step 310: Obtain the local coordinates of the key point according to the local coordinates of the well trajectory point.

[0094] Specifically, the index can be set according to the order relationship between the key point and other well trajectory points, for example, if the index of the previous well trajectory point is 2, the index of the adjacent key point is 3, and so on. The local coordinates can be calculated by linear interpolation.

[0095] Step 320: Obtain the local coordinates of the corresponding boundary points according to the local coordinates of the well trajectory points and the local coordinates of the key points.

[0096] like Figure 6 As shown, the AB and DC sides correspond to local coordinate axes with Y components of 0 and 1 respectively, and the AD and BC sides correspond to local coordinate axes with X components of 0 and 1 respectively.

[0097] Step 330: Obtain the local coordinates of the internal figure according to the local coordinates of the boundary points.

[0098] Step 340: Convert the local coordinates of the internal graphics into global coordinates.

[0099] Specifically, two conversion methods can be used: the first is to convert each element in the point set from local coordinates to global coordinates; the second is to convert the local coordinates to global coordinates for a continuous sequence of points. If the Y local coordinates of the point sequence are continuously changing, higher efficiency is achieved. These two conversions can convert between local coordinates and global coordinates, but are limited to those points whose local coordinates range is [0,1]X[0,1]. The first method takes all points as parameters, and the second method takes one point as a parameter. The two methods have the same effect, but they only provide a flexible way for users to call. Taking 3 points as an example, the point set before conversion is a value between 0 and 1: (0.0,0.2), (0.4,0.2), (1.0,0.5). After conversion, it is global coordinates: (100,355), (140,355), (200,425).

[0100] The method described in this embodiment can not only obtain the curved quadrilateral along the trajectory, but also calculate the coordinates of each point in the curved quadrilateral along the trajectory direction, and quickly calculate the coordinates of various data and patterns that need to be drawn along the trajectory. When developing and displaying curved quadrilaterals, you only need to get the outermost trajectory, and there is no need to calculate the coordinates of each internal figure. For functions that use curved quadrilaterals, it can reduce the development difficulty and save development time. On the contrary, if this method is not used, the points on the graphics of the outer trajectory and the internal logging curve must be calculated separately.

[0101] The above method of this embodiment is illustrated below by creating a single well map of a deviated well.

[0102] Currently, the single well map is composed of multiple channels, such as Figure 7 As shown in the figure, in the inclined well display mode, in addition to calculating the coordinates of the external curve, the local coordinates of each internal curve point and discrete polygon after bending need to be calculated. However, when using the algorithm for obtaining curved quadrilaterals, the internal image (corresponding to the single well map, the internal image refers to the curve and discrete data, etc.) does not need to be calculated, and only the coordinates of the external curve need to be calculated, saving a lot of development time.

[0103] The following example shows how to draw a single well map based on the well trajectory of a deviated well:

[0104] 1. Use algorithms to create external graphs.

[0105] this.pathQuad=new PathQuad(this.planePoints,this.rates,this.targets,true,this.Width / 2);

[0106] PathQuad is the specific class name of the algorithm for obtaining a curved-edge quadrilateral.

[0107] 2. Get the coordinates of all points on the logging curve and return the corresponding values ​​of the points.

[0108] A well logging curve is a collection of value pairs, where each value pair is a depth-to-value pair. Obtaining the coordinates of all points on the well logging curve is to obtain this collection of value pairs.

[0109] var logValues=this.laneLogData.GetEntriesBetween(top,bot);

[0110] laneLogData is the data of a certain curve.

[0111] 3. Get local coordinates based on curve coordinates

[0112] The depth of the value pair in the curve is the value in the y direction. Each depth is divided by the maximum depth of the curve to get the local coordinate from 0 to 1 in the y direction. First, get the maximum value of the value pair in the curve, and divide each value by this maximum value to get the local coordinate from 0 to 1 in the x direction.

[0113] this.localPoints.Add(new PathRangePoints(top,bot,logValues));

[0114] top is the depth of the drawn vertices;

[0115] bot is the bottom depth of the drawing;

[0116] logValues ​​is a curve data list.

[0117] 4. Convert each element in the point set from local coordinates to global coordinates.

[0118] For a single well chart, each element specifically refers to the curve or discrete data in the chart. Generally, it refers to the basic drawing unit in the graph. The local coordinates of discrete data are similar to curves, and other graphics require specific calculations for specific problems. Generally, the values ​​in the y direction are divided by the maximum value of y, and the values ​​in the x direction are divided by the maximum value of x.

[0119] pathQuad.LocalToGlobal(this.localPoints);

[0120] 5. Use the converted global coordinates to draw to the interface.

[0121] this.DrawWellLogData(top,bot,this.localPoints,count);

[0122] top is the depth of the drawn vertices;

[0123] bot is the bottom depth of the drawing;

[0124] this.localPoints is the converted coordinates;

[0125] Count is the total number of points.

[0126] Another embodiment of the present invention provides a device for drawing a single well map of a curved quadrilateral, such as Fig.10 , which includes: a center path generation module 10, a broken line representation module 20 and a graphic drawing module 30, and optionally also includes: a checking module 40. The working principle of the drawing device is as follows:

[0127] The center path generation module 10 connects the well trajectory points of a single well in sequence as the center path of the curved quadrilateral to be drawn; the broken line representation module 20 represents the curved edges on both sides of the curved quadrilateral as broken lines based on the center path and a predetermined straight line edge width; the graphics drawing module 30 determines the global coordinates based on the local coordinates of the internal graphics of the curved quadrilateral after the broken line representation, and draws the internal graphics based on the global coordinates.

[0128] The internal graphics refer to graphics drawn inside the curved quadrilateral, such as a rectangular box and symbols of discrete data, a line of logging curve data, and the like.

[0129] Among them, the well trajectory points of the single well are points obtained by actually mapping the single well, and these well trajectory points are connected together in sequence to form the center path of the curved quadrilateral, also known as: center line. For the well trajectory points on the center path that defines the curved quadrilateral, it is assumed that the angle between any two adjacent line segments is small enough, so that the two curved edges can be represented by a broken line. But even so, when the width changes too much relative to the trajectory, problems will still arise. For example, if such an incoming trajectory point is used, bending will occur during drawing, that is, it will go around a circle or form an x-shaped line. In order to avoid this problem, a maximum safe width value is set in this step so that the curved edge representation of the quadrilateral within this width range will not have any singularity.

[0130] In this regard, before generating the central path, the inspection module 40 may inspect each well trajectory point on the central path, and remove illegal well trajectory points according to the inspection result. Specifically, the inspection module 40 may determine that the well trajectory point is legal when the number of the well trajectory points is greater than or equal to 2, and the width value from the normal intersection point of two adjacent well trajectory points to one of the two well trajectory points is less than a predetermined maximum safety width value; otherwise, the trajectory point is determined to be illegal.

[0131] For example, Figure 5 As shown, the width from the intersection of the 2nd and 3rd well trajectory points to the 3rd well trajectory point, and the width from the intersection of the 3rd and 4th well trajectory points to the 4th well trajectory point are displayed. Assuming that the width value of the 4th well trajectory point is greater than the predetermined maximum safe width value, the 4th well trajectory point is considered illegal and is removed to avoid strange phenomena when drawing.

[0132] From a geometric point of view, tangents and normals are both for curves, but from the perspective of program implementation, for the sake of algorithm simplicity and computational efficiency, the curve is simplified into a broken line representation, and the direction of the line segment from the previous point to the current point is calculated to approximate the tangent direction of the current point. This accuracy can fully meet the drawing accuracy requirements.

[0133] like Fig.11 As shown, the above-mentioned broken line representation module 20 includes: a tangent determination unit 21, a normal determination unit 22, a cutting unit 23 and a connecting unit 24, and optionally also includes: a key point adding unit 25. Its working principle is as follows:

[0134] The tangent determination unit 21 determines the tangent direction of each well trajectory point on the center path. Specifically, the straight line direction between the current well trajectory point and the next adjacent well trajectory point is used as the tangent direction of the current trajectory point. The normal determination unit 22 determines the corresponding normal direction according to the normal direction. Specifically, the perpendicular direction of the tangent direction of each well trajectory point is determined as the normal direction of the corresponding well trajectory point.

[0135] The interception unit 23 intercepts boundary points on both sides of the tangent direction of each well trajectory point along the normal direction according to the straight line edge width; the connection unit 24 connects the boundary points on both sides of the tangent direction in sequence as the broken line representation.

[0136] For example, Figure 3 As shown in FIG. 1 , it is assumed that there are six well trajectory points on the center path, namely: point 1 to point 6, where the tangent direction, normal direction and boundary point of point 2 are as follows: Figure 3 shown.

[0137] At this time, the boundary points located on both sides of the tangent direction are connected in sequence by straight lines, that is, they can be represented as broken lines of the curved sides of the curved quadrilateral to be longitudinally aligned.

[0138] However, in actual applications, due to measurement errors or data loss, the distance between two adjacent well trajectory points is sometimes too far, and the distance between the corresponding boundary points is also very far. The resulting broken line representation cannot fully correspond to the curved sides of the curved quadrilateral, causing the error between the two to exceed expectations.

[0139] To solve this problem, optionally, the key point adding unit 25 can add a key point when the straight line distance between two adjacent well trajectory points is greater than a predetermined value, and the intercepting unit 23 intercepts the corresponding boundary point based on the key point. The predetermined value can be set to a value twice the width of the straight line side.

[0140] Specifically, the straight line segment distance between two adjacent well trajectory points may be compared with the straight line side width. When the straight line segment distance is more than twice the straight line side width, key points are added to the straight line segment based on the straight line side width.

[0141] For example, suppose in Figure 4 In the example, if the straight line distance between point 1 and point 2 is twice the straight line width, a key point is added at a distance from point 2 equal to the straight line width, namely: key point 1; similarly, if the straight line distance between point 2 and point 3 is four times the straight line width, three key points are added in sequence, namely: key point 2, key point 3, key point 4, and so on, to ensure that the straight line distance between any two adjacent points is not too large.

[0142] like Fig.12 As shown, the graphics drawing module 30 includes: a local coordinate acquisition unit 31, a conversion unit 32 and a drawing unit 33, and its working principle is as follows:

[0143] The local coordinate acquisition unit 31 obtains the local coordinates of the key point according to the local coordinates of the well trajectory point. Specifically, the index can be set according to the order relationship between the key point and other well trajectory points. For example, if the index of the previous well trajectory point is 2, the index of the adjacent key point is 3, and so on. The local coordinates can be calculated by linear interpolation.

[0144] The local coordinate acquisition unit 31 also obtains the local coordinates of the corresponding boundary points according to the local coordinates of the well trajectory points and the local coordinates of the key points, and obtains the local coordinates of the internal graphics according to the local coordinates of the boundary points. Figure 6 As shown, the AB and DC sides correspond to local coordinate axes with Y components of 0 and 1 respectively, and the AD and BC sides correspond to local coordinate axes with X components of 0 and 1 respectively.

[0145] Then, the conversion unit 32 converts the local coordinates of the internal graphics into global coordinates. Specifically, two conversion methods can be used: the first is to convert each element in the point set from local coordinates to global coordinates; the second is to convert the local coordinates to global coordinates for a continuous point sequence. If the Y local coordinate of the point sequence changes continuously, higher efficiency is obtained. These two conversions can convert between local coordinates and global coordinates, but are limited to those points whose local coordinate range is [0,1]X[0,1]. The first method takes all points as parameters, and the second method takes one point as a parameter. The two methods have the same effect, but only provide a flexible way for users to call. Taking 3 points as an example, the point set before conversion is a value between 0 and 1: (0.0,0.2), (0.4,0.2), (1.0,0.5). After conversion, it is the global coordinate: (100,355), (140,355), (200,425).

[0146] Then, the internal graphics are drawn by the drawing unit 33 based on the global coordinates.

[0147] The internal figure refers to any figure drawn inside the curved quadrilateral, which may be a rectangle, a circle, a line, a complex figure, etc.

[0148] The global coordinate system is the coordinate system where objects in three-dimensional space are located. The vertex coordinates of the model (the three-dimensional geometry that represents the object) are expressed based on this coordinate system. The local coordinate system is an imaginary coordinate system. The relative position of this coordinate system and the object remains unchanged from beginning to end. The purpose of imagining this coordinate system is mainly to positively understand the "translation and rotation" operations performed on objects in the three-dimensional scene. When using the local coordinate system to understand model transformation, all transformation operations act directly on the local coordinate system. Since the relative position of the local coordinate system and the object is incorrect (when using the local coordinate system to understand model transformation, it means that the object is deforming, and only then will the relative position of the local coordinate system and the object be incorrect), therefore, when the local coordinate system is "translated", "rotated" and "scaled", the position and shape of the object in the scene will also change accordingly.

[0149] The width of such objects can be specified as 0. In this case, the center line, AB side, and DC side actually overlap, so some data may need to be processed carefully. For example, a judgment is made in the algorithm. If they overlap, the above processing logic is not followed and the trajectory point is returned directly.

[0150] The device described in this embodiment can not only obtain the curved quadrilateral along the trajectory, but also calculate the coordinates of each point in the curved quadrilateral along the trajectory direction, and quickly calculate the coordinates of various data and patterns that need to be drawn along the trajectory. When developing and displaying curved quadrilaterals, it is only necessary to obtain the outermost trajectory, without additionally calculating the coordinates of each internal figure. For functions that use curved quadrilaterals, the development difficulty can be reduced and development time can be saved. On the contrary, if this device is not used, the points on the graphics of the outer trajectory and the internal logging curve must be calculated separately.

[0151] For other technical effects and technical details of the device described in this embodiment, reference may be made to the relevant contents of the above method embodiment, which will not be repeated here.

[0152] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0153] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for drawing a single well map of a curved quadrilateral, characterized in that: include: Connect the well trajectory points of a single well in sequence as the center path of the curved quadrilateral to be drawn; Based on the center path and the predetermined straight edge width, the curved edges on both sides of the curved quadrilateral are represented by polylines; The global coordinates are determined according to the local coordinates of the internal figure of the curved quadrilateral after the polyline representation, and the internal figure is drawn based on the global coordinates.

2. The method according to claim 1, characterized in that The performing of the broken line representation comprises: Determine the tangent direction of each well trajectory point on the center path; Determine a corresponding normal direction according to the normal direction; According to the straight line edge width, boundary points are intercepted along the normal direction on both sides of the tangent direction of each well trajectory point; The boundary points located on both sides of the tangent direction are connected in sequence by straight lines to be represented as the broken line.

3. The method according to claim 2, characterized in that The performing of the broken line representation further comprises: When the straight line distance between two adjacent well trajectory points is greater than a predetermined value, a key point is added; Corresponding boundary points are intercepted based on the key points.

4. The method according to claim 3, characterized in that The predetermined value is set to a value twice the width of the straight line side.

5. The method according to claim 3, characterized in that: Determining the global coordinates according to the local coordinates comprises: Obtaining the local coordinates of the key point according to the local coordinates of the well trajectory point; Obtaining the local coordinates of the corresponding boundary points according to the local coordinates of the well trajectory points and the local coordinates of the key points; Obtaining the local coordinates of the internal figure according to the local coordinates of the boundary points; The local coordinates of the internal shape are converted to global coordinates.

6. The method according to claim 1, characterized in that Also includes: Each well trajectory point on the central path is checked, and illegal well trajectory points are removed according to the checking result.

7. The method according to claim 6, characterized in that Checking each well trajectory point on the central path includes: when the number of the well trajectory points is greater than or equal to 2, and the width value from the intersection of the normals of two adjacent well trajectory points to one of the two well trajectory points is less than a predetermined maximum safety width value, then the well trajectory point is determined to be legal; otherwise, the trajectory point is determined to be illegal.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A device for drawing a single well map of a curved quadrilateral, characterized in that: include: A center path generation module is used to sequentially connect the well trajectory points of a single well as the center path of the curved quadrilateral to be drawn; A polyline representation module, used for representing the curved edges on both sides of the curved quadrilateral as polylines based on the central path and a predetermined straight edge width; The graphics drawing module is used to determine the global coordinates according to the local coordinates of the internal graphics of the curved quadrilateral after the broken line representation, and draw the internal graphics based on the global coordinates.

11. The device according to claim 10, characterized in that The broken line representation module comprises: A tangent determination unit, used to determine the tangent direction of each well trajectory point on the central path; A normal direction determining unit, used to determine a corresponding normal direction according to the normal direction; An interception unit, used to intercept boundary points along the normal direction on both sides of the tangent direction of each well trajectory point according to the straight line edge width; The connection unit is used to sequentially connect the boundary points located on both sides of the tangent direction in a straight line as the broken line representation.

12. The device according to claim 11, characterized in that The broken line representation module further comprises: a key point adding unit, which is used to add a key point when the straight line segment distance between two adjacent well trajectory points is greater than a predetermined value; The interception unit is further used to intercept corresponding boundary points based on the key points.

13. The device according to claim 12, characterized in that The predetermined value is set to a value twice the width of the straight line side.

14. The device according to claim 12, characterized in that The graphics drawing module comprises: A local coordinate acquisition unit, used to obtain the local coordinates of the key point according to the local coordinates of the well trajectory point, obtain the local coordinates of the corresponding boundary point according to the local coordinates of the well trajectory point and the local coordinates of the key point, and obtain the local coordinates of the internal figure according to the local coordinates of the boundary point; A conversion unit, used for converting the local coordinates of the internal graphics into global coordinates; A drawing unit is used to draw the internal graphics based on the global coordinates.

15. The device according to claim 10, characterized in that Also includes: The inspection module is used to inspect each well trajectory point on the central path and remove illegal well trajectory points according to the inspection result.

16. The device according to claim 15, characterized in that The checking module is used to determine that the well trajectory point is legal when the number of the well trajectory points is greater than or equal to 2 and the width value from the normal intersection of two adjacent well trajectory points to one of the two well trajectory points is less than a predetermined maximum safety width value; otherwise, the trajectory point is determined to be illegal.