CN106250582A - A kind of method identifying underground utilities from noncanonical format underground utilities map file - Google Patents
A kind of method identifying underground utilities from noncanonical format underground utilities map file Download PDFInfo
- Publication number
- CN106250582A CN106250582A CN201610560720.2A CN201610560720A CN106250582A CN 106250582 A CN106250582 A CN 106250582A CN 201610560720 A CN201610560720 A CN 201610560720A CN 106250582 A CN106250582 A CN 106250582A
- Authority
- CN
- China
- Prior art keywords
- pel
- pipeline
- section
- underground utilities
- line
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/18—Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention discloses a kind of method identifying underground utilities from noncanonical format underground utilities map file, its AutoCAD version no requirement (NR) to underground utilities figure graphic file, it is possible to identify rapidly all kinds of pipeline, point pipeline, point pipeline mark, pipeline section mark.It includes step: noncanonical format buried pipe line chart graphic file is converted to DXF form from DWG form by (1);(2) various pels in DXF formatted file are loaded;(3) from the pel group read, identify pipeline, point pipeline, point pipeline mark, pipeline section mark.
Description
Technical field
The invention belongs to the technical field of power circuit design, more particularly to one from noncanonical format buried pipe line chart
The method identifying underground utilities in file.
Background technology
City Buried Pipeline includes water supply, draining, combustion gas, heating power, telecommunications, electric power, industry and the big class pipe of integrated pipe canal eight
Line, is the important component part of urban infrastructure, is the life line in city, is to ensure that current economic society is fast-developing with hundred
The important support of the normal productive life of surname.
The underground utilities map file of reference format typically uses AutoCAD*.DWG form Bedding storage, is first by pipeline
Kind is layered;The most every class pipeline presses pipeline section, point pipeline, structures, the storage of annotation hierarchical again.All of conduit line map figure pair
As all having the constituent encoder of unique (can not repeat), such as: point pipeline numbering, pipeline section coding etc..
Because underground pipeline management system and ownership are complicated, have in existing data and much do not meet reference format, cause these
The identification of noncanonical format buried pipe line chart graphic file is necessary.
Noncanonical format buried pipe line chart graphic file, mainly has a following characteristics:
The pipeline of the most various kinds is plotted in a figure layer;
2. the point pipeline of every kind of pipeline, pipeline section, annotation are plotted in a figure layer.
Summary of the invention
The technical problem to be solved in the present invention is: overcome the deficiencies in the prior art, it is provided that a kind of from noncanonical format underground
The method identifying underground utilities in conduit line map file, its AutoCAD version no requirement (NR) to underground utilities figure graphic file, it is possible to
Identify rapidly all kinds of pipeline, point pipeline, point pipeline mark, pipeline section mark.
The technical solution of the present invention is: this identification underground utilities from noncanonical format underground utilities map file
Method, it comprises the following steps:
(1) noncanonical format buried pipe line chart graphic file is converted to DXF form from DWG form;
(2) various pels in DXF formatted file are loaded;
(3) from the pel group read, identify pipeline, point pipeline, point pipeline mark, pipeline section mark.
The present invention uses the file of DXF form, and DXF is open universal data format, therefore to underground utilities figure figure
The AutoCAD version no requirement (NR) of file;The present invention is by loading various pels in DXF formatted file, from the pel group read
In identify pipeline, point pipeline, point pipeline mark, pipeline section mark, therefore, it is possible to identify rapidly all kinds of pipeline, point pipeline, pipe
Line point mark, pipeline section mark.
Accompanying drawing explanation
Fig. 1 is the flow process of the method identifying underground utilities from noncanonical format underground utilities map file according to the present invention
Figure.
Fig. 2 is underground utilities type code and color table.
Detailed description of the invention
As it is shown in figure 1, this method identifying underground utilities from noncanonical format underground utilities map file, it include with
Lower step:
(1) noncanonical format buried pipe line chart graphic file is converted to DXF form from DWG form;
(2) various pels in DXF formatted file are loaded;
(3) from the pel group read, identify pipeline, point pipeline, point pipeline mark, pipeline section mark.
The present invention uses the file of DXF form, and DXF is open universal data format, therefore to underground utilities figure figure
The AutoCAD version no requirement (NR) of file;The present invention is by loading various pels in DXF formatted file, from the pel group read
In identify pipeline, point pipeline, point pipeline mark, pipeline section mark, therefore, it is possible to identify rapidly all kinds of pipeline, point pipeline, pipe
Line point mark, pipeline section mark.
It addition, in described step (1), DXF form uses the * .DXF file of ASCII fromat 2004 version.
DXF is the CAD for carrying out cad data exchange between AutoCAD and other software of AutoDesk company exploitation
Document format data.DXF is the vector data form of a kind of opening, can be divided into two class ASCII fromat and binary formats;
ASCII has readable good feature but takes up room bigger;Binary format then occupies that space is little, reading speed is fast.
(* .DXF) file has following version R12,2000,2004,2007,2010,2013.
The present invention uses the * .DXF file of ASCII fromat 2004 version.
It addition, in described step (2), read all pels during loading from BLOCK and ENTITLES section.
(* .DXF) file substantially by code and relating value to forming.The code commonly referred to group bright value thereafter of code table
Type.Every section all starts with the group code 0 of heel character string SECTION, is followed by organizing code 2 and representing the character of this name section
String.Every section is all made up of the group code and value defining its element.Every section is all terminated with the group code 0 of heel character string ENDSEC.
The complete structure of (* .DXF) file is as follows:
1. HEADER section.Comprise the essential information of figure
2. CLASS section.Comprise the information of the type of application program definition
3. TABLES section.Comprise the definition of following symbol table: APPID, BLOCK_RECORD (block reference table),
DIMSTYLES, LAYER, LTYPE, STYLE, UCS, VIEW, VPORT (viewport allocation list).
4. BLOCKS section.Comprise block definition and the graph primitive constituting each piece of reference in figure.
5. ENTITIES section.Comprise the pel in figure, including block with reference to (insertion pel).
6. OBJECTS section.Comprise the nongraphical objects in figure.
7. THUMBNAILIMAGE section.Comprise the preview image data of figure.
It addition, described step (3) include following step by step:
(3.1) pel read is classified by pel color, identify pipeline kind;
(3.2) pipeline is identified according to primitive types;
(3.3) point pipeline, point pipeline mark are identified according to primitive types, pel distance;
(3.4) pipeline mark is identified according to primitive types, pel distance.
In * .DXF file, pel is also referred to as Drawing Object, has figure to represent, occur in DXF file BLOCK and
ENTITLES section, in two sections, the usage of pel is the same.
Buried pipe line chart is mainly made up of point, multi-section-line, word, 4 kinds of pels of segment.
1) first it is 4 kinds of pel definition data structures
It is divided into pel base attribute and all kinds of pel particular attribute.
Pel basic attribute data item: primitive types, pel place figure layer title, line style, pel color, live width
Point diagram metadata item: the coordinate X value of point, coordinate Y value, coordinate Z value
Multi-section-line primitive data item: vertical array, corner number, multi-section-line mark, acquiescence starting point width, default endpoint width
Degree
Word graph metadata item: snap point (coordinate X value, coordinate Y value, coordinate Z value), context string, text style name,
Word level to positive type, word vertically to positive type
Segment primitive data item: segment name, block type mark, basic point (coordinate X value, coordinate Y value, coordinate Z value)
2) 4 kinds of group codes corresponding to pel and value are analyzed
1. pel basic attribute data item: primitive types, pel place figure layer title, line style, figure common people's color, live width
Pel base attribute group code and the corresponding relation of value:
0, primitive types
8, place figure layer title
6, line style
62, pel color (CAD color number)
43, live width
2. point diagram metadata item: the coordinate X value of point, coordinate Y value, coordinate Z value
Point diagram tuple code and the corresponding relation of value
10, space coordinates X value
20, space coordinates Y value
30, space coordinates Z value
3. multi-section-line primitive data item: vertical array, corner number, multi-section-line mark, acquiescence starting point width, default endpoint
Width
Multi-section-line figure tuple code and the corresponding relation of value
10, coordinate X value
20, coordinate Y value
30, coordinate Z value
70, multi-section-line mark
40, give tacit consent to starting point width
41, default endpoint width
4. segment primitive data item: segment name, block type mark, basic point
Segment figure tuple code and the corresponding relation of value
2, block name
70, block type
10, basic point coordinate X value
20, basic point coordinate Y value
30, basic point coordinate Z value
5. word graph metadata item: position coordinates X value, coordinate Y value, coordinate Z value, context string, text style name, literary composition
Word level to positive type, word vertically to positive type
Word graph tuple code and the corresponding relation of value
10, basic point coordinate X value
20, basic point coordinate Y value
30, basic point coordinate Z value
1, string content
7, text style name
72, word level is to positive type
73, word is vertically to positive type
Further, in described step (3.1), in pel base attribute item, comprise Sort Code and CAD color number, according to
The all pels read are judged by corresponding relation successively, obtain the pel group supplying water relevant, the pel that draining is relevant
The pel group that group, the pel group that electric power is relevant, combustion gas are correlated with.
Further, in described step (3.2), from pel group, select the pel that primitive types is multi-section-line, definition
Every multi-section-line is a pipeline;Multi-section-line is filtered, the corner number of the multi-section-line primitive data item multistage less than 3
Line, filters out;Represent a Guan Bi multi-section-line when multi-section-line mark of multi-section-line primitive data item is equal to 1, filter out;Equal to 16
Time represent a three-dimensional polygonal mesh, filter out.
Further, described step (3.3) include following step by step:
(3.3.1) from pel group, find out segment pel, the basic point of segment primitive data item represent segment insertion position
Put a little, after setting a distance, calculate the segment less than setpoint distance near each summit of a multi-section-line successively;More than one
During segment, the segment that chosen distance is nearest;Above operation is repeated for every multi-section-line;
(3.3.2) finding out word pel from pel group, the snap point of word graph metadata item represents the location point of word,
After setting a distance, calculate the word pel less than setpoint distance near each summit of a multi-section-line successively;More than one
During word pel, the word pel that chosen distance is nearest;Above operation is repeated for every multi-section-line;
(3.3.3) by multi-section-line summit and segment pel, the binding of word pel, one with point pipeline information, point pipeline
The pipeline of mark just identifies and completes.
Further, in described step (3.4), from pel group, find out word pel, word graph metadata item right
Neat point represents the location point of word, after setting one distance, calculate successively multi-section-line every a bit of near less than setting away from
From word pel;During more than one word pel, the nearest word pel of chosen distance marks as pipeline section;For every multistage
Line repeats above operation.
Below in conjunction with embodiment, the present invention is described in detail.
1, noncanonical format buried pipe line chart graphic file (* .DWG) is converted to (* .DXF) form.
Start AutoCAD, open buried pipe line chart graphic file (* .DWG), save as AutoCAD2004/LT2004DXF
(* .DXF) file.
2, various pels in (* .DXF) file are loaded
Load (* .DXF) file, from BLOCK and ENTITLES section, read all pels.
3, from the pel group read, identify pipeline, point pipeline, point pipeline mark, pipeline section mark
1) pel read is classified by pel color, identify pipeline kind;
2) pipeline is identified according to primitive types;
3) point pipeline, point pipeline mark are identified according to primitive types, pel distance;
4) pipeline mark is identified according to primitive types, pel distance.
The above, be only presently preferred embodiments of the present invention, and the present invention not makees any pro forma restriction, every depends on
Any simple modification, equivalent variations and the modification made above example according to the technical spirit of the present invention, the most still belongs to the present invention
The protection domain of technical scheme.
Claims (8)
1. the method identifying underground utilities from noncanonical format underground utilities map file, it is characterised in that: it include with
Lower step:
(1) noncanonical format buried pipe line chart graphic file is converted to DXF form from DWG form;
(2) various pels in DXF formatted file are loaded;
(3) from the pel group read, identify pipeline, point pipeline, point pipeline mark, pipeline section mark.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 1, it is special
Levying and be: in described step (1), DXF form uses the * .DXF file of ASCII fromat 2004 version.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 2, it is special
Levy and be: in described step (2), from BLOCK and ENTITLES section, during loading, read all pels.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 3, it is special
Levy and be: described step (3) include following step by step:
(3.1) pel read is classified by pel color, identify pipeline kind;
(3.2) pipeline is identified according to primitive types;
(3.3) point pipeline, point pipeline mark are identified according to primitive types, pel distance;
(3.4) pipeline mark is identified according to primitive types, pel distance.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 4, it is special
Levy and be: in described step (3.1), in pel base attribute item, comprise Sort Code and CAD color number, according to corresponding relation, right
The all pels read judge successively, and the pel group that obtaining supplying water relevant, the pel group that draining is relevant, electric power are relevant
Pel group, the pel group that combustion gas is relevant.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 5, it is special
Levying and be: in described step (3.2), select the pel that primitive types is multi-section-line from pel group, defining every multi-section-line is
Article one, pipeline;Multi-section-line is filtered, the corner number of the multi-section-line primitive data item multi-section-line less than 3, filter out;Multistage
Represent a Guan Bi multi-section-line when multi-section-line mark of line chart metadata item is equal to 1, filter out;A three-dimensional is represented during equal to 16
Polygonal mesh, filters out.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 6, it is special
Levy and be: described step (3.3) include following step by step:
(3.3.1) from pel group, find out segment pel, the basic point of segment primitive data item represent segment on position point,
After setting a distance, calculate the segment less than setpoint distance near each summit of a multi-section-line successively;More than one segment
Time, the segment that chosen distance is nearest;Above operation is repeated for every multi-section-line;
(3.3.2) finding out word pel from pel group, the snap point of word graph metadata item represents the location point of word, sets
After one distance, calculate the word pel less than setpoint distance near each summit of a multi-section-line successively;More than one word
During pel, the word pel that chosen distance is nearest;Above operation is repeated for every multi-section-line;
(3.3.3) by multi-section-line summit and segment pel, the binding of word pel, one with point pipeline information, point pipeline mark
Pipeline just identify and complete.
The method identifying underground utilities from noncanonical format underground utilities map file the most according to claim 7, it is special
Levying and be: in described step (3.4), find out word pel from pel group, the snap point of word graph metadata item represents word
Location point, after setting a distance, calculate successively multi-section-line every a bit of near less than the word pel of setpoint distance;
During more than one word pel, the nearest word pel of chosen distance marks as pipeline section;Above behaviour is repeated for every multi-section-line
Make.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610560720.2A CN106250582A (en) | 2016-07-15 | 2016-07-15 | A kind of method identifying underground utilities from noncanonical format underground utilities map file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610560720.2A CN106250582A (en) | 2016-07-15 | 2016-07-15 | A kind of method identifying underground utilities from noncanonical format underground utilities map file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106250582A true CN106250582A (en) | 2016-12-21 |
Family
ID=57613257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610560720.2A Pending CN106250582A (en) | 2016-07-15 | 2016-07-15 | A kind of method identifying underground utilities from noncanonical format underground utilities map file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250582A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109255041A (en) * | 2018-08-22 | 2019-01-22 | 国网山西省电力公司 | A kind of intelligent identification Method of electric installation drawing |
CN110375744A (en) * | 2019-08-02 | 2019-10-25 | 金瓜子科技发展(北京)有限公司 | A kind of path processing method and device |
CN111611306A (en) * | 2020-05-27 | 2020-09-01 | 洛阳鸿业迪普信息技术有限公司 | Method and system for converting space data into dwg data |
CN112989527A (en) * | 2021-01-28 | 2021-06-18 | 上海淀山勘测有限公司 | Method for quickly mapping underground pipeline |
CN113065475A (en) * | 2021-04-08 | 2021-07-02 | 上海晓材科技有限公司 | Rapid and accurate CAD (computer aided design) legend identification method |
-
2016
- 2016-07-15 CN CN201610560720.2A patent/CN106250582A/en active Pending
Non-Patent Citations (3)
Title |
---|
李燕敏等: ""农村集体土地确权数据整理入库方法探讨"", 《测绘》 * |
王雷等: ""插件式地下管线数据生产辅助工具集的设计与实现"", 《城市勘测》 * |
赵雪莹等: ""AutoCAD与MapGIS数据转换方法探讨实践"", 《科技视界》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109255041A (en) * | 2018-08-22 | 2019-01-22 | 国网山西省电力公司 | A kind of intelligent identification Method of electric installation drawing |
CN109255041B (en) * | 2018-08-22 | 2021-07-09 | 国网山西省电力公司 | Intelligent identification method for electrical drawing |
CN110375744A (en) * | 2019-08-02 | 2019-10-25 | 金瓜子科技发展(北京)有限公司 | A kind of path processing method and device |
CN111611306A (en) * | 2020-05-27 | 2020-09-01 | 洛阳鸿业迪普信息技术有限公司 | Method and system for converting space data into dwg data |
CN111611306B (en) * | 2020-05-27 | 2023-05-09 | 洛阳鸿业迪普信息技术有限公司 | Method and system for converting space data into dwg data |
CN112989527A (en) * | 2021-01-28 | 2021-06-18 | 上海淀山勘测有限公司 | Method for quickly mapping underground pipeline |
CN113065475A (en) * | 2021-04-08 | 2021-07-02 | 上海晓材科技有限公司 | Rapid and accurate CAD (computer aided design) legend identification method |
CN113065475B (en) * | 2021-04-08 | 2023-11-07 | 上海晓材科技有限公司 | Rapid and accurate identification method for CAD (computer aided design) legend |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106250582A (en) | A kind of method identifying underground utilities from noncanonical format underground utilities map file | |
CN105279243B (en) | A kind of method and system of Conversion of Spatial Data | |
CN101124582B (en) | Automated derivative view rendering system | |
CN102509510B (en) | Interactive automatically updating method for legend content of electronic map | |
CN105975562A (en) | Method and apparatus for automatically generating budget table of engineering drawing | |
CN111191303A (en) | BIM data processing method and device, electronic equipment and computer storage medium | |
CN101630335A (en) | Method for comparing similarity and difference between drawings | |
CN102779175B (en) | Method for processing image in CAD (Computer Aided Design) format by using data in XML (Extensive Makeup Language) format | |
CN102157003A (en) | Automatic configuration method for annotation label of map under digital environment | |
CN105512235A (en) | GIS and AutoCAD data exchange method and intermediate file | |
CN106910140B (en) | SVG format-based power system wiring diagram network topology analysis method | |
CN106021718A (en) | Drawing method and device used for engineering drawing in CATIA (Computer-graphics Aided Three-dimensional Interactive Application) | |
CN101986672B (en) | Message processing method and device | |
CN114417486B (en) | Building design drawing importing method and device, electronic equipment and storage medium | |
CN102929999A (en) | Method and device for comparing similarities and differences of data | |
CN111143478A (en) | Two-three-dimensional file association method based on lightweight model and engineering object bit number | |
CN109344468A (en) | CAD diagram paper introduction method, system and computer readable storage medium | |
CN103441988B (en) | Across GIS platform data migration method | |
CN103593402A (en) | Grid equipment graphic element allocation method | |
CN112883240A (en) | Data lightweight BIM (building information modeling) building model management method and system based on digital twin | |
CN109190255B (en) | Three-dimensional reconstruction method for urban three-dimensional property space | |
CN107273485A (en) | A kind of data store organisation and database remapping method based on configurable data storehouse | |
CN104392035A (en) | Web-based three-dimensional city modeling method | |
CN116720480A (en) | Method and device for establishing unified identifier of city management element | |
CN115033936B (en) | Material model management method for SolidWorks system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161221 |