Method and device for displaying pipeline data, electronic device, and storage medium
By discretizing the road center line and converting data, alternative line segments of the pipeline are obtained and the collection of pipeline elements is displayed, which solves the limitations of use caused by the spatial position sensitivity of pipeline data, and realizes the comprehensive display of pipeline data.
Patent Information
- Application Number
- CN202211730760.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In the prior art, since the spatial location of pipeline data is sensitive information, the usage limitations of pipeline data are high, and the spatial location of pipeline cannot be effectively displayed, which limits its usage scenarios.
By obtaining the centerline set of roads, performing discretization processing, obtaining segmented sets, and obtaining pipeline attribute information, obtaining alternative line segments according to the type, building pipeline element sets, and using data conversion software to display pipeline element sets to achieve a brief display of pipeline spatial location.
It realizes that while ensuring the privacy of pipeline distribution, it can display the spatial location of the pipeline, reducing the limitations of pipeline data usage, and users can view the attributes and spatial information of the pipeline at the same time.
Smart Images

Figure CN116244868B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and for example, to a method and device, electronic equipment, and storage medium for displaying pipeline data. Background Art
[0002] Underground pipelines along roads are the lifeline of cities. Pipeline data for these underground pipelines includes both pipeline attribute information and their spatial location. However, spatial location is sensitive information and must be managed strictly according to relevant requirements during application, significantly limiting the use cases for pipeline data. However, in today's refined urban management efforts, not only pipeline attribute information is required, but also their spatial location is needed to understand their distribution.
[0003] During the implementation of the embodiments of the present disclosure, it was found that at least the following problems exist in the related art:
[0004] Because the spatial location of pipeline data is sensitive information, related technologies remove the spatial location of pipelines when using pipeline data, and only associate attribute information with grid information. This only enables limited services for pipeline data, greatly limiting its use cases and resulting in high limitations.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a method and apparatus, an electronic device, and a storage medium for displaying pipeline data, so as to reduce the usage limitations of pipeline data.
[0008] In some embodiments, the method for displaying pipeline data includes: obtaining a road centerline set; the road centerline set includes multiple road centerlines. Discretizing each of the road centerlines to obtain a segment set corresponding to each of the road centerlines; the segment set includes several segments of the road centerline. Obtaining pipeline attribute information corresponding to each of the segments; the pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline. Obtaining candidate line segments corresponding to each of the segments based on the type of each pipeline. Constructing a pipeline element set based on each of the candidate line segments; the pipeline element set includes pipeline elements corresponding to each of the candidate line segments; the pipeline elements include lines used to represent the spatial position of the candidate line segments and pipeline attribute information corresponding to the segments. Displaying the pipeline element set.
[0009] In some embodiments, discretizing the road centerline to obtain a segment set corresponding to the road centerline includes: segmenting the road centerline according to preset discrete values to obtain a segment set.
[0010] In some embodiments, obtaining pipeline attribute information corresponding to the segment includes: translating the segment to both sides by a preset distance to obtain a first parallel line and a second parallel line parallel to the segment. Connecting the first parallel line and the second parallel line to obtain a target area. Determining whether there is a pipeline within the target area that intersects with the spatial position of the target area. If there is a pipeline within the target area that intersects with the spatial position of the target area, obtaining the type and ownership unit of the pipeline. Determining the type and ownership unit of the pipeline as the pipeline attribute information corresponding to the segment.
[0011] In some embodiments, obtaining a candidate line segment corresponding to the segment according to the type of the pipeline includes: obtaining an offset distance corresponding to the type of the pipeline, and offsetting the segment according to the offset distance to obtain a candidate line segment parallel to the segment.
[0012] In some embodiments, constructing a pipeline element set based on each candidate line segment includes: obtaining pipeline elements corresponding to each candidate line segment, storing each pipeline element in a preset set, and obtaining a pipeline element set.
[0013] In some embodiments, displaying the pipeline element set includes: using preset data conversion software to convert the pipeline element set to obtain preset type data, and displaying the preset type data using preset data display software.
[0014] In some embodiments, the device for displaying pipeline data includes: a first acquisition module, configured to acquire a road centerline set; the road centerline set includes multiple road centerlines. A discrete processing module, configured to discretize each of the road centerlines to obtain a segment set corresponding to each of the road centerlines; the segment set includes several segments of the road centerline. A second acquisition module, configured to acquire pipeline attribute information corresponding to each of the segments; the pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline. A third acquisition module, configured to acquire candidate line segments corresponding to each of the segments according to the type of each pipeline. A construction module, configured to construct a pipeline element set based on each of the candidate line segments; the pipeline element set includes pipeline elements corresponding to each of the candidate line segments; the pipeline elements include lines used to represent the spatial position of the candidate line segments and pipeline attribute information corresponding to the segments. A display module, configured to display the pipeline element set.
[0015] In some embodiments, the apparatus for displaying pipeline data includes: a processor and a memory storing program instructions, and the processor is configured to perform the above-mentioned method for displaying pipeline data when executing the program instructions.
[0016] In some embodiments, the electronic device includes: an electronic device body; the above-mentioned device for displaying pipeline data is installed in the electronic device body.
[0017] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the method for displaying pipeline data is executed.
[0018] The method and device, electronic device, and storage medium for displaying pipeline data provided by the embodiments of the present disclosure can achieve the following technical effects: by obtaining a road centerline set; the road centerline set includes multiple road centerlines. Each road centerline is discretized to obtain a segment set corresponding to each road centerline; the segment set includes several segments of the road centerline. The pipeline attribute information corresponding to each segment is obtained; the pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline. Based on the type of each pipeline, the candidate line segment corresponding to each segment is obtained. A pipeline feature set is constructed based on each candidate line segment; the pipeline feature set includes pipeline features corresponding to each candidate line segment. The pipeline feature set is displayed. In this way, by using the candidate line segment to represent the actual spatial location of the pipeline, the privacy of the pipeline distribution is ensured while achieving a rough display of the spatial location of the pipeline. When using pipeline data, users can not only display the attribute information of the pipeline data, but also display the spatial location of the pipeline. This reduces the limitations of pipeline data usage.
[0019] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] One or more embodiments are exemplarily described by corresponding drawings. These exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation. In addition,
[0021] Figure 1 is a schematic diagram of a first method for displaying pipeline data provided by an embodiment of the present disclosure;
[0022] Figure 2 is a schematic diagram of a second method for displaying pipeline data provided by an embodiment of the present disclosure;
[0023] Figure 3 is a schematic diagram of a third method for displaying pipeline data provided by an embodiment of the present disclosure;
[0024] Figure 4 This is a schematic structural diagram of a first device for displaying pipeline data provided by an embodiment of the present disclosure;
[0025] Figure 5 is a structural diagram of a second device for displaying pipeline data provided by an embodiment of the present disclosure;
[0026] Figure 6 is a schematic structural diagram of a first electronic device provided by an embodiment of the present disclosure;
[0027] Figure 7 It is a structural diagram of a second electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the sake of convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0029] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.
[0030] Unless otherwise stated, the term "plurality" means two or more.
[0031] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0032] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0033] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0034] Combine Figure 1 As shown, an embodiment of the present disclosure provides a method for displaying pipeline data, the method comprising:
[0035] In step S101, the electronic device obtains a road centerline set, which includes multiple road centerlines.
[0036] In step S102, the electronic device discretizes each road centerline to obtain a segment set corresponding to each road centerline. The segment set includes a plurality of segments of the road centerline.
[0037] Step S103: The electronic device obtains pipeline attribute information corresponding to each segment, including the type of pipeline and the ownership unit of the pipeline.
[0038] In step S104 , the electronic device obtains candidate line segments corresponding to each segment according to the type of each pipeline.
[0039] In step S105, the electronic device constructs a pipeline element set based on each candidate line segment. The pipeline element set includes pipeline elements corresponding to each candidate line segment; the pipeline elements include lines used to represent the spatial position of the candidate line segment and pipeline attribute information corresponding to the segment.
[0040] Step S106: The electronic device displays a pipeline element set.
[0041] The method for displaying pipeline data provided by the embodiment of the present disclosure is adopted, by obtaining a set of road centerlines. Discretize each road centerline separately to obtain a set of segments corresponding to each road centerline. Obtain pipeline attribute information corresponding to each segment; pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline. Obtain alternative line segments corresponding to each segment according to the type of each pipeline. Construct a pipeline element set based on each alternative line segment; the pipeline element set includes pipeline elements corresponding to each alternative line segment. Display the pipeline element set. In this way, by using alternative line segments to represent the actual spatial position of the pipeline, the privacy of the pipeline distribution is guaranteed while achieving a rough display of the spatial position of the pipeline. When using pipeline data, users can not only display the attribute information of the pipeline data, but also display the spatial position of the pipeline. This reduces the limitations of the use of pipeline data.
[0042] In some embodiments, the road centerline is a solid line in the middle of the city road. The road centerline set is R{r1, r2, r3, ..., r n}, where r n is the center line of the nth road, where n is a natural number greater than 0.
[0043] In some embodiments, pipelines are installed on both sides of the road, including various types of pipelines such as water pipelines, drainage pipelines, or power pipelines.
[0044] Furthermore, the electronic device discretizes the road centerline to obtain a segmented set corresponding to the road centerline, including: the electronic device segments the road centerline according to preset discrete values to obtain the segmented set. Since pipelines and roads do not have a one-to-one correspondence, some roads may have four types of pipelines on both sides, while others may have five types. Therefore, different pipeline distributions exist on roads. By segmenting the road centerline, a more accurate pipeline feature set can be constructed.
[0045] Furthermore, the electronic device segments the road centerline according to the preset discrete values to obtain a segment set, including: the electronic device obtains a length of the road centerline, and calculates the number of segments of the road centerline using the preset discrete values and the length according to a preset algorithm. The road centerline is segmented according to the number of segments to obtain a segment set.
[0046] Furthermore, the electronic device calculates the number of road centerline segments using a preset discrete value and a length according to a preset algorithm, including: obtaining the number of road centerline segments by calculating K = [L / D] + 1. Where K is the number of road centerline segments, L is the length of the road centerline, and D is the preset discrete value. [] is used to indicate that when the result of L / D includes a decimal, the decimal is rounded down.
[0047] In some embodiments, when the number of segments of a road centerline is 5, the road centerline is segmented according to the number of segments to obtain a segment set. The segment set includes 5 segments. The segment set is associated with the road centerline. All road centerlines in the road centerline set are traversed until all road centerlines have corresponding segment sets.
[0048] Furthermore, the electronic device obtains pipeline attribute information corresponding to the segment, including: the electronic device translates the segment to both sides by a preset distance to obtain a first parallel line and a second parallel line parallel to the segment. Connecting the first parallel line and the second parallel line to obtain a target area. Determining whether there is a pipeline in the target area that intersects with the spatial position of the target area. If there is a pipeline in the target area that intersects with the spatial position of the target area, obtaining the type and ownership unit of the pipeline. Determining the type and ownership unit of the pipeline as the pipeline attribute information corresponding to the segment.
[0049] Furthermore, different types of pipelines are installed on both sides of the road. The electronic device determines whether there are pipelines in the target area that intersect with the target area's spatial location by using spatial topology calculations to sequentially determine whether the spatial locations of all pipelines on both sides of the road intersect with the target area.
[0050] In some embodiments, the target area obtained by connecting the first parallel line and the second parallel line is a rectangular area.
[0051] In some embodiments, the types of pipelines include water supply pipelines, drainage pipelines, or power pipelines. The water supply pipeline is owned by the water company, the drainage pipeline is owned by the water company, and the power pipeline is owned by the power company.
[0052] Furthermore, the electronic device obtains candidate line segments corresponding to the segment based on the pipeline type, including: the electronic device obtains an offset distance corresponding to the pipeline type. The segment is offset according to the offset distance to obtain a candidate line segment parallel to the segment. In this way, by offsetting each segment of the road centerline with the road centerline as a reference, the actual spatial data of the pipeline on both sides of the road can be removed and replaced with lines parallel to the road centerline, namely the candidate line segments, thereby achieving a schematic display of the spatial location of the pipeline.
[0053] Furthermore, the electronic device obtains the offset distance corresponding to the pipeline type, including: the electronic device matches the offset distance corresponding to the pipeline type from a preset database. The preset database stores the correspondence between the pipeline type and the offset distance.
[0054] Furthermore, the electronic device offsets the segment according to the offset distance to obtain an alternative line segment parallel to the segment, including: the electronic device offsets the segment parallel to the left or right according to the offset distance to obtain an alternative line segment parallel to the segment.
[0055] Combine Figure 2 As shown, an embodiment of the present disclosure provides a method for displaying pipeline data, the method comprising:
[0056] In step S201, the electronic device obtains a road centerline set, which includes multiple road centerlines.
[0057] In step S202, the electronic device discretizes each road centerline to obtain a segment set corresponding to each road centerline. The segment set includes a plurality of segments of the road centerline.
[0058] In step S203, the electronic device obtains pipeline attribute information corresponding to each segment, including the type of pipeline and the ownership unit of the pipeline.
[0059] In step S204, the electronic device obtains an offset distance corresponding to the type of pipeline.
[0060] In step S205 , the electronic device offsets the segment according to the offset distance to obtain a candidate line segment parallel to the segment.
[0061] In step S206, the electronic device constructs a pipeline element set based on each candidate line segment. The pipeline element set includes pipeline elements corresponding to each candidate line segment; the pipeline elements include lines used to represent the spatial position of the candidate line segment and pipeline attribute information corresponding to the segment.
[0062] Step S207: The electronic device displays a pipeline element set.
[0063] The method for displaying pipeline data provided by the embodiment of the present disclosure uses the road centerline as a reference object and offsets each segment of the road centerline. This can remove the actual spatial data of pipelines on both sides of the road and replace the actual spatial location of the pipelines with parallel lines to the road centerline, i.e., alternative line segments. This ensures the privacy of the pipeline distribution while providing a rough overview of the spatial location of the pipelines. This allows users to display not only the attribute information of the pipeline data but also the spatial location of the pipeline when using the pipeline data. This reduces the limitations of pipeline data usage.
[0064] Furthermore, the electronic device constructs a pipeline element set according to each candidate line segment, including: the electronic device obtains pipeline elements corresponding to each candidate line segment, stores each pipeline element in a preset set, and obtains the pipeline element set.
[0065] Furthermore, the pipeline attribute information corresponding to the segment includes the type and ownership unit of the pipeline, and the electronic device obtains the pipeline element corresponding to the alternative line segment, including: the electronic device determines the pipeline attribute information corresponding to the segment and the line used to represent the spatial position of the alternative line segment as the pipeline element corresponding to the alternative line segment.
[0066] In some embodiments, the line used to represent the spatial position of the candidate line segment is the candidate line segment.
[0067] In some embodiments, the pipeline attribute information corresponding to the segment includes the type of pipeline and the ownership unit of the pipeline. The pipeline element set is a set of pipeline elements after all pipelines are summarized.
[0068] Furthermore, the electronic device displays a pipeline feature set, including: the electronic device converting the pipeline feature set using preset data conversion software to obtain preset data types. The preset data types are displayed using the preset data display software. The preset data conversion software is GIS (geographic information system) data conversion software. The preset data display software is GIS data display software. The preset data types include spatial data and attribute data.
[0069] Furthermore, the pipeline feature set includes pipeline attribute information and a line used to represent the spatial position of the candidate line segment. The electronic device uses preset data conversion software to convert the pipeline feature set to obtain preset type data, including: the electronic device uses the preset data conversion software to convert the line used to represent the spatial position of the candidate line segment into spatial data, and converts the pipeline attribute information into attribute data associated with the line used to represent the spatial position of the candidate line segment.
[0070] Combine Figure 3 As shown, an embodiment of the present disclosure provides a method for displaying pipeline data, the method comprising:
[0071] In step S301, the electronic device obtains a road centerline set, which includes multiple road centerlines.
[0072] In step S302, the electronic device discretizes each road centerline to obtain a segment set corresponding to each road centerline. The segment set includes a plurality of segments of the road centerline.
[0073] Step S303: The electronic device obtains pipeline attribute information corresponding to each segment, including the type of pipeline and the ownership unit of the pipeline.
[0074] In step S304 , the electronic device obtains candidate line segments corresponding to each segment according to the type of each pipeline.
[0075] In step S305 , the electronic device determines the pipeline attribute information corresponding to the segment and the line used to represent the spatial position of the candidate line segment as the pipeline element corresponding to the candidate line segment.
[0076] In step S306 , the electronic device stores each pipeline element into a preset set to obtain a pipeline element set.
[0077] Step S307: The electronic device displays a pipeline element set.
[0078] The method for displaying pipeline data provided by the disclosed embodiments uses alternative line segments to represent the actual spatial location of pipelines, ensuring the privacy of pipeline distribution while providing a general overview of the pipeline's spatial location. This allows users to display not only the pipeline data's attribute information but also its spatial location when using pipeline data, thus reducing the limitations of pipeline data usage.
[0079] Combine Figure 4 As shown, an embodiment of the present disclosure provides an apparatus 400 for displaying pipeline data, comprising: a first acquisition module 401, a discretization processing module 402, a second acquisition module 403, a third acquisition module 404, a construction module 405, and a display module 406. The first acquisition module 401 is configured to acquire a road centerline set, which includes multiple road centerlines. The road centerline set is then sent to the discretization processing module. The discretization processing module 402 is configured to receive the road centerline set from the first acquisition module, discretize each road centerline, and obtain a segment set corresponding to each road centerline. The segment set includes multiple road centerline segments. The segment set corresponding to each road centerline is then sent to the second acquisition module. The second acquisition module 403 is configured to receive the segment set corresponding to each road centerline from the discretization processing module, acquire pipeline attribute information corresponding to each segment, including pipeline type and ownership unit, and send the pipeline attribute information to the third acquisition module. The third acquisition module 404 is configured to receive the pipeline attribute information sent by the second acquisition module, and obtain the candidate line segments corresponding to each segment according to the type of each pipeline. The candidate line segments corresponding to each segment are sent to the construction module. The construction module 405 is configured to receive the candidate line segments corresponding to each segment sent by the third acquisition module. A pipeline element set is constructed based on each candidate line segment; the pipeline element set includes pipeline elements corresponding to each candidate line segment; the pipeline elements include lines used to represent the spatial position of the candidate line segment and pipeline attribute information corresponding to the segment. The pipeline element set is sent to the display module. The display module 406 is configured to receive the pipeline element set sent by the construction module and display the pipeline element set.
[0080] Using the apparatus for displaying pipeline data provided by the embodiments of the present disclosure, a first acquisition module acquires a set of road centerlines. A discretization processing module discretizes each road centerline to obtain a set of segments corresponding to each road centerline. A second acquisition module acquires pipeline attribute information corresponding to each segment, including the pipeline type and ownership unit. A third acquisition module acquires candidate line segments corresponding to each segment based on the pipeline type. A construction module constructs a pipeline feature set based on each candidate line segment. The pipeline feature set includes pipeline features corresponding to each candidate line segment; the pipeline features include lines representing the spatial location of the candidate line segment and pipeline attribute information corresponding to the segment. The display module displays the pipeline feature set. By using candidate line segments to represent the actual spatial location of the pipeline, the privacy of the pipeline distribution is ensured while providing a general overview of the pipeline's spatial location. This allows users to display not only the pipeline data's attribute information but also the pipeline's spatial location when using pipeline data, thus reducing the limitations of pipeline data usage.
[0081] Furthermore, the discrete processing module is configured to discretize the road centerline in the following manner to obtain a segment set corresponding to the road centerline: segment the road centerline according to preset discrete values to obtain a segment set.
[0082] Furthermore, the second acquisition module is configured to acquire pipeline attribute information corresponding to the segment by translating the segment to the sides by a preset distance to obtain a first parallel line and a second parallel line parallel to the segment. Connecting the first parallel line and the second parallel line to obtain a target area. Determining whether there is a pipeline within the target area that intersects with the spatial location of the target area. If there is a pipeline within the target area that intersects with the spatial location of the target area, acquiring the type and ownership unit of the pipeline. Determining the type and ownership unit of the pipeline as the pipeline attribute information corresponding to the segment.
[0083] Furthermore, the third acquisition module is configured to acquire candidate line segments corresponding to the segments according to the type of the pipeline by: acquiring an offset distance corresponding to the type of the pipeline, offsetting the segments according to the offset distance, and acquiring candidate line segments parallel to the segments.
[0084] Furthermore, the construction module is configured to construct a pipeline element set based on each candidate line segment in the following manner: obtaining pipeline elements corresponding to each candidate line segment, storing each pipeline element in a preset set, and obtaining a pipeline element set.
[0085] Furthermore, the display module is configured to display the pipeline element set in the following manner: using a preset data conversion software to perform data conversion on the pipeline element set to obtain preset type data, and using the preset data display software to display the preset type data.
[0086] Combine Figure 5 As shown, an embodiment of the present disclosure provides an apparatus 500 for displaying pipeline data, comprising a processor 504 and a memory 501. Optionally, the apparatus may further comprise a communication interface 502 and a bus 503. The processor 504, the communication interface 502, and the memory 501 may communicate with each other via the bus 503. The communication interface 502 may be used for information transmission. The processor 504 may call logic instructions in the memory 501 to execute the method for displaying pipeline data of the above embodiment.
[0087] The device for displaying pipeline data provided by the embodiment of the present disclosure is used to obtain a set of road centerlines. Discretize each road centerline to obtain a set of segments corresponding to each road centerline. Obtain pipeline attribute information corresponding to each segment; pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline. Obtain alternative line segments corresponding to each segment according to the type of each pipeline. Construct a pipeline element set based on each alternative line segment; the pipeline element set includes pipeline elements corresponding to each alternative line segment. Display the pipeline element set. In this way, by using alternative line segments to represent the actual spatial position of the pipeline, the privacy of the pipeline distribution is guaranteed while a rough display of the spatial position of the pipeline is achieved. When using pipeline data, users can not only display the attribute information of the pipeline data, but also display the spatial position of the pipeline. This reduces the limitations of the use of pipeline data.
[0088] In addition, the logic instructions in the memory 501 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0089] Memory 501, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. Processor 504 executes the program instructions / modules stored in memory 501 to execute functional applications and data processing, thereby implementing the methods for displaying pipeline data in the above-mentioned embodiments.
[0090] The memory 501 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 501 may include a high-speed random access memory and a non-volatile memory.
[0091] An embodiment of the present disclosure provides an electronic device, comprising: an electronic device body, and the above-mentioned device for displaying pipeline data. The device for displaying pipeline data is installed on the electronic device body. The installation relationship described here is not limited to placement inside the electronic device body, but also includes installation connections with other components of the electronic device body, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art will understand that the device for displaying pipeline data can be adapted to a feasible electronic device body, thereby realizing other feasible embodiments.
[0092] The electronic device provided by the embodiment of the present disclosure is used to obtain a set of road centerlines. Discretize each road centerline to obtain a set of segments corresponding to each road centerline. Obtain pipeline attribute information corresponding to each segment; pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline. Obtain alternative line segments corresponding to each segment according to the type of each pipeline. Construct a pipeline element set based on each alternative line segment; the pipeline element set includes pipeline elements corresponding to each alternative line segment. Display the pipeline element set. In this way, by using alternative line segments to represent the actual spatial position of the pipeline, the privacy of the pipeline distribution is guaranteed while a rough display of the spatial position of the pipeline is achieved. When using pipeline data, users can not only display the attribute information of the pipeline data, but also display the spatial position of the pipeline. This reduces the limitations of pipeline data usage.
[0093] Optionally, the electronic device includes a computer or a server, etc.
[0094] Combine Figure 6 As shown, in some embodiments, the electronic device is a computer. The computer includes a computer body 600 and the above-mentioned device 400 for displaying pipeline data. The device 400 for displaying pipeline data is installed in the computer body 600.
[0095] Combine Figure 7 As shown, in another embodiment, the electronic device is a computer. The computer includes a computer body 600 and the above-mentioned device 500 for displaying pipeline data. The device 500 for displaying pipeline data is installed in the computer body 600.
[0096] An embodiment of the present disclosure provides a storage medium storing program instructions, which, when run, execute the above-mentioned method for displaying pipeline data.
[0097] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, cause the computer to execute the above-mentioned method for displaying pipeline data.
[0098] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0099] The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code, or a transient storage medium.
[0100] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0101] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0102] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0103] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for displaying pipeline data, characterized in that: include: Acquire a road centerline set; the road centerline set includes multiple road centerlines; Discretizing each of the road center lines to obtain a segment set corresponding to each of the road center lines; the segment set includes a plurality of segments of the road center line; Obtaining pipeline attribute information corresponding to each of the segments; the pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline; Obtaining candidate line segments corresponding to each of the segments according to the type of each of the pipelines; Constructing a pipeline element set according to each candidate line segment; the pipeline element set includes pipeline elements corresponding to each candidate line segment; The pipeline elements include lines used to represent the spatial positions of candidate line segments and pipeline attribute information corresponding to the segments; Displaying the pipeline element set; Obtaining pipeline attribute information corresponding to the segment, including: translating the segment to both sides by a preset distance to obtain a first parallel line and a second parallel line parallel to the segment; connecting the first parallel line and the second parallel line to obtain a target area; determining whether there is a pipeline in the target area that intersects with the spatial position of the target area; if there is a pipeline in the target area that intersects with the spatial position of the target area, obtaining the type and ownership unit of the pipeline; and determining the type and ownership unit of the pipeline as the pipeline attribute information corresponding to the segment; Acquiring a candidate line segment corresponding to the segment according to the type of the pipeline includes: acquiring an offset distance corresponding to the type of the pipeline; and offsetting the segment according to the offset distance to obtain a candidate line segment parallel to the segment.
2. The method according to claim 1, characterized in that Discretizing the road centerline to obtain a segment set corresponding to the road centerline includes: The road centerline is segmented according to preset discrete values to obtain a segment set.
3. The method according to claim 1, characterized in that Constructing a pipeline feature set based on each of the candidate line segments includes: Obtaining pipeline elements corresponding to each of the candidate line segments; Each of the pipeline elements is stored in a preset set to obtain a pipeline element set.
4. The method according to claim 1, wherein Display the pipeline element set, including: Using preset data conversion software to convert the pipeline element set into data to obtain preset type data; The preset type of data is displayed using preset data display software.
5. A device for displaying pipeline data, characterized in that: include: A first acquisition module is configured to acquire a road centerline set; the road centerline set includes a plurality of road centerlines; a discretization processing module configured to discretize each of the road center lines to obtain a segment set corresponding to each of the road center lines; the segment set includes a plurality of segments of the road center line; The second acquisition module is configured to acquire pipeline attribute information corresponding to each of the segments; the pipeline attribute information includes the type of pipeline and the ownership unit of the pipeline; A third acquisition module is configured to acquire candidate line segments corresponding to each of the segments according to the type of each pipeline; A construction module is configured to construct a pipeline element set according to each candidate line segment; the pipeline element set includes pipeline elements corresponding to each candidate line segment; The pipeline elements include lines used to represent the spatial positions of candidate line segments and pipeline attribute information corresponding to the segments; A display module, configured to display the pipeline element set; The second acquisition module is configured to obtain the pipeline attribute information corresponding to the segment by: translating the segment to both sides by a preset distance to obtain a first parallel line and a second parallel line parallel to the segment; connecting the first parallel line and the second parallel line to obtain a target area; determining whether there is a pipeline in the target area that intersects with the spatial position of the target area; if there is a pipeline in the target area that intersects with the spatial position of the target area, obtaining the type and ownership unit of the pipeline; and determining the type and ownership unit of the pipeline as the pipeline attribute information corresponding to the segment; The third acquisition module is configured to obtain the candidate line segment corresponding to the segment according to the type of the pipeline in the following manner: obtaining an offset distance corresponding to the type of the pipeline; offsetting the segment according to the offset distance to obtain a candidate line segment parallel to the segment.
6. A device for displaying pipeline data, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for displaying pipeline data according to any one of claims 1 to 4 when running the program instructions.
7. An electronic device, characterized in that: include: Electronic device body; The device for displaying pipeline data according to claim 5 or 6 is installed in the electronic device body.
8. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for displaying pipeline data according to any one of claims 1 to 4 is executed.
Citation Information
Patent Citations
Road pipe network information query method and system
CN103279554A
Underground-pipeline engineering archive information retrieval method and device
CN108509632A