KR100964317B1 - System and method for transforming grd file to geomania gcd file - Google Patents
System and method for transforming grd file to geomania gcd file Download PDFInfo
- Publication number
- KR100964317B1 KR100964317B1 KR1020070133124A KR20070133124A KR100964317B1 KR 100964317 B1 KR100964317 B1 KR 100964317B1 KR 1020070133124 A KR1020070133124 A KR 1020070133124A KR 20070133124 A KR20070133124 A KR 20070133124A KR 100964317 B1 KR100964317 B1 KR 100964317B1
- Authority
- KR
- South Korea
- Prior art keywords
- file
- information
- cell
- grid
- converting
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Z—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS, NOT OTHERWISE PROVIDED FOR
- G16Z99/00—Subject matter not provided for in other main groups of this subclass
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
본 발명은 서퍼 그리드 데이터 포멧인 GRD 파일의 헤더 파트와 격자정보 파트의 데이터를 추출하여 지오매니아 그리드 데이터 포멧인 GCD 파일의 헤더 파트와 격자 파트 중 헤더 부분으로 변환하고 GRD 파일의 격자 파트 내에 있는 모든 행, 열의 셀 값을 추출하여 GCD 파일 중 격자 파트 내에 각 셀 값으로 변환하여 공간 데이터 구축 비용 및 시간을 줄일 수 있는 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템 및 방법에 관한 것이다.The present invention extracts the data of the header part and the grid information part of the GRD file, which is the surfer grid data format, converts the header part and the grid part of the GCD file, which is the geomania grid data format, and converts the header part and the grid part of the GRD file. The present invention relates to a system and method for converting a GDL file into a geomania indicator file, by extracting cell values of rows and columns and converting the cell values in a grid part of a GCD file to reduce spatial data construction costs and time.
GIS, GRD, GCD, GRID, RASTER, Convert, Cell, File Format GIS, GRD, GCD, GRID, RASTER, Convert, Cell, File Format
Description
본 발명은 서퍼 그리드 데이터 포멧인 GRD 파일의 헤더 파트와 격자정보 파트의 데이터를 추출하여 지오매니아 그리드 데이터 포멧인 GCD 파일의 헤더 파트와 격자 파트 중 헤더 부분으로 변환하고 GRD 파일의 격자 파트 내에 있는 모든 행, 열의 셀 값을 추출하여 GCD 파일 중 격자 파트 내에 각 셀 값으로 변환하여 GRD 파일을 GCD 파일로 변환시킴으로써 공간 데이터 구축 비용 및 시간을 줄일 수 있는 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템 및 방법에 관한 것이다. The present invention extracts the data of the header part and the grid information part of the GRD file, which is the surfer grid data format, converts the header part and the grid part of the GCD file, which is the geomania grid data format, and converts the header part and the grid part of the GRD file. Extracts cell values of rows and columns and converts each cell value within a grid part of a GCD file to convert a GRD file to a GCD file, thereby converting a GDL file into a geomania indicator file, which can reduce the cost and time of building spatial data. System and method.
일반적으로, 지리 정보 시스템(Geographic Information System; GIS)은 지형, 지질, 지리, 토지 등과 관련된 다양한 정보를 수집, 저장, 분석 및 제공하기 위한 하드웨어, 소프트웨어, 지도정보, 인력, 조직 및 제도적 장치의 체계로 되어있다.In general, the Geographic Information System (GIS) is a system of hardware, software, maps, personnel, organizational and institutional devices for collecting, storing, analyzing, and providing a variety of information related to terrain, geology, geography, land, and so on. It is.
이러한, 지리 정보 시스템의 일차적인 목적은 사용자에게 원하는 정보서비스를 제공하는 것이고, 이차적인 목적은 실세계의 지리적 현상을 정보화하여 저장 및 관리하는 것이다. 즉, 지리적인 현상을 정보화하는 것보다 먼저 사용자가 원하는 지리적인 정보의 서비스를 제공하여 주는 것이 더욱 중요하다.The primary purpose of such a geographic information system is to provide a desired information service to a user, and the secondary purpose is to store and manage the geographical phenomena of the real world. That is, it is more important to provide a service of geographical information desired by a user than to informatize geographical phenomenon.
이를 위해, 사용자가 원하는 정보 및 기능에 따라 지리적인 현상은 각기 다른 형태로 지리 정보 시스템에 의해 정확하고 효과적으로 정보화가 되어 하며, 이를 위해 가장 중요한 부분 중 하나는 데이터이다.To this end, geographical phenomena are accurately and effectively informed by geographic information systems in different forms according to information and functions desired by the user, and one of the most important parts is data.
이러한 이유는 우선 지리 정보 시스템을 구축하는데 가장 많은 비용을 차지하는 것이 데이터의 구축일 뿐 아니라 지리 정보 시스템이 제공하는 기능의 질을 결정하는 것도 바로 데이터의 올바른 구축이 필수적이기 때문이다.The reason for this is that not only is the construction of the data most costly to build a geographic information system, but also the right construction of the data is essential to determine the quality of the functions provided by the geographic information system.
이와 같이 국내외에서 사용되는 지리 정보 시스템에서는 일반적으로 골든 소프트웨어(Golden Software)사의 그리드 데이터 포멧인 서퍼 그리드(Surfer GRID) 파일 즉, GRD 파일이 널리 사용되고, 국내에서 사용되는 지리 정보 시스템에서는 지리 정보 시스템(GIS)용 소프트웨어인 지오매니아(GEOMania)의 그리드 데이터 포멧인 GCD 파일이 널리 사용되고 있다.As described above, in the geographic information system used at home and abroad, a surfer grid file, that is, a GRD file, which is a grid data format of Golden Software, is widely used, and a geographic information system is used in a geographic information system used in Korea. GCD files, a grid data format from GEOMania, a software for GIS, are widely used.
이에 따라, GCD 파일을 사용하는 지리 정보 시스템에서 GRD 파일을 사용하기 위해서는 GRD 파일을 GCD 파일로 변환해야 한다. Accordingly, in order to use GRD files in geographic information systems that use GCD files, they must be converted to GCD files.
그러나, GRD 파일로 기 구축된 지리 정보 시스템에서는 GRD 파일이 GCD 파일로 변환되지 않기 때문에 GRD 파일로 기 구축된 그리드형 지리 정보 데이터의 사용이 불가능할 뿐만 아니라 공간 데이터 구축에 있어 많은 비용과 시간이 소모되는 문제가 있다.However, in the geographic information system pre-built with GRD files, the GRD files are not converted to GCD files, which makes it impossible to use the grid-type geospatial data pre-built with GRD files, and it is costly and time-consuming to construct spatial data. There is a problem.
따라서, 본 발명은 서퍼(surfer) 그리드(grid) 데이터 포멧인 GRD 파일의 헤더 파트와 격자정보 파트의 데이터를 추출하여 지오매니아(Geomania) 그리드 데이터 포멧인 GCD 파일의 헤더 파트와 격자 파트 중 헤더 부분으로 변환하고 GRD 파일의 격자 파트 내에 있는 모든 행, 열의 셀 값을 추출하여 GCD 파일 중 격자 파트 내에 각 셀 값으로 변환하여 GRD 파일을 GCD 파일로 변환시킴으로써 공간 데이터 구축 비용 및 시간을 줄일 수 있는 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템 및 방법을 제공하는 것을 목적으로 한다.Accordingly, the present invention extracts the header part and grid information part of the GRD file, which is a surfer grid data format, and the header part of the header part and grid part, of a GCD file, which is a Geomania grid data format. Can reduce the cost and time of building spatial data by extracting the cell values of all the rows and columns in the grid part of the GRD file and converting each cell value within the grid part of the GCD file to convert the GRD file to a GCD file. It is an object of the present invention to provide a system and method for converting an Aldi file into a Geomania directed di file.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템은 변환하고자 하는 제 1 파일명, 생성하고자 하는 제 2 파일명 및 상기 제 1 파일을 상기 제 2 파일로 변환하기 위한 제어명령을 입력받는 입력부; 상기 제 1 파일을 상기 제 2 파일로 변환시키기 위한 변환 프로그램이 저장된 프로그램 저장부; 상기 제 2 파일을 저장하는 메모리; 및 상기 입력부로부터 제 1 파일명, 제 2 파일명 및 제어명령을 전송받아 상기 제어명령을 분석한 후 상기 프로 그램 저장부에 저장된 파일 변환 프로그램을 활성화시켜 상기 제어명령에 따라 상기 제 1 파일의 헤더 파트를 추출한 후 상기 제 1 파일의 X 방향 및 Y 방향 격자 크기 정보를 이용하여 파일 변환 가능 여부를 판단함과 아울러 상기 추출된 헤더 파트 정보를 이용하여 상기 제 1 파일을 제 2 파일로 변환하여 상기 메모리에 저장하는 연산 처리부를 포함하는 것을 특징으로 한다.According to an embodiment of the present invention, a system for converting a GDL file into a geomania indicator file includes a first file name to be converted, a second file name to be created, and a control command for converting the first file to the second file. Input unit for receiving a; A program storage unit for storing a conversion program for converting the first file into the second file; A memory for storing the second file; And receiving the first file name, the second file name, and the control command from the input unit, analyzing the control command, and activating a file conversion program stored in the program storage unit to determine the header part of the first file according to the control command. After extraction, it is determined whether the file can be converted using the X-direction and Y-direction grid size information of the first file, and the first file is converted into a second file by using the extracted header part information. And a calculation processing unit for storing.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템에서 상기 연산 처리부는 상기 (X 방향 격자 크기 - Y 방향 격자 크기)/Y 방향 격자 크기의 절대값이 0.001을 초과하는지의 여부를 검사한 후 그 값이 0.001을 초과할 경우 파일 변환을 종료한다.In the system for converting a GDL file into a geomania indicator file according to an embodiment of the present invention, the arithmetic processing unit may determine whether the absolute value of the (X grid size-Y grid size) / Y grid size exceeds 0.001. If the value exceeds 0.001, file conversion is terminated.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템에서 상기 연산 처리부는 상기 (X 방향 격자 크기 - Y 방향 격자 크기)/Y 방향 격자 크기의 절대값이 0.001을 초과하지 않을 경우 상기 제 1 파일의 좌하단 노드의 X, Y 좌표값에서 각각 셀 크기의 50%를 줄여 환산함으로써 상기 제 1 파일의 좌하단 좌표에서 상기 제 2 파일 좌하단 영역을 계산하고, 상기 제 1 파일의 우상단 노드의 X, Y 좌표값에서 각각 셀 크기의 50%를 더하여 상기 제 1 파일의 우상단 노드 좌표에서 상기 제 2 파일의 우상단 영역을 계산하여 상기 메모리에 저장한다.In the system for converting a GDL file into a geomania indicator file according to an embodiment of the present invention, the calculation processing unit may not have an absolute value of the (X grid size-Y grid size) / Y grid size of 0.001. If not, the second lower left region is calculated from the lower left coordinates of the first file by reducing 50% of the cell size from the X and Y coordinate values of the lower left node of the first file, respectively, 50% of the cell size is added to the X and Y coordinate values of the upper right node of the file, and the upper right area of the second file is calculated from the upper right node coordinates of the first file and stored in the memory.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템에서 상기 연산 처리부는 상기 메모리에 저장된 상기 제 1 파일의 헤더파트 정보를 사용하여 상기 제 2 파일을 생성하고, 상기 제 1 파일의 헤더파트 정보 이후에 존재하는 격자 정보 파트에 2차원 배열 형태로 저장된 상기 제 1 파일 각 셀의 정보를 상기 메모리로부터 읽어 2차원 배열 형태로 구성된 상기 제 2 파일 각 셀에 기입한다.According to an embodiment of the present invention, the calculation processing unit generates the second file using the header part information of the first file stored in the memory in a system for converting a GDL file into a geomania indicator file. The information of each cell of the first file stored in the two-dimensional array form in the grid information part existing after the header part information of one file is read from the memory and written in each cell of the second file configured in the two-dimensional array form.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템에서 상기 연산 처리부는 상기 제 1 파일의 무효 셀을 구분하는 무효 셀 구분 값을 상기 제 2 파일 포멧 헤더의 무효 셀 구분란에 저장하고, 상기 제 1 파일의 헤더 정보 이후에 존재하는 격자 파트에 2차원 배열 형태로 저장된 제 1 파일 각 셀의 정보를 상기 메모리로 읽어 2차원 배열 형태로 구성되어 있는 상기 제 2 파일의 각 셀에 기입한다.In the system for converting a GDL file into a GOMmania file according to an embodiment of the present invention, the arithmetic processing unit may include an invalid cell distinguishing value for identifying an invalid cell of the first file, and an invalid cell distinguishing column of the second file format header. The first file stored in the two-dimensional array form in the lattice part existing after the header information of the first file, and reading the information of each cell into the memory. Write to cell.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템에서 상기 연산 처리부는 상기 메모리에 저장된 상기 제 1 파일의 헤더 파트 정보 중 행, 열의 개수를 기초로 추가 변환시킬 단위 셀 정보가 상기 제 1 파일에 남아 있는지의 여부를 파악한다.In the system for converting a GDL file into a GOMmania file according to an embodiment of the present invention, the operation processor may additionally convert unit cells based on the number of rows and columns of header part information of the first file stored in the memory. Determine whether information remains in the first file.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템에서 상기 헤더 파트 정보는 상기 제 1 파일의 그리드의 행의 개수, 열의 개수, 좌하단 노드 좌표, 우상단 노드 좌표, X 방향 격자 크기, Y 방향 격자 크기 정보를 포함한다.In the system for converting a GDL file into a Geomania indicator file according to an embodiment of the present invention, the header part information includes the number of rows, columns, lower left node coordinates, upper right node coordinates, and X of the grid of the first file. Directional grid size, Y-direction grid size information is included.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 방법은 a) 변환하고자 하는 제 1 파일명, 생성하고자 하는 제 2 파일명 및 상기 제 1 파일을 상기 제 2 파일로 변환하기 위한 제어명령을 입력받는 단계; b) 상기 제어명령에 따라 상기 제 1 파일의 헤더 파트를 추출하는 단계; c) 상기 제 1 파일의 X 방향 및 Y 방향 격자 크기 정보를 이용하여 파일 변환 가능 여부를 판단하는 단계; d) 상기 파일 변환이 가능할 경우 상기 제 1 파일의 좌하단 노드의 X, Y 좌표값과 상기 제 1 파일의 우상단 노드의 X, Y 좌표값을 상기 제 2 파일의 포멧에 맞추어 환산하는 단계; 및 e) 상기 추출된 헤더 파트 정보를 이용하여 상기 제 2 파일을 생성하는 단계를 포함하는 것을 특징으로 한다.According to an embodiment of the present invention, a method of converting a GDL file into a geomania indicator file may include a) a first file name to be converted, a second file name to be created, and a file for converting the first file to the second file. Receiving a control command; b) extracting a header part of the first file according to the control command; c) determining whether the file can be converted using the X-direction and Y-direction grid size information of the first file; d) converting the X, Y coordinate values of the lower left node of the first file and the X, Y coordinate values of the upper right node of the first file according to the format of the second file when the file conversion is possible; And e) generating the second file using the extracted header part information.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 방법에서 상기 e) 단계는 e-1) 상기 제 1 파일에서 셀 단위 정보를 읽는 단계; e-2) 상기 추출된 헤더 파트 정보를 이용하여 상기 제 2 파일의 단위 셀에 각 셀 정보를 기입하는 단계; 및 e-3) 상기 제 1 파일에 처리대상 셀 단위 정보가 남아 있는지 파악하여 상기 셀 단위 정보가 남아 있지 않으면 상기 제 1 파일을 닫는 단계를 포함한다.In the method of converting a Gdi file into a Geomania indication file according to an embodiment of the present invention, the step e) may include e-1) reading cell unit information from the first file; e-2) writing each cell information into a unit cell of the second file using the extracted header part information; And e-3) determining whether the processing unit cell information remains in the first file and closing the first file if the cell unit information does not remain.
본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 방법에서 상기 헤더 파트 정보는 상기 제 1 파일의 그리드의 행의 개수, 열의 개수, 좌하단 노드 좌표, 우상단 노드 좌표, X 방향 격자 크기, Y 방향 격자 크기 정보를 포함한다.In the method of converting a GDL file into a GOMmania file according to an embodiment of the present invention, the header part information may include the number of rows, columns, lower left node coordinates, upper right node coordinates, and X of the grid of the first file. Directional grid size, Y-direction grid size information is included.
본 발명은 서퍼 그리드 데이터 포멧인 GRD 파일의 헤더 파트와 격자정보 파트의 데이터를 추출하여 지오매니아 그리드 데이터 포멧인 GCD 파일의 헤더 파트와 격자 파트 중 헤더 부분으로 변환하고 GRD 파일의 격자 파트 내에 있는 모든 행, 열의 셀 값을 추출하여 GCD 파일 중 격자 파트 내에 각 셀 값으로 변환하여 GRD 파일을 GCD 파일로 변환시키기 때문에 공간 데이터 구축 비용 및 시간을 줄일 수 있다.The present invention extracts the data of the header part and the grid information part of the GRD file, which is the surfer grid data format, converts the header part and the grid part of the GCD file, which is the geomania grid data format, and converts the header part and the grid part of the GRD file. Spatial data construction cost and time can be reduced by extracting the cell values of rows and columns and converting them into cell values within the grid part of the GCD file to convert the GRD file into a GCD file.
이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시 예를 상세하게 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템을 나타내는 도면이다.FIG. 1 is a diagram illustrating a system for converting a GDL file into a Geomania indication file according to an embodiment of the present invention.
도 1을 참조하면, 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템은 변환하고자 하는 제 1 파일과 생성하고자 하는 제 2 파일의 파일명을 입력받음과 아울러 사용자로부터 제어명령을 입력받는 입력부(2), 지도 데이터를 저장하는 지도 데이터 저장부(4), 입력부(2)로부터 전송되는 제어명령에 따라 지도 데이터 저장부(4)에 저장된 GRD 파일의 변환 작업에 대한 모든 과정을 연산처리하는 연산 처리부(6), 연산 처리부(6)에 의해 계산된 결과값을 일시 저장하는 메모리(8), GRD 파일을 GCD 파일로 변환하기 위한 변환 프로그램이 저장된 프로그램 저장부(10), 변환될 지도 파일을 화면에 표시하기 위한 비디오 메모리(12) 및 화면 표시부(14)를 포함한다.Referring to FIG. 1, a system for converting a GDL file into a Geomania indicator file according to an embodiment of the present invention receives a file name of a first file to be converted and a file name of a second file to be created and is controlled by a user. All of the operations for converting the GRD file stored in the map
입력부(2)는 사용자로부터 골든 소프트웨어 시스템(Golden Software System)에서 사용되는 서퍼 그리드(Surfer GRID)파일인 GRD 파일을 지오매니아(Geomania)의 그리드 데이터 파일인 GCD 파일로 변환하기 위한 제어명령, 변환 하고자 하는 제 1 파일인 GRD 파일명 및 생성하고자 하는 제 2 파일인 GCD 파일명을 입력받는다.The
지도 데이터 저장부(4)는 골든 소프트웨어 시스템(Golden Software System)에서 사용되는 서퍼 그리드(Surfer GRID)파일인 GRD 파일이 저장된다.The map
연산 처리부(6)는 입력부(2)에 의해 변환하고자 하는 제 1 파일인 GRD 파일과 생성하고자 하는 제 2 파일인 GCD 파일명이 선택되면, 입력부(2)로부터 전송되는 제어명령을 분석한 후 프로그램 저장부(10)를 읽어 파일 변환 기능을 내장한 지리 정보 시스템 기반의 파일 변환 응용 프로그램을 활성화시킨다.When the GRD file which is the first file to be converted and the GCD file name which is the second file to be generated are selected by the
또한, 연산 처리부(6)는 지도 데이터 저장부(4)에 저장된 GRD 파일을 읽은 후 읽어진 GRD 파일을 메모리(8)에 일시 저장시킨다.Further, the
그리고, 연산 처리부(6)는 메모리(8)에 일시 저장된 GRD 파일의 헤더 부분을 분석하여 GRD 파일에 저장된 그리드의 X 방향 및 Y 방향 셀의 크기 및 좌하단 노드의 좌표, 우상단 노드의 좌표를 확보한 후 메모리(8)에 저장시킨다.The
이때, GRD 파일에는 정방형 격자 데이터만 저장되기 때문에 GRD 파일의 Y 방향 격자크기를 기준으로 X 방향 격자 크기와 Y 방향 격자 크기의 차이가 0.1%를 초과할 경우 연산 처리부(6)는 파일 변환을 중단시킨다.In this case, since only the square grid data is stored in the GRD file, the
이러한, 연산 처리부(6)는 GRD 파일 좌하단 노드의 X, Y 좌표값에서 각각 셀 크기의 50%를 줄여 환산함으로써 GRD 파일의 좌하단 좌표에서 GCD 좌하단 영역을 계산하고, GRD 파일의 우상단 노드의 X, Y 좌표값에서 각각 셀 크기의 50%를 더하여 GRD 파일의 우상단 노드 좌표에서 GCD 파일의 우상단 영역을 계산하여 메 모리(8)에 저장시킨다.The
또한, 연산 처리부(6)는 메모리(8)에 저장된 GRD 파일의 헤더파트 정보를 사용하여 GCD 파일을 생성하고, GRD 파일의 헤더파트 정보 이후에 존재하는 격자 정보 파트에 2차원 배열 형태로 저장된 GRD 파일 각 셀의 정보를 메모리(8)로부터 읽어 2차원 배열 형태로 구성된 GCD 파일 각 셀에 기입한다.In addition, the
그리고, 연산 처리부(6)는 변환 대상 정보 읽기가 완료된 GRD 파일을 닫고, 격자 정보의 기입이 완료된 지오매니아 그리드 파일을 GCD 파일을 지도 데이터 저장부(4)에 저장시킨다.Then, the
또한, 연산 처리부(6)는 지도 데이터 저장부(4)에 저장된 GCD 파일을 화면 표시부(14)가 표시할 수 있도록 비디오 메모리(12)에 저장시킨다.In addition, the
이에 따라, 화면 표시부(14)는 비디오 메모리(12)에 저장된 GCD 파일을 화면에 표시하게 된다.Accordingly, the
메모리(8)는 연산 처리부(6)에 의해 계산된 결과값을 일시 저장한다.The
이러한, 메모리(8)는 RAM(Random Access Memory)으로 구성된다.This
프로그램 저장부(10)는 GRD 파일을 GCD 파일로 변환하기 위한 변환 프로그램을 저장한다.The
비디오 메모리(12)는 변환될 지도 파일 정보를 저장하고, 화면 표시부(14)는 비디오 메모리(12)에 저장된 지도 파일 정보를 표시한다.The
여기서, 비디오 메모리(12)와 메모리(8)는 하나의 메모리로 구성될 수 있다.Here, the
또한, 지도 데이터 저장부(4)와 프로그램 저장부(10)는 HDD(Hard Disk Drive) 또는 ODD(Optical Disk Drive) 등이 사용된다.In addition, the map
이와 같이 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템은 일반적으로 사용되고 있는 지리 정보 시스템(GIS)과 골든 소프트웨어 시스템에서 사용되고 있는 그리드 자료 교환 데이터 포멧인 GRD 파일을 지오매니아 그리드 데이터 파일인 GCD 파일로 변환시킴으로써 공간 데이터 구축에 필요한 비용 및 시간을 줄일 수 있게 된다.As described above, a system for converting a GD file into a GOM file in accordance with an embodiment of the present invention uses a GRD file, which is a grid data exchange data format used in a GIS and a golden software system. By converting them into GCD files, which are enthusiast grid data files, the cost and time required to build spatial data can be reduced.
도 2는 GRD 파일 포멧을 나타내는 도면이고, 도 3은 GCD 파일 포멧을 나타내는 도면이다.FIG. 2 is a diagram showing a GRD file format, and FIG. 3 is a diagram showing a GCD file format.
도 2 및 도 3을 참조하면, GRD 파일은 크게 헤더 파트(Header Part)와 격자(행, 열) 파트로 구성된다.2 and 3, the GRD file is largely composed of a header part and a grid (row and column) part.
여기서, 헤더 파트는 도면에 대한 좌하단 노드의 좌표, 우상단 노드의 좌표, 좌우(X)방향 단위 격자 크기, 상하(Y)방향 단위 격자 크기, 격자 행의 개수, 격자 열의 개수와 무효 셀 값을 구분하기 위한 무효 셀 구분 값으로 구성되어 있다. Here, the header part includes the coordinates of the lower left node, the coordinates of the upper right node, the grid size in the left and right (X) directions, the grid size in the up and down (Y) directions, the number of grid rows, the number of grid columns, and invalid cell values. It is composed of invalid cell distinguishing value to distinguish.
여기서, 좌하단 노드 좌표와 우상단 노드좌표는 "노드(Node)" 방식 즉, 격자 셀의 중심점 좌표를 의미한다.Here, the lower left node coordinates and the upper right node coordinates mean a "node" method, that is, the coordinates of the center point of the grid cell.
또한, 격자(열, 행) 파트는 각각의 그리드 셀에 대한 값들을 저장하고 있다.In addition, the grid (column, row) part stores the values for each grid cell.
GCD 파일은 정부 및 지자체에서 실시하고 있는 각종 국가 지리 정보 시스 템 구축 사업 및 국가 연구과제와 민간 기업에서 GIS 그리드 시스템 구축시 많이 사용하는 데이터 포멧으로 크게 헤더 파트와 격자 파트로 구성된다.The GCD file is a data format that is widely used in various national geographic information system construction projects and national research projects conducted by governments and local governments and in the construction of GIS grid systems by private companies. It consists of header parts and grid parts.
헤더 파트는 그리드 데이터의 범위를 좌, 우, 상, 하 좌표로 지정하며, 격자의 크기, 데이터 형태(Datatype) 등 전체 그리드 파일에 대한 정보가 저장되어 있고 격자 파트는 각 행/열의 그리드 셀 값이 저장되어 있다.The header part specifies the range of grid data in left, right, up and down coordinates. The header part stores information about the entire grid file such as the grid size and data type, and the grid part contains the grid cell values of each row / column. Is stored.
도 4는 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 방법을 나타내는 흐름도이다.4 is a flowchart illustrating a method of converting a GDL file into a geomania indicator file according to an embodiment of the present invention.
도 4를 참조하면, 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 방법은 먼저 사용자로부터 GRD 파일을 GCD 파일로 변환하기 위한 제어명령, 변환하고자 하는 GRD 파일명 및 생성하고자 하는 GCD 파일명이 입력부(2)에 입력되면, 연산 처리부(6)는 입력부(2)에 입력된 제어명령에 따라 GRD 파일을 GCD 파일로 변환하기 위한 초기 준비를 수행한다(S100).Referring to FIG. 4, a method of converting a GDL file into a geomania indicator file according to an embodiment of the present invention, first, a control command for converting a GRD file into a GCD file from a user, a GRD file name to be converted and When the GCD file name is input to the
이때, S100 단계는 새로 생성될 GCD 파일명, 기존 GCD 파일 존재시 파일명에 접미어로 사용될 일련번호 자동생성 및 구성된 파일 이름의 수용 여부를 사용자로부터 확인받는 과정을 의미한다.In this case, step S100 refers to a process of confirming whether a newly generated GCD file name, an automatic generation of a serial number to be used as a suffix in the file name when an existing GCD file exists, and whether the user accepts the configured file name.
이후, 연산 처리부(6)는 입력부(2)로부터 전송되는 제어명령에 따라 S100 단계에서 선택된 GRD 파일의 헤더 파트를 읽어 GRD 파일에 저장된 그리드의 행(Row)의 개수, 열(Columns)의 개수, 좌하단 노드 좌표, 우상단 노드 좌표, X 방향 격자 크기, Y 방향 격자 크기 정보를 추출하여 파악한 후 GRD 파일을 메모리(8)에 임시 저장시킨다(S110).Subsequently, the
여기서, S100 단계에서 선택된 GRD 파일이라 함은 연산 처리부(6)가 입력부(2)로부터 전송되는 GRD 파일명을 지도 데이터 저장부(4)에 저장된 GRD 파일을 선택하여 읽는 것을 의미한다.Here, the GRD file selected in step S100 means that the
이후, 연산 처리부(6)는 메모리(8)에 저장된 GRD 파일을 읽어 Y 방향 격자 크기 정보를 기준으로 X 방향 격자 크기와 Y 방향 격자 크기의 차가 0.1%를 초과하는 지를 검사한다(S120).Thereafter, the
즉, 연산 처리부(6)는 (X 방향 격자 크기 - Y 방향 격자 크기)/Y 방향 격자 크기의 절대값이 0.001을 초과하는지의 여부를 검사한 후 그 값이 0.001을 초과할 경우 파일 변환을 종료한다.That is, the
이에 반해, 그 값이 0.001을 초과하지 않을 경우 연산 처리부(6)는 메모리(8)에 저장된 GRD 파일의 좌하단 노드의 좌표에서 GCD 파일 영역의 좌하단 좌표를 계산하기 위해 GRD 파일의 좌하단 노드의 X, Y 좌표값에서 각각 셀 크기의 50%를 감해 GRD 파일의 좌하단 노드의 좌표를 GCD 파일 영역의 좌하단 좌표로 환산한 후 환산된 GCD 파일 영역의 좌하단 좌표를 메모리(8)에 저장한다.On the other hand, if the value does not exceed 0.001, the
또한, 연산 처리부(6)는 메모리(8)에 저장된 GRD 파일 우상단 노드의 좌표에서 GCD 파일 영역의 우상단 좌표를 계산하기 위해 GRD 파일 우상단 노드의 X, Y 좌표에서 각각 셀 크기의 50%를 더해 GRD 파일 우상단 노드의 좌표를 GCD 파일 영역의 우상단 좌표로 환산한 후 환산된 GCD 파일 영역의 우상단 좌표를 메모리(8)에 저장한다(S130).In addition, the
이후, 연산 처리부(6)는 메모리(8)에 저장된 GCD 파일 영역의 좌하단, 우 상단 좌표 정보를 이용하여 GCD 파일을 생성한 후 생성된 GCD 파일을 지도 데이터 저장부(4)에 저장한다(S140).Subsequently, the
이때, 연산 처리부(6)는 GRD 파일의 무효 셀을 구분하는 무효 셀 구분값(Blankvalue)을 GCD 파일 포멧 헤더의 마지막 56바이트(Byte) 빈 공간인 무효 셀 구분란에 저장한다(S150).At this time, the
S150 단계까지 생성된 GCD 파일에는 각 셀의 정보가 기입 되지 않는다.Information of each cell is not written in the GCD file generated until step S150.
이에 따라, 연산 처리부(6)는 지도 데이터 저장부(4)에 저장된 GRD 파일의 헤더 정보 이후에 존재하는 격자 파트의 단위 셀 정보를 읽어 메모리(8)에 저장한다(S160).Accordingly, the
이때, 연산 처리부(6)는 GRD 파일의 헤더 정보 이후에 존재하는 격자 파트에 2차원 배열 형태로 저장된 GRD 파일 각 셀의 정보를 메모리(8)로 읽어 2차원 배열 형태로 구성되어 있는 GCD 파일의 각 셀에 기입한다(S170).At this time, the
이후, 연산 처리부(6)는 메모리(8)에 저장된 GRD 파일의 헤더 파트 정보 중 행, 열의 개수를 기초로 추가 변환시킬 단위 셀 정보가 GRD 파일에 남아 있는지의 여부를 판단한 후 변환시킬 단위 셀 정보가 존재할 경우 S160 단계 및 S170 단계를 반복 수행하고 변화시킬 단위 셀 정보가 존재하지 않을 경우 GRD 파일을 닫는다(S180, 190).Subsequently, the
또한, 연산 처리부(6)는 격자 파트 정보의 기입이 완료된 GCD 파일을 지도 데이터 저장부(4)에 저장한다(S200).In addition, the
이와 같이 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파 일로 변환하는 방법은 일반적으로 사용되고 있는 지리 정보 시스템(GIS)과 골든 소프트웨어 시스템에서 사용되고 있는 그리드 자료 교환 데이터 포멧인 GRD 파일을 지오매니아 그리드 데이터 파일인 GCD 파일로 변환시킴으로써 공간 데이터 구축에 필요한 비용 및 시간을 줄일 수 있게 된다.As described above, a method of converting a GD file into a GOM file in accordance with an exemplary embodiment of the present invention uses a GRD file, which is a grid data exchange data format used in a GIS and a golden software system. By converting them into GCD files, which are enthusiast grid data files, the cost and time required to build spatial data can be reduced.
도 1은 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 시스템을 나타내는 도면이다.FIG. 1 is a diagram illustrating a system for converting a GDL file into a Geomania indication file according to an embodiment of the present invention.
도 2는 GRD 파일 포멧을 나타내는 도면이다.2 is a diagram illustrating a GRD file format.
도 3은 GCD 파일 포멧을 나타내는 도면이다.3 is a diagram illustrating a GCD file format.
도 4는 본 발명의 실시 예에 따른 지알디 파일을 지오매니아 지시디 파일로 변환하는 방법을 나타내는 흐름도이다.4 is a flowchart illustrating a method of converting a GDL file into a geomania indicator file according to an embodiment of the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>
2 : 입력부 4 : 지도 데이터 저장부2: input unit 4: map data storage unit
6 : 연산 처리부 8 : 메모리6: arithmetic processing unit 8: memory
10 : 프로그램 저장부 12 : 비디오 메모리10: program storage unit 12: video memory
14 : 화면 표시부14: screen display
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070133124A KR100964317B1 (en) | 2007-12-18 | 2007-12-18 | System and method for transforming grd file to geomania gcd file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070133124A KR100964317B1 (en) | 2007-12-18 | 2007-12-18 | System and method for transforming grd file to geomania gcd file |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20090065696A KR20090065696A (en) | 2009-06-23 |
KR100964317B1 true KR100964317B1 (en) | 2010-06-16 |
Family
ID=40993919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020070133124A KR100964317B1 (en) | 2007-12-18 | 2007-12-18 | System and method for transforming grd file to geomania gcd file |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100964317B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101211177B1 (en) * | 2011-03-07 | 2012-12-12 | 부경대학교 산학협력단 | Processing system for concentration field of diffusion model and processing method therefor |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101285804B1 (en) * | 2012-01-31 | 2013-07-12 | 부경대학교 산학협력단 | Retrieval system and method of horizontal field with the ground based meteorological data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010037981A (en) * | 1999-10-21 | 2001-05-15 | 이계철 | Method for converting map data to data for object_related geographic information system |
KR20010044367A (en) * | 2001-02-13 | 2001-06-05 | 이도훈 | Method for conversion from DXF file to GEOMania Data File |
KR100450011B1 (en) | 2004-04-21 | 2004-09-24 | 공간정보기술 주식회사 | Method and system for converting map data |
KR20060111315A (en) * | 2005-04-23 | 2006-10-27 | 미래산업 주식회사 | Placement data file format converter and method for controlling of the same |
-
2007
- 2007-12-18 KR KR1020070133124A patent/KR100964317B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010037981A (en) * | 1999-10-21 | 2001-05-15 | 이계철 | Method for converting map data to data for object_related geographic information system |
KR20010044367A (en) * | 2001-02-13 | 2001-06-05 | 이도훈 | Method for conversion from DXF file to GEOMania Data File |
KR100450011B1 (en) | 2004-04-21 | 2004-09-24 | 공간정보기술 주식회사 | Method and system for converting map data |
KR20060111315A (en) * | 2005-04-23 | 2006-10-27 | 미래산업 주식회사 | Placement data file format converter and method for controlling of the same |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101211177B1 (en) * | 2011-03-07 | 2012-12-12 | 부경대학교 산학협력단 | Processing system for concentration field of diffusion model and processing method therefor |
Also Published As
Publication number | Publication date |
---|---|
KR20090065696A (en) | 2009-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110347769B (en) | Processing method, device, equipment and storage medium for multi-level map tiles | |
CN110992469B (en) | Visualization method and system for massive three-dimensional model data | |
CN113033403A (en) | Image tile-based ecological protection red line ground object target identification method and system | |
CN113268531A (en) | CIM system working method based on BIM and GIS technology | |
Maraş et al. | Topological error correction of GIS vector data | |
KR100964317B1 (en) | System and method for transforming grd file to geomania gcd file | |
KR101184981B1 (en) | Evaluation method for biotop area of building | |
CN102053837B (en) | Collision detection and avoidance method and device for space entity element marking | |
JP2008209417A (en) | Image analysis apparatus, its method, and program | |
CN110989886A (en) | Three-dimensional space grid selection method and device based on space map | |
JP4152097B2 (en) | Sunshine simulation system | |
CN101908069B (en) | Device and method for converting optional area electronic marine map file format | |
KR20190029937A (en) | Heat island predicting method and device thereof | |
CN111652976A (en) | Through-viewing analysis method based on DEM raster data | |
CN110941587A (en) | Space vector data storage method based on additional file and coordinate system conversion system | |
CN115906717A (en) | Erosion calculation method and system for water and soil conservation | |
CN111915281B (en) | Block evaluation approval method and system based on geological disaster easily-issued subarea, intelligent terminal and storage medium | |
CN110941669B (en) | Space vector data storage method based on attribute information and coordinate system conversion system | |
CN114168697A (en) | Tile data publishing method and device | |
KR101028767B1 (en) | A Method For Updating Geographic Image Information | |
JP4488821B2 (en) | Permeability test evaluation system and permeation test evaluation method | |
CN103678588A (en) | Method and device for simplifying spatial data | |
JP5094659B2 (en) | Region name extraction method and apparatus for extracting region name representing region | |
KR100540899B1 (en) | A method for compressing geographic information data | |
KR100917834B1 (en) | Method for transforming asc file to geomania gcd file |
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: 20130306 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20140523 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20150601 Year of fee payment: 6 |
|
LAPS | Lapse due to unpaid annual fee |