KR19980068226A - How to convert DXF data format to KXF data format - Google Patents
How to convert DXF data format to KXF data format Download PDFInfo
- Publication number
- KR19980068226A KR19980068226A KR1019970004737A KR19970004737A KR19980068226A KR 19980068226 A KR19980068226 A KR 19980068226A KR 1019970004737 A KR1019970004737 A KR 1019970004737A KR 19970004737 A KR19970004737 A KR 19970004737A KR 19980068226 A KR19980068226 A KR 19980068226A
- Authority
- KR
- South Korea
- Prior art keywords
- kxf
- dxf
- data
- data format
- block
- Prior art date
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
본 발명은 지리정보시스템(Geographic Information System ; GIS)용 데이타 변환 방법에 관한 것으로, 특히 중형급 컴퓨터 환경하에서 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환하는 방법에 관한 것이다.The present invention relates to a data conversion method for a Geographic Information System (GIS), and more particularly, to a method for converting a DXF data format to a KXF data format in a medium computer environment.
본 발명은 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환하는 방법에 있어서, 변환된 DXF 파일명과 생성될 KXF 데이타의 파일명을 입력받아 초기환경을 설정하는 단계; DXF 파일의 헤더 부분의 매개변수들 값과 테이블들을 추출하여 주기억장치에 올리는 단계; DXF 파일의 블록 부분의 블록 정보들을 추출하여 주기억장치에 올리는 단계; DXF 파일의 도면요소들을 추출하여 주기억 장치상에서 요소를 분류하는 단계; 상기 추출된 도면요소의 레이어를 주기억장치에 있는 레이어 테이블을 참조하여 KXF 데이타 타입에 매칭시키는 단계; 상기 추출된 도면요소의 색상, 글자크기 등의 특성들을 KXF 데이타 베이스의 시스템 테이블과 매칭시키는 단계; 추출된 도면요소를 변환함수를 이용하여 KXF 데이타 베이스의 동일한 내용 및 특성을 갖는 데이타로 변환하는 단계; 상기 변환된 데이타를 KXF 데이타 파일에 추가시키는 단계; 및, DXF 파일의 도면요소가 존재하는지 검사하여, 존재하면 상기 도면요소 추출 단계로 분기하여 그 이후 과정을 반복 수행하고, 존재하지 않는 경우 작업을 종료하는 단계를 포함하는 것을 특징으로 한다.The present invention provides a method of converting a DXF data format to a KXF data format, comprising: setting an initial environment by receiving a converted DXF file name and a file name of a generated KXF data; Extracting parameter values and tables of the header portion of the DXF file and loading them into the main memory; Extracting block information of the block portion of the DXF file and uploading the block information to the main memory; Extracting elements of the DXF file to classify the elements on the main memory device; Matching the extracted layer of the element to a KXF data type by referring to a layer table in the main memory; Matching characteristics of colors, font sizes, etc. of the extracted drawing elements with system tables of a KXF database; Converting the extracted entities into data having the same contents and characteristics of the KXF database using a conversion function; Adding the converted data to a KXF data file; And checking whether there is an element of a DXF file, if present, branching to the element extraction step and repeating the process thereafter, and terminating the task if it does not exist.
Description
본 발명은 지리정보시스템(Geographic Information System ; GIS)용 데이타 변환 방법에 관한 것으로, 특히 중형급 컴퓨터 환경하에서 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환하는 방법에 관한 것이다.The present invention relates to a data conversion method for a Geographic Information System (GIS), and more particularly, to a method for converting a DXF data format to a KXF data format in a medium computer environment.
종래에는 DXF(Data eXchange Format) 데이타 포맷이 KXF(Korea Standard eXchange Format) 데이타 포맷으로 변환되지 않아 CAD 시스템에서 구축된 지리정보를 국가 표준 GIS 데이타 포맷으로 결정된 KXF를 지원하는 지리정보 시스템에서 사용할 수 없다는 점에서 많은 문제점이 있었다.In the related art, the DXF (Data eXchange Format) data format has not been converted to the KXF (Korea Standard eXchange Format) data format, so that geographic information constructed from CAD systems cannot be used in geographic information systems that support KXF determined by the national standard GIS data format. There were many issues in that regard.
본 발명은 상기와 같은 문제점을 해결하기 위하여 DXF 데이타 포맷 파일을 읽어서 매개변수 값 및 테이블 등의 정의 내용을 추출하고 블록 파일을 생성하며, DXF 데이타 포맷 파일의 그래픽 요소들을 추출된 값 및 테이블 정보를 이용하여 동일한 내용을 갖는 KXF 데이타 포맷으로 변환하는 것을 과제로 한다.In order to solve the above problems, the present invention reads a DXF data format file, extracts definition values such as parameter values and tables, generates a block file, and extracts graphic elements of the DXF data format file from the extracted values and table information. The object of this invention is to convert to the KXF data format having the same contents.
도 1 은 본 발명에 적용되는 하드웨어 구성도,1 is a hardware configuration diagram applied to the present invention,
도 2 는 DXF 데이타 포맷 구성도,2 is a configuration diagram of a DXF data format;
도 3 은 KXF 데이타 포맷 구성도,3 is a configuration diagram of a KXF data format;
도 4 는 본 발명에 따른 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환시키는 과정을 도시한 도면이다.4 is a diagram illustrating a process of converting a DXF data format to a KXF data format according to the present invention.
* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings
1 : 중앙처리장치2 : 주기억장치1: central processing unit 2: main memory unit
3 : 입출력 제어기4 : 보조기억장치3: input / output controller 4: auxiliary memory device
5 : 입출력장치5: input / output device
본 발명은 상기와 같은 목적을 달성하기 위하여 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환하는 방법에 있어서, 변환된 DXF 파일명과 생성될 KXF 데이타의 파일명을 입력받아 초기환경을 설정하는 단계; DXF 파일의 헤더 부분의 매개변수들 값과 레이어 테이블, 라인 테이블, 스타일 테이블 등을 추출하여 주기억장치에 올리는 매개변수와 테이블 추출 단계; DXF 파일의 블록 부분의 블록 정보들을 추출하여 주기억장치에 올리는 블록 추출 단계; DXF 파일의 도면요소들을 추출하여 주기억 장치상에서 요소를 분류하는 도면요소 추출 단계; 상기 추출된 도면요소의 레이어를 주기억장치에 있는 레이어 테이블을 참조하여 KXF 데이타 타입에 매칭시키는 레이어 처리 단계; 상기 추출된 도면요소의 색상, 글자크기 등의 특성들을 주기억장치에 있는 라인 테이블과 스타일 테이블 등을 참조하여 KXF 데이타 베이스의 시스템 테이블과 매칭시키는 테이블 처리 단계; 추출된 도면요소를 변환함수를 이용하여 KXF 데이타 베이스의 동일한 내용 및 특성을 갖는 데이타로 변환하는 도면 요소 변환 단계; 상기 변환된 데이타를 KXF 데이타 파일에 추가시키는 KXF 데이타 생성과정 단계; 및, DXF 파일의 도면요소가 존재하는지 검사하여, DXF 상기 도면요소 추출 단계로 분기하여 그 이후 과정을 반복 수행하고, 존재하지 않는 경우 작업을 종료하는 단계를 포함하는 것을 특징으로 한다.The present invention provides a method of converting a DXF data format to a KXF data format in order to achieve the above object, comprising: setting an initial environment by receiving a converted DXF file name and a file name of a generated KXF data; Extracting the parameter values of the header portion of the DXF file, the layer table, the line table, the style table, and the like and uploading them to the main memory; A block extraction step of extracting block information of the block portion of the DXF file and uploading the block information to the main memory; An element extraction step of classifying elements on the main memory device by extracting elements of the DXF file; A layer processing step of matching the extracted layer of the element to a KXF data type by referring to a layer table in the main memory; A table processing step of matching characteristics of colors, font sizes, etc. of the extracted drawing elements with system tables of a KXF database by referring to line tables and style tables in a main memory; Converting the extracted entities into data having the same contents and characteristics of the KXF database using a transform function; Generating KXF data by adding the converted data to a KXF data file; And checking whether there is an element of the DXF file, branching to the DXF extraction of the element, repeating the process thereafter, and ending the work if it does not exist.
이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 상세히 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 1 은 본 발명이 적용되는 중형급 컴퓨터의 하드웨어 구성도로서 이에 도시된 바와 같이, 컴퓨터의 전체 동작을 제어 관리하고 작업을 수행하는 중앙처리장치(1)와, 중앙처리장치에서 수행할 프로그램을 저장하고 작업수행주 이용되는 각종 데이타를 저장하는 주기억장치(2)와, 대량의 데이타를 저장하는 보조기억장치(4)와, 키보드, 표시장치, 프린터 등을 포함하는 입출력장치(5)와, 보조기억장치, 입출력장치에 대한 입출력을 제어하는 입출력 제어기(3)로 구성되어 있다. 입출력장치(5)는 일반적인 키보드, 디스플레이 장치, 프린터 등을 포함한다.1 is a hardware configuration diagram of a medium-class computer to which the present invention is applied, as shown in FIG. 1, a central processing unit 1 for controlling and managing overall operations of a computer, and storing a program to be executed in the central processing unit. A main memory device (2) for storing various types of data to be used and performing work orders, an auxiliary memory device (4) for storing a large amount of data, an input / output device (5) including a keyboard, a display device, a printer, and the like; And an input / output controller 3 for controlling input and output of the memory device and the input / output device. The input / output device 5 includes a general keyboard, a display device, a printer, and the like.
상기와 같이 구성된 중형급 컴퓨터에서 주기억장치(2)에는 본 발명의 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환시키는 프로그램이 저장되어 있으며, 중앙처리장치(1)의 제어에 따라 수행되어진다.In the medium-class computer configured as described above, the main memory device 2 stores a program for converting the DXF data format of the present invention to the KXF data format and is executed under the control of the central processing unit 1.
다음에서, DXF 데이타 포맷과 KXF 데이타 포맷의 특징에 대하여 설명한다.Next, the features of the DXF data format and the KXF data format will be described.
도 2 는 DXF 데이타 포맷에 대해 설명한다. DXF 데이타 포맷은 헤더(Header), 테이블(Table), 블록(Block), 항목ntitiles) 등 4개의 부분으로 구성되어 있으며 도면 요소 그룹 코드에 의해 여러가지 형태의 데이타 요소가 정의된다. 헤더 부분은 도면의 일반적인 정보를 갖는 매개변수들로 구성되어 있으며, 테이블 부분은 레이어(Layer), 라인 유형(Line Type) 테입를 등이 정의되어 있다. 블록 부분은 도면에서 사용되는 여러 개의 블록으로 구성되는데 하나의 블록은 여러 개의 도면 요소들을 포함한다. 항목 부분은 도면요소에 대한 실제 데이타 리스트를 가지고 있다. DXF에서 사용되는 도면요소는 라인, 폴리라인, 원, 아크(arc), 텍스트, 인서트(INSERT), ATTRIB, 차원(DIMENSION) 등이 있으며, 각각의 도면요소들은 그룹코드로 이루어진 개별적인 포맷을 가지고 있다.2 illustrates the DXF data format. The DXF data format consists of four parts, such as a header, a table, a block, and an item, and various types of data elements are defined by drawing element group codes. The header part consists of parameters having general information of the drawing, and the table part defines a layer, a line type tape, and the like. The block portion is composed of several blocks used in the drawing, and one block includes several drawing elements. The item part contains the actual data list for the entity. Elements used in DXF include lines, polylines, circles, arcs, text, inserts, ATTRIBs, and dimensions. Each element has a separate format consisting of group codes. .
도 3 은 KXF 데이타 포맷에 대해 설명한다. KXF 데이타 포맷은 미국연방표준 GIS 포맷으로 정의된 SDTS(Spatial Database Trnasfer Standard)를 한국적 상황을 가미해 한국형 GIS 표준 포맷으로 만든 것으로, 총 5부분으로 구성되어 있다. Part 1은 수치지도 데이타의 적합성 여부, 개념적 모델 등을 정의하고, Part 2는 지리정보에 대한 속성 정보 및 용어 정의를, Part 3는 ISO 8211를 이용한 공간 데이타의 호환을 정의하고 있으며, Part 5, 6는 각각 벡터 및 래스터 프로파일 정보가 수록되어 있다. 전환에 사용되는 KXF 데이타 포맷은 기본적으로 Part 4 벡터 프로파일 부분만을 이용하고 있으며 총 25개의 벡터 공간 객체 정의 모듈중 식별(Identification), 카타로그/디렉토리(Catalog/Directory), 데이타 사전(Data Dictionary) 모듈 등 9개의 모듈을 상호 전환에 이용하고 있다.3 describes the KXF data format. The KXF data format is composed of the Spatial Database Trnasfer Standard (SDTS), which is defined as the US Federal GIS format, in the Korean GIS standard format. Part 1 defines the suitability of digital map data, conceptual model, etc., Part 2 defines attribute information and term definitions for geographic information, Part 3 defines compatibility of spatial data using ISO 8211, Part 5, 6 contains vector and raster profile information, respectively. The KXF data format used for the conversion basically uses only the Part 4 vector profile part, and among the total 25 vector spatial object definition modules, identification, catalog / directory, data dictionary module, etc. Nine modules are used to switch between them.
도 4 는 본 발명에 따른 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환하는 과정을 나타낸 것이다. 변환 프로그램을 보조기억장치(4)에서 주기억장치(2)에 올린 후 중앙처리장치(1)에 의해 작업이 시작되면 변환될 DXF 데이타의 파일명과 생성되어질 KXF 파일명을 입력받아 새로운 KXF 데이타 베이스를 생성하는 초기환경설정과정(S1))을 수행한다. 초기환경이 설정된 후, DXF 파일의 헤더부분의 매개변수들 값과 테이블 부분의 레이어 테이블, 라인 테이블, 스타일 테이블 등을 추출하여 주기억장치(2)에 올리는 매개변수 및 테이블 추출과정(S2)을 수행한다. 그리고, DXF 파일의 블록부분의 블록 정보들을 추출하여 주기억장치(2)에 올리는 블록추출 과정(S3)을 수행한다. 상기 과정의 수행 후, DXF 파일의 도면 요소들을 추출하여 주기억 장치 상에서 요소를 분류하는 도면요소 추출과정(S4)을 수행하여, 추출된 도면요소의 레이어를 주기억장치(2)에 있는 레이어 테이블을 참조하여 KXF 의 적정한 데이타 유형에 매칭시키는 레이어 처리과정(S5)을 수행하며, 추출된 도면요소의 색상, 글자크기 등 특성들을 주기억장치(2)에 있는 라인 테이블과 스타일 테이블 등을 참조하여 적정한 KXF 데이타 베이스의 시스템 테이블과 매칭시키는 테이블 처리과정(S6)을 수행한다. 상기 과정 수행 후, 추출된 도면요소가 블록을 참조하는지 검사(S6-1)하여, 블록이 존재할 경우 주기억장치(2)에 있는 블록 테이블에서 해당 블록을 검색하여 데이타를 변환시키는 블록 처리과정(S6-2)을 수행하며, 존재하지 않는 경우에는 다음 과정으로 진행한다. 이때 상기 블록 처리 과정은 변환된 도면요소로부터 블록이 삽입될 위치와 축적, 레이어 등의 정보를 추출하여, 블록 변환 수행시 이들 정보를 적용하여 DXF 데이타 파일과 동일한 내용을 갖는 KXF 데이타를 생성한다. 상기의 과정을 수행한 수, 추출된 도면요소를 변환 함수를 이용하여 KXF 데이타 베이스에 동일한 내용 및 특성을 갖는 데이타로 변환하는 도면요소 변환과정(S7)을 수행하며, 변환된 데이타를 보조기억장치(4)에 있는 KXF 데이타 베이스 파일에 추가시키는 KXF 데이타 생성과정(S8)을 수행한다. 상기 과정 수행 후, DXF 파일의 도면요소가 존재하는지 검사하여, 존재한다면 DXF 도면 요소 추출과정(S4)으로 분기하여 그 이후 과정을 반복 수행하고, 더 이상 도면요소가 존재하지 않으면 변환 수행 작업을 종료한다(S9).4 shows a process of converting the DXF data format to the KXF data format according to the present invention. After the conversion program is loaded from the auxiliary memory device 4 to the main memory device 2 and the job is started by the central processing device 1, a new KXF database is created by inputting the file name of the DXF data to be converted and the KXF file name to be created. To perform the initial configuration process (S1). After the initial environment is set up, the parameter values of the header part of the DXF file, the layer table, the line table, and the style table of the table part are extracted, and the parameter and table extraction process (S2) is carried out to the main memory (2). do. Then, a block extraction process (S3) of extracting block information of the block portion of the DXF file and uploading it to the main memory device 2 is performed. After the above process, the drawing element of the DXF file is extracted to perform an element extraction process (S4) of classifying elements on the main memory device, and the layer of the extracted drawing element is referred to the layer table in the main memory device 2. Layer processing to match the appropriate data type of the KXF (S5), and the appropriate KXF data by referring to the line table and style table in the main memory (2) for characteristics such as color and font size of the extracted entity. A table process (S6) for matching with the base system table is performed. After performing the above process, it is checked whether the extracted entity refers to a block (S6-1), and if a block exists, a block processing process of searching for the block in the block table in the main memory 2 and converting the data (S6). -2). If it does not exist, proceed to the next step. At this time, the block processing process extracts information such as a position, an accumulation, and a layer into which a block is to be inserted from the transformed element, and applies the information when the block is converted to generate KXF data having the same contents as the DXF data file. Performs the element conversion process (S7) of converting the number of the above process and the extracted entity into data having the same contents and characteristics in the KXF database by using a conversion function, and converting the converted data into an auxiliary memory device. A KXF data generation process (S8) is added to the KXF database file in (4). After performing the above process, it checks whether the elements of the DXF file exist, and if so, branches to the process of extracting the DXF element (S4) and repeats the process thereafter. (S9).
이상에서 상세히 설명한 바아 같이 본 발명은 DXF 데이타 포맷을 KXF 데이타 포맷으로 변환시켜 줌으로써 CAD 시스템에서 구축된 도면 및 시설정보 데이타를 국가 표준 포맷인 KXF를 지원하는 지리정보 시스템에서 사용할 수 있게 함으로써 데이타 구축에 드는 시간 및 비용의 절감을 꾀할 수 있는 효과를 수반한다.As described in detail above, the present invention converts the DXF data format into the KXF data format so that the drawing and facility information data constructed in the CAD system can be used in a geographic information system supporting the KXF, which is a national standard format. It involves the effect of saving time and money.
아울러 본 발명의 바람직한 실시예는 예시의 목적을 위해 개시된 것이며, 당업자라면 본 발명의 사상과 범위안에서 다양한 수정, 변경, 부가 등이 가능할 것이며, 이러한 수정, 변경 등은 이하의 특허 청구의 범위에 속하는 것으로 보아야 할 것이다.In addition, preferred embodiments of the present invention are disclosed for the purpose of illustration, those skilled in the art will be able to make various modifications, changes, additions, etc. within the spirit and scope of the present invention, such modifications, changes, etc. fall within the scope of the claims Should be seen.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970004737A KR100216079B1 (en) | 1997-02-17 | 1997-02-17 | Dxf/kxf data format translation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019970004737A KR100216079B1 (en) | 1997-02-17 | 1997-02-17 | Dxf/kxf data format translation method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19980068226A true KR19980068226A (en) | 1998-10-15 |
KR100216079B1 KR100216079B1 (en) | 1999-08-16 |
Family
ID=19497235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019970004737A KR100216079B1 (en) | 1997-02-17 | 1997-02-17 | Dxf/kxf data format translation method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100216079B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040012214A (en) * | 2002-08-01 | 2004-02-11 | 김창수 | A Method to Reduce the Capacity of Geographic Data for Mobile Computing Environments |
CN113642054A (en) * | 2021-07-28 | 2021-11-12 | 通号城市轨道交通技术有限公司 | CAD drawing data processing method, device and storage medium |
-
1997
- 1997-02-17 KR KR1019970004737A patent/KR100216079B1/en not_active IP Right Cessation
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040012214A (en) * | 2002-08-01 | 2004-02-11 | 김창수 | A Method to Reduce the Capacity of Geographic Data for Mobile Computing Environments |
CN113642054A (en) * | 2021-07-28 | 2021-11-12 | 通号城市轨道交通技术有限公司 | CAD drawing data processing method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
KR100216079B1 (en) | 1999-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10534865B2 (en) | Flexible CAD format | |
US5717905A (en) | CAD system and bezier-curve data converting apparatus and method thereof in said CAD system | |
US7120867B2 (en) | System and method for conversion of directly-assigned format attributes to styles in a document | |
JPH0785137A (en) | Generating device for cad library model | |
KR102356044B1 (en) | Method of extracting and converting BIM data for Web Browser and VR/AR Application | |
CN113051885B (en) | AutoCAD-based design drawing rapid typesetting method | |
KR100216079B1 (en) | Dxf/kxf data format translation method | |
KR100216068B1 (en) | A method of converting dxf data format to informap database | |
KR100216078B1 (en) | Kxf/dxf data format translation method | |
KR100223058B1 (en) | File transformation method | |
CN111079399B (en) | Image-text data processing method, image-text data processing device, computer equipment and storage medium | |
KR100236838B1 (en) | Method for converting arc/info file to kxf data format | |
JP2850979B2 (en) | Character processing apparatus and method | |
CN113127408A (en) | Data conversion method and device | |
KR100237878B1 (en) | File transformation method | |
KR100250978B1 (en) | Method for converting autocad drawing to infomap drawing | |
KR100237879B1 (en) | File format transformation method | |
TW459191B (en) | Method for expanding and updating the electronic dictionary | |
KR100237877B1 (en) | A method of converting korea standard exchange format to gothic middle file | |
EP0358860B1 (en) | Apparatus and method for processing data corresponding to labels | |
JP2993881B2 (en) | Keyword generation method | |
KR100260249B1 (en) | Method of converting informap drawing to autocad drawing | |
JP4114812B2 (en) | How to manage symbol images | |
KR100609575B1 (en) | Method to store geographic data files in object-relational database management systems | |
CN114782671A (en) | Data structuring method, device and storage medium for OCR recognition of power report picture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20090508 Year of fee payment: 11 |
|
LAPS | Lapse due to unpaid annual fee |