CN102169509B - Method for storing metro comprehensive pipeline data based on relational database and XML file - Google Patents
Method for storing metro comprehensive pipeline data based on relational database and XML file Download PDFInfo
- Publication number
- CN102169509B CN102169509B CN 201110142391 CN201110142391A CN102169509B CN 102169509 B CN102169509 B CN 102169509B CN 201110142391 CN201110142391 CN 201110142391 CN 201110142391 A CN201110142391 A CN 201110142391A CN 102169509 B CN102169509 B CN 102169509B
- Authority
- CN
- China
- Prior art keywords
- information
- pipeline
- coordinate
- laying
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明涉及基于关系数据库及XML文件的地铁综合管线数据储存方法。地铁综合管线信息种类繁多,空间拓扑关系复杂,总体信息量庞大,有效地存储已经提取完毕的地铁综合管线数据是对地铁综合管线进行有效管理的关键。本发明通过先分类后分层的存储形式对地铁综合管线信息进行存储,将运算量最大的管线空间信息由XML文件存储,业务逻辑处理最需要的管线属性数据由关系数据库存储,管线的属性信息与空间信息构成了管线三维数字化所需的数据。本发明使信息数据之间的关系更加明确;使得关系数据库与XML文件在数据存取方面发挥各自的优势,提高数据处理效率;快速的业务逻辑处理及空间数据的计算使得本方法适合用于地铁综合管线可视影像化管理模式的数据存储过程。
The invention relates to a method for storing subway comprehensive pipeline data based on a relational database and an XML file. There are many types of subway comprehensive pipeline information, complex spatial topological relations, and a large amount of overall information. Effectively storing the extracted subway comprehensive pipeline data is the key to effective management of subway comprehensive pipelines. The present invention stores subway comprehensive pipeline information in a storage form of classification first and then layering, stores the space information of the pipeline with the largest amount of computation in an XML file, stores the pipeline attribute data most needed for business logic processing in a relational database, and stores the attribute information of the pipeline and spatial information constitute the data required for 3D digitization of pipelines. The present invention makes the relationship between information data clearer; enables relational databases and XML files to play their respective advantages in data access and improves data processing efficiency; fast business logic processing and calculation of spatial data make this method suitable for subway The data storage process of the comprehensive pipeline visualization management mode.
Description
技术领域 technical field
本发明属于地铁综合管线信息数据管理技术领域,具体涉及一种基于关系数据库及XML文件的地铁综合管线数据储存方法。 The invention belongs to the technical field of subway comprehensive pipeline information data management, and in particular relates to a method for storing subway comprehensive pipeline data based on a relational database and an XML file.
背景技术 Background technique
随着我国城市轨道交通的发展,地铁建设进入高速发展期,地铁综合管线作为地铁设施的重要组成部分,是影响地铁正常运行的最重要设施之一,如何对其进行有效的管理是地铁建设单位与运营单位面临的重要问题。目前,地铁综合管线信息种类信息繁多,涉及通信管线、通风管线、消防、给水管线等数十种,以及上百种不同功能的管线,任一种类管线又包括多种不同规格或者型号的管线;空间拓扑关系复杂,地铁车站内由于结构的限制,综合管线的空间位置错综复杂,这种复杂的空间位置关系,给设计、施工、维护造成很大的不便;综合管线总体信息量庞大,不同位置的管线具有不同的空间信息,而且不同类型的关系,具有不同基本属性信息和业务信息,所以地铁综合管线系统具有海量数据,且对这些海量数据的管理是地铁综合管线最重要部分。 With the development of my country's urban rail transit, subway construction has entered a period of rapid development. As an important part of subway facilities, subway integrated pipelines are one of the most important facilities that affect the normal operation of subways. How to effectively manage them is a key issue for subway construction units. Important issues facing operating units. At present, there are many types of information on subway comprehensive pipelines, involving dozens of communication pipelines, ventilation pipelines, fire protection, water supply pipelines, etc., and hundreds of pipelines with different functions. Any type of pipeline includes pipelines of different specifications or models; The spatial topological relationship is complex. Due to structural constraints in the subway station, the spatial location of the integrated pipeline is intricate. This complex spatial location relationship causes great inconvenience to design, construction, and maintenance; Pipelines have different spatial information, and different types of relationships have different basic attribute information and business information. Therefore, the subway comprehensive pipeline system has massive data, and the management of these massive data is the most important part of the subway comprehensive pipeline.
如何有效地存储已经提取完毕的地铁综合管线数据是对地铁综合管线进行有效管理的关键,尤其是在三维可视化的综合管线管理模式中,管线数据的合理存储是该模式可行与实用的重要环节。 How to effectively store the extracted subway comprehensive pipeline data is the key to the effective management of the subway comprehensive pipeline, especially in the 3D visualized comprehensive pipeline management mode, the reasonable storage of pipeline data is an important link in the feasibility and practicality of this mode.
发明内容 Contents of the invention
本发明的目的是提供一种面向地铁综合管线数据三维数字化的基于关系数据库及XML文件的地铁综合管线数据储存方法,为地铁综合管线的可视影像管理提供管线信息的数据存储方案。 The purpose of the present invention is to provide a method for storing subway comprehensive pipeline data based on a relational database and XML files for three-dimensional digitization of subway comprehensive pipeline data, and to provide a data storage scheme for pipeline information for visual image management of subway comprehensive pipelines.
本发明所采用的技术方案是: The technical scheme adopted in the present invention is:
基于关系数据库及XML文件的地铁综合管线数据储存方法,其特征在于:由以下步骤实现: The method for storing subway comprehensive pipeline data based on relational database and XML file is characterized in that: it is realized by the following steps:
步骤一:将地铁综合管线信息分为管线类信息与管线段信息两层,类信息与段信息通过类ID关联;再将管线类信息与管线段信息划分为属性信息、空间信息与敷设信息,这三类信息通过段ID关联;管线类信息只包含属性信息,而段信息则不仅包含属性信息,还包括空间信息与敷设信息; Step 1: Divide the subway comprehensive pipeline information into two layers: pipeline information and pipeline section information, and the category information and section information are associated through the class ID; then divide the pipeline category information and pipeline section information into attribute information, spatial information and laying information, These three types of information are associated through the segment ID; the pipeline type information only includes attribute information, while the segment information not only includes attribute information, but also includes space information and laying information;
步骤二:结合关系数据库与XML文件的存储特点,属性信息由关系数据库存储,空间信息与敷设信息由XML文件存储; Step 2: Combining the storage characteristics of relational database and XML file, attribute information is stored by relational database, and spatial information and laying information are stored by XML file;
步骤三:为降低数据冗余度,在关系数据库中分别设计两个数据库表存储管线类信息与段信息中的属性信息; Step 3: In order to reduce data redundancy, two database tables are respectively designed in the relational database to store attribute information in pipeline class information and segment information;
步骤四:管线的空间信息通过坐标对来体现,用XML文件存储应于同一层中;为了将管线的空间信息与管线属性信息进行关联,设置管线段ID为空间信息的一个属性字段,与坐标字段处于同一层中; Step 4: The spatial information of the pipeline is reflected by the coordinate pair, which should be stored in the same layer with XML files; in order to associate the spatial information of the pipeline with the attribute information of the pipeline, set the pipeline segment ID as an attribute field of the spatial information, and coordinate fields are in the same layer;
步骤五:由于属于同一段管线的空间信息与敷设信息具有相同的段ID,故而将每条管线的空间信息与敷设信息存储在同一个XML文件中。 Step 5: Since the space information and the laying information belonging to the same pipeline segment have the same segment ID, the spatial information and the laying information of each pipeline are stored in the same XML file.
所述的步骤一中,类ID为管线类型唯一的ID号;段ID为管线段唯一的ID号。 In the first step, the class ID is the unique ID number of the pipeline type; the segment ID is the unique ID number of the pipeline segment.
所述的步骤一中,属性信息指管线作为具体的运行设备所具有的特性,包括:管线名称、管线类型、规格、用途说明、敷设单位、敷设日期、使用期限、备注信息; In the first step, the attribute information refers to the characteristics of the pipeline as a specific operating equipment, including: pipeline name, pipeline type, specification, purpose description, laying unit, laying date, service life, and remark information;
所述的空间信息指每段管线在确定的三维空间坐标系中的三维坐标对信息以及管线三维建模所需的数据,具体有管线起点X坐标、Y坐标及Z坐标,管线终点X坐标、Y坐标及Z坐标,方口管线端口的高与宽,圆口管线端口半径; The spatial information refers to the three-dimensional coordinate pair information of each section of the pipeline in the determined three-dimensional space coordinate system and the data required for three-dimensional modeling of the pipeline, specifically including the X coordinate, Y coordinate and Z coordinate of the starting point of the pipeline, the X coordinate of the end point of the pipeline, Y coordinate and Z coordinate, the height and width of the square pipe port, the radius of the round pipe port;
所述的敷设信息指管线在实际施工过程中的敷设信息,包括管线开始敷设日期与预期结束敷设日期,及实际当前实际敷设长度百分比。 The laying information refers to the laying information of the pipeline during the actual construction process, including the start date of pipeline laying and the expected end date of laying, and the actual current actual laying length percentage.
所述的步骤三中,管线类的属性信息为一类管线的共有信息,包括类型、材质、使用年限、维护周期; In the third step, the attribute information of the pipeline class is the common information of a category of pipelines, including type, material, service life, and maintenance cycle;
所述的步骤三中,管线段的属性信息为一段管线所特有的信息,包括管线名称、类型、敷设单位、敷设日期以及备注信息。 In the third step, the attribute information of the pipeline segment is information specific to a pipeline segment, including pipeline name, type, laying unit, laying date and remarks.
所述的步骤四中,空间信息不仅通过坐标对,即起始X坐标、起始Y坐标、起始Z坐标、终点X坐标、终点Y坐标以及终点Z坐标,这六个属性字段来体现,为可视影像建模所需,空间信息还包括了管线的表现形式信息,即方口管线端口的高与宽,圆口管线端口半径。
In the
本发明具有以下优点: The present invention has the following advantages:
本发明通过先分类后分层的存储形式对地铁综合管线信息进行存储,数据之间的关系明确,方便数据的存取;将运算量最大的管线空间信息由XML文件存储,业务逻辑处理最需要的管线属性数据由关系数据库存储,使得关系数据库与XML文件在数据存取方面发挥各自的优势,提高了总体的数据处理效率;管线的属性信息与空间信息构成了管线三维数字化所需的数据,并且快速的业务逻辑处理及空间数据的计算使得本方法适合用于地铁综合管线可视影像化管理模式的数据存储过程。 The present invention stores subway comprehensive pipeline information in a storage form of classification first and then layering, the relationship between the data is clear, and data access is convenient; the pipeline space information with the largest amount of computation is stored in an XML file, which is most needed for business logic processing The attribute data of the pipeline is stored by the relational database, which makes the relational database and XML file play their respective advantages in data access and improves the overall data processing efficiency; the attribute information and spatial information of the pipeline constitute the data required for the three-dimensional digitalization of the pipeline. Moreover, the fast business logic processing and the calculation of spatial data make this method suitable for the data storage process of the visual image management mode of the subway comprehensive pipeline.
附图说明 Description of drawings
图1为本发明的步骤流程图。 Fig. 1 is a flow chart of steps of the present invention.
图2为数据分层与分类模块图。 Figure 2 is a diagram of the data layering and classification module.
图3为数据分类存储模块图。 Figure 3 is a diagram of the data classification storage module.
图4为关系数据库类信息数据组织模式。 Figure 4 is the organizational model of relational database information data.
图5为关系数据库段信息数据组织模式。 Fig. 5 is a relational database segment information data organization mode.
图6为XML文件结构示意图。 Fig. 6 is a schematic diagram of the XML file structure.
图7为空间信息数据结构图及示意图。 FIG. 7 is a structural diagram and schematic diagram of spatial information data.
图8为敷设信息数据结构图及示意图。 Fig. 8 is a structure diagram and a schematic diagram of laying information data.
图9为实施例综合管线实例图。 Fig. 9 is an example diagram of the comprehensive pipeline of the embodiment.
图10为实施例综合管线类信息数据库实例图。 Fig. 10 is an example diagram of the integrated pipeline information database of the embodiment.
图11为实施例水管段信息数据库表实例图。 Fig. 11 is an example diagram of the water pipe segment information database table in the embodiment.
图12为实施例新风管空间信息与敷设信息存储结构实例图。 Fig. 12 is an example diagram of the storage structure of the fresh air duct space information and laying information of the embodiment.
具体实施方式 Detailed ways
下面结合具体实施方式对本发明进行详细的说明。 The present invention will be described in detail below in combination with specific embodiments.
关系型数据库是目前非常成熟的数据存储工具,地铁综合管线空间信息、属性信息和业务信息等基本数据采用关系型数据库系统具有显著优点。操作方便,通过应用程序和后台基本数据连接,方便用户的对数据的调用和操作;易于维护,关系模型的完整性约束,包括实体完整性、参照完整性和用户自定义完整性,大大降低了数据的冗余性和数据的不一致性;便于数据访问,提供诸如存储过程、视图及触发器等对象,方便用户对数据的访问,而且数据为随机存取,不仅存取效率高,而且灵活性较强;更安全,通过权限的分配及加密措施使数据库有着较高的安全性。 Relational database is a very mature data storage tool at present. The use of relational database system for basic data such as spatial information, attribute information and business information of subway comprehensive pipelines has significant advantages. Easy to operate, through the connection between the application program and the background basic data, it is convenient for users to call and operate the data; easy to maintain, the integrity constraints of the relational model, including entity integrity, referential integrity and user-defined integrity, greatly reduce the Data redundancy and data inconsistency; facilitate data access, provide objects such as stored procedures, views, and triggers, to facilitate user access to data, and data is random access, not only high access efficiency, but also flexible Stronger; more secure, the database has a higher security through the distribution of permissions and encryption measures.
但关系数据库的一个缺点是数据存取过程较慢,在海量的计算过程中会严重影响计算速度。然而XML文件具有快速存取的特点,同时采用XML文件的数据存取方式,可以弥补关系数据库这一缺点。 However, one disadvantage of relational databases is that the data access process is slow, which will seriously affect the calculation speed in the massive calculation process. However, the XML file has the characteristics of fast access, and the data access method of the XML file can make up for the shortcoming of the relational database.
XML是一种可扩展标记语言,用来传输和存储数据,它具有层次明确的树状结构,并且具有良好的格式,便于简析,适合处理关系简单的数据;其数据以纯文本格式进行存储,是一种独立于软件和硬件的数据存储方式,可以跨平台交换数据,并被不同的程序存取;其数据读取十分便捷,还具有庞大存储量,因XML为纯文本文件,可以用来存储海量数据,并且使用标记描述数据,可对数据进行方便快捷的读取;但XML文本文件是顺序查找的,不易进行业务逻辑处理,必须把前面的所有节点都搜索一遍才能找到所取得节点。 XML is an extensible markup language used to transmit and store data. It has a clear hierarchical tree structure and a good format, which is easy to analyze and is suitable for processing data with simple relationships; its data is stored in plain text format. It is a data storage method independent of software and hardware. It can exchange data across platforms and be accessed by different programs. Its data reading is very convenient and has a large storage capacity. Because XML is a plain text file, it can be used to Store massive data, and use tags to describe the data, which can be read conveniently and quickly; however, XML text files are searched sequentially, which is not easy to process business logic. You must search all the previous nodes to find the obtained node.
结合地铁综合管线三维数字化管理技术的快速发展的背景以及关系数据库与XML文件的特点,根据地铁综合管线的具体管理过程的需要,本发明提出了基于关系数据库及XML文件的地铁综合管线数据储存方法。 Combined with the background of the rapid development of the three-dimensional digital management technology of subway comprehensive pipelines and the characteristics of relational databases and XML files, according to the needs of the specific management process of subway comprehensive pipelines, the present invention proposes a method for storing subway comprehensive pipeline data based on relational databases and XML files .
如图1所示,本发明所涉及的基于关系数据库及XML文件的地铁综合管线数据储存方法的具体步骤为: As shown in Figure 1, the specific steps of the subway comprehensive pipeline data storage method based on relational database and XML file involved in the present invention are:
步骤一:数据分层与分类。 Step 1: Data stratification and classification.
如图2所示,将地铁综合管线信息分为管线类信息与管线段信息两层,类信息与段信息通过类ID关联,类ID为管线类型唯一的ID号。通过段信息中的类ID,某一段管线可以与所属类型管线的信息关联起来。 As shown in Figure 2, the comprehensive subway pipeline information is divided into two layers: pipeline class information and pipeline segment information. The class information and segment information are associated through the class ID, which is the unique ID number of the pipeline type. Through the class ID in the segment information, a segment of pipeline can be associated with the information of the type of pipeline it belongs to.
在分层的基础上,管线类信息与管线段信息又被划分为三大类信息:属性信息、空间信息与敷设信息。属性信息指管线作为具体的运行设备所具有的特性,包括:管线名称、管线类型、规格、用途说明、敷设单位、敷设日期、使用期限、备注信息等。空间信息指每段管线在确定的三维空间坐标系中的三维坐标对信息以及管线三维建模所需的数据,具体有管线起点X坐标、Y坐标及Z坐标,管线终点X坐标、Y坐标及Z坐标,方口管线端口的高与宽,圆口管线端口半径等。敷设信息指管线在实际施工过程中的敷设信息,包括管线开始敷设日期与预期结束敷设日期,及实际当前实际敷设长度百分比。 On the basis of layering, pipeline information and pipeline segment information are divided into three categories of information: attribute information, spatial information and laying information. Attribute information refers to the characteristics of the pipeline as a specific operating equipment, including: pipeline name, pipeline type, specification, purpose description, laying unit, laying date, service life, remark information, etc. Spatial information refers to the three-dimensional coordinate pair information of each section of the pipeline in the determined three-dimensional space coordinate system and the data required for three-dimensional modeling of the pipeline, specifically including the X coordinate, Y coordinate and Z coordinate of the starting point of the pipeline, the X coordinate, Y coordinate and Z coordinate, the height and width of the square pipe port, the radius of the round pipe port, etc. The laying information refers to the laying information of the pipeline during the actual construction process, including the start date of pipeline laying and the expected end date of laying, and the actual current actual laying length percentage.
管线类信息只包含属性信息,而段信息则不仅包含属性信息,还包括空间信息与敷设信息。这三类信息通过段ID关联,段ID为管线段唯一的ID号。通过段ID将某段管线的属性信息、空间信息以及敷设信息关联在一起。 Pipeline information only includes attribute information, while segment information includes not only attribute information, but also space information and laying information. These three types of information are associated through the segment ID, which is the unique ID number of the pipeline segment. The attribute information, space information and laying information of a certain pipeline are associated together through the section ID.
步骤二:数据分类存储。 Step 2: Data classification storage.
如图3所示,综合管线信息通过分层与分类后形成三大类数据,即属性信息、空间信息与敷设信息,根据不同类型信息的特点,并结合关系数据库与XML文件的存储特点,属性信息由关系数据库存储,空间信息与敷设信息由XML文件存储。 As shown in Figure 3, the comprehensive pipeline information forms three types of data after layering and classification, namely attribute information, spatial information and laying information. According to the characteristics of different types of information, combined with the storage characteristics of relational database and XML files, attribute Information is stored by relational database, and spatial information and laying information are stored by XML files.
步骤三:对属性信息进行数据组织。 Step 3: Carry out data organization on attribute information.
管线类信息与段信息均含有属性信息,属性信息由关系数据库存储。管线类的属性信息为一类管线的共有信息,包括类型、材质、使用年限、维护周期等;管线段的属性信息为一段管线所特有的信息,包括管线名称、类型、敷设单位、敷设日期以及备注信息等。为降低数据冗余度,在关系数据库中分别设计两个数据库表存储管线类信息与段信息中的属性信息。 Both the pipeline class information and segment information contain attribute information, and the attribute information is stored by the relational database. The attribute information of the pipeline class is the common information of a type of pipeline, including type, material, service life, maintenance cycle, etc.; the attribute information of the pipeline segment is the unique information of a pipeline, including the pipeline name, type, laying unit, laying date and Remarks, etc. In order to reduce data redundancy, two database tables are designed in the relational database to store attribute information in pipeline class information and segment information.
类信息中的属性信息的数据组织模式如图4所示,其中设置整形的类ID为主键,用来唯一标识某一类管线记录。预留字段为上述之外的类信息属性所留,用户可以根据实际需要决定是否留取。 The data organization mode of the attribute information in the class information is shown in Figure 4, where the plastic class ID is set as the primary key, which is used to uniquely identify a certain type of pipeline record. Reserved fields are reserved for information attributes other than those mentioned above, and users can decide whether to reserve them or not according to actual needs.
管线段是地铁综合管线管理的主要对象,涉及大量的业务逻辑,同时也是根据地铁综合管线数据信息进行可视影像建模和可视影像管理的主要数据对象,涉及海量的数字化信息,所以管线段信息的组织是地铁综合管线数据存储的重点。本发明所提出的方法中对管线段信息中的属性信息的组织模式如图5所示,其中设置整形的段ID为主键,用来唯一标识某一段管线记录,管线类ID设置为外键,方便管线段信息与类信息的关联,预留字段同样为上述以外的段信息属性所留,用户可以根据实际需要决定是否留取。 The pipeline section is the main object of subway comprehensive pipeline management, which involves a large amount of business logic. It is also the main data object for visual image modeling and visual image management based on the subway comprehensive pipeline data information. It involves massive digital information, so the pipeline section The organization of information is the focus of the data storage of the subway comprehensive pipeline. In the method proposed by the present invention, the organizational mode of the attribute information in the pipeline segment information is as shown in Figure 5, wherein the segment ID of shaping is set as the primary key, which is used to uniquely identify a certain segment of pipeline records, and the pipeline class ID is set as a foreign key. To facilitate the association of pipeline segment information and class information, the reserved fields are also reserved for segment information attributes other than the above, and users can decide whether to reserve or not according to actual needs.
步骤四:对空间信息进行数据组织。 Step 4: Data organization of spatial information.
XML文件的层次结构如图6所示。管线的空间信息通过一对坐标对来体现,该坐标对包括起始X坐标、起始Y坐标、起始Z坐标、终点X坐标、终点Y坐标以及终点Z坐标,这六个属性字段为并列关系,用XML文件存储应于同一层中。在可视影像建模时不仅关注管线的空间信息同时也关注管线的表现形式,所以空间信息中除六个空间坐标属性字段外还包括绘制管线模型的信息,如方管端口的高和宽,或者圆管端口的半径。 The hierarchical structure of the XML file is shown in Figure 6. The spatial information of the pipeline is reflected by a pair of coordinates. The coordinate pair includes the start X coordinate, start Y coordinate, start Z coordinate, end point X coordinate, end point Y coordinate, and end point Z coordinate. These six attribute fields are parallel Relationships, stored in XML files should be in the same layer. In visual image modeling, not only attention is paid to the spatial information of the pipeline, but also the form of the pipeline. Therefore, in addition to the six spatial coordinate attribute fields, the spatial information also includes the information for drawing the pipeline model, such as the height and width of the square pipe port, Or the radius of the round pipe port.
为了将管线的空间信息与管线属性信息进行关联,设置管线段ID为空间信息的一个属性字段,与坐标字段等处于同一层中。不同端口的管线空间信息的存储结构如图7所示。 In order to associate the spatial information of the pipeline with the attribute information of the pipeline, the pipeline segment ID is set as an attribute field of the spatial information, which is in the same layer as the coordinate field. The storage structure of the pipeline space information of different ports is shown in FIG. 7 .
步骤五:对敷设信息进行数据组织。 Step 5: Carry out data organization for laying information.
在敷设期间的管线除了具有已敷设完毕的管线所有的信息外还具有其特定的敷设信息,敷设信息为处于敷设期间的管线所特有的属性。处于敷设期的管线也是地铁综合管线管理中重要的一部分,故而本发明特地为敷设期间的管线的敷设信息提出了存储方案。 The pipeline during the laying period has its specific laying information in addition to all the information of the pipeline that has been laid, and the laying information is the unique attribute of the pipeline during the laying period. The pipeline in the laying period is also an important part of the comprehensive pipeline management of the subway, so the present invention proposes a storage scheme for the laying information of the pipeline during the laying period.
如前所述,敷设信息由XML文件存储。敷设信息主要有起始敷设日期、终止敷设日期以及实际敷设百分比等组成,用户可根据实际需要增加或者修改这些属性字段。具体存储结构如图8所示。由于属于同一段管线的空间信息与敷设信息具有相同的段ID,故而为了读取方便可将每条管线的空间信息与敷设信息存储在同一个XML文件中。 As mentioned earlier, laying information is stored by XML files. The laying information mainly consists of the start laying date, the ending laying date, and the actual laying percentage, etc. Users can add or modify these attribute fields according to actual needs. The specific storage structure is shown in Figure 8. Since the spatial information and the laying information belonging to the same pipeline segment have the same segment ID, the spatial information and the laying information of each pipeline can be stored in the same XML file for the convenience of reading.
以下为本发明所涉及的基于关系数据库及XML文件的地铁综合管线数据储存方法的具体实施例: The following is the specific embodiment of the subway comprehensive pipeline data storage method based on relational database and XML file involved in the present invention:
以西安市地铁二号线市图书馆站中风管和水管两类综合管线为例说明,风管仅含有新风管和排风管两种管线,水管仅有排水管一种管线,其中新风管、排风管及排水管均由两段构成,且新风管一段已敷设完毕,另一端还在敷设期,其敷设百分比为50%。数据存储过程如下: Taking the two integrated pipelines of wind pipe and water pipe in the library station of Xi’an Metro Line 2 as an example, the air pipe only includes two kinds of pipelines: fresh air pipe and exhaust pipe, and the water pipe only has one kind of pipeline, drain pipe. Among them, the new The air pipe, exhaust pipe and drain pipe are all composed of two sections, and one section of the new air pipe has been laid, and the other end is still in the laying period, and the laying percentage is 50%. The data storage process is as follows:
步骤一:首先对市图书馆站进行实地考察,并结合AutoCAD图纸统计出该站中所有的风管和水管这两类综合管线类型以及每类管线下的所含管线,及每种管线的拓扑情况,如图9所示。 Step 1: First, conduct an on-site inspection of the Municipal Library Station, and combine the AutoCAD drawings to count all the two types of integrated pipelines in the station, including air ducts and water pipes, as well as the pipelines contained in each type of pipeline, and the topology of each pipeline situation, as shown in Figure 9.
步骤二:根据图2,对风管和水管两类综合管线的信息分层,管线类信息层包括风管和水管这两类综合管线的类信息,而管线段信息包括新风管、排风管、排水管的各段信息。在分层的基础上,将所有数据分为属性信息、空间信息与敷设信息。 Step 2: According to Figure 2, layer the information of the two types of integrated pipelines, air ducts and water ducts. Section information of pipes and drain pipes. On the basis of layering, all data are divided into attribute information, spatial information and laying information.
步骤三:将风管与水管的类信息存储在一个关系数据库表中,此表只用了存储管线类信息,如图10所示。风管中的排风管、新风管、水管中的排水管属性信息存储另一个关系数据库表中,此表只用来存储各种管线的基本属性信息,如图11所示。 Step 3: Store the class information of air ducts and water pipes in a relational database table, which is only used to store pipeline class information, as shown in Figure 10. The attribute information of the exhaust pipe in the air duct, the fresh air pipe, and the drainage pipe in the water pipe is stored in another relational database table. This table is only used to store the basic attribute information of various pipelines, as shown in Figure 11.
步骤四:将新风管、排风管、排水管的空间信息与敷设信息分别存储在3个XML文件中,每个XML文件中存储了该对应管线中的所有的段空间信息与敷设信息。新风管的XML文件中空间信息与敷设信息结构如图12所示。 Step 4: Store the space information and laying information of the fresh air pipe, the exhaust pipe, and the drain pipe in three XML files respectively, and each XML file stores all the segment space information and laying information in the corresponding pipeline. The spatial information and laying information structure in the XML file of the new air duct is shown in Figure 12.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110142391 CN102169509B (en) | 2011-05-30 | 2011-05-30 | Method for storing metro comprehensive pipeline data based on relational database and XML file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110142391 CN102169509B (en) | 2011-05-30 | 2011-05-30 | Method for storing metro comprehensive pipeline data based on relational database and XML file |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102169509A CN102169509A (en) | 2011-08-31 |
| CN102169509B true CN102169509B (en) | 2012-07-25 |
Family
ID=44490671
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201110142391 Active CN102169509B (en) | 2011-05-30 | 2011-05-30 | Method for storing metro comprehensive pipeline data based on relational database and XML file |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102169509B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104657443A (en) * | 2015-02-04 | 2015-05-27 | 国家电网公司 | XML (extensive markup language) native database-based hybrid access method for power network data model |
| CN106600468A (en) * | 2015-10-20 | 2017-04-26 | 星际空间(天津)科技发展有限公司 | Geographic-information-based comprehensive pipeline data two-dimensional and three-dimensional integrated organization method |
| CN110782973B (en) * | 2019-10-29 | 2022-11-11 | 京东方科技集团股份有限公司 | Medical image information grading storage method and device, computer equipment and medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1098214A (en) * | 1993-07-29 | 1995-02-01 | 中国石化第四建设公司 | Computer aided design system for drawing three-dimensional process piping diagram |
| CN1566989A (en) * | 2003-07-08 | 2005-01-19 | 上海非开挖信息工程技术有限公司 | Underground pipe network omnibearing visualized information management system and its establishing method |
| CN101008947A (en) * | 2006-01-26 | 2007-08-01 | 中国电信股份有限公司 | Map assistance design method and system used in telecommunication line resource management |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7472112B2 (en) * | 2003-06-23 | 2008-12-30 | Microsoft Corporation | Distributed query engine pipeline method and system |
-
2011
- 2011-05-30 CN CN 201110142391 patent/CN102169509B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1098214A (en) * | 1993-07-29 | 1995-02-01 | 中国石化第四建设公司 | Computer aided design system for drawing three-dimensional process piping diagram |
| CN1566989A (en) * | 2003-07-08 | 2005-01-19 | 上海非开挖信息工程技术有限公司 | Underground pipe network omnibearing visualized information management system and its establishing method |
| CN101008947A (en) * | 2006-01-26 | 2007-08-01 | 中国电信股份有限公司 | Map assistance design method and system used in telecommunication line resource management |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102169509A (en) | 2011-08-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101916299B (en) | Three-dimensional spatial data storage and management method based on file system | |
| CN103955789B (en) | A Power Supply Path Analysis Method Based on Integrated Model for Dispatch | |
| CN102760255B (en) | Underground electric network data management and Electric Power Network Planning system and management method | |
| CN111353202B (en) | Partitioning method for underground pipe network general investigation in municipal administration | |
| CN102184299B (en) | Model conversion method and system from CAD (Computer Aided Design) system to three-dimensional checking system | |
| CN102156776B (en) | Method for establishing cable bridge network by using relational database | |
| CN105389367B (en) | The multilevel distributed storage method of grid graph multi-time Scales based on Mongo databases | |
| CN103049482B (en) | The implementation method that in a kind of distributed heterogeneous system, data fusion stores | |
| CN107194533B (en) | Power distribution network full information model construction method and system | |
| CN109190174B (en) | Method and system for establishing pipe network data model | |
| CN102799714A (en) | Method for extracting data of integrated pipeline of metro based on Auto computer-aided design (CAD) drawing | |
| CN106951453A (en) | A kind of geographical entity coding method of quick renewal and data sharing | |
| CN102169509B (en) | Method for storing metro comprehensive pipeline data based on relational database and XML file | |
| CN110956692A (en) | A method based on power supply reliability data analysis combined with 3D scene visualization | |
| CN115238099A (en) | A method for constructing an industrial Internet data middle platform for equipment in the energy industry | |
| CN103714124B (en) | Ultra-large-scale low-voltage data processing method | |
| CN103106306A (en) | Cooling tower water distribution system modeling method | |
| CN102508971A (en) | Method for establishing product function model in concept design stage | |
| Barbato | GIS-BIM interoperability for regeneration of transurban areas | |
| CN104318501A (en) | Pipeline network topological relation establishment method, device and system | |
| CN105373661A (en) | Dynamic programming algorithm-based grid theme graph layout method | |
| CN201820263U (en) | Field pipeline data acquisition and update system based on topological relation | |
| Bakalov et al. | A network model for the utility domain | |
| CN115577421A (en) | BIM-based outdoor integrated pipeline collaborative design method and system for metro vehicle base | |
| CN116010333A (en) | A BIM model-based design document and design disclosure information association method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |