Method, medium and equipment for analyzing landslide influence based on landslide boundary vector diagram
By obtaining and processing the vector graph information of landslide boundary and disaster area in GeoJSON format, combining the map engine and neural network model, the outline of the disaster-bearing body is automatically identified and mapped, and the efficiency and accuracy problems in landslide impact assessment are solved, achieving efficient and accurate landslide impact assessment.
Patent Information
- Application Number
- CN202510764082.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-06-10
AI Technical Summary
In the prior art, the landslide impact assessment analysis is inefficient and the accuracy is affected by human factors, making it difficult to quickly and accurately evaluate buildings, roads and other facilities within the scope of landslide disasters.
By obtaining vector image information of landslide boundaries and disaster areas based on GeoJSON format, the map engine is used to load the map page, automatically intercept and process the image blocks, combine the neural network model to identify the contour of the disaster-bearing body, map it to the panoramic area image block, and obtain vector image information based on GeoJSON format.
The landslide impact is automated and batch evaluation and analysis has been achieved, the accuracy and efficiency of evaluation and analysis have been improved, and the effective implementation of landslide emergency prevention and control strategies has been ensured.
Smart Images

Figure CN120279427A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to landslide disaster prevention and control technologies, and in particular, to a method for analyzing landslide impacts based on a landslide boundary vector map, a device for analyzing landslide impacts based on a landslide boundary vector map, a storage medium, and an electronic device. Background Art
[0002] A landslide is a natural disaster. The prediction of landslide disasters and the assessment and analysis of landslide impacts are important topics in geological disaster prevention and control. The assessment and analysis of landslide impacts usually include the assessment and analysis of facilities such as buildings and roads within the landslide impact range.
[0003] Currently, the common method for assessing and analyzing landslide impacts is as follows: obtaining a high-resolution remote sensing image using remote sensing technology, and then, through manual annotation, marking the landslide boundary and the landslide disaster area formed by the landslide boundary in the remote sensing image. Additionally, the disaster-bearing bodies (such as roads, buildings, etc.) in the landslide disaster area can also be marked through manual annotation, so as to display the marked remote sensing image to relevant personnel to achieve the assessment and analysis of landslide impacts.
[0004] Manual annotation not only has problems of low efficiency and annotation accuracy being affected by human factors, but also has a very high difficulty in annotating large-scale complex terrains. How to quickly and accurately assess and analyze disaster-bearing bodies such as buildings and roads within the landslide impact range, so as to ensure the effective implementation of landslide emergency prevention and control strategies, is a technical problem worthy of attention. Summary of the Invention
[0005] To solve the above technical problems, the present disclosure is proposed. Embodiments of the present disclosure provide a method, a device, a storage medium, and an electronic device for analyzing landslide impacts based on a landslide boundary vector map.
[0006] According to one aspect of the embodiments of the present disclosure, a method for analyzing landslide impacts based on a landslide boundary vector map is provided, including: obtaining vector map information of a landslide boundary in GeoJSON format; determining the shape of the boundary of the landslide disaster area according to the vector map information of the landslide boundary, and obtaining vector map information of this shape in GeoJSON format, so as to obtain vector map information of the boundary of the landslide disaster area in GeoJSON format; according to the vector map information of the boundary of the landslide disaster area, intercept the shape of the boundary of the landslide disaster area on the map page loaded by the map engine where the landslide is located, to obtain a landslide disaster area image block; intercept a panoramic area image block including the boundary of the landslide disaster area from the map page; wherein, the area of the panoramic area image block is at least twice the area of the landslide disaster area image block; performing image processing on the landslide disaster area image block to obtain the outlines of each disaster-bearing body in the landslide disaster area image block; mapping the outlines of each disaster-bearing body to the panoramic area image block; according to the pixel resolution of the panoramic area image block and the geographical location range covered by the panoramic area image block, obtaining vector map information of the outlines of each disaster-bearing body in the panoramic area image block in GeoJSON format, so as to obtain vector map information of the outlines of each disaster-bearing body in GeoJSON format; wherein, the vector map information of the landslide boundary in GeoJSON format, the vector map information of the boundary of the landslide disaster area in GeoJSON format, and the vector map information of the outlines of each disaster-bearing body in GeoJSON format are used to analyze landslide impacts.
[0007] According to another aspect of the embodiments of the present disclosure, there is provided a device for analyzing landslide impacts based on a landslide boundary vector map. The device includes: a first acquisition module configured to acquire vector map information of a landslide boundary in GeoJSON format; a second acquisition module configured to determine a landslide disaster area boundary according to the vector map information of the landslide boundary obtained by the first acquisition module, and acquire vector map information of the landslide disaster area boundary in GeoJSON format; a first cropping module configured to crop the shape of the landslide disaster area boundary on a map page loaded by a map engine and containing the location of the landslide according to the vector map information of the landslide disaster area boundary obtained by the second acquisition module, to obtain a landslide disaster area image block; a second cropping module configured to crop a panoramic area image block containing the landslide disaster area boundary from the map page; wherein, the area of the panoramic area image block is at least twice the area of the landslide disaster area image block; an image processing module configured to perform image processing on the landslide disaster area image block obtained by the first cropping module to obtain the outlines of each disaster-bearing body in the landslide disaster area image block; a mapping module configured to map the outlines of each disaster-bearing body obtained by the image processing module into the panoramic area image block obtained by the second cropping module; a third acquisition module configured to acquire vector map information of the outlines of each disaster-bearing body mapped into the panoramic area image block in GeoJSON format according to the pixel resolution of the panoramic area image block and the geographical location range covered by the panoramic area image block, so as to obtain vector map information of the outlines of each disaster-bearing body in GeoJSON format; wherein, the vector map information of the landslide boundary in GeoJSON format, the vector map information of the landslide disaster area boundary in GeoJSON format, and the vector map information of the outlines of each disaster-bearing body in GeoJSON format are used to analyze landslide impacts.
[0008] According to yet another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing a computer program for implementing the above method.
[0009] According to still another aspect of the embodiments of the present disclosure, there is provided an electronic device including: a processor; a memory for storing executable instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the above method.
[0010] A method, apparatus, medium, and electronic device for analyzing landslide impacts based on a landslide boundary vector map provided by the above embodiments of the present disclosure. By obtaining vector map information of the landslide boundary in GeoJSON format, it is possible to obtain vector map information of the landslide disaster area boundary in GeoJSON format without manual annotation by leveraging the correlation between the landslide boundary and the shape of the landslide disaster area. Thus, it is convenient to use tools to set the landslide disaster area boundary on the map page loaded by the map engine, making it possible to automatically intercept image blocks of the landslide disaster area from the map page loaded by the map engine. By performing image processing on the intercepted image blocks of the landslide disaster area (such as implementing image processing using an image processing model based on a neural network), it is possible to obtain the outlines of each disaster-bearing body in the landslide disaster area map without manual recognition and annotation. Since each disaster-bearing body outline can be mapped in the panoramic area image block, and there is a correlation between the pixel coordinate information of each disaster-bearing body outline in the panoramic area image block and the geographical location range covered by the panoramic area image block and its pixel resolution, it is possible to obtain vector map information of each disaster-bearing body outline in GeoJSON format through calculation. Therefore, the present disclosure can utilize the vector map information in GeoJSON format to enable the landslide boundary, the outlines of disaster-bearing bodies, and the surrounding environment of the landslide disaster area to be conveniently and intuitively displayed at any time, avoiding problems such as low efficiency, the influence of human factors on annotation accuracy, and differences in operation specifications caused by individual manual processing of different landslides. It can be seen from this that the technical solution provided by the present disclosure combines GIS (Geographic Information System) technology, image processing technology, and map engine technology, which is not only conducive to realizing batch automatic processing of landslide impact assessment and analysis, but also conducive to standardizing landslide impact assessment and analysis. Thus, while being conducive to improving the degree of automatic processing of landslide impact assessment and analysis, it is conducive to improving the accuracy of assessment and analysis, and further conducive to ensuring the effective implementation of landslide emergency prevention and control strategies.
[0011] The following will further describe the technical solutions of the present disclosure in detail through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] By describing the embodiments of the present disclosure in more detail in combination with the accompanying drawings, the above and other objects, features, and advantages of the present disclosure will become more obvious. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation to the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0013] Figure 1Flowchart of an embodiment of the method for analyzing landslide impact based on a landslide boundary vector map according to the present disclosure; Figure 2 Schematic diagram of an embodiment of a landslide boundary in the form of a curve with an opening according to the present disclosure; Figure 3 Schematic diagram of an embodiment of the process of forming a first rectangle according to the present disclosure; Figure 4 Based on the present disclosure Figure 3 Schematic diagram of an embodiment of a landslide disaster area boundary formed; Figure 5 Schematic diagram of an embodiment of the process of forming a second rectangle according to the present disclosure; Figure 6 Based on the present disclosure Figure 5 Schematic diagram of an embodiment of a landslide disaster area boundary formed; Figure 7 Schematic structural diagram of an embodiment of the device for analyzing landslide impact based on a landslide boundary vector map according to the present disclosure; Figure 8 Structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. Detailed implementation manners
[0014] Hereinafter, exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments of the present disclosure. It should be understood that the present disclosure is not limited by the exemplary embodiments described herein.
[0015] It should be noted that: Unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions and values set forth in these embodiments do not limit the scope of the present disclosure.
[0016] Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate an inevitable logical order between them.
[0017] It should also be understood that in the embodiments of the present disclosure, "a plurality" may refer to two or more, and "at least one" may refer to one, two or more.
[0018] It should also be understood that for any component, data or structure mentioned in the embodiments of the present disclosure, unless otherwise clearly defined or given a contrary indication in the context, it can generally be understood as one or more.
[0019] In addition, the term "and / or" in this disclosure is merely a description of the relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0020] It should also be understood that the descriptions of the various embodiments in this disclosure emphasize the differences between the various embodiments, and their similarities can be referred to each other. For the sake of brevity, they will not be elaborated one by one.
[0021] Meanwhile, it should be understood that for the sake of description convenience, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0022] The following description of at least one exemplary embodiment is actually only illustrative and in no way a limitation on this disclosure and its application or use.
[0023] Well-known technologies, methods, and devices for those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the said technologies, methods, and devices should be regarded as part of the specification.
[0024] It should be noted that like reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0025] The embodiments of this disclosure can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, or servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0026] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system-executable instructions (such as program modules) executed by a computer system. Generally, program modules can include routines, programs, target programs, components, logics, data structures, etc., which perform specific tasks or implement specific abstract data types. The computer system / server can be implemented in a distributed cloud computing environment. In a distributed cloud computing environment, tasks can be executed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0027] Exemplary method Figure 1 The figure is a flowchart of an embodiment of the method for analyzing landslide impacts based on a landslide boundary vector map according to the present disclosure. As Figure 1 shown, the method mainly includes: S100, S101, S102, S103, S104, S105, and S106. Each step will be described separately below.
[0028] S100. Obtain vector map information of the landslide boundary in GeoJSON format.
[0029] The GeoJSON (Geographic JavaScript Object Notation, geographic-based Java script object notation) format of the present disclosure is a format for encoding various geographic data structures. The geometric types supported by GeoJSON include: points, lines, polygons, multi-points, multi-lines, multi-polygons, and geometric collections, etc.
[0030] The landslide boundary in the present disclosure refers to the demarcation line between the landslide body and the surrounding immovable bodies on a plane. The landslide boundary can clearly represent the scope of the landslide. In a landslide area composed of multiple landslides, the landslide boundary can sometimes be used as the boundary between different landslides (i.e., the boundary between different sliding blocks). The landslide boundary is usually represented by a line. In one example, the landslide boundary is usually a curve with an opening, and this curve is usually a curve with a regular shape. For example, the landslide boundary can be an opening curve as Figure 2 shown.
[0031] The vector map information of the landslide boundary in the present disclosure includes: the geographical location coordinate information of each point on the landslide boundary. Here, the geographical location coordinate information refers to the coordinate information based on a geographical coordinate system (such as a coordinate system with the earth's axis as the y-axis), and the geographical location coordinate information can usually be represented by longitude and latitude information.
[0032] In one example, the present disclosure can obtain vector map information of a landslide boundary in GeoJSON format through file format conversion, that is, obtain geographical location coordinate information of the landslide boundary in GeoJSON format. For example, a binary file based on a geospatial vector data format is known, and vector map information of the landslide boundary in binary form is stored in the file. This file can be regarded as a vector map file of the landslide boundary. The present disclosure can convert the vector map information in binary form into vector map information of the landslide boundary in GeoJSON format through file format conversion. For example, the above binary file can be a file in SHP (Shapefile) format, etc., that is, the present disclosure can convert vector map information of the landslide boundary in SHP format into vector map information of the landslide boundary in GeoJSON format. The present disclosure can use existing conversion tools and combine corresponding libraries to implement the conversion between vector map information in SHP format and vector map information in GeoJSON format. The present disclosure does not limit the specific implementation manner of the format conversion.
[0033] By converting the vector map information of the landslide boundary in binary form into vector map information of the landslide boundary in GeoJSON format, it is not only beneficial to make the vector map information of the landslide boundary lightweight and easy to read, but also beneficial to automatically mark the landslide boundary on the map page loaded by the map engine, so that the landslide boundary and the landslide disaster area can be automatically marked on the map page, and it becomes possible to extract the landslide disaster area image block from the map page.
[0034] S101. Determine the boundary of the landslide disaster area according to the vector map information of the landslide boundary, and obtain vector map information of the boundary of the landslide disaster area in GeoJSON format.
[0035] The landslide disaster area in the present disclosure may refer to the scope involved in the landslide disaster when the landslide disaster occurs. For example, the landslide disaster area may specifically be: the area that is likely to be affected by the landslide disaster when the landslide disaster occurs.
[0036] In one example, when the shape of the landslide boundary presents a curve with an opening, the landslide disaster area is usually formed by the area enclosed by the curve and the area corresponding to the opening of the curve. The area enclosed by the curve may refer to the area formed after connecting the two endpoints of the opening of the curve with a straight line. The area corresponding to the opening of the curve usually has no intersection with the area enclosed by the curve and is usually connected to the area enclosed by the curve.
[0037] In one example, the region corresponding to the opening of the curve is generally a region with a regular shape, such as a rectangular region. That is, the landslide disaster region can specifically be: a region composed of a curve and a rectangle, and the two end points of the opening of the curve are usually located on the same side of the rectangle. The boundary of the landslide disaster region is the contour line of the region formed by the combination of the curve and the rectangle.
[0038] Since the landslide boundary in the form of an open curve usually has a certain correlation with the region corresponding to the opening of the curve. For example, this correlation can include: the correlation in shape and relative position, etc. And the vector map information of the landslide boundary (such as longitude and latitude information) can clearly represent the shape of the landslide boundary (such as a curve with an opening, etc.). Therefore, the present disclosure can utilize the correlation between the two to determine the shape of the region corresponding to the opening of the curve and the positional relationship between this shape and the curve based on the shape of the landslide boundary, so as to obtain the shape of the landslide disaster region. Furthermore, based on the vector map information of the landslide boundary, the vector map information (such as longitude and latitude information, etc.) of the boundary of the landslide disaster region can be determined. The following is illustrated by two examples with reference to the accompanying drawings: An example of the present disclosure for determining the boundary of the landslide disaster region based on the vector map information of the landslide boundary includes the following steps: First, utilize the vector map information of the landslide boundary to determine the distance from the midpoint of the line connecting the two end points of the opening of the curve presented by this vector map information (i.e., the contour line of the landslide) to the curve.
[0039] Specifically, the vector map information of the landslide boundary in the present disclosure can depict a curve with an opening. Thus, the present disclosure can obtain the positions of the two end points of the opening of the curve, and calculate the position of the midpoint of the line connecting the two end points using the positions of the two end points. By drawing a perpendicular line to the line connecting the two end points through this midpoint, the intersection point of this perpendicular line and the curve can be obtained. The present disclosure can use the length of the line segment between this intersection point and the midpoint as the distance from the midpoint of the line to the curve.
[0040] Second, form a rectangle using the line connecting the two end points of the opening of the curve and the distance from the midpoint of this line to the curve.
[0041] Specifically, the present disclosure can determine the position of the length of the rectangle by using the line connecting the two endpoints of the curve opening, and determine the length of the width of the rectangle by using the distance from the midpoint of the line connecting the two endpoints of the curve opening to the curve, so as to form a rectangle. The two endpoints of the curve opening should be on one side of the rectangle, and the two vertices on one side of the rectangle are both located on the extension line of the line connecting the two endpoints of the curve opening. That is to say, the length of one side of the rectangle is greater than the length of the line connecting the two endpoints of the curve opening, and the line connecting the two endpoints of the curve opening is a part of one side of the rectangle. The positions of the two vertices on the extension points can be set according to actual needs.
[0042] The process of forming the rectangle in the present disclosure can be implemented in a pixel coordinate system, which can be considered as a coordinate system with the coordinate origin at the upper left corner of the image. Below, Figure 3 is taken as an example to illustrate the process of forming a rectangle in the above example of the present disclosure.
[0043] Figure 3 In, the coordinate system based on uov is a pixel coordinate system. Points c1 and c2 are the two endpoints of the curve opening, point a is the midpoint of the line connecting points c1 and c2, ab is the perpendicular line passing through the midpoint of the connection line, point b is the point where the perpendicular line intersects the curve, the length of ab is h, and h is used as the length of the width of the rectangle. The extension lines of the line connecting points c1 and c2 intersect the v-axis (i.e., the vertical axis) and the u-axis (i.e., the horizontal axis) at points d1 and d2 respectively. Points d1 and d2 can be used as the two vertices of the rectangle, that is, the line connecting points d1 and d2 is used as one side of the rectangle. The other two vertices of the rectangle, namely points d3 and d4, can be obtained through points d1, d2, and h. It should be noted that this example is described by taking the intersection points of the extension line of the line connecting points c1 and c2 with the v-axis and the u-axis as the two vertices of the rectangle. It is also feasible that the two vertices of the rectangle are on the extension line and near the above two intersection points. An example of the shape of the landslide disaster area boundary formed by the landslide boundary and the above rectangle in the present disclosure is as Figure 4 shown.
[0044] When the shape of the landslide boundary is a curve with an opening, affected by factors such as gravity and scouring force, the area corresponding to the opening of the curve usually becomes the area affected by the landslide disaster, and the depth of the area affected by the landslide disaster is usually related to the height of the curve, and the breadth of the area affected by the landslide disaster usually exceeds the line connecting the two endpoints of the opening of the curve. Therefore, the present disclosure forms a rectangle by using the extension line of the line connecting the two endpoints of the curve opening and the distance from the midpoint of the line to the curve, and uses the shape formed by the curve and the rectangle as the boundary of the landslide disaster area, which can more accurately describe the landslide disaster area; especially by setting the two vertices of the rectangle at the intersection positions of the extension line of the line connecting the two endpoints of the curve opening and the two coordinate axes, the position and size of the rectangle can be conveniently determined for various shapes of landslide boundaries, and it is beneficial to avoid the phenomenon of setting the landslide disaster area too large or too small, thereby facilitating the standardized construction of the landslide disaster area boundary and making the constructed landslide disaster area more in line with the impact area generated by the landslide, improving the accuracy of constructing the landslide disaster area boundary.
[0045] Another example of the present disclosure for determining the boundary of the landslide disaster area according to the vector map information of the landslide boundary includes the following steps: First, using the vector map information of the landslide boundary, determine the length or width of the circumscribed rectangle of the curve (i.e., the contour line of the landslide) presented by the vector map information.
[0046] Specifically, the vector map information of the landslide boundary in the present disclosure can depict a curve with an opening, and there can be multiple circumscribed rectangles for this curve. The present disclosure can use the length of the length or width of any circumscribed rectangle as the width length of the rectangle to be formed, or use the length of the longest side among the side lengths of each circumscribed rectangle as the width length of the rectangle to be formed, or use the maximum width length among each circumscribed rectangle as the width length of the rectangle to be formed. In one example, the present disclosure can use the difference between the minimum value and the maximum value of the points on the curve on the horizontal coordinate axis as the width length of the rectangle to be formed, or use the difference between the minimum value and the maximum value of the points on the curve on the vertical coordinate axis as the width length of the rectangle to be formed.
[0047] Second, form a rectangle by using the line connecting the two endpoints of the curve opening and the length or width of the above-mentioned circumscribed rectangle.
[0048] Specifically, the present disclosure can determine the position where the length of the rectangle lies by connecting the two endpoints of the curve opening, and determine the length of the width of the rectangle by using the length of the long side or the width of the obtained circumscribed rectangle, so as to form a rectangle. The two endpoints of the curve opening should be on one side of the rectangle, and the two vertices on one side of the rectangle are both located on the extension line of the connection line of the two endpoints of the curve opening. That is to say, the length of one side of the rectangle is greater than the length of the connection line of the two endpoints of the curve opening, and the connection line of the two endpoints of the curve opening is a part of one side of the rectangle. The positions of the two vertices at the extension points can be set according to actual needs.
[0049] The process of forming the rectangle in the present disclosure can be implemented in a pixel coordinate system, which can be considered as a coordinate system with the coordinate origin at the upper left corner of the image. The following takes Figure 5 as an example to illustrate the process of forming a rectangle in the above example of the present disclosure.
[0050] Figure 5 In, the coordinate system based on uov is a pixel coordinate system. Points c1 and c2 are the two endpoints of the curve opening. Points o, e1, e2, and e3 form a circumscribed rectangle of the curve. Among them, point e1 is the point on the curve with the maximum v value projected onto the v-axis, and point e2 is the point on the curve with the maximum u value projected onto the u-axis. The coordinates of the four vertices of the circumscribed rectangle can be expressed as 0(0, 0), e1(0, v1), e2(u1, 0), and e3(u1, v1) respectively. The present disclosure can directly use v1 as the length of the width of the rectangle, or compare the sizes of v1 and u1, and use the larger value in the comparison result as the length of the width of the rectangle. In an example, assume that Figure 5 in, v1 is greater than u1, then v1 can be used as the length of the width of the rectangle. The extension lines of the connection line of points c1 and c2 intersect the v-axis (i.e., the vertical axis) and the u-axis (i.e., the horizontal axis) at points d1 and d2 respectively. Points d1 and d2 can be used as the two vertices of the rectangle, that is, the connection line of points d1 and d2 is used as one side of the rectangle. The other two vertices of the rectangle, namely points d3 and d4, can be obtained through points d1, d2, and v1. It should also be noted that this example is illustrated by taking the intersection points of the extension line of the connection line of points c1 and c2 with the v-axis and the u-axis as the two vertices of the rectangle. It is also feasible that the two vertices of the rectangle are on the extension line and near the above two intersection points. An example of the shape of the landslide disaster area boundary formed by the landslide boundary and the above rectangle in the present disclosure is as Figure 6 shown.
[0051] When the shape of the landslide boundary is a curve with an opening, affected by factors such as gravity and scouring force, the area corresponding to the opening of the curve usually becomes the area affected by the landslide disaster. Moreover, the depth of the area affected by the landslide disaster is usually related to the height of the curve, and the breadth of the area affected by the landslide disaster usually exceeds the line connecting the two endpoints of the opening of the curve. Therefore, the present disclosure forms a rectangle by using the extension line of the line connecting the two endpoints of the curve opening and the length / width of the circumscribed rectangle of the curve, and uses the shape formed by the curve and the rectangle as the boundary of the landslide disaster area, which can more accurately describe the landslide disaster area. In particular, by setting the two vertices of the rectangle at the intersection positions of the extension line of the line connecting the two endpoints of the curve opening and the two coordinate axes, it is convenient to determine the position and size of the rectangle for various shapes of landslide boundaries, and it is beneficial to avoid the phenomenon of setting the landslide disaster area too large or too small, thereby facilitating the standardized construction of the landslide disaster area boundary and making the constructed landslide disaster area more conform to the impact area generated by the landslide, improving the accuracy of constructing the landslide disaster area boundary.
[0052] After the present disclosure determines the boundary of the landslide disaster area, it can obtain the vector map information of the landslide disaster area boundary based on the vector map information of the landslide boundary in GeoJSON format. Specifically, for latitude: First, the latitude difference between two points with different latitudes on the landslide boundary can be calculated, and according to the pixel coordinates of these two points in the pixel coordinate system, the y difference in the pixel coordinates of these two points can be calculated. Thus, the latitude change represented by each pixel point can be calculated by using the latitude difference and the y difference. Further, taking a point on the landslide boundary as a reference point, the y differences between each point on the rectangle in the landslide disaster area (for example, the points on the line connecting c1 and c2 may not be included) and the pixel coordinates of the reference point can be calculated, and by using this y difference and the latitude change calculated above, the latitudes of each point on the rectangle can be calculated. For longitude: First, the longitude difference between two points with different longitudes on the landslide boundary can be calculated, and according to the pixel coordinates of these two points in the pixel coordinate system, the x difference in the pixel coordinates of these two points can be calculated. Thus, the longitude change represented by each pixel point can be calculated and obtained by using the longitude difference and the x difference. Further, taking a point on the landslide boundary as a reference point, the x differences between each point on the rectangle in the landslide disaster area (for example, the points on the line connecting c1 and c2 may not be included) and the pixel coordinates of the reference point can be calculated, and by using this x difference and the longitude change calculated above, the longitudes of each point on the rectangle can be calculated.
[0053] By using the longitude and latitude of each point on the rectangle obtained above (for example, each point on the line connecting points c1 and c2 may not be included) and the longitude and latitude of each point on the landslide boundary, vector diagram information of the boundary of the landslide disaster area can be formed. It should be noted that the above only describes an example of obtaining vector diagram information of the boundary of the landslide disaster area, and other calculation methods can also be used to obtain the vector diagram information of the boundary of the landslide disaster area, and the present disclosure does not limit this.
[0054] S102, based on the vector map information of the landslide disaster area boundary, on the map page containing the location of the landslide loaded by the map engine, intercept the shape of the landslide disaster area boundary to obtain the landslide disaster area image block.
[0055] The map engine in the present disclosure is a tool specifically used to process and manage geospatial data (such as geographic location coordinate information). For example, the map engine can be a browser V6-based engine, Google Maps API (Google Maps Application Programming Interface), or OpenStreetMap (Open Street Map), etc.
[0056] The map page loaded by the map engine of the present disclosure includes the area where the landslide is located, and the scale of the loaded map page can be preset. Since the longitude and latitude of each point on the map page loaded by the map engine are known, the present disclosure can mark each point on the map page according to the vector map information of the landslide disaster area obtained above (such as all the points marked on the map page are represented by red points, etc.), so that multiple marking points can be quickly obtained, and all the marking points can draw the shape of the boundary of the landslide disaster area on the map page (such as Figure 4 or Figure 6 The shape shown in the figure) is conducive to the fast and accurate execution of screenshot processing.
[0057] The present disclosure can utilize the corresponding screenshot tool to perform screenshot processing on the map page according to all the marked points on the map page, thereby obtaining an image block of the shape formed by the boundary of the landslide disaster area, and the image block is the landslide disaster area image block. Since in the subsequent image processing process, it is usually necessary to process an image with a rectangular shape (such as a resolution of 1000*1000), the background of the landslide disaster area image block in the present disclosure can be a solid color image with a corresponding resolution (such as 1000*1000). The present disclosure does not limit the specific implementation process of performing the interception processing on the map page to obtain the landslide disaster area image block.
[0058] S103: intercepting a panoramic area image block including a boundary of the landslide disaster area from the map page.
[0059] The area of the panoramic region image block in the present disclosure is generally larger than the area of the landslide disaster region image block. For example, the area of the panoramic region image block is at least twice that of the landslide disaster region image.
[0060] In one example, the center point of the panoramic region image block coincides with the center point of the map page, and the center point of the map page can coincide with the midpoint of the line connecting the two endpoints of the curve opening presented by the landslide boundary.
[0061] In one example, there is a relationship between the size of the panoramic region image block in the present disclosure and the width of the rectangle in the landslide disaster region boundary. For example, the panoramic region image block can be a rectangle with equal length and width, and the side length of the panoramic region image block can be N times the width of the rectangle in the landslide disaster region boundary, where N can be an integer greater than 2. Generally, the value of N can be 6, which is beneficial to providing a better panoramic region view for the landslide impact assessment and analysis party, avoiding the phenomenon that it is not conducive to formulating prevention and control strategies due to the lack of understanding of the surrounding environment of the landslide disaster region, and further improving the accuracy of the landslide emergency prevention and control strategy based on the landslide impact assessment and analysis party.
[0062] In one example, after determining the shape of the panoramic region and its positional relationship with the landslide disaster region boundary in the pixel coordinate system, the present disclosure can use the conversion relationship between longitude and latitude and pixel coordinates to calculate the longitude and latitude of each point on the shape of the panoramic region, and mark each point on the map page loaded by the map engine according to the longitude and latitude of each point on the shape of the panoramic region, so as to obtain multiple marked points. All the marked points can draw the shape of the panoramic region on the map page. The present disclosure can also use the corresponding screenshot tool to take a screenshot of the map page according to all the marked points on the map page, so as to obtain the panoramic region image block. The present disclosure does not limit the specific implementation process of taking a screenshot of the map page to obtain the panoramic region image block.
[0063] S104. Perform image processing on the landslide disaster region image block to obtain the outlines of each disaster-bearing body in the landslide disaster region image block.
[0064] The present disclosure can perform image recognition processing on the landslide disaster region image block (such as using an image recognition model based on a neural network for image recognition processing) to obtain each disaster-bearing body image block in the landslide disaster region image block, and further perform image segmentation processing on the disaster-bearing body image block (such as using an image segmentation model based on a neural network for image segmentation processing) to obtain the outlines of each disaster-bearing body (i.e., the borders of each disaster-bearing body).
[0065] The types of disaster-bearing bodies in the present disclosure may include one or more. For example, the types of disaster-bearing bodies may include: building types and road types, etc., and the road types among them may include: highways, bridges, and tracks, etc. When the types of disaster-bearing bodies are multiple, the present disclosure performs image recognition processing on the landslide disaster area image blocks based on the types of disaster-bearing bodies.
[0066] In one example, the present disclosure may separately set an image recognition model for each type of disaster-bearing body, that is, one image recognition model is used to recognize one type of disaster-bearing body. For example, if it is necessary to perform landslide impact assessment and analysis on two types of disaster-bearing bodies, namely building type disaster-bearing bodies and road type disaster-bearing bodies, the present disclosure may set an image recognition model for the building type (that is, an image recognition model successfully trained using building samples), and set an image recognition model for the road type (that is, an image recognition model successfully trained using road samples), and provide the obtained landslide area image blocks to the two image recognition models respectively, and obtain one or more disaster-bearing body image blocks according to the information output by the two image recognition models respectively. The present disclosure may adopt existing image recognition models, and the present disclosure does not limit the specific manifestation form of the image recognition model and the training process of the image recognition model.
[0067] In one example, the present disclosure successively provides all the disaster-bearing body image blocks to an image segmentation model, and the image segmentation model performs image segmentation processing on each disaster-bearing body image block respectively, so that the outlines of the disaster-bearing bodies in each disaster-bearing body image block can be obtained according to the output of the image segmentation model. The present disclosure may adopt existing image segmentation models, and the present disclosure does not limit the specific manifestation form of the image segmentation model.
[0068] In one example, the image recognition processing and image segmentation processing of the present disclosure may be implemented by one model. For example, Mask R-CNN (Mask Region-based Convolutional Neural Network) or YOLO (You Only Look Once) model may be used to implement the image recognition processing and image segmentation processing. The present disclosure does not make any limitation in this regard.
[0069] By using the image recognition model and the image segmentation model to obtain the outlines of the disaster-bearing bodies, not only can the outlines of the disaster-bearing bodies be obtained automatically and in batches, but also it is beneficial to improve the accuracy of the outlines of the disaster-bearing bodies; by using different image recognition models for different types of disaster-bearing bodies for image recognition, it is beneficial to improve the accuracy of the obtained disaster-bearing body image blocks. In addition, as the accuracy of the model improves, the accuracy of the outlines of the disaster-bearing bodies will also increase.
[0070] S105. Map the outlines of each disaster-bearing body to the panoramic area image patches.
[0071] There is a position mapping relationship between the pixel points in the disaster-bearing body image patches and the pixel points in the panoramic area image patches in this disclosure. Therefore, this disclosure can use this mapping relationship to map all points on the outlines of each disaster-bearing body to the panoramic area image patches. For example, a disaster-bearing body image patch usually corresponds to a region in the panoramic area image patch, and the resolution of this region is usually different from that of the disaster-bearing body image patch. Thus, all points on the outlines of each disaster-bearing body in the disaster-bearing body image patch can be mapped point by point to the panoramic area image patch according to the difference in their resolutions. This disclosure can use tools such as OpenCV (Open Source Computer Vision Library) to draw the outlines of each disaster-bearing body in the panoramic area image patch, and this disclosure does not limit the specific implementation method of the drawing process.
[0072] S106. Obtain the vector map information in GeoJSON format of each disaster-bearing body outline in the panoramic area image patch according to the pixel resolution of the panoramic area image patch and the geographical location range covered by the panoramic area image patch, so as to obtain the vector map information of each disaster-bearing body outline in GeoJSON format.
[0073] In one example, the present disclosure can calculate the actual distances represented by each pixel in the horizontal and vertical directions by using the pixel resolution of the panoramic region image patch and the geographical location range covered by the panoramic region image patch. For latitude, since the distance spanned by each degree of latitude on the earth is known, such as approximately 111,000 meters, therefore, the latitude change represented by a pixel can be calculated by using the actual distance represented by a pixel in the vertical direction and the distance spanned by each degree of latitude; since the longitude and latitude information of the center point (i.e., the central pixel point) in the panoramic region map is known (such as can be obtained from the map page loaded by the map engine), therefore, for any point on the contour of any disaster-bearing body, the difference between the pixel y coordinate of this point and the pixel y coordinate of the center point can be calculated, and the product of this difference and the latitude change represented by the above-mentioned pixel can be calculated. If the center point is used as the reference point, then the latitude of this point can be obtained by adding / subtracting the above product to / from the latitude information of the center point. For longitude, since the distance spanned by each degree of longitude at a certain latitude on the earth is known, such as in the case of a latitude of 30.51 degrees, the distance spanned by each degree of longitude is approximately 95,775 meters, therefore, the present disclosure can calculate the longitude change represented by a pixel for a certain latitude (such as the latitude to which a point on the landslide boundary belongs) by using the actual distance represented by a pixel in the horizontal direction and the distance spanned by each degree of longitude; since the longitude and latitude information of the central pixel point in the panoramic region map can be obtained from the map page loaded by the map engine, therefore, for any point on the contour of any disaster-bearing body, the difference between the pixel x coordinate of this point and the pixel x coordinate of the center point can be calculated, and the product of this difference and the longitude change represented by the above-mentioned pixel can be calculated. If the center point is used as the reference point, then the longitude of this point can be obtained by adding / subtracting the above product to / from the longitude information of the center point. In addition, the present disclosure can also calculate the longitude and latitude of the origin of the pixel coordinate system of the panoramic region image patch by using the longitude and latitude of the center point, so that the longitude and latitude of each point on the contour of the disaster-bearing body can be calculated based on the longitude and latitude of this origin with this origin as the reference point.
[0074] For a specific example, assume that the pixel resolution of the panoramic region image patch is 1000*1000, the pixel coordinates of the center point of the panoramic region image patch are (500, 500), and the longitude and latitude of this center point are (30.51 。 N, 100.81 。 E), and the geographical location range covered by the panoramic region image patch is 500m*500m (meters). Under the above conditions, the actual distance represented by each pixel is 500m / 1000 = 0.5m; if the distance spanned by each degree of latitude is 111,000 meters, then the latitude change per meter is 1 / 111000≈9*10 -6 meters, so that the latitude change corresponding to each pixel is 0.5*9*10-6 = 4.5 * 10 -6 , if the distance spanned by each degree of longitude is 95775 m, then the change in longitude per meter is 1 / 95775 ≈ 1.04 * 10 -5 m, so the change in longitude corresponding to each pixel is 0.5 * 1.04 * 10 -5 = 5.2 * 10 -6 m; the latitude of the origin of the pixel coordinate system is: 30.51 + 500 * 4.5 * 10 -6 = 30.51225 degrees, and the longitude of the origin of the pixel coordinate system is: 100.81 - 500 * 5.2 * 10 -6 = 100.8074 degrees; for any pixel point (x, y) on the contour of the disaster-bearing body, the longitude and latitude can be obtained by the following method: Latitude: 30.51225 + (y - 500) * 4.5 * 10 -6 Longitude: 100.8074 + (x - 500) * 5.2 * 10 -6 The above is only an example. Other calculation methods can also be used to obtain the longitude and latitude of each point on the contour of the disaster-bearing body. The present disclosure does not limit this.
[0075] After the present disclosure obtains the longitude and latitude of each point on the contour of each disaster-bearing body, it can obtain the vector map information of the contour of each disaster-bearing body in GeoJSON format. The present disclosure can store the vector map information of the landslide boundary in GeoJSON format, the vector map information of the landslide disaster area boundary in GeoJSON format, and the vector map information of the contour of each disaster-bearing body in GeoJSON format in a file. The vector map information in this file can be used in the process of landslide impact assessment and analysis. For example, by loading a panoramic area image containing the location of the landslide through a map engine and using tools such as OpenCV, the vector map information in the file is drawn on the panoramic area image, so that the landslide boundary, landslide disaster area, various disaster-bearing body contours in the landslide disaster area, and the surrounding environment of the landslide disaster area with high visualization characteristics can be displayed to the assessment and analysis personnel.
[0076] Exemplary device Figure 7 It is a schematic structural diagram of an embodiment of the device for analyzing landslide impact based on the landslide boundary vector map of the present disclosure. The device of this embodiment can be used to implement the corresponding method embodiment of the present disclosure. Such as Figure 7The device shown includes: a first acquisition module 700, a second acquisition module 701, a first interception module 702, a second interception module 703, an image processing module 704, a mapping module 705, and a third acquisition module 706. Each module will be described separately below.
[0077] The first acquisition module 700 is mainly used to acquire vector map information of the landslide boundary in GeoJSON format. For example, the first acquisition module 700 can convert the vector map information of the landslide boundary in binary form into the vector map information of the landslide boundary in GeoJSON format, and the vector map information of the landslide boundary in binary form includes: the vector map information of the landslide boundary in Shapefile (SHP) format.
[0078] The second acquisition module 701 is mainly used to determine the boundary of the landslide disaster area according to the vector map information of the landslide boundary obtained by the first acquisition module 700, and acquire the vector map information of the landslide disaster area boundary in GeoJSON format. When the shape of the landslide boundary is a curve with an opening, the second acquisition module 701 can determine the distance from the midpoint of the line connecting the two endpoints of the curve opening to the curve according to the vector map information of the landslide boundary, and form a rectangle by using the line connecting the two endpoints of the curve opening and the distance from the midpoint of the line to the curve, and use the contour line formed by combining the curve and the rectangle as the boundary of the landslide disaster area. The second acquisition module 701 can also determine the length / width of the circumscribed rectangle of the curve according to the vector map information of the landslide boundary, and form a rectangle by using the line connecting the two endpoints of the curve opening and the length / width of the circumscribed rectangle, and use the contour line formed by combining the curve and the rectangle as the boundary of the landslide disaster area. For the boundary of the landslide disaster area formed by the second acquisition module 701, both endpoints of the curve opening are on the same side of the rectangle, and the two vertices of one side of the rectangle are on the extension line of the line connecting the two endpoints of the curve opening. For example, the second acquisition module 701 can use the two intersection points of the extension line of the line connecting the two endpoints of the curve opening and the horizontal axis and the vertical axis of the pixel coordinate system as the two vertices of one side of the rectangle.
[0079] The first interception module 702 is mainly used to intercept the shape of the landslide disaster area boundary on the map page loaded by the map engine and containing the location of the landslide according to the vector map information of the landslide disaster area boundary obtained by the second acquisition module 701, and obtain the landslide disaster area image block. For example, the first interception module 702 can mark on the map page loaded by the map engine according to the vector map information of the landslide disaster area boundary, so as to obtain a plurality of marked points, and the first interception module 702 can perform screenshot processing on the map page according to all the marked points to obtain the landslide disaster area image block.
[0080] The second interception module 703 is mainly used to intercept a panoramic region image block containing the boundary of the landslide disaster area from the map page. The area of the panoramic region image block is at least twice the area of the landslide disaster area image block. For example, the second interception module 703 can take the position of the midpoint of the line connecting the two endpoints of the curve opening on the map page as the center and take N times the width of the rectangle as the side length to intercept the map page, so as to obtain the panoramic region image block. The N times can include 6 times.
[0081] The image processing module 704 is mainly used to perform image processing on the landslide disaster area image block obtained by the first interception module 702 to obtain the outlines of each disaster-bearing body in the landslide disaster area image block. The image processing module 704 can perform image processing on the landslide disaster area image block by using an image recognition model and an image segmentation model. For example, the image processing module 704 can respectively provide the landslide disaster area image block to the image recognition models corresponding to different types of disaster-bearing bodies, and obtain the image blocks of each disaster-bearing body in the landslide disaster area map according to the outputs of the respective image recognition models. The image processing module 704 can respectively provide the image blocks of each disaster-bearing body to the image segmentation model and obtain the outlines of each disaster-bearing body according to the output of the image segmentation model.
[0082] The mapping module 705 is mainly used to map the outlines of each disaster-bearing body obtained by the image processing module 704 into the panoramic region image block obtained by the second interception module 703.
[0083] The third acquisition module 706 is used to obtain the vector map information in GeoJSON format of the outlines of each disaster-bearing body mapped into the panoramic region image block according to the pixel resolution of the panoramic region image block and the geographical location range covered by the panoramic region image block, so as to obtain the vector map information of the outlines of each disaster-bearing body in GeoJSON format.
[0084] The vector map information of the landslide boundary in GeoJSON format, the vector map information of the landslide disaster area boundary in GeoJSON format, and the vector map information of the outlines of each disaster-bearing body in GeoJSON format finally obtained by the device of the present disclosure are used for analyzing the landslide impact.
[0085] Exemplary electronic device Next, refer to Figure 8 to describe the electronic device according to an embodiment of the present disclosure. Figure 8 The block diagram of the electronic device according to an embodiment of the present disclosure is shown. As Figure 8 shown, the electronic device 81 includes one or more processors 811 and a memory 812.
[0086] The processor 811 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 81 to perform desired functions.
[0087] The memory 812 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory, for example, may include: random access memory (RAM) and / or cache memory, etc. The non-volatile memory, for example, may include: read-only memory (ROM), hard disk, and flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage media, and the processor 811 may run the program instructions to implement the method for analyzing landslide impacts based on the landslide boundary vector map in various embodiments of the present disclosure described above and / or other desired functions.
[0088] In one example, the electronic device 81 may further include: an input device 813 and an output device 814, etc., and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown). In addition, the input device 813 may further include, for example, a keyboard, a mouse, etc. The output device 814 may output various information to the outside. The output device 814 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0089] Of course, for simplicity, Figure 8 only some of the components in the electronic device 81 related to the present disclosure are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, according to specific application scenarios, the electronic device 81 may further include any other appropriate components.
[0090] Exemplary computer program product and computer-readable storage medium In addition to the above methods and devices, embodiments of the present disclosure may also be computer program products, which include computer program instructions that, when run by a processor, cause the processor to execute the steps in the method for analyzing landslide impacts based on the landslide boundary vector map in various embodiments of the present disclosure described in the "Exemplary Methods" section above of this specification.
[0091] The computer program product may be written in any combination of one or more programming languages for programming code to perform the operations of the embodiments of the present disclosure. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The programming code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0092] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are run by a processor, the processor is caused to execute the steps in the method for analyzing landslide impacts based on a landslide boundary vector map according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0093] The computer-readable storage medium may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may, for example, include but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium may include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0094] The basic principles of the present disclosure have been described above in connection with specific embodiments. However, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, benefits, and effects, etc. are essential for each embodiment of the present disclosure. Additionally, the above-disclosed specific details are for illustrative purposes and for ease of understanding only, and are not limitations. The above details do not limit the present disclosure to necessarily implementing with the above specific details.
[0095] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments may be referred to each other. For system embodiments, since they basically correspond to method embodiments, they are described relatively simply, and the relevant parts may refer to the partial description of the method embodiments.
[0096] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open-ended terms, meaning "including but not limited to", and can be used interchangeably with each other. The words "or" and "and" used herein refer to the word "and / or", and can be used interchangeably with it, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0097] The methods and apparatuses of the present disclosure can be implemented in many ways. For example, the methods and apparatuses of the present disclosure can be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of the steps for the method is only for illustration, and the steps of the method of the present disclosure are not limited to the specific order described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure can also be implemented as a program recorded in a recording medium, and these programs include machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0098] It should also be noted that in the apparatuses, equipment, and methods of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present disclosure.
[0099] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
[0100] The above description has been given for purposes of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions, and sub-combinations thereof.
Claims
1. A method for analyzing landslide impacts based on a landslide boundary vector map, characterized in that, Including: Obtaining vector map information of a landslide boundary in GeoJSON format; Determining a landslide disaster area boundary according to the vector map information of the landslide boundary, and obtaining vector map information of the landslide disaster area boundary in GeoJSON format; According to the vector map information of the landslide disaster area boundary, intercepting the shape of the landslide disaster area boundary on a map page loaded by a map engine and containing the location of the landslide to obtain a landslide disaster area image block; Intercepting a panoramic area image block containing the landslide disaster area boundary from the map page; wherein, the area of the panoramic area image block is at least twice the area of the landslide disaster area image block; Performing image processing on the landslide disaster area image block to obtain the outlines of each disaster-bearing body in the landslide disaster area image block; Mapping the outlines of each disaster-bearing body to the panoramic area image block; According to the pixel resolution of the panoramic area image block and the geographical location range covered by the panoramic area image block, obtaining vector map information of the outlines of each disaster-bearing body in the panoramic area image block in GeoJSON format, so as to obtain vector map information of the outlines of each disaster-bearing body in GeoJSON format; Wherein, the vector map information of the landslide boundary in GeoJSON format, the vector map information of the landslide disaster area boundary in GeoJSON format, and the vector map information of the outlines of each disaster-bearing body in GeoJSON format are used for analyzing the impact of the landslide.
2. The method according to claim 1, wherein The obtaining of the vector map information of the landslide boundary in GeoJSON format includes: Converting the vector map information of the landslide boundary in binary form into the vector map information of the landslide boundary in GeoJSON format; Wherein, the vector map information of the landslide boundary in binary form includes: the vector map information of the landslide boundary in shape file SHP format.
3. The method according to claim 1 or 2, characterized in that, The shape of the landslide boundary includes: a curve with an opening; The determining of the landslide disaster area boundary according to the vector map information of the landslide boundary includes: According to the vector map information of the landslide boundary, determining the distance from the midpoint of the line connecting the two endpoints of the opening of the curve to the curve, and using the line connecting the two endpoints of the opening of the curve and the distance from the midpoint of the line to the curve to form a rectangle, and the contour line formed by the combination of the curve and the rectangle is used as the landslide disaster area boundary; or According to the vector map information of the landslide boundary, determining the length / width of the circumscribed rectangle of the curve, and using the line connecting the two endpoints of the opening of the curve and the length / width of the circumscribed rectangle to form a rectangle, and the contour line formed by the combination of the curve and the rectangle is used as the landslide disaster area boundary; Wherein, the two endpoints of the opening of the curve are on the same side of the rectangle, and the two vertices of one side of the rectangle are on the extension line of the line connecting the two endpoints of the opening of the curve.
4. The method according to claim 3, wherein The two vertices of one side of the rectangle being on the extension line of the line connecting the two endpoints of the opening of the curve includes: The extension lines of the connection line of the two endpoints of the opening of the curve intersecting the horizontal axis and the vertical axis of the pixel coordinate system are used as the two vertices of one side of the rectangle.
5. The method according to claim 1 or 2, characterized in that, The intercepting the shape of the landslide disaster area boundary on the map page loaded by the map engine and containing the location of the landslide according to the vector map information of the landslide disaster area boundary to obtain the landslide disaster area image block includes: Marking on the map page loaded by the map engine and containing the location of the landslide according to the vector map information of the landslide disaster area boundary to obtain a plurality of marked points; Performing a screenshot process on the map page according to the marked points to obtain the landslide disaster area image block.
6. The method according to claim 3, wherein The intercepting the panoramic area image block containing the landslide disaster area boundary from the map page includes: Taking the position of the midpoint of the connection line of the two endpoints of the opening of the curve on the map page as the center and taking N times the width of the rectangle as the side length to intercept the map page to obtain the panoramic area image block; Wherein, the N times includes 6 times.
7. The method according to claim 1 or 2, characterized in that, The performing image processing on the landslide disaster area image block to obtain the outlines of each disaster-bearing body in the landslide disaster area image block includes: Providing the landslide disaster area image block to the respective image recognition models corresponding to different categories of disaster-bearing bodies respectively, and obtaining the respective disaster-bearing body image blocks in the landslide disaster area map according to the outputs of the respective image recognition models; Providing the respective disaster-bearing body image blocks to the image segmentation model respectively, and obtaining the outlines of each disaster-bearing body according to the output of the image segmentation model.
8. A device for analyzing the impact of a landslide based on a landslide boundary vector map, characterized in that Including: A first acquisition module for acquiring the vector map information of the landslide boundary in GeoJSON format; A second acquisition module for determining the landslide disaster area boundary according to the vector map information of the landslide boundary obtained by the first acquisition module and acquiring the vector map information of the landslide disaster area boundary in GeoJSON format; A first interception module for intercepting the shape of the landslide disaster area boundary on the map page loaded by the map engine and containing the location of the landslide according to the vector map information of the landslide disaster area boundary obtained by the second acquisition module to obtain the landslide disaster area image block; A second interception module for intercepting the panoramic area image block containing the landslide disaster area boundary from the map page; wherein, the area of the panoramic area image block is at least twice the area of the landslide disaster area image block; An image processing module for performing image processing on the landslide disaster area image block obtained by the first interception module to obtain the outlines of each disaster-bearing body in the landslide disaster area image block; A mapping module for mapping the outlines of each disaster-bearing body obtained by the image processing module into the panoramic area image block obtained by the second interception module; A third acquisition module, configured to obtain vector map information in GeoJSON format of each disaster-bearing body contour mapped to the panoramic region image block according to the pixel resolution of the panoramic region image block and the geographical location range covered by the panoramic region image block, so as to obtain vector map information of each disaster-bearing body contour in GeoJSON format; Among them, the vector map information of the landslide boundary in GeoJSON format, the vector map information of the landslide disaster area boundary in GeoJSON format, and the vector map information of each disaster-bearing body contour in GeoJSON format are used to analyze the landslide impact.
9. A computer-readable storage medium storing a computer program for executing the method according to any one of claims 1-7 above.
10. An electronic device, comprising: A processor; A memory for storing executable instructions of the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1-7 above.
Citation Information
Patent Citations
Landslide disaster point big data acquisition and sample library updating method based on event triggering
CN114333241A
Landslide identification method and device, electronic equipment and storage medium
CN115439742A
Landslide disaster body identification method based on analytic hierarchy process and convolutional neural network
CN116452974A
Forest land landslide collapse area detection method based on unmanned aerial vehicle visual remote sensing
CN119984105A
Landslide identification method, system, equipment and medium
CN120107813A