CN112214872B - Automatic calculation method and device for railway line longitudinal section scale information - Google Patents
Automatic calculation method and device for railway line longitudinal section scale information Download PDFInfo
- Publication number
- CN112214872B CN112214872B CN202010943515.0A CN202010943515A CN112214872B CN 112214872 B CN112214872 B CN 112214872B CN 202010943515 A CN202010943515 A CN 202010943515A CN 112214872 B CN112214872 B CN 112214872B
- Authority
- CN
- China
- Prior art keywords
- differential
- longitudinal
- rectangles
- display frame
- grouping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Civil Engineering (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Train Traffic Observation, Control, And Security (AREA)
Abstract
The invention relates to an automatic calculation method and device of railway line longitudinal section scale information, wherein the automatic calculation method comprises the steps of obtaining effective height, longitudinal upper limit, longitudinal lower limit and central position of an display frame; defining differential rectangular ranges of ground lines and gradient lines in a display frame of a railway line longitudinal section; primary merging and grouping are carried out on the differential rectangles according to the average value of central longitudinal coordinates of the adjacent multiple differential rectangles, the maximum longitudinal coordinates and the minimum longitudinal coordinates of the adjacent multiple differential rectangles and the effective height of the display frame; combining and grouping the differential rectangles again according to the maximum longitudinal coordinates, the minimum longitudinal coordinates, the upper longitudinal limit and the lower longitudinal limit of the display frame of the adjacent two groups of differential rectangles after the primary combination and grouping; and calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangles. Through the technical scheme of the disclosure, the automation degree of the railway line vertical section drawing is effectively improved.
Description
Technical Field
The disclosure relates to the technical field of railways, in particular to an automatic calculation method and device for railway line longitudinal section scale information.
Background
In the design work of the railway line, in the stage of drawing the vertical section of the railway line, a designer often needs to observe and estimate the AutoCAD (Autodesk Computer Aided Design) drawing with naked eyes to determine the position of the scale in the vertical section of the railway line, the initial elevation and other information, namely, the insertion position of the scale and the initial elevation are determined by relying on human eyes, and the factors in the AutoCAD drawing are needed to be manually cut and offset, namely, the design of the railway line mainly depends on manual estimation to adjust the position of the scale in the vertical section of the railway line, the initial elevation and other information.
The design workload of the railway line is large, a large amount of manpower and material resources are required to be consumed, the accuracy of the design of the railway line is low, repeated work of a designer is easy to cause, and the efficiency of the design work of the railway line is low.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the disclosure provides an automatic calculation method and an automatic calculation device for the scale information of the railway line vertical section, which effectively improve the automation degree of the railway line vertical section drawing.
The disclosure provides an automatic calculation method for railway line vertical section scale information, comprising the following steps:
acquiring the effective height of a display frame of a railway line vertical section, the longitudinal upper limit of the display frame, the longitudinal lower limit of the display frame and the longitudinal center position of the display frame;
defining differential rectangular ranges of ground lines and gradient lines in a display frame of a railway line longitudinal section;
performing primary merging grouping on the differential rectangles according to the average value of central longitudinal coordinates of the adjacent multiple differential rectangles, the maximum longitudinal coordinates of the adjacent multiple differential rectangles, the minimum longitudinal coordinates of the adjacent multiple differential rectangles and the effective height of the display frame;
the differential rectangles are combined and grouped again according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame;
and calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle.
Optionally, the acquiring the effective height of the display frame of the railway line vertical section includes:
Acquiring the height of a drawing, the height of a title bar and the reserved height of a display frame;
acquiring the total height of the display frame according to the picture height and the title bar height;
and acquiring the effective height of the display frame according to the total height of the display frame and the reserved height of the display frame.
Optionally, the acquiring the display frame longitudinal upper limit, the display frame longitudinal lower limit and the display frame longitudinal center position of the railway line longitudinal section includes:
acquiring the longitudinal upper limit of the display frame according to the origin of the drawing, the height of the title bar, the height of the scale and the reserved height of the upper part of the display frame;
acquiring the longitudinal lower limit of the display frame according to the original point of the scale and the reserved height of the lower part of the display frame;
and acquiring the longitudinal center position of the display frame according to the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame.
Optionally, the defining the differential rectangular range of the ground line and the gradient line in the display frame of the railway line vertical section includes:
and taking the gradient line as a reference, and taking a connecting line between the starting point and the end point of the gradient line and between the four intersection points of the ground line and the gradient line in a single step range as a differential rectangle.
Optionally, the defining the differential rectangular range of the ground line and the gradient line in the display frame of the railway line vertical section further includes:
when the distance between the ground line and the gradient line at the same position is larger than or equal to a first set multiple of the effective height of the display frame, converting the longitudinal coordinate of the differential rectangle at the position according to the product of the effective height of the display frame and the first set multiple and the longitudinal coordinate of the gradient line at the position.
Optionally, the first merging and grouping the differential rectangles according to the average value of central longitudinal coordinates of the adjacent multiple differential rectangles, the maximum longitudinal coordinates of the adjacent multiple differential rectangles, the minimum longitudinal coordinates of the adjacent multiple differential rectangles and the effective height of the display frame includes:
when the difference value between the average value of the central longitudinal coordinates of the adjacent plurality of differential rectangles and the maximum longitudinal coordinates of the adjacent plurality of differential rectangles and the difference value between the average value of the central longitudinal coordinates of the adjacent plurality of differential rectangles and the minimum longitudinal coordinates of the adjacent plurality of differential rectangles are smaller than the second set multiple of the effective height of the display frame, the adjacent plurality of differential rectangles are divided into a group of differential rectangles.
Optionally, the re-merging and grouping the differential rectangles according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping, the upper longitudinal limit of the display frame and the lower longitudinal limit of the display frame, including:
and carrying out recombination grouping on the differential rectangles according to the comparison result of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial recombination grouping and the longitudinal upper limit of the display frame and the comparison result of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial recombination grouping and the longitudinal lower limit of the display frame.
Optionally, when the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are smaller than the upper longitudinal limit of the display frame and the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the lower longitudinal limit of the display frame, merging the adjacent two groups of differential rectangles after the primary merging and grouping;
when the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the upper longitudinal limit of the display frame and the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the lower longitudinal limit of the display frame, the exceeding value of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping relative to the upper longitudinal limit of the display frame is smaller than or equal to the exceeding value of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping relative to the lower longitudinal limit of the display frame;
When the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping are smaller than the upper longitudinal limit of the display frame, and the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping are smaller than the lower longitudinal limit of the display frame, the exceeding value of the lower longitudinal limit of the display frame relative to the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping is smaller than or equal to the exceeding value of the upper longitudinal limit of the display frame relative to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping, merging the adjacent two groups of differential rectangles after the initial merging and grouping.
Optionally, the calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle includes:
taking the starting position of the single group of the differential rectangles after the grouping is combined again as the scale position of the independent display frame;
and subtracting the longitudinal coordinates corresponding to the longitudinal central position of the display frame from the average value of the central longitudinal coordinates of each differential rectangle in the single group of differential rectangles after the grouping is combined again, and adding the initial elevation value of the corresponding railway line longitudinal section as the initial elevation value at the position of the corresponding scale.
The embodiment of the disclosure also provides an automatic calculation device for the railway line vertical section scale information, comprising:
the picture frame parameter acquisition module is used for acquiring the effective height of the display picture frame, the longitudinal upper limit of the display picture frame, the longitudinal lower limit of the display picture frame and the longitudinal central position of the display picture frame of the longitudinal section of the railway line;
the rectangular range demarcation module is used for demarcating the differential rectangular range of the ground line and the gradient line in the display frame of the railway line longitudinal section;
the primary merging and grouping module is used for carrying out primary merging and grouping on the differential rectangles according to the average value of central longitudinal coordinates of the adjacent multiple differential rectangles, the maximum longitudinal coordinates of the adjacent multiple differential rectangles, the minimum longitudinal coordinates of the adjacent multiple differential rectangles and the effective height of the display frame;
the secondary merging and grouping module is used for carrying out secondary merging and grouping on the differential rectangles according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after primary merging and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after primary merging and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame;
and the scale information calculation module is used for calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the automatic calculation method for the scale information of the railway line vertical section, which is provided by the embodiment of the disclosure, automatic calculation can be realized before the imaging by inputting the design result file, so that the reasonable scale position and the initial elevation in the railway line vertical section are determined, the automation degree of the drawing of the railway line vertical section is effectively improved, the workload and the working time for estimating and adjusting the scale position and the initial elevation by a designer are saved, and the working efficiency and the working quality of the railway line design are effectively improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of an automatic calculation method for railway line longitudinal section scale information according to an embodiment of the disclosure;
FIG. 2 is a schematic illustration of calculation of a rail track profile dimension information provided in an embodiment of the present disclosure;
FIG. 3 is a schematic illustration of a differential rectangular demarcation of a railway line longitudinal section provided in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a differential rectangular primary merge packet provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a differential rectangle reconsolidated packet provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a differential rectangle reconsolidation grouping for one case provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of another differential rectangle reconsolidation grouping provided by an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of another differential rectangle reconsolidation grouping provided by an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of another differential rectangle reconsolidation grouping provided by an embodiment of the present disclosure;
fig. 10 is a specific flow chart of an automatic calculation method for the scale information of the longitudinal section of the railway line according to the embodiment of the disclosure;
FIG. 11 is a schematic structural view of an automatic calculation device for the scale information of the longitudinal section of the railway line according to the embodiment of the present disclosure;
Fig. 12 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
Fig. 1 is a schematic flow chart of an automatic calculation method for railway line longitudinal section scale information according to an embodiment of the disclosure. The automatic calculation method of the railway line longitudinal section scale information can be applied to an application scene requiring automatic calculation of the railway line longitudinal section scale information, and can be executed by the automatic calculation device of the railway line longitudinal section scale information provided by the embodiment of the disclosure, and the automatic calculation device of the railway line longitudinal section scale information can be realized in a software and/or hardware mode. As shown in fig. 1, the automatic calculation method of the railway line longitudinal section scale information comprises the following steps:
S101, acquiring the effective height of a display frame of the railway line vertical section, the longitudinal upper limit of the display frame, the longitudinal lower limit of the display frame and the longitudinal central position of the display frame.
Specifically, various parameters of the railway line longitudinal section drawing can be set according to the popped display panel, and the parameters of the drawing can comprise a railway line design result file, header information, a drawing height and a drawing range.
The line design result file comprises key design elements such as gradient lines, ground lines, notch information and plane information in a railway line longitudinal section map, the notch information comprises a cross-section notch such as a bridge, a tunnel or a station, the notch information corresponds to a demarcation point of the railway line longitudinal section map, which needs to be displayed in a page-changing mode, and the plane information can be the integral trend of a rail when the railway is overlooked. The header information can then be used to determine the height of the title bar in the railway line longitudinal section map, which affects the effective height and center position of the display frame, which also affects the effective height and center position of the display frame. The map range is the range of the longitudinal section map of the railway line, if the map range is designated, the map range is calculated according to the designated map range, for example, the map range corresponds to the range from the site A to the site B; if no map range is specified, the calculation is done by default for all ranges in the result file, e.g., the map range corresponds to the range from C to D, which is a subset of the range from A to B.
After setting of various parameters of the railway line vertical section drawing is completed, a scale button can be clicked, an automatic calculation scale information button is clicked in a popped interface, and the automatic calculation process of the railway line vertical section scale information provided by the embodiment of the disclosure is entered.
The method comprises the steps of obtaining the effective height of the display frame of the railway line vertical section, obtaining the picture height, the title bar height and the reserved height from top to bottom of the display frame, obtaining the total height of the display frame according to the picture height and the title bar height, and obtaining the effective height of the display frame according to the total height of the display frame and the reserved height from top to bottom of the display frame.
Fig. 2 is a schematic diagram illustrating calculation of a railway line vertical section size information according to an embodiment of the present disclosure. As shown in fig. 2, the total display frame height d30 can be obtained by subtracting the header bar height d20 from the picture height d10, the effective display frame height can be obtained by subtracting the upper and lower display frame reserved heights from the total display frame height d30, that is, the effective display frame height d60 can be obtained by subtracting the upper display frame reserved height d40 and the lower display frame reserved height d50 from the total display frame height d30, the height value required to be reserved between the gradient line and the display frame is the display frame lower reserved height d50, the height value required to be reserved between the ground line and the display frame is the display frame upper reserved height d40, and the display frame effective height d60 can be calculated by combining the upper and lower display frame reserved heights, so that the problem that the inserted flag exceeds the picture range and the element crossing of the gradient line and the control point can be effectively prevented.
The longitudinal upper limit, the longitudinal lower limit and the longitudinal central position of the display frame of the longitudinal section of the railway line are obtained, the longitudinal upper limit of the display frame can be obtained according to the origin of the drawing, the height of the title bar, the height of the scale and the reserved height of the upper part of the display frame, the longitudinal lower limit of the display frame can be obtained according to the origin of the scale and the reserved height of the lower part of the display frame, and the longitudinal central position of the display frame can be obtained according to the longitudinal upper limit and the longitudinal lower limit of the display frame.
Specifically, as shown in fig. 2, the origin of the drawing is a point a at the lower left corner of the independent display interface, the height of the scale is the height of the whole display interface, namely the total height d30 of the display frame, the vertical coordinate of the origin a of the drawing is added with the height d20 of the title bar and the height d30 of the scale, and the reserved height d40 at the upper part of the display frame is subtracted to obtain the vertical upper limit of the display frame, namely the maximum vertical coordinate. And adding the reserved height d50 at the lower part of the display frame by the ordinate of the scale origin B to obtain the lower limit of the display frame in the longitudinal direction, namely the minimum ordinate. The average value of the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame is the longitudinal center position of the display frame.
S102, demarcating a differential rectangular range of a ground line and a gradient line in an display frame of the railway line vertical section.
Fig. 3 is a schematic illustration of a differential rectangular demarcation of a longitudinal section of a railway line according to an embodiment of the present disclosure. As shown in fig. 3, the differential rectangle is defined by the ground line 11 and the gradient line 12 in the display frame of the railway line vertical section, and the line connecting the four intersections of the ground line and the gradient line in a single step range can be used as a differential rectangle 13 from the start point to the end point of the gradient line based on the gradient line.
Specifically, the land line and the gradient line are represented by rectangular frames with certain widths, specifically, the gradient line is taken as a reference, the land line and the gradient line are differentiated according to a certain step value from the starting point to the end point of the gradient line, the rectangular frames are used for representing the ranges of the land line and the gradient line, and the rectangular frames are the largest bounding frames formed by the land line and the gradient line in a single step range. It should be noted that this rectangular box is merely used for comparison calculation, and the figure does not include this element.
When the differential rectangular range of the ground line and the gradient line in the display frame of the railway line longitudinal section is divided, when the distance between the ground line and the gradient line at the same position is larger than or equal to a first set multiple of the effective height of the display frame, the longitudinal coordinate of the differential rectangular at the position is converted according to the product of the effective height of the display frame and the first set multiple and the longitudinal coordinate of the gradient line at the position.
The first set factor may for example be equal to 0.6. As shown in fig. 3, when the distance between the ground line and the slope line exceeds 0.6 times the effective height of the display frame at a certain position, it is considered that the ground line needs to be cut at the certain position, and when the position a in fig. 3 is above the slope line and the distance between the ground line and the slope line is equal to or more than 0.6 times the effective height of the display frame, the longitudinal coordinate of the differential rectangle at the certain position is equal to the longitudinal coordinate of the slope line at the certain position plus 0.6 times the effective height of the display frame. When the ground line is below the gradient line and the distance between the ground line and the gradient line is greater than or equal to 0.6 times the effective height of the display frame, the longitudinal coordinate of the differential rectangle at the position is equal to the longitudinal coordinate of the gradient line at the position minus 0.6 times the effective height of the display frame.
S103, primary merging and grouping are carried out on the differential rectangles according to the average value of central longitudinal coordinates of the adjacent differential rectangles, the maximum longitudinal coordinates of the adjacent differential rectangles, the minimum longitudinal coordinates of the adjacent differential rectangles and the effective height of the display frame.
Fig. 4 is a schematic diagram of a differential rectangular primary merging packet according to an embodiment of the disclosure. As shown in fig. 4, the differential rectangles are first combined and grouped according to the average value of the central longitudinal coordinates of the adjacent plurality of differential rectangles, the maximum longitudinal coordinates of the adjacent plurality of differential rectangles, the minimum longitudinal coordinates of the adjacent plurality of differential rectangles, and the effective height of the display frame, and when the difference between the average value of the central longitudinal coordinates of the adjacent plurality of differential rectangles and the maximum longitudinal coordinates of the adjacent plurality of differential rectangles, and the difference between the average value of the central longitudinal coordinates of the adjacent plurality of differential rectangles and the minimum longitudinal coordinates of the adjacent plurality of differential rectangles are smaller than the second set multiple of the effective height of the display frame, the adjacent plurality of differential rectangles are divided into a group of differential rectangles.
For example, as shown in fig. 4, the second set multiple may be equal to 0.5, where when the differential rectangles are first combined and grouped, the current differential rectangle is compared with the next differential rectangle, and the basis for whether the two differential rectangles can be divided into one group is whether the difference between the average value of the central longitudinal coordinates of each differential rectangle in the divided group and the maximum longitudinal coordinate of the differential rectangle in the divided group, and the difference between the average value of the central longitudinal coordinates of each differential rectangle in the divided group and the minimum longitudinal coordinate of the differential rectangle in the divided group are smaller than 0.5 times the effective height of the display frame, that is, smaller than half the effective height of the display frame. If so, the next differential rectangle is classified into this group, otherwise, the grouping is resumed from the next differential rectangle box, and fig. 4 exemplarily sets the differential rectangles to be initially grouped and then to be divided into five groups a1, a2, a3, a4, and a 5. In addition, the average value of the central longitudinal coordinates of each differential rectangle is used as the grouping basis for primary merging, so that as many drawing elements as possible can be ensured to be distributed at the middle position of the drawing.
S104, the differential rectangles are combined and grouped again according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame.
Fig. 5 is a schematic diagram of a differential rectangle reconsolidation packet provided in an embodiment of the present disclosure. As shown in fig. 5, the differential rectangles are grouped again according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial grouping, the upper longitudinal limit of the display frame and the lower longitudinal limit of the display frame, and the differential rectangles can be grouped again according to the comparison result of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial grouping and the upper longitudinal limit of the display frame, and the comparison result of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial grouping and the lower longitudinal limit of the display frame.
Optionally, when the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the first merging and grouping are smaller than the upper longitudinal limit of the display frame and the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the first merging and grouping are larger than the lower longitudinal limit of the display frame, the adjacent two sets of differential rectangles after the first merging and grouping are merged. When the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the upper longitudinal limit of the display frame and the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the lower longitudinal limit of the display frame, the exceeding value of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping relative to the upper longitudinal limit of the display frame is smaller than or equal to the exceeding value of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping relative to the lower longitudinal limit of the display frame.
Specifically, the average ordinate of each differential rectangle after preliminary grouping is taken as a reference, the image display area is placed in the middle of the picture frame, so that the image display area is centered as much as possible, and in order to ensure the continuity of the drawing, each group of differential rectangles after preliminary grouping carries out the same centering transformation.
Fig. 6 is a schematic diagram of a differential rectangle reconsolidation grouping for one case provided by an embodiment of the present disclosure. As shown in fig. 6, when the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping are smaller than the upper longitudinal limit c1 of the display frame and the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping are larger than the lower longitudinal limit c2 of the display frame, the adjacent two sets of differential rectangles after the initial merging and grouping are merged, that is, the adjacent two sets of differential rectangles after the initial merging and grouping are merged successfully, that is, the adjacent two sets of differential rectangles after the initial merging and grouping are merged into one set of differential rectangles again, the longitudinal center position of the display frame is c3, and the effective height of the display frame is h.
Fig. 7 is a schematic diagram of another case of differential rectangle merging packets again provided by an embodiment of the present disclosure. As shown in fig. 7, when the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping are greater than the upper display frame longitudinal limit c1 and the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping are greater than the lower display frame longitudinal limit c2, the exceeding value of the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping relative to the upper display frame longitudinal limit is less than or equal to the exceeding value of the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping relative to the lower display frame longitudinal limit.
The exceeding value of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping relative to the longitudinal upper limit c1 of the display frame can be d1, the exceeding value of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping relative to the longitudinal lower limit c2 of the display frame can be d2, namely when the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping are larger than the longitudinal upper limit c1 of the display frame, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping are larger than the longitudinal lower limit c2 of the display frame, d1 is smaller than or equal to d2, the adjacent two groups of differential rectangles after the initial merging and grouping are successfully merged, namely, the adjacent two groups of differential rectangles after the initial merging and grouping are merged into one group of differential rectangles again, and d1 is larger than d2, the merging fails again.
Fig. 8 is a schematic diagram of another case of differential rectangle reconsolidation grouping provided by an embodiment of the present disclosure. As shown in fig. 8, when the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping are smaller than the display frame longitudinal upper limit c1, and the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping are smaller than the display frame longitudinal lower limit c2, the exceeding value of the display frame longitudinal lower limit c2 relative to the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping is smaller than or equal to the exceeding value of the display frame longitudinal upper limit c1 relative to the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial merging and grouping.
The exceeding value of the display frame longitudinal lower limit c2 relative to the minimum longitudinal coordinate of the adjacent two groups of differential rectangles after the initial merging and grouping can be d3, the exceeding value of the display frame longitudinal upper limit relative to the maximum longitudinal coordinate of the adjacent two groups of differential rectangles after the initial merging and grouping can be d4, namely when the maximum longitudinal coordinate of the adjacent two groups of differential rectangles after the initial merging and grouping is smaller than the display frame longitudinal upper limit c1, the minimum longitudinal coordinate of the adjacent two groups of differential rectangles after the initial merging and grouping is smaller than the display frame longitudinal lower limit c2, and d3 is smaller than or equal to d4, the adjacent two groups of differential rectangles after the initial merging and grouping are successfully merged, namely, the adjacent two groups of differential rectangles after the initial merging and grouping are merged into one group of differential rectangles again, and d3 is larger than d4, the merging fails again.
Fig. 9 is a schematic diagram of another case of differential rectangle merging packets again provided by an embodiment of the present disclosure. As shown in fig. 9, when the maximum longitudinal coordinate of the adjacent two sets of differential rectangles after the initial merging and grouping is greater than the upper display frame longitudinal limit c1 and the minimum longitudinal coordinate of the adjacent two sets of differential rectangles after the initial merging and grouping is less than the lower display frame longitudinal limit c2, the merging of the adjacent two sets of differential rectangles after the initial merging and grouping fails, i.e. the adjacent two sets of differential rectangles after the initial merging and grouping cannot be merged.
Fig. 5 exemplarily sets the differential rectangle after the initial merging grouping, where the a1 group and the a2 group are merged again into the b1 group, the a3 group is not merged, the b2 group, and the a4 group and the a5 group are merged again into the b3 group.
S105, calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle.
Specifically, the scale position of the independent display frame and the initial elevation value at the scale position are calculated according to the recombined grouping result of the differential rectangles, the initial position of the single group of the differential rectangles after the recombined grouping can be used as the scale position of the independent display frame, as shown in fig. 5, A1 and A2 can be used as the scale position of the independent display frame, and the mileage value can be rounded in ten.
And subtracting the longitudinal coordinates corresponding to the longitudinal central position of the display frame from the average value of the central longitudinal coordinates of each differential rectangle in the single-group differential rectangle after the grouping is combined again, and adding the initial elevation value of the corresponding railway line longitudinal section as the initial elevation value at the position of the corresponding scale. Specifically, the average value of the central longitudinal coordinates of each differential rectangle in the single differential rectangle after being combined again is subtracted from the longitudinal coordinate corresponding to the longitudinal central position of the display frame to obtain a height difference, the obtained height difference is converted into meters by a unit in AutoCAD, and then the initial elevation value of the corresponding railway line vertical section is added to the height difference to obtain the initial elevation value at the corresponding scale position, namely the railway line vertical section has the initial elevation value, and the situation that the differential rectangle after being combined again moves up or down is determined by utilizing the height difference and the initial elevation value of the corresponding railway line vertical section.
The calculated scale information result can be displayed in a table, and if the calculated scale information result needs to be modified, the calculated scale information result can be edited by clicking a text form editing button. The method can also click the determination button of the scale information, save the latest scale information result in the program, click the determination button of the main panel of the map command, and the program draws the longitudinal section map of the railway line according to the latest scale information, namely, a manually modified interface is provided, and the working efficiency and accuracy are greatly improved.
Fig. 10 is a specific flowchart of an automatic calculation method for the scale information of the longitudinal section of the railway line according to an embodiment of the disclosure. As shown in fig. 10, the automatic calculation method of the railway line longitudinal section scale information includes:
s201, clicking a vertical section drawing command.
S202, setting parameters.
S203, clicking a scale button.
S204, automatically clamping the scale.
S205, calculating the effective range of the frame.
S206, a small rectangular box is used for representing the range of a certain section of ground line and gradient line.
S207, grouping small rectangular boxes.
S208, grouping the rectangular frames after grouping.
S209, calculating the position of the scale and the initial elevation according to the rectangular frame range of the last group.
S210, judging whether the position and the elevation of the scale are reasonable. If yes, go to step 213; if not, go to step 211.
S211, manually adjusting the scale.
S212, editing the ruler in a text form.
S213, drawing.
The embodiment of the disclosure also provides an automatic calculation device for the railway line longitudinal section scale information, and fig. 11 is a schematic structural diagram of the automatic calculation device for the railway line longitudinal section scale information. As shown in fig. 11, the automatic calculation device of the railway line longitudinal section scale information includes a frame parameter acquisition module 301, a rectangular range demarcation module 302, a primary merging and grouping module 303, a secondary merging and grouping module 304, and a scale information calculation module 305.
The frame parameter obtaining module 301 is configured to obtain an effective height of a display frame, a longitudinal upper limit of the display frame, a longitudinal lower limit of the display frame, and a longitudinal center position of the display frame for a longitudinal section of a railway line; the rectangular range demarcation module 302 is used for demarcating the differential rectangular range of the ground line and the gradient line in the display frame of the railway line vertical section; the primary merging and grouping module 303 is configured to perform primary merging and grouping on the differential rectangles according to an average value of central longitudinal coordinates of the adjacent multiple differential rectangles, a maximum longitudinal coordinate of the adjacent multiple differential rectangles, a minimum longitudinal coordinate of the adjacent multiple differential rectangles, and an effective display frame height; the rebinning grouping module 304 is configured to rebinn and group the differential rectangles according to the maximum longitudinal coordinates of the two adjacent groups of differential rectangles after the initial rebinning, the minimum longitudinal coordinates of the two adjacent groups of differential rectangles after the initial rebinning, the longitudinal upper limit of the display frame, and the longitudinal lower limit of the display frame; the scale information calculation module 305 is configured to calculate the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangles.
According to the automatic calculation method for the scale information of the railway line vertical section, which is provided by the embodiment of the disclosure, automatic calculation can be realized before the imaging by inputting the design result file, so that the reasonable scale position and the initial elevation in the railway line vertical section are determined, the automation degree of the drawing of the railway line vertical section is effectively improved, the workload and the working time for estimating and adjusting the scale position and the initial elevation by a designer are saved, and the working efficiency and the working quality of the railway line design are effectively improved.
The embodiment of the disclosure also provides a terminal device, and fig. 12 is a schematic structural diagram of the terminal device provided by the embodiment of the disclosure. As shown in fig. 12, the terminal device includes a processor and a memory, and the processor executes the steps of the method for automatically calculating the scale information of the railway line longitudinal section according to the above embodiment by calling the program or the instruction stored in the memory, so that the beneficial effects of the above embodiment are provided and will not be repeated herein.
As shown in fig. 12, the terminal device may be arranged to comprise at least one processor 401, at least one memory 402 and at least one communication interface 403. The various components in the terminal device are coupled together by a bus system 404. The communication interface 403 is used for information transmission with an external device. It is appreciated that the bus system 404 serves to facilitate connected communications between these components. The bus system 404 includes a power bus, a control bus, and a status signal bus in addition to the data bus. The various buses are labeled as bus system 304 in fig. 12 for clarity of illustration.
It will be appreciated that the memory 402 in this embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. In some implementations, the memory 402 stores the following elements: executable units or data structures, or a subset thereof, or an extended set of operating systems and applications. In the disclosed embodiment, the processor 401 executes the steps of the embodiments of the method for automatically calculating the rail line vertical section scale information provided in the disclosed embodiment by calling the program or instructions stored in the memory 402.
The automatic calculation method for the railway line vertical section scale information provided by the embodiment of the disclosure can be applied to the processor 401 or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 401 or by instructions in the form of software. The processor 401 described above may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the automatic calculation method for the railway line vertical section scale information provided by the embodiment of the disclosure can be directly embodied as the execution completion of the hardware decoding processor or the combined execution completion of the hardware and software units in the decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 402 and the processor 401 reads the information in the memory 402 and in combination with its hardware performs the steps of the method.
The terminal device may further include one physical component, or a plurality of physical components, according to instructions generated by the processor 401 when executing the method for automatically calculating the rail line section scale information provided in the embodiments of the present application. The different physical components may be located within the terminal device or outside the terminal device, such as a cloud server or the like. Each of the physical components cooperates with the processor 401 and the memory 402 to implement the functions of the terminal device in this embodiment.
The disclosed embodiments also provide a storage medium, such as a computer-readable storage medium, storing a program or instructions that when executed by a computer, cause the computer to perform a method of automatically calculating railroad line scale information, the method comprising:
Acquiring the effective height of a display frame of a railway line vertical section, the longitudinal upper limit of the display frame, the longitudinal lower limit of the display frame and the longitudinal center position of the display frame;
defining differential rectangular ranges of ground lines and gradient lines in a display frame of a railway line longitudinal section;
the differential rectangles are combined and grouped for the first time according to the average value of central longitudinal coordinates of the adjacent differential rectangles, the maximum longitudinal coordinates of the adjacent differential rectangles, the minimum longitudinal coordinates of the adjacent differential rectangles and the effective height of the display frame;
the differential rectangles are combined and grouped again according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame;
and calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangles.
Optionally, the computer executable instructions, when executed by the computer processor, may also be used to perform the technical solution of the automatic calculation method for railway line longitudinal section scale information provided by any embodiment of the present disclosure.
From the above description of embodiments, it will be clear to a person skilled in the art that the present application may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of the embodiments of the present disclosure.
From the above description of embodiments, it will be clear to a person skilled in the art that the present application may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of the embodiments of the present disclosure.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
1. An automatic calculation method for railway line longitudinal section scale information is characterized by comprising the following steps:
acquiring the effective height of a display frame of a railway line vertical section, the longitudinal upper limit of the display frame, the longitudinal lower limit of the display frame and the longitudinal center position of the display frame;
defining differential rectangular ranges of ground lines and gradient lines in a display frame of a railway line longitudinal section;
performing primary merging grouping on the differential rectangles according to the average value of central longitudinal coordinates of the adjacent multiple differential rectangles, the maximum longitudinal coordinates of the adjacent multiple differential rectangles, the minimum longitudinal coordinates of the adjacent multiple differential rectangles and the effective height of the display frame;
the first merging and grouping of the differential rectangles according to the average value of central longitudinal coordinates of adjacent differential rectangles, the maximum longitudinal coordinates of the adjacent differential rectangles, the minimum longitudinal coordinates of the adjacent differential rectangles and the effective height of the display frame, including:
dividing the adjacent multiple differential rectangles into a group of differential rectangles when the difference value between the average value of the central longitudinal coordinates of the adjacent multiple differential rectangles and the maximum longitudinal coordinates of the adjacent multiple differential rectangles and the difference value between the average value of the central longitudinal coordinates of the adjacent multiple differential rectangles and the minimum longitudinal coordinates of the adjacent multiple differential rectangles are smaller than a second set multiple of the effective height of the display frame;
The differential rectangles are combined and grouped again according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame;
the re-merging and grouping the differential rectangles according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame, including:
the differential rectangles are combined and grouped again according to the comparison result of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and the longitudinal upper limit of the display frame and the comparison result of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial combination and the longitudinal lower limit of the display frame;
calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle;
the calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle comprises the following steps:
Taking the starting position of the single group of the differential rectangles after the grouping is combined again as the scale position of the independent display frame;
and subtracting the longitudinal coordinates corresponding to the longitudinal central position of the display frame from the average value of the central longitudinal coordinates of each differential rectangle in the single group of differential rectangles after the grouping is combined again, and adding the initial elevation value of the corresponding railway line longitudinal section as the initial elevation value at the position of the corresponding scale.
2. The method for automatically calculating the scale information of the railway line profile according to claim 1, wherein the step of obtaining the effective height of the display frame of the railway line profile comprises the steps of:
acquiring the height of a drawing, the height of a title bar and the reserved height of an display frame;
acquiring the total height of the display frame according to the picture height and the title bar height;
and acquiring the effective height of the display frame according to the total height of the display frame and the reserved height of the display frame.
3. The automatic calculation method of the scale information of the railway line longitudinal section according to claim 1, wherein the acquiring the display frame longitudinal upper limit, the display frame longitudinal lower limit, and the display frame longitudinal center position of the railway line longitudinal section includes:
Acquiring the longitudinal upper limit of the display frame according to the origin of the drawing, the height of the title bar, the height of the scale and the reserved height of the upper part of the display frame;
acquiring the longitudinal lower limit of the display frame according to the original point of the scale and the reserved height of the lower part of the display frame;
and acquiring the longitudinal center position of the display frame according to the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame.
4. The automatic calculation method of railway line profile scale information according to claim 1, wherein the differential rectangular range demarcating the ground line and the gradient line in the display frame of the railway line profile comprises:
and taking the gradient line as a reference, and taking a connecting line between the starting point and the end point of the gradient line and between the four intersection points of the ground line and the gradient line in a single step range as a differential rectangle.
5. The automatic calculation method of railway line profile scale information according to claim 4, wherein the differential rectangular range demarcating the ground line and the gradient line in the display frame of the railway line profile further comprises:
when the distance between the ground line and the gradient line at the same position is larger than or equal to a first set multiple of the effective height of the display frame, converting the longitudinal coordinate of the differential rectangle at the position according to the product of the effective height of the display frame and the first set multiple and the longitudinal coordinate of the gradient line at the position.
6. The automatic calculation method of railway line longitudinal section scale information according to claim 1, wherein when the maximum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial combination grouping are smaller than the upper longitudinal limit of the display frame and the minimum longitudinal coordinates of the adjacent two sets of differential rectangles after the initial combination grouping are larger than the lower longitudinal limit of the display frame, the adjacent two sets of differential rectangles after the initial combination grouping are combined;
when the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the upper longitudinal limit of the display frame and the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping are larger than the lower longitudinal limit of the display frame, the exceeding value of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping relative to the upper longitudinal limit of the display frame is smaller than or equal to the exceeding value of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the primary merging and grouping relative to the lower longitudinal limit of the display frame;
when the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping are smaller than the upper longitudinal limit of the display frame, and the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping are smaller than the lower longitudinal limit of the display frame, the exceeding value of the lower longitudinal limit of the display frame relative to the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping is smaller than or equal to the exceeding value of the upper longitudinal limit of the display frame relative to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping, merging the adjacent two groups of differential rectangles after the initial merging and grouping.
7. An automatic calculation device for railway line longitudinal section scale information, comprising:
the picture frame parameter acquisition module is used for acquiring the effective height of the display picture frame, the longitudinal upper limit of the display picture frame, the longitudinal lower limit of the display picture frame and the longitudinal central position of the display picture frame of the longitudinal section of the railway line;
the rectangular range demarcation module is used for demarcating the differential rectangular range of the ground line and the gradient line in the display frame of the railway line longitudinal section;
the primary merging and grouping module is used for carrying out primary merging and grouping on the differential rectangles according to the average value of central longitudinal coordinates of the adjacent multiple differential rectangles, the maximum longitudinal coordinates of the adjacent multiple differential rectangles, the minimum longitudinal coordinates of the adjacent multiple differential rectangles and the effective height of the display frame;
the first merging and grouping module is configured to perform first merging and grouping on the differential rectangles according to an average value of central longitudinal coordinates of adjacent multiple differential rectangles, a maximum longitudinal coordinate of the adjacent multiple differential rectangles, a minimum longitudinal coordinate of the adjacent multiple differential rectangles, and the effective height of the display frame, and includes:
the first merging and grouping module is used for dividing the adjacent multiple differential rectangles into a group of differential rectangles when the difference value between the average value of the central longitudinal coordinates of the adjacent multiple differential rectangles and the maximum longitudinal coordinates of the adjacent multiple differential rectangles and the difference value between the average value of the central longitudinal coordinates of the adjacent multiple differential rectangles and the minimum longitudinal coordinates of the adjacent multiple differential rectangles are smaller than a second set multiple of the effective height of the display frame;
The secondary merging and grouping module is used for carrying out secondary merging and grouping on the differential rectangles according to the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after primary merging and grouping, the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after primary merging and grouping, the longitudinal upper limit of the display frame and the longitudinal lower limit of the display frame;
the re-merging and grouping module is configured to re-merge and group the differential rectangles according to a maximum longitudinal coordinate of two adjacent groups of differential rectangles after the initial merging and grouping, a minimum longitudinal coordinate of two adjacent groups of differential rectangles after the initial merging and grouping, the display frame longitudinal upper limit and the display frame longitudinal lower limit, and the re-merging and grouping method includes:
the re-merging and grouping module is used for re-merging and grouping the differential rectangles according to the comparison result of the maximum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping and the longitudinal upper limit of the display frame and the comparison result of the minimum longitudinal coordinates of the adjacent two groups of differential rectangles after the initial merging and grouping and the longitudinal lower limit of the display frame;
the scale information calculation module is used for calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle;
The scale information calculating module is used for calculating the scale position of the independent display frame and the initial elevation value at the scale position according to the recombined grouping result of the differential rectangle, and comprises the following steps:
the scale information calculation module is used for taking the initial position of the single group of the differential rectangles after being combined and grouped again as the scale position of the independent display frame;
and the scale information calculation module is used for subtracting the longitudinal coordinate corresponding to the longitudinal central position of the display frame from the average value of the central longitudinal coordinates of each differential rectangle in the single group of differential rectangles after being combined again, and adding the initial elevation value of the corresponding railway line longitudinal section as the initial elevation value at the corresponding scale position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010943515.0A CN112214872B (en) | 2020-09-09 | 2020-09-09 | Automatic calculation method and device for railway line longitudinal section scale information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010943515.0A CN112214872B (en) | 2020-09-09 | 2020-09-09 | Automatic calculation method and device for railway line longitudinal section scale information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112214872A CN112214872A (en) | 2021-01-12 |
CN112214872B true CN112214872B (en) | 2023-07-07 |
Family
ID=74049338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010943515.0A Active CN112214872B (en) | 2020-09-09 | 2020-09-09 | Automatic calculation method and device for railway line longitudinal section scale information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112214872B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250615A (en) * | 2016-07-26 | 2016-12-21 | 铁道第三勘察设计院集团有限公司 | Circuit vertical section design method before laying a railway track |
CN106991258A (en) * | 2017-05-10 | 2017-07-28 | 中铁第五勘察设计院集团有限公司 | A kind of method for setting up Tunnel Engineering geology skiagraph |
CN109918803A (en) * | 2019-03-13 | 2019-06-21 | 中国铁路设计集团有限公司 | The flat real-time linkage design method in length and breadth of rail track |
CN110986878A (en) * | 2019-12-03 | 2020-04-10 | 中铁第一勘察设计院集团有限公司 | Method for automatically extracting rail section based on mobile measurement system |
CN111597621A (en) * | 2020-05-26 | 2020-08-28 | 西南交通大学 | Railway line double-layer optimization method based on GIS and differential evolution algorithm |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10074179B2 (en) * | 2013-05-07 | 2018-09-11 | Sharp Kabushiki Kaisha | Image measurement device |
-
2020
- 2020-09-09 CN CN202010943515.0A patent/CN112214872B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250615A (en) * | 2016-07-26 | 2016-12-21 | 铁道第三勘察设计院集团有限公司 | Circuit vertical section design method before laying a railway track |
CN106991258A (en) * | 2017-05-10 | 2017-07-28 | 中铁第五勘察设计院集团有限公司 | A kind of method for setting up Tunnel Engineering geology skiagraph |
CN109918803A (en) * | 2019-03-13 | 2019-06-21 | 中国铁路设计集团有限公司 | The flat real-time linkage design method in length and breadth of rail track |
CN110986878A (en) * | 2019-12-03 | 2020-04-10 | 中铁第一勘察设计院集团有限公司 | Method for automatically extracting rail section based on mobile measurement system |
CN111597621A (en) * | 2020-05-26 | 2020-08-28 | 西南交通大学 | Railway line double-layer optimization method based on GIS and differential evolution algorithm |
Non-Patent Citations (1)
Title |
---|
朱照宏,符锌砂,李方等编著.《道路勘测设计软件开发与应用指南》.人民交通出版社 ,2003,第547-551页. * |
Also Published As
Publication number | Publication date |
---|---|
CN112214872A (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111932483B (en) | Picture processing method and device, storage medium and computer equipment | |
CN107564077A (en) | A kind of method and device for drawing road network | |
CN104123479A (en) | Quality control method for conversion of power grid special area raster data into vector data | |
CN115641415A (en) | Method, device, equipment and medium for generating three-dimensional scene based on satellite image | |
CN112214872B (en) | Automatic calculation method and device for railway line longitudinal section scale information | |
CN113821860A (en) | Method, device and equipment for determining breakpoint on steel bar primitive and storage medium | |
CN105426380B (en) | The region method of cutting out and device of road network | |
CN113887043A (en) | Method, device and equipment for determining breakpoint on steel bar primitive and storage medium | |
CN108847120B (en) | Drawing method based on electronic fence map order thermodynamic diagram distribution | |
CN113066176B (en) | Map data processing method, device, equipment and storage medium | |
JP2837584B2 (en) | How to create terrain data | |
CN115841558B (en) | Urban road modeling method, device, electronic equipment and storage medium | |
CN115270530B (en) | Method, system, device and medium for rapidly establishing progress visualization model | |
CN112991489B (en) | Isobaric line drawing method and device, electronic equipment and storage medium | |
CN111325810A (en) | Color matching method and device and electronic equipment | |
CN114741188A (en) | Graphic element processing method and device, electronic equipment and storage medium | |
CN114911433A (en) | Intelligent CAD drawing framing method and system and readable storage medium | |
CN113066179B (en) | Map data processing method, device, equipment and storage medium | |
CN109947996B (en) | Document processing method and device | |
CN114444185A (en) | In-situ labeling identification method and device and electronic equipment | |
CN115187734A (en) | Road network model generation method and device, storage medium and electronic equipment | |
CN112686476A (en) | Path generation method, system, equipment and storage medium applied to map | |
CN111090968B (en) | BMP image processing method, device and equipment based on PCB | |
CN111652956B (en) | Meta grid contour boundary optimization method, medium and terminal equipment | |
CN117237977B (en) | Area division method and system for CAD drawing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |