KR100917834B1 - Method for transforming asc file to geomania gcd file - Google Patents

Method for transforming asc file to geomania gcd file Download PDF

Info

Publication number
KR100917834B1
KR100917834B1 KR1020070095836A KR20070095836A KR100917834B1 KR 100917834 B1 KR100917834 B1 KR 100917834B1 KR 1020070095836 A KR1020070095836 A KR 1020070095836A KR 20070095836 A KR20070095836 A KR 20070095836A KR 100917834 B1 KR100917834 B1 KR 100917834B1
Authority
KR
South Korea
Prior art keywords
file
information
asc
gcd
file format
Prior art date
Application number
KR1020070095836A
Other languages
Korean (ko)
Other versions
KR20090030488A (en
Inventor
김경탁
최윤석
원영진
Original Assignee
한국건설기술연구원
주식회사 지오매니아
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 한국건설기술연구원, 주식회사 지오매니아 filed Critical 한국건설기술연구원
Priority to KR1020070095836A priority Critical patent/KR100917834B1/en
Publication of KR20090030488A publication Critical patent/KR20090030488A/en
Application granted granted Critical
Publication of KR100917834B1 publication Critical patent/KR100917834B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/16Automatic learning of transformation rules, e.g. from examples

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Instructional Devices (AREA)

Abstract

본 발명은 지리정보시스템(GIS)에서 사용하는 서로 상이한 그리드 데이터간의 포맷을 변환하는 방법에 관한 것으로, 일반 컴퓨터에서 ASC(Ascii GRID)파일을 지오매니아 GCD(GEOMania Cell Data)파일로 변환시키는 방법에 관한 것이다. 즉, 변환시키고자 하는 제1 파일을 지정하고, 변환될 제2 파일 확장자를 선택하기 위한 명령이 입력받으면, 상기 입력된 명령을 연산 처리하며, 상기 제1 파일 포맷의 좌 하단 기준점을 상기 제2 파일 포맷에 보정하고, 상기 추출된 정보를 이용하여 상기 제2 파일을 생성함으로써, 지리 정보 산업 발전에 기본이 되는 공간 데이터 구축에 있어서 비용과 시간을 절감할 수 있다.The present invention relates to a method for converting a format between different grid data used in a geographic information system (GIS), and a method for converting an ASC (Ascii GRID) file into a Geomania GCD (GEOMania Cell Data) file in a general computer. It is about. That is, when a command for designating a first file to be converted and a command for selecting a second file extension to be converted is received, the input command is processed and the lower left reference point of the first file format is converted to the second file. By correcting to a file format and generating the second file using the extracted information, cost and time can be reduced in constructing spatial data that is the basis for the development of the geographic information industry.

파일 변환, ASC, GCD, 지리정보시스템File Conversion, ASC, GCD, Geographic Information System

Description

에이에스씨 파일을 지오매니아 지시디 파일로 변환하는 방법{METHOD FOR TRANSFORMING ASC FILE TO GEOMANIA GCD FILE}How to convert a .cs file to a Geomania directed file {METHOD FOR TRANSFORMING ASC FILE TO GEOMANIA GCD FILE}

본 발명은 지리정보시스템(Geographic Information System: GIS)에서 사용하는 서로 상이한 그리드 데이터간의 포맷을 변환하는 방법에 관한 것으로, 일반적인 컴퓨터에서 ESRI 사의 그리드 포맷인 ASC(Ascii GRID Format) 파일의 그리드 정보를 지오매니아(GEOMania) 그리드 데이터 파일인 GCD 파일로 변환하는 방법에 대한 것이다.The present invention relates to a method of converting a format between different grid data used in a geographic information system (GIS), and to the grid information of an ASSC (Ascii GRID Format) file, which is a grid format of ESRI, in a general computer. It's about converting a GCD file, which is a GEOMania grid data file.

본 발명 이전에는 국내에서 사용 중인 여러 상용 지리정보시스템의 그리드 자료 교환포맷이자 ESRI 시스템에서 사용되는 ASC 파일이, 국내에서 많이 사용하고 있는 GIS용 소프트웨어인 지오매니아의 그리드 데이터 파일로 변환이 되지 않아, ASC 파일로 기 구축된 그리드형 지리정보 데이터의 사용이 불가능하다는 문제점이 있었다.Prior to the present invention, the ASC file used in the grid data exchange format of several commercial geographic information systems used in Korea and the ESRI system is not converted to the grid data file of Geomania, which is a GIS software used in Korea. There was a problem that the use of grid-type geospatial data pre-built with ASC files was impossible.

상기한 문제점을 해결하기 위한 본 발명이 이루고자 하는 기술적 과제는, Ascii GRID 포맷인 ASC 파일 포맷에서 헤더 파트와 격자정보 파트의 데이터를 추출하여, 이것을 설정된 지오매니아 그리드 데이터 파일인 GCD 파일 포맷에서 헤더 파트와 격자정보 파트 중 헤더 부분으로 변환하고, ASC 파일 포맷에서 격자정보 파트 내에 있는 모든 행, 열의 셀값(Cell Value)을 추출하여 지오매니아 GCD 파일 포맷 중 격자정보 파트내의 각 셀값으로 변환하여 최종적으로 ASC 파일의 정보를 GCD 파일로 변환시킬 수 있는 방법을 제공하기 위한 것이다.The technical problem to be solved by the present invention is to extract the data of the header part and the grid information part in the ASC file format, which is the Ascii GRID format, the header part in the GCD file format of the geomania grid data file is set And the cell value of all the rows and columns in the grid information part in the ASC file format, and converts each cell value in the grid information part of the GOM file format in the ASC file format. This is to provide a way to convert the information in the file into a GCD file.

삭제delete

상기 목적을 달성하기 위한 본 발명에 따른 파일 변환 방법은, a) 변환시키고자 하는 ASC 파일인 제1 파일을 지정하고, 지오매니아 GCD 파일 변환될 제2 파일 확장자를 선택하기 위한 명령을 입력받는 단계; b) 상기 입력된 명령을 연산 처리하여 상기 제1 파일 포맷에서 행단위 정보를 읽어오는 단계; c) 상기 행단위 정보에서 각 열 단위 정보로 분리하여 상기 제1 파일 포맷에서 헤더 파트의 정보를 추출하는 단계; d) 상기 추출된 정보를 이용하여 상기 제2 파일 포맷에서 단위 행에서 각 열의 정보를 기입하는 단계; e) 상기 제2 파일 포맷에 행단위 정보가 남아 있는지 파악하여 상기 행단위 정보가 남아 있지 않으면, 상기 제1 파일을 닫는 단계; f) 상기 추출된 제1 파일 포맷의 헤더 파트의 정보를 이용하여 상기 제1 파일 포맷에서 좌하단 기준점을 상기 제2 파일 포맷에 보정하는 단계; 및 g) 상기 추출된 정보를 이용하여 상기 제2 파일을 생성하는 단계를 포함하되, 상기 제1 파일 포맷의 헤더 파트의 정보는, 상기 제1 파일 포맷의 그리드 행 갯수, 열 갯수, 좌하단 기준점 좌표 및 Cell 크기를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method of converting a file, the method comprising: a) specifying a first file, which is an ASC file to be converted, and receiving a command for selecting a second file extension to be converted to a Geomania GCD file; ; b) computing the input command to read line-by-line information in the first file format; c) extracting header part information from the first file format by dividing each row unit information from the row unit information; d) writing information of each column in a unit row in the second file format using the extracted information; e) determining whether row-level information remains in the second file format and closing the first file if the row-level information does not remain; f) correcting the lower left reference point in the first file format to the second file format by using information of the header part of the extracted first file format; And g) generating the second file by using the extracted information, wherein the information of the header part of the first file format includes the number of grid rows, the number of columns, and the lower left reference point of the first file format. It is characterized by including the coordinates and the cell size.

상기한 것과 같이 본 발명은 여러 지리정보시스템(GIS)과 ESRI 시스템에서 사용하고 있는 그리드자료 교환 데이터 포맷인 ASC 파일로 기구축된 다양한 지리정보 데이터를 국내에서 많이 사용하고 있는 지오매니아(GEOMania) 그리드 데이터 파일인 GCD 파일로 변환시킴으로서, 지리정보산업발전에 가장 기본이 되는 공간 데이터 구축에 있어서 비용과 시간을 대폭 절감할 수 있는 효과가 있다.As described above, the present invention is a GEOMania grid that uses a variety of geospatial data structured in ASC file, which is a grid data exchange data format used in various GIS and ESRI systems in Korea. By converting it into a GCD file, which is a data file, cost and time can be greatly reduced in constructing spatial data, which is the basis for the development of the geographic information industry.

이하, 첨부한 도면을 참조하여 본 발명의 바람직한 실시 예를 설명한다.Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings.

본 발명을 설명함에 있어서, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단된 경우 그 상세한 설명은 생략한다.In describing the present invention, when it is determined that the detailed description of the related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.

도 1은 본 발명의 실시예에 따른 파일 변환시스템을 나타내는 구성도이다.1 is a block diagram showing a file conversion system according to an embodiment of the present invention.

도시된 바와 같이, 본 발명의 실시예에 따른 파일변환시스템은, 지도 데이터 저장부(101), 입력부(102), 연산 처리부(108), 프로그램 저장부(104), 램(RAM, 103) 및 비디오 메모리(106)와 화면 표시부(107)를 포함한다.
입력부(102)는 사용자 인터페이스를 통하여 사용자로부터 변환하고자 하는 ASC(Ascii GRID) 파일을 지정받고, 생성대상 지오매니아 GCD(GEOMania Cell Data) 파일을 설정하며, 지도 데이터 저장부(101)는 지도 데이터를 저장한다.
As shown, the file conversion system according to an embodiment of the present invention, the map data storage unit 101, the input unit 102, the calculation processing unit 108, the program storage unit 104, RAM (RAM, 103) and The video memory 106 and the screen display unit 107 are included.
The input unit 102 receives an ASC (Ascii GRID) file to be converted from a user through a user interface, sets a generation target Geomania GCD (GEOMania Cell Data) file, and the map data storage unit 101 maps the map data. Save it.

연산 처리부(108)는 상기 입력부로부터 입력된 명령을 연산처리하며 지도 데이터 저장부(101)에 저장되어 있는 ASC 파일의 변환 작업에 대한 모든 과정의 연산 처리와 제어를 담당한다. The arithmetic processing unit 108 processes a command input from the input unit and is in charge of arithmetic processing and control of all processes for the conversion of the ASC file stored in the map data storage unit 101.

프로그램 저장부(104)는 본 발명이 적용된 지리정보 시스템(GIS)을 기반으로 한 파일변환 응용 프로그램이 저장된다.The program storage unit 104 stores a file conversion application program based on a Geographic Information System (GIS) to which the present invention is applied.

램(RAM, 103)은 상기 연산 처리부(108)에 의해 계산된 각종 결과 값을 일시 저장하고, 비디오 메모리(106)와 화면 표시부(107)는 변환될 지도 파일을 화면에 표시하기 위한 것이다. The RAM 103 temporarily stores various result values calculated by the arithmetic processing unit 108, and the video memory 106 and the screen display unit 107 display the map file to be converted on the screen.

여기서, 상기 지도 데이터 저장부(101)와 프로그램 저장부(104)는 HDD(Hard Disk Drive), ODD(Optical Disk Drive) 등으로 구현될 수 있다.The map data storage unit 101 and the program storage unit 104 may be implemented as a hard disk drive (HDD), an optical disk drive (ODD), or the like.

이하, 도 1을 참조하여 본 발명의 실시예에 따른 파일 변환 시스템 동작을 설명하면 다음과 같다.Hereinafter, an operation of a file conversion system according to an embodiment of the present invention will be described with reference to FIG. 1.

먼저 ASC 파일을 GCD 파일로 변환하는 실시예를 설명하면 다음과 같다. 본 실시예는 본 발명의 동작을 설명하기 위한 실시예이며, 본 발명을 통해서 용이하게 실시할 수 있는 분야에서도 적용될 수 있다.First, an embodiment of converting an ASC file into a GCD file will be described. This embodiment is an embodiment for explaining the operation of the present invention, it can be applied to the field that can be easily implemented through the present invention.

사용자가 ASC 파일을 GCD 파일로 변환하고자 할 경우, 상기 입력부(102)는 사용자로부터 파일을 변환하기 위한 명령을 입력받는다. When the user wants to convert the ASC file into a GCD file, the input unit 102 receives a command for converting the file from the user.

상기 파일 변환이라 함은 예를 들어 ASC 파일을 GCD 파일로 변환하는 경우를 지칭한다. The file conversion refers to a case of converting an ASC file into a GCD file, for example.

상기 입력부(102)로부터 변환시키고자 하는 ASC 파일이 선택되고, 변환하고자 하는 파일 확장자가 선택되면, 상기 연산 처리부(108)는 상기 입력부(102)로부터 입력된 파일 변환 명령을 분석 및 제어한다. When the ASC file to be converted is selected from the input unit 102 and the file extension to be converted is selected, the calculation processing unit 108 analyzes and controls the file conversion command input from the input unit 102.

그리고, 상기 제어부(102)는 이러한 파일 변환 프로그램이 내장되어 있는 프로그램 저장부(104)를 리드(Read)하여 파일 변환 기능을 내장한 지리정보 시스템 기반의 파일 변환 응용 프로그램을 활성화하고, 또한, 상기 지도 데이터 저장부(101)에 저장되어 있고 상기 입력부(102)로부터 선택된 ASC 파일을 리드하고, 상기 리드된 ASC 파일을 메모리(103)에 일시 저장한다.The control unit 102 reads the program storage unit 104 in which the file conversion program is embedded, and activates a file conversion application program based on a geographic information system having a file conversion function. The ASC file stored in the map data storage unit 101 and selected from the input unit 102 is read, and the read ASC file is temporarily stored in the memory 103.

삭제delete

그리고, 상기 연산 처리부(108)는 상기 메모리(103)에 리드된 ASC 파일 포맷에서 헤더 부분을 분석하여 ASC에 저장된 그리드의 행(Rows)의 갯수, 열(Columns)의 갯수, 좌하단 기준점 좌표, 및 Cell의 크기를 확보한 후, 상기 메모리(103)에 저장한다.The operation processor 108 analyzes the header portion of the ASC file format read in the memory 103 to determine the number of rows of grids stored in the ASC, the number of columns, coordinates of the lower left reference point, And after securing the size of the cell, it is stored in the memory (103).

상기 메모리(103)에 저장된 후, 만일 ASC의 좌하단 기준 Cell의 기준 좌표가 'center' 방식이면, GCD와 같은 기준좌표가 되도록 xllcenter, yllcenter 좌표값에서 각각 셀 크기의 50%를 줄임으로써 'center' 방식으로 보정하고, 보정된 값을 다시 메모리(103)에 저장한다.After being stored in the memory 103, if the reference coordinate of the lower left reference cell of the ASC is the 'center' method, the center is reduced by reducing 50% of the cell size in the xllcenter and yllcenter coordinate values so that the reference coordinates are the same as the GCD. 'Method, and the corrected value is stored in the memory 103 again.

그리고, 상기 연산 처리부(108)는 메모리(103)에 저장된 ASC 파밀 포맷의 헤더파트 정보를 사용하여 GCD 파일을 생성하고, ASC 파일 포맷에서 헤더 정보 이후에 존재하는 격자정보 파트의 단위 행을 읽어 다시 메모리(103)에 저장한다.The operation processor 108 generates a GCD file by using the header part information of the ASC family format stored in the memory 103, and reads the unit line of the grid information part that exists after the header information in the ASC file format, and then again. It stores in the memory 103.

만일 메모리(103)에 저장된 ASC의 단위 행정보를 읽어서 2개 이상의 연이은 구분자가 발견되면, 표준 구분자인 1개의 공란으로 보정하는 작업을 수행한 후, 다시 메모리(103)에 저장한다.If two or more consecutive delimiters are found by reading the unit row information of the ASC stored in the memory 103, after correcting to one blank, which is a standard delimiter, the operation is stored in the memory 103 again.

그리고, 연산 처리부는 이를 다시 읽어 구분자로서 분리하고 각각의 정보를 1차원 배열형태로서 메모리(103)에 저장하고, 1차원 배열 형태로 저장된 ASC의 단위 행의 단위 열 정보를 읽어서 GCD의 단위 행의 단위 열 정보를 기입하고, ASC 파일 포맷에서 헤더 정보 중 행의 개수를 기초로 하여 추가 변환할 단위 행 정보가 ASC 파일에 남아 있는지 여부를 파악한다. Then, the operation processing unit reads it again, separates it as a delimiter, stores each information in the memory 103 as a one-dimensional array form, reads the unit column information of the unit row of the ASC stored in the one-dimensional array form, and The unit column information is written, and it is determined whether the unit row information to be further converted remains in the ASC file based on the number of rows in the header information in the ASC file format.

삭제delete

삭제delete

만일 행 정보가 없다면 변환 대상 정보 읽기가 완료된 ASC 파일을 받고, 격자 정보의 기입이 완료된 지오매니아 그리드 GCD 파일을 지도데이터 저장부(101)에 저장한다.If there is no row information, an ASC file having completed reading the conversion target information is received, and the geomania grid GCD file having completed writing of the grid information is stored in the map data storage unit 101.

그리고, 상기 연산 처리부(108)는 지도데이터 저장부(101)에 저장된 GCD 파일을 화면 표시부(107)에 표시하기 위해 비디오 메모리(106)에 저장한다. 그리고, 생성된 GCD 파일을 상기 화면 표시부(107)에 디스플레이 한다.The operation processor 108 stores the GCD file stored in the map data storage 101 in the video memory 106 for display on the screen display 107. The generated GCD file is displayed on the screen display unit 107.

도 2는 본 발명의 실시예에 따른 ASC 파일 포맷을 나타낸 예시도이다.2 is an exemplary view showing an ASC file format according to an embodiment of the present invention.

도시된 바와 같이, 본 발명의 실시예에 따른 ASC 파일 포맷는 크게 헤더 파트(Header Part), 격자(행,열) 파트로 구성되어 있다. As shown, the ASC file format according to an embodiment of the present invention is largely composed of a header part and a grid (row and column) part.

헤더 파트(Header Part)는 도면에 대한 좌하단 기준점의 좌표와 격자의 크기(Cellsize), 격자 행의 개수, 격자 열의 개수, 그리고 무효인 Cell Value를 구분하기 위한 Nodata_Value 항목으로 구성되어 있으며 좌하단 기준점은 좌하단 Cell 의 좌하단 Corner를 지정하는 방식과 좌하단 Cell의 중심점을 지칭하는 방식(xllcenter, yllcenter)이 있다. 격자정보 파트(행,열)는 각각의 그리드 Cell 에 대한 Value 정보를 저장하고 있다. The header part consists of the coordinates of the lower left reference point for the drawing, the size of the grid (Cellsize), the number of grid rows, the number of grid columns, and Nodata_Value items to distinguish invalid cell values. Has a method of designating a lower left corner of a lower left cell and a method of designating a center point of a lower left cell (xllcenter, yllcenter). The grid information part (row and column) stores value information for each grid cell.

도 3은 본 발명의 실시예에 따른 GCD 파일 포맷을 나타낸 예시도이다.3 is an exemplary view showing a GCD file format according to an embodiment of the present invention.

도시된 바와 같이, 본 발명의 실시예에 따른 GCD 파일은 정부 및 지자체에서 실시하고 있는 각종 국가 지리정보 시스템 구축 사업 및 국가 연구과제와 민간기업에서 GIS 그리드 시스템 구축 시 많이 사용하는 그리드 데이터 포맷이다. As shown, the GCD file according to an embodiment of the present invention is a grid data format that is frequently used when building a GIS grid system in various national geographic information system construction projects and national research projects and private enterprises that are implemented by governments and local governments.

이러한, GCD 파일, 즉 GCD 파일 포맷는 크게 헤더 파트(Header Part), 격자 파트로 구성되어 있으며, 헤더 파트(Header Part)는 그리드 데이터의 범위를 좌,우,상,하 좌표로서 지정하며, 격자의 크기(Cellsize), Datatype 등 전체 그리드파일에 대한 정보가 저장되어 있고, 격자정보 파트는 각 행/열의 GRID Cell Value가 저장되어 있다.The GCD file, that is, the GCD file format, is largely composed of a header part and a grid part. The header part specifies a range of grid data as left, right, top, and bottom coordinates. Information about the entire grid file, such as the size (Cellsize) and Datatype, is stored, and the GRID cell value of each row / column is stored in the grid information part.

본 발명의 실시예에 따른 연산 처리부(108)는 지도 데이터 저장부(101)에서 ASC 파일의 헤더 파트 정보 이후에 존재하는 격자 정보파트의 단위 행을 읽어 메모리(103)에 저장한다. The arithmetic processing unit 108 according to an embodiment of the present invention reads the unit row of the grid information part existing after the header part information of the ASC file from the map data storage unit 101 and stores it in the memory 103.

상기 단위 행 정보 안에는 ASC에서 1개의 행(Row)을 구성하는 모든 열의 정보가 저장되어 있으며, 이는 구분자로서 분리된다. In the unit row information, information of all columns constituting one row in the ASC is stored, which are separated as separators.

이후, 연산 처리부(180)는 메모리(103)에 저장된 ASC의 단위 행 정보를 읽어서 2개 이상의 연이은 구분자가 발견되는 경우 표준 구분자인 1개의 공란으로 보정하는 작업을 수행한 후, 그 결과를 메모리(103)에 저장한다. Subsequently, the operation processor 180 reads the unit row information of the ASC stored in the memory 103 and corrects the result with one blank, which is a standard delimiter, when two or more consecutive delimiters are found, and then stores the result of the memory ( 103).

그리고, 상기 연산 처리부(108)는 메모리(103)에 저장된 결과를 다시 읽어 구분자(ascii code 34)로서 분리하고 각각의 정보(격자 Cell Value)를 1차원 배열 형태로서 메모리(103)에 저장한다.The operation processor 108 reads the result stored in the memory 103 again and separates it as an identifier (ascii code 34) and stores each information (lattice cell value) in the memory 103 in the form of a one-dimensional array.

도 4는 본 발명의 실시예에 따른 ASC 파일을 지오매니아 GCD파일로 변환하는 방법을 나타낸 순서도이다.4 is a flowchart illustrating a method of converting an ASC file into a geomania GCD file according to an embodiment of the present invention.

이하, 도 4를 참조하여 본 발명의 실시예에 따른 ASC 파일을 지오매니아 GCD 파일로 변환하는 방법을 상세히 설명하면 다음과 같다.Hereinafter, a method of converting an ASC file into a geomania GCD file according to an embodiment of the present invention will be described in detail with reference to FIG. 4.

먼저 도 1의 지도 데이터 저장부(101)는 지도 데이터를 파일 형태로 저장되어 있다. First, the map data storage unit 101 of FIG. 1 stores map data in the form of a file.

사용자로부터 ASC 파일을 지오매니아 GCD파일로 변환하기 위한 명령이 입력되면, 연산 처리부는 ASC 파일을 지오매니아 GCD 파일로 변환하기 위한 초기 준비를 수행한다(단계 400). 상기 단계 400은 신규 생성될 GCD 파일의 이름, 일련번호, 입력된 파일 이름의 수용 여부를 묻는 메시지, 정수형 short, 정수형 long, 실수형 float , 실수형 double와 같은 데이터 형식을 사용자로부터 입력받는 과정이다.If a command for converting an ASC file into a Geomania GCD file is input from the user, the calculation processing unit performs initial preparation for converting the ASC file into a Geomania GCD file (step 400). The step 400 is a process of receiving a data type such as a name of a newly created GCD file, a serial number, a message asking whether to accept an input file name, an integer type short, an integer type long, a real type float, or a real type double from the user. .

상기 단계 400이 수행되면, 연산 처리부(108)는 단계 402에서 선택되어진 ASC 파일의 헤더 파트를 읽어서 ASC에 저장된 그리드의 행(Rows)의 개수, 열(Columns)의 개수, 좌하단 기준점 좌표, Cell의 크기를 확보하여 저장부인 메모리(103) 저장한다. When the step 400 is performed, the calculation processing unit 108 reads the header part of the ASC file selected in step 402, the number of rows of the grid, the number of columns, the lower left reference point coordinates, and the cell. The memory 103 as a storage unit is stored by securing the size of the memory 103.

그리고 , 연산처리부(108)는 단계 404에서 저장부인 메모리(103) 저장된 ASC의 좌하단 기준 Cell의 기준좌표가 만약 center" 방식인 경우, GCD와 같은 기준좌표가 되도록 xllcenter, yllcenter 좌표값에서 각각 cellsize의 50%를 감해줌으로써 corner" 방식으로 보정하여 저장부인 메모리(103) 저장한다. If the reference coordinate of the lower left reference cell of the ASC stored in the memory 103, which is the storage unit, is “center” in step 404, the arithmetic processing unit 108 cellsize each of the xllcenter and yllcenter coordinate values such that the reference coordinate is the same as the GCD. The memory 103, which is a storage unit, is stored by correcting it in a corner "

그리고, 연산처리부(108)는 단계 406에서 저장부인 메모리(103)에 저장된 ASC 파일 포맷에서 헤더파트 정보를 사용하여 GCD 파일을 생성하여 지도데이터 저장부(101)에 저장한다. 이때 ASC의 무효 Cell을 구분하는 No_Data Value 는 GCD 포맷 헤더의 마지막 56Byte 빈공간인 무효 Cell 구분값란에 저장한다. In operation 406, the operation processor 108 generates a GCD file using the header part information in the ASC file format stored in the memory 103, which is a storage unit, and stores the GCD file in the map data storage unit 101. At this time, No_Data Value to identify the invalid cell of ASC is stored in the invalid cell distinguished value column, which is the last 56 byte empty space of GCD format header.

GCD 파일의 생성 기준인 좌,우,상,하 기준좌표는 ASC 파일 포맷에서 헤더정보에서 추출된 좌하단 기준좌표와 행, 열의 개수로서 연산처리부(108)에서 계산되어 적용된다. 그리고, 상기 생성된 GCD 파일 포맷에서는 각 Cell의 정보가 아직 기입되어 있지 않은 상태이다.The left, right, top, and bottom reference coordinates, which are the generation criteria of the GCD file, are calculated and applied by the calculation processing unit 108 as the number of the bottom left reference coordinates, rows, and columns extracted from the header information in the ASC file format. In the generated GCD file format, information on each cell has not been written yet.

상기 단계 406에서 GCD 파일이 생성되면, 상기 연산처리부(180)는 단계 408는, 지도데이터 저장부(101)에서 ASC 파일의 헤더정보 이후에 존재하는 격자정보 파트의 단위 행을 읽어 저장부인 메모리(103)에 저장한다. 이때, 단위 행 정보 안에는 ASC에서 1개의 행(Row)을 구성하는 모든 열의 정보가 저장되어 있으며, 이는 구분자(delimiter)로서 분리된다. When the GCD file is generated in step 406, the operation processor 180 reads the unit row of the grid information part existing after the header information of the ASC file in the map data storage unit 101, and stores the memory ( 103). At this time, in the unit row information, information of all columns constituting one row in the ASC is stored, which are separated as a delimiter.

그리고, 연산처리부(180)는 단계 410는, 저장부인 메모리(103)에 저장된 ASC의 단위 행 정보를 읽어서 2개 이상의 연이은 구분자가 발견되는 경우, 표준 구분자인 1개의 공란(ascii code 34)으로 보정하는 작업을 수행한 후, 그 결과를 저장부인 메모리(103)에 저장한다. In operation 410, in operation 410, when two or more consecutive delimiters are found by reading unit row information of the ASC stored in the memory 103 as a storage unit, the operation processor 180 corrects one blank (ascii code 34) that is a standard delimiter. After performing the operation, the result is stored in the memory 103 which is a storage unit.

연산처리부(180)는 이를 다시 읽어 구분자(ascii code 34)로서 분리하고, 각각의 정보(격자Cell Value)를 1차원 배열 형태로서 메모리(103)에 저장한다. The operation processor 180 reads it again and separates it as an identifier (ascii code 34), and stores each piece of information (lattice cell value) in the memory 103 in the form of a one-dimensional array.

이후에, 단계 412에서 연산처리부(180)는 저장부인 메모리(103)에 1차원 배열 형태로 저장된 ASC의 단위 행의 단위 열 정보를 읽어서 GCD의 단위 행의 단위 열 정보를 기입한다. 이때, ASC의 No_Data Value와 일치하는 Cell Value인 경우에도 No_Data Value 구분값 자체로서 GCD에 기입한다.Subsequently, in operation 412, the operation processor 180 reads the unit column information of the unit row of the ASC stored in the one-dimensional array form in the memory 103, which is a storage unit, and writes the unit column information of the unit row of the GCD. At this time, even in the case of a Cell Value that matches the No_Data Value of the ASC, the No_Data Value is divided into the GCD.

상기 GCD 파일 포맷에 기입이 되면, 연산처리부(108)는 상기 단계 110에서 추출되어 저장부인 메모리(103)에 저장된 ASC 파일 포맷에서 헤더 정보중 행의 개수를 기초로, 추가 변환할 단위 행 정보가 ASC 파일에 남아 있는지 여부를 파악하여, 변환할 단위 행 정보가 있다면 상기 단계 408, 단계 410, 단계 412를 반복해서 수행한다. When the GCD file format is written, the arithmetic processing unit 108 extracts the unit row information to be further converted based on the number of rows in the header information in the ASC file format extracted in step 110 and stored in the memory 103 which is a storage unit. It is determined whether the ASC file remains and if there is unit row information to be converted, steps 408, 410, and 412 are repeated.

더 이상 변환할 단위 행 정보가 없다면 단계 416으로 넘어간다(단계 414). 이후, 연산 처리부(108)는 단계 414에서 ASC 파일 포맷 중에서 변환대상 행 정보가 더이상 없으면, ASC 파일을 닫는다. 그리로, 단계 418에서 격자정보의 기입이 완료된 지오매니아 그리드 GCD 파일을 지도데이터 저장부(101)에 저장한다.If there is no more unit row information to convert, step 416 is reached (step 414). Thereafter, the arithmetic processing unit 108 closes the ASC file in step 414 when there are no more conversion target row information in the ASC file format. Thus, the geomania grid GCD file in which the grid information is written in step 418 is stored in the map data storage unit 101.

도 1은 본 발명의 실시예에 따른 파일 변환시스템을 나타내는 구성도.1 is a block diagram showing a file conversion system according to an embodiment of the present invention.

도 2는 본 발명의 실시예에 따른 ASC 파일 포맷을 나타낸 예시도.2 illustrates an ASC file format according to an embodiment of the present invention.

도 3은 본 발명의 실시예에 따른 GCD 파일 포맷을 나타낸 예시도.3 is an exemplary view showing a GCD file format according to an embodiment of the present invention.

도 4는 본 발명의 실시예에 따른 ASC 파일을 지오매니아 GCD파일로 변환하는 방법을 나타낸 순서도.4 is a flowchart illustrating a method of converting an ASC file into a geomania GCD file according to an embodiment of the present invention.

<도면의 주요부분에 대한 부호의 설명〉 <Explanation of symbols for main parts of the drawings>

101 : 지도데이터저장부 101: map data storage unit

102 : 입력부 102: input unit

103 : 메모리(RAM) 103: memory

104 : 프로그램저장부 104: program storage unit

107 : 화면표시부 107: display unit

108 : 연산처리부(CPU) 108: computation processing unit (CPU)

Claims (7)

삭제delete 삭제delete 삭제delete 삭제delete 파일 변환 방법에 있어서, In the file conversion method, a) 변환시키고자 하는 ASC 파일인 제1 파일을 지정하고, 지오매니아 GCD 파일 변환될 제2 파일 확장자를 선택하기 위한 명령을 입력받는 단계;a) designating a first file which is an ASC file to be converted, and receiving a command for selecting a second file extension to be converted to a geomania GCD file; b) 상기 입력된 명령을 연산 처리하여 상기 제1 파일 포맷에서 행단위 정보를 읽어오는 단계;b) computing the input command to read line-by-line information in the first file format; c) 상기 행단위 정보에서 각 열 단위 정보로 분리하여 상기 제1 파일 포맷에서 헤더 파트의 정보를 추출하는 단계;c) extracting header part information from the first file format by dividing each row unit information from the row unit information; d) 상기 추출된 정보를 이용하여 상기 제2 파일 포맷에서 단위 행에서 각 열의 정보를 기입하는 단계;d) writing information of each column in a unit row in the second file format using the extracted information; e) 상기 제1 파일 포맷에 행단위 정보가 남아 있는지 파악하여 상기 행단위 정보가 남아 있지 않으면, 상기 제1 파일을 닫는 단계;e) determining whether row-level information remains in the first file format and closing the first file if the row-level information does not remain; f) 상기 추출된 제1 파일 포맷의 헤더 파트의 정보를 이용하여 상기 제1 파일 포맷에서 좌하단 기준점을 상기 제2 파일 포맷에 보정하는 단계; 및f) correcting the lower left reference point in the first file format to the second file format by using information of the header part of the extracted first file format; And g) 상기 추출된 정보를 이용하여 상기 제2 파일을 생성하는 단계g) generating the second file using the extracted information 를 포함하되,Including but not limited to: 상기 제1 파일 포맷의 헤더 파트의 정보는, 상기 제1 파일 포맷의 그리드 행 갯수, 열 갯수, 좌하단 기준점 좌표 및 셀(Cell) 크기를 포함하는 것을 특징으로 하는 ASC 파일을 지오매니아 GCD 파일로 변환하는 방법.The information of the header part of the first file format may include a grid row number, a column number, a lower left reference point coordinate, and a cell size of the first file format. How to convert. 삭제delete 삭제delete
KR1020070095836A 2007-09-20 2007-09-20 Method for transforming asc file to geomania gcd file KR100917834B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070095836A KR100917834B1 (en) 2007-09-20 2007-09-20 Method for transforming asc file to geomania gcd file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070095836A KR100917834B1 (en) 2007-09-20 2007-09-20 Method for transforming asc file to geomania gcd file

Publications (2)

Publication Number Publication Date
KR20090030488A KR20090030488A (en) 2009-03-25
KR100917834B1 true KR100917834B1 (en) 2009-09-18

Family

ID=40696779

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070095836A KR100917834B1 (en) 2007-09-20 2007-09-20 Method for transforming asc file to geomania gcd file

Country Status (1)

Country Link
KR (1) KR100917834B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010044367A (en) * 2001-02-13 2001-06-05 이도훈 Method for conversion from DXF file to GEOMania Data File

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010044367A (en) * 2001-02-13 2001-06-05 이도훈 Method for conversion from DXF file to GEOMania Data File

Also Published As

Publication number Publication date
KR20090030488A (en) 2009-03-25

Similar Documents

Publication Publication Date Title
CN106952338B (en) Three-dimensional reconstruction method and system based on deep learning and readable storage medium
CN107564077B (en) method and device for drawing road network
CN107193923B (en) Method and system for quickly superposing vectors in two-dimensional geographic space
CN115439753B (en) DEM-based steep river bank identification method and system
JP2015125509A (en) Image processing apparatus, image processing method, and program
CN111125008B (en) Dynamic repairing method and system of abnormal inode and related components
CN108573510B (en) Grid map vectorization method and device
KR100917834B1 (en) Method for transforming asc file to geomania gcd file
CN112632303A (en) Distributed storage method, analysis method and device for image data
CN107977923B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JP6948959B2 (en) Image processing system and image processing method
CN108228904B (en) Method and apparatus for outputting information
CN111915281B (en) Block evaluation approval method and system based on geological disaster easily-issued subarea, intelligent terminal and storage medium
KR101768913B1 (en) Method of partitioning a data including geographical information, apparatus performing the same and storage medium storing a program performing the same
KR100964317B1 (en) System and method for transforming grd file to geomania gcd file
KR101449725B1 (en) Apparatus and method for converting pdf document
KR101028767B1 (en) A Method For Updating Geographic Image Information
JP4891979B2 (en) Data stream management system, record processing method, program, and recording medium
CN110838157A (en) Method and device for generating thematic map of emergency burst scene
JPWO2020250313A5 (en)
JPWO2020066755A1 (en) Learning model generator, feature change determination device, learning model generation method, feature change determination method, and program
JP2020119001A (en) Information processing apparatus, information processing method, and program
JP2020030730A (en) House movement reading system, house movement reading method, house movement reading program, and house loss reading model
KR102591607B1 (en) Image processing method and system using metadata extracted through reverse engineering of thermal image
CN107943883A (en) The Fast rendering method of huge VectorLayer

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120910

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20130612

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20140828

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee