KR102538668B1 - Method for updating spatial information and apparatus therefor - Google Patents

Method for updating spatial information and apparatus therefor Download PDF

Info

Publication number
KR102538668B1
KR102538668B1 KR1020210040484A KR20210040484A KR102538668B1 KR 102538668 B1 KR102538668 B1 KR 102538668B1 KR 1020210040484 A KR1020210040484 A KR 1020210040484A KR 20210040484 A KR20210040484 A KR 20210040484A KR 102538668 B1 KR102538668 B1 KR 102538668B1
Authority
KR
South Korea
Prior art keywords
file
spatial information
new file
updating
new
Prior art date
Application number
KR1020210040484A
Other languages
Korean (ko)
Other versions
KR20220135026A (en
KR102538668B9 (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 KR1020210040484A priority Critical patent/KR102538668B1/en
Publication of KR20220135026A publication Critical patent/KR20220135026A/en
Application granted granted Critical
Publication of KR102538668B1 publication Critical patent/KR102538668B1/en
Publication of KR102538668B9 publication Critical patent/KR102538668B9/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/907Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/909Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

공간정보 갱신 방법 및 그 장치가 개시된다. 공간정보갱신장치는 공간정보를 포함하는 적어도 하나 이상의 신규 파일을 수신하면, 신규 파일에 포함된 공간정보 식별정보에 해당하는 저장 파일을 데이터베이스에서 검색하고, 신규 파일과 상기 저장 파일의 크기를 비교하여 서로 상이하거나, 신규 파일과 상기 저장 파일에 대하여 각 파일 내 기 정의된 복수의 위치에 기록된 부분 데이터를 추출하고 비교하여 서로 상이하면 신규 파일을 이용하여 공간정보를 갱신한다.A method and apparatus for updating spatial information are disclosed. When receiving at least one new file including spatial information, the spatial information updating device searches a database for a storage file corresponding to spatial information identification information included in the new file, compares the size of the new file with the storage file, If they are different from each other or by extracting and comparing the partial data recorded at a plurality of predefined locations in each file with respect to the new file and the storage file, if they are different from each other, spatial information is updated using the new file.

Description

공간정보 갱신 방법 및 그 장치{Method for updating spatial information and apparatus therefor}Method for updating spatial information and apparatus thereof {Method for updating spatial information and apparatus therefor}

본 발명의 실시 예는 공간정보를 갱신하는 방법 및 그 장치에 관한 것으로, 보다 상세하게는 공간정보파일 내 저장된 객체의 공간정보의 변경 여부를 파일 단위로 신속하여 파악하여 갱신을 수행할 수 있는 방법 및 그 장치에 관한 것이다. An embodiment of the present invention relates to a method and an apparatus for updating spatial information, and more particularly, a method capable of performing update by quickly determining whether or not spatial information of an object stored in a spatial information file has been changed in a file unit. and its device.

본 연구는 국토교통부/국토교통과학기술진흥원의 지원으로 수행되었다(과제번호: 20DCRU-B158151-01, 부처명: 국토교통부, 연구관리전문기관: 국토교통과학기술진흥원, 연구사업명: 지하공간통합지도 갱신 자동화 및 굴착현장 안전관리지원 기술 개발 사업, 연구과제명: 지하공간통합지도 갱신 자동화 및 굴착현장 안전관리지원 기술 개발 사업, 주관기관: 한국건설기술연구원, 연구기간: 2020.04.01~2023.12.31).This study was carried out with the support of the Ministry of Land, Infrastructure and Transport/Korea Land, Infrastructure, and Transport Science and Technology Promotion Agency (Task number: 20DCRU-B158151-01, name of department: Ministry of Land, Infrastructure and Transport, research management institution: Ministry of Land, Infrastructure, and Transport, Science and Technology Promotion Agency, research project name: renewal of integrated underground space map Automation and excavation site safety management support technology development project, research project title: Underground space integrated map update automation and excavation site safety management support technology development project, Supervisor: Korea Institute of Civil Engineering and Building Technology, Research period: 2020.04.01 ~ 2023.12.31) .

공간정보를 관리하는 시스템에서 현장에서 변경되는 공간정보를 수집하고 서비스하는 과정을 일반적으로 실시간으로 이루어지기 어렵다. 실제 현장에서 측량된 정보는 복잡한 검증 과정과 확인을 거쳐 공간정보관리시스템으로 전달되고, 이렇게 전달된 공간정보를 다시 공간정보를 직접 서비스하거나 또는 공간정보를 이용하는 다양한 업무용 시스템을 위하여 재가공이 이루어진다. 수집된 공간정보를 관리하는 경우에 갱신되는 공간정보를 일괄 갱신하는 경우가 대부분이고 부분 갱신이 요구되는 경우 표준화된 절차를 마련하는 것이 필수적이다. 공간 데이터의 부분 갱신이 원활하게 이루어지기 위해서는 실시간 또는 주기적으로 갱신되는 부분에 대한 변경 여부를 확인하여 이를 시스템에 반영하고, 변경 이력을 관리하는 절차로 운영되게 된다. It is generally difficult to perform the process of collecting and servicing spatial information that is changed in the field in a system that manages spatial information in real time. The information measured in the actual field is transmitted to the spatial information management system through a complex verification process and confirmation, and the spatial information transmitted in this way is reprocessed for direct service of spatial information or for various business systems using spatial information. When managing collected spatial information, most of the updated spatial information is collectively updated, and it is essential to prepare a standardized procedure when partial updating is required. In order to smoothly update the parts of the spatial data, whether or not changes to the parts that are updated in real time or periodically are checked, reflected in the system, and the change history is managed.

공간정보의 변경이 발생하였는지 파악하는 방법은 공간정보파일에 포함된 각 객체에 대한 공간정보를 일일이 읽어 데이터베이스에 저장된 객체 공간정보와 비교하는 방법이다. 공간정보가 변경되지 않은 경우에도 해당 공간정보가 저장된 파일을 읽어 파일 내 각 개체의 공간정보의 변경 여부를 데이터베이스의 해당 정보와 비교하여야 하므로 시스템 부하가 많아지는 문제점이 존재한다.A method of determining whether a change in spatial information has occurred is a method of reading the spatial information of each object included in a spatial information file and comparing it with object spatial information stored in a database. Even if the spatial information is not changed, the file in which the spatial information is stored must be read and whether or not the spatial information of each object in the file has been changed must be compared with the corresponding information in the database, which causes a problem of increased system load.

본 발명의 실시 예가 이루고자 하는 기술적 과제는, 공간정보파일에 저장된 객체의 공간정보의 변경 여부를 파일 단위로 신속하여 파악하여 시스템 부하를 감소하면서 공간정보를 갱신할 수 있는 방법 및 그 장치를 제공하는 데 있다.A technical problem to be achieved by an embodiment of the present invention is to provide a method and apparatus capable of updating spatial information while reducing system load by rapidly determining whether or not spatial information of an object stored in a spatial information file has been changed in file units and updating the spatial information. there is

상기의 기술적 과제를 달성하기 위한, 본 발명의 실시 예에 따른 공간정보 갱신 방법의 일 예는, 공간정보를 포함하는 적어도 하나 이상의 신규 파일을 수신하는 단계; 상기 신규 파일에 포함된 공간정보 식별정보에 해당하는 저장 파일을 데이터베이스에서 검색하는 단계; 상기 신규 파일과 상기 저장 파일의 크기를 비교하는 단계; 상기 신규 파일과 상기 저장 파일에 대하여 각 파일 내 기 정의된 복수의 위치에 기록된 부분 데이터를 추출하고 비교하는 단계; 및 상기 파일의 크기가 서로 다르거나 상기 부분 데이터가 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 단계;를 포함한다.An example of a method for updating spatial information according to an embodiment of the present invention to achieve the above technical problem includes receiving at least one new file including spatial information; searching a database for a storage file corresponding to the spatial information identification information included in the new file; comparing the sizes of the new file and the stored file; extracting and comparing partial data recorded at a plurality of predefined locations in each file with respect to the new file and the stored file; and updating spatial information using the new file when the sizes of the files are different from each other or the partial data are different from each other.

상기의 기술적 과제를 달성하기 위한, 본 발명의 실시 예에 따른 공간정보갱신장치의 일 예는, 공간정보를 포함하는 적어도 하나 이상의 신규 파일을 수신하는 파일수신부; 상기 파일에 포함된 공간정보 식별정보에 해당하는 저장 파일을 데이터베이스에서 검색하는 검색부; 상기 신규 파일과 상기 저장 파일의 크기를 비교하거나, 상기 신규 파일과 상기 저장 파일에서 기 정의된 복수의 위치에 기록된 부분 데이터를 추출하여 비교하는 2차 비교부; 및 상기 파일의 크기가 서로 다르거나 상기 부분 데이터가 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 갱신부;를 포함한다.An example of a spatial information updating apparatus according to an embodiment of the present invention to achieve the above technical problem is a file receiving unit for receiving at least one new file including spatial information; a search unit for searching a database for a stored file corresponding to the spatial information identification information included in the file; a secondary comparison unit for comparing the sizes of the new file and the stored file, or extracting and comparing partial data recorded at a plurality of predefined positions in the new file and the stored file; and an updater configured to update spatial information using the new file when the sizes of the files are different from each other or the partial data are different from each other.

본 발명의 실시 예에 따르면, 공간정보를 담고있는 파일을 수신하면 그 파일 내 포함된 객체의 공간정보를 일일이 읽어 데이터베이스와 비교하여 공간정보의 변경 여부를 파악할 필요없이 파일 단위로 그 속성을 기초로 공간정보의 변경 여부를 신속하게 파악할 수 있다. 따라서 변경된 공간정보를 포함하는 파일에 대해서만 파일 내 객체 공간정보를 읽어 데이터베이스의 공간정보를 갱신할 수 있어 시스템 부하를 경감시킬 수 있다.According to an embodiment of the present invention, when a file containing spatial information is received, spatial information of objects included in the file is read one by one and compared with a database to determine whether or not the spatial information has been changed. Whether or not spatial information has changed can be quickly identified. Therefore, it is possible to update the spatial information of the database by reading the object spatial information in the file only for the file including the changed spatial information, thereby reducing the system load.

도 1은 본 발명의 실시 예에 따른 공간정보갱신장치의 일 예를 도시한 도면,
도 2는 본 발명의 실시 예에 따른 공간정보갱신 방법의 일 예를 도시한 도면,
도 3은 본 발명의 실시 예에 따른 공간정보파일에 포함된 객체의 공간정보 변경 여부를 파악하는 방법의 일 예를 도시한 흐름도,
도 4는 본 발명의 실시 예에 따른 공간정보파일에서 일부 영역을 추출하여 비교하는 방법의 일 예를 도시한 도면,
도 5는 본 발명의 실시 예에 따른 공간정보파일의 헤더의 일 예를 도시한 도면,
도 6은 본 발명의 실시 예에 따른 객체의 공간정보의 저장 위치를 포함하는 인덱스 레코드의 일 예를 도시한 도면,
도 7은 본 발명의 실시 예에 따른 공간정보파일의 변경 여부를 신속하게 파악하기 위하여 압축데이터를 이용하는 방법의 일 예를 도시한 도면, 그리고,
도 8은 본 발명의 실시 예에 따른 공간정보갱신장치의 일 예의 구성을 도시한 도면이다.
1 is a diagram showing an example of a spatial information updating device according to an embodiment of the present invention;
2 is a diagram showing an example of a method for updating spatial information according to an embodiment of the present invention;
3 is a flowchart illustrating an example of a method for determining whether spatial information of an object included in a spatial information file is changed according to an embodiment of the present invention;
4 is a diagram showing an example of a method of extracting and comparing a partial region from a spatial information file according to an embodiment of the present invention;
5 is a diagram showing an example of a header of a spatial information file according to an embodiment of the present invention;
6 is a diagram showing an example of an index record including a storage location of spatial information of an object according to an embodiment of the present invention;
7 is a diagram showing an example of a method of using compressed data to quickly determine whether a spatial information file has been changed according to an embodiment of the present invention; and
8 is a diagram showing the configuration of an example of a spatial information update device according to an embodiment of the present invention.

이하에서, 첨부된 도면들을 참조하여 본 발명의 실시 예에 따른 공간정보 갱신 방법 및 그 장치에 대해 상세히 설명한다.Hereinafter, a spatial information update method and apparatus according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시 예에 따른 공간정보갱신장치의 일 예를 도시한 도면이다.1 is a diagram showing an example of a spatial information update device according to an embodiment of the present invention.

도 1을 참조하면, 공간정보갱신장치(100)는 적어도 하나 이상의 공간정보파일(110)을 수집한다. 예를 들어, 공간정보갱신장치(100)는 공간정보를 생성하는 적어도 하나 이상의 단말 또는 서버로부터 직접 공간정보파일을 수신하거나, 여러 지역의 공간정보를 통합 수집하고 저장하는 별도의 공간정보서버에 접속하여 공간정보파일을 수집할 수 있다. 다른 예로, 공간정보갱신장치(100)는 공간정보를 수집 저장하는 기존의 공간정보서버의 일부로 구현될 수 있다.Referring to FIG. 1 , a spatial information update device 100 collects at least one spatial information file 110 . For example, the spatial information updating device 100 directly receives spatial information files from at least one terminal or server that generates spatial information, or connects to a separate spatial information server that collectively collects and stores spatial information of various regions. Thus, spatial information files can be collected. As another example, the spatial information update device 100 may be implemented as a part of an existing spatial information server that collects and stores spatial information.

공간정보갱신장치(100)는 수집한 공간정보파일을 데이터베이스(120)에 저장할 수 있다. 공간정보갱신장치(100)는 수집한 공간정보파일에 객체의 이전과 비교하여 변경된 객체 공간정보가 존재하면 데이터베이스(120)의 공간정보를 갱신할 수 있다. 공간정보갱신장치(100)는 수집한 공간정보파일에 객체의 변경된 공간정보가 존재하는지 파일 단위의 속성 정보를 기초로 신속하에 파악할 수 있으며, 이에 대해서는 도 2 이하에서 다시 살펴본다.The spatial information update device 100 may store the collected spatial information files in the database 120 . The spatial information updating device 100 may update the spatial information of the database 120 if object spatial information that has been changed compared to the previous object exists in the collected spatial information file. The spatial information updating device 100 can quickly determine whether or not the changed spatial information of an object exists in the collected spatial information file based on the attribute information in units of files, which will be reviewed again below in FIG. 2 .

공간정보파일(110)은 적어도 하나 이상의 객체에 대한 공간정보를 포함하는 파일이다. 예를 들어, 공간정보파일(110)은 건물이나 도로, 수도시설 등 다양한 객체에 대한 정보를 점형 데이터 또는 면형 데이터(폴리곤 등) 형태로 포함할 수 있다. 공간정보파일(110)은 헤더와 실제 공간정보를 포함하는 페이로드 등으로 구성될 수 있다. 공간정보는 공간정보 식별정보와 함께 객체의 2차원 또는 3차원 형상을 점형 데이터, 선형 데이터 또는 면형 데이터 등의 형태로 포함할 수 있다. The spatial information file 110 is a file containing spatial information about one or more objects. For example, the spatial information file 110 may include information on various objects such as buildings, roads, and water facilities in the form of point-type data or planar data (polygon, etc.). The spatial information file 110 may be composed of a header and a payload including actual spatial information. Spatial information may include the 2D or 3D shape of an object in the form of point data, linear data, or planar data along with spatial information identification information.

공간정보파일은 그 포맷 형식이 실시 예에 따라 다양할 수 있다. 다만 이하에서는 설명의 편의를 위하여 ESRI사의 공간정보파일을 예로 들어 설명한다. ESRI 사의 공간정보파일은 크게 SHP, SHX, DBF 등의 파일확장자로 구성된 파일을 포함한다. The format of the spatial information file may vary according to embodiments. However, in the following, for convenience of description, ESRI's spatial information file will be described as an example. ESRI's spatial information files largely include files with file extensions such as SHP, SHX, and DBF.

공간정보파일은 도엽단위 또는 일정 범위 단위로 갱신이 이루어지는 객체의 공간정보를 포함할 수 있다. 또한 공간정보파일은 표준 레이어 분류 체계(즉, 표준화된 식별정보를 부여)를 따를 수 있다. 예를 들어, 국립지리원 등에서 정한 표준 레이어에 따라 데이터를 생성하고 관리할 수 있다. The spatial information file may include spatial information of an object that is updated in a map unit or a predetermined range unit. In addition, spatial information files may follow a standard layer classification system (ie, standardized identification information is assigned). For example, data can be created and managed according to the standard layer set by the National Geographic Agency.

도 2는 본 발명의 실시 예에 따른 공간정보갱신 방법의 일 예를 도시한 도면이다.2 is a diagram illustrating an example of a method for updating spatial information according to an embodiment of the present invention.

도 2를 참조하면, 공간정보갱신장치(100)는 적어도 하나 이상의 공간정보파일(200)을 수집한다. 공간정보파일(200)에는 적어도 하나 이상의 객체에 대한 공간정보가 공간정보 식별정보와 함께 존재한다. 종래에는 공간정보파일에 포함된 객체의 공간정보를 일일이 읽어 데이터베이스에 저장된 공간정보와 비교하여 변경된 부분이 있다면 해당 공간정보를 갱신하였다. 종래에는 객체의 공간정보가 변경되지 않은 경우에도 공간정보파일을 수신하면 공간정보파일의 내용을 읽어 데이터베이스에 저장된 공간정보와 비교하여야 하므로 시스템 부하가 가중되는 문제점이 있다.Referring to FIG. 2 , the spatial information update device 100 collects at least one spatial information file 200 . In the spatial information file 200, spatial information about one or more objects exists together with spatial information identification information. Conventionally, the spatial information of objects included in the spatial information file is read individually and compared with the spatial information stored in the database, and if there is a changed part, the corresponding spatial information is updated. Conventionally, even if the spatial information of an object is not changed, when a spatial information file is received, the contents of the spatial information file must be read and compared with spatial information stored in a database, which increases system load.

그러나 본 실시 예는 공간정보파일(200)을 수신하면 해당 공간정보파일에 포함된 객체의 공간정보를 읽거나 비교할 필요없이 공간정보파일의 크기나 헤더 정보 등과 같은 파일 속성을 기반으로 객체의 공간정보가 변경되었는지를 신속하게 파악하여, 변경된 공간정보가 존재하는 경우에만 공간정보파일에 저장된 객체 공간정보를 읽어 데이터베이스의 공간정보를 갱신한다. 이로써 시스템 부하를 경감할 수 있다. 공간정보파일을 파일 단위의 속성을 기반으로 객체의 변경 유무를 파악하는 구체적인 방법에 대해서는 도 3에서 다시 살펴본다.However, in this embodiment, upon receiving the spatial information file 200, the spatial information of the object included in the corresponding spatial information file is based on file properties such as the size of the spatial information file or header information without the need to read or compare the spatial information of the object included in the corresponding spatial information file. is quickly identified, and only when the changed spatial information exists, the spatial information of the database is updated by reading object spatial information stored in the spatial information file. In this way, the system load can be reduced. A detailed method of determining whether or not an object has been changed based on the properties of a file unit of a spatial information file will be reviewed again in FIG. 3 .

공간정보파일(200)에 변경된 객체의 공간정보가 존재한다면, 공간정보갱신장치(100)는 공간정보파일(200)에 포함된 객체 공간정보(210)를 읽어 데이터베이스에 저장된 객체 공간정보(220)와 비교한다. 공간정보갱신장치(100)는 변경된 객체의 공간정보(212)를 파악한 후 이를 데이터베이스의 공간정보(230)에 반영한다.If the spatial information of the changed object exists in the spatial information file 200, the spatial information updating device 100 reads the object spatial information 210 included in the spatial information file 200 and returns object spatial information 220 stored in the database. compare with The spatial information updating device 100 recognizes the spatial information 212 of the changed object and reflects it to the spatial information 230 of the database.

도 3은 본 발명의 실시 예에 따른 공간정보파일에 포함된 객체의 공간정보 변경 여부를 파악하는 방법의 일 예를 도시한 흐름도이다.3 is a flowchart illustrating an example of a method for determining whether spatial information of an object included in a spatial information file has been changed according to an embodiment of the present invention.

도 3을 참조하면, 공간정보갱신장치(100)는 공간정보파일(이하, 신규 파일)을 수신한다(S300). 공간정보갱신장치(100)는 공간정보파일에 포함된 객체의 공간정보 식별정보를 기초로 이전에 데이터베이스에 등록된 공간정보파일(이하, 저장 파일)을 검색한다. 신규 파일의 공간정보 식별정보에 해당하는 저장 파일이 존재하지 않으면, 공간정보갱신장치(100)는 신규의 공간정보이므로 갱신 여부의 판별 과정 없이 바로 공간정보파일의 객체 공간정보를 데이터베이스에 저장한다.Referring to FIG. 3 , the spatial information updating device 100 receives a spatial information file (hereinafter referred to as a new file) (S300). The spatial information update device 100 searches for a spatial information file previously registered in a database (hereinafter, a storage file) based on spatial information identification information of an object included in the spatial information file. If a storage file corresponding to the spatial information identification information of the new file does not exist, the spatial information updating apparatus 100 immediately stores the object spatial information of the spatial information file in the database without determining whether or not to update the spatial information since it is new spatial information.

공간정보갱신장치(100)는 신규 파일의 파일 크기와 저장 파일의 파일 크기를 비교한다(S310). 파일 크기가 서로 다르다면(S310), 공간정보갱신장치(100)는 신규 파일에 포함된 객체의 공간정보가 변경되었다고 판단하고, 도 2에서 살핀 바와 같이 신규 파일에 저장된 객체의 공간정보를 읽어 데이터베이스에 반영하는 갱신과정(S360)을 수행한다. 예를 들어, ERSI사의 공간정보파일을 사용하는 경우에, 공간정보갱신장치는 SHP 파일, SHX 파일 및 DBF 파일의 크기를 모두 검사할 수 있다. 만약 속성 변경 여부를 검사하지 않는다면 DBF 파일의 파일 크기 비교에서 제외할 수 있다.The spatial information updating device 100 compares the file size of the new file with the file size of the stored file (S310). If the file sizes are different (S310), the spatial information updating apparatus 100 determines that the spatial information of the object included in the new file has been changed, and reads the spatial information of the object stored in the new file as seen in FIG. Performs an update process (S360) to reflect on. For example, in the case of using ERSI's spatial information file, the spatial information updating device can check the sizes of all of the SHP file, SHX file, and DBF file. If property changes are not checked, DBF files can be excluded from file size comparison.

파일 크기가 동일한 경우에도 신규 파일에 포함된 객체의 공간정보가 변경되는 경우가 있을 수 있다. 즉, 변경된 객체의 공간정보와 변경 전의 객체의 공간정보의 크기가 동일하면 신규 파일과 저장 파일이 크기가 서로 동일할 수 있다. 따라서 공간정보갱신장치(100)는 파일 크기가 동일한 경우에 신규 파일과 저장 파일에 대해 기 정의된 복수의 위치에 기록된 부분 데이터를 각각 추출하고 비교한다(S320). 신규 파일과 저장 파일의 전체에 대해 일치 여부를 비교하는 것이 가장 정확할 수 있으나, 공간정보의 데이터 크기가 큰 경우에 많은 시간과 리소소를 소모하므로 현실적으로 적용하기 힘들다. 해쉬를 이용하는 방법도 존재하는 공간정보파일의 용량이 큰 경우 해쉬값을 생성하는 데에도 많은 시간과 리소스가 소요되므로 이 또한 현실적으로 적용하기 힘들다. 따라서 본 실시 예는 파일의 일부분만을 추출하여 비교하는 부분 데이터 비교과정을 수행한다.Even when the file size is the same, there may be cases in which spatial information of an object included in a new file is changed. That is, if the spatial information of the changed object and the spatial information of the object before the change have the same size, the new file and the saved file may have the same size. Accordingly, the spatial information update apparatus 100 extracts and compares partial data recorded in a plurality of predefined locations of the new file and the stored file, respectively, when the file size is the same (S320). It may be most accurate to compare whether the new file and the entire stored file match, but it is difficult to apply in reality because it consumes a lot of time and resources when the data size of spatial information is large. If the capacity of the spatial information file is large, where there is also a method using a hash, it is difficult to apply it practically because it takes a lot of time and resources to generate a hash value. Therefore, in this embodiment, a partial data comparison process of extracting and comparing only a part of a file is performed.

또한, 공간정보갱신장치(100)는 신규 파일에 저장된 객체의 공간정보를 파일 형식에 맞게 읽어 그 내용을 확인하는 것이 아니라 신규 파일 및 저장 파일에서 복수의 일정 위치의 데이터를 아스키 모드 등과 같이 디코딩 과정 없이 파일 내용을 그대로 추출하여 서로 비교한다. 신규 파일과 저장 파일을 아스키 형태로 그대로 읽어 비교하는 방법의 일 예가 도 4에 도시되어 있다. In addition, the spatial information updating device 100 does not read spatial information of objects stored in a new file according to the file format and checks the content, but performs a decoding process of data at a plurality of predetermined positions in a new file and a stored file, such as an ASCII mode. Extract the contents of the files as they are and compare them with each other. An example of a method of reading and comparing a new file and a saved file as they are in ASCII format is shown in FIG. 4 .

공간정보갱신장치(100)는 신규 파일과 저장 파일의 부분 데이터를 읽어 비교한 결과 서로 상이하면(S320), 객체의 공간정보가 변경되었다고 판단하고 데이터베이스의 공간정보 갱신과정(S360)을 수행한다.The spatial information updating apparatus 100 reads and compares the partial data of the new file and the stored file, and if they are different (S320), it determines that the spatial information of the object has been changed and performs a process of updating the spatial information of the database (S360).

신규 파일과 저장 파일의 부분 데이터가 동일한 경우에도 그 외 부분에서 변경된 부분이 존재할 수도 있다. 따라서 공간정보갱신장치(100)는 신규 파일과 저장 파일의 부분 데이터가 동일하면(S320), 신규 파일 및 저장 파일의 헤더에 포함된 공간정보를 표현하는 데이터 형식을 비교한다(S330). 공간정보파일에 저장되는 객체의 공간정보는 폴리라인 형식, 폴리곤 형식 등 다양한 데이터 형식일 수 있으며, 이러한 데이터 형식에 대한 정보는 공간정보파일의 헤더에 포함된다. 데이터 형식을 포함하는 공간정보파일의 헤더의 일 예가 도 5에 도시되어 있다.Even when partial data of the new file and the saved file are the same, a changed portion may exist in other portions. Accordingly, when partial data of the new file and the stored file are the same (S320), the spatial information updating apparatus 100 compares the data formats representing the spatial information included in the headers of the new file and the stored file (S330). Spatial information of an object stored in a spatial information file may be in various data formats such as a polyline format or a polygon format, and information on these data formats is included in the header of the spatial information file. An example of a header of a spatial information file including a data format is shown in FIG. 5 .

공간정보갱신장치(100)는 신규 파일과 저장 파일의 데이터 형식이 상이하면(S330), 객체의 공간정보가 변경되었다고 판단하고 데이터베이스의 공간정보 갱신과정(S360)을 수행한다.When the data format of the new file and the stored file are different (S330), the spatial information updating apparatus 100 determines that the spatial information of the object has been changed and performs a process of updating the spatial information of the database (S360).

신규 파일과 저장 파일의 데이터 형식이 동일하면(S330), 공간정보갱신장치(100)는 좀 더 정확한 판단을 위하여 신규 파일과 저장 파일에 존재하는 객체의 공간정보의 범위를 비교한다(S340). 객체는 공간상의 위치(예를 들어, 위경도 좌표 등)로 정의되며 따라서 공간정보파일에 포함된 복수 개의 객체가 나타내는 공간정보의 범위가 존재한다. 이러한 공간정보의 범위는 공간정보파일의 헤더에 존재한다. 공간정보범위가 정의된 공간정보파일 헤더의 예가 도 5에 도시되어 있다.If the data format of the new file and the stored file are the same (S330), the spatial information updating apparatus 100 compares the range of spatial information of objects existing in the new file and the stored file for more accurate determination (S340). An object is defined by its position in space (for example, latitude and longitude coordinates, etc.), and therefore there exists a range of spatial information represented by a plurality of objects included in a spatial information file. The range of such spatial information exists in the header of the spatial information file. An example of a spatial information file header in which a spatial information range is defined is shown in FIG. 5 .

공간정보갱신장치(100)는 신규 파일과 저장 파일의 공간정보 범위가 서로 상이하면(S340), 객체의 공간정보가 변경되었다고 판단하고 데이터베이스의 공간정보 갱신과정(S360)을 수행한다.When the spatial information ranges of the new file and the stored file are different from each other (S340), the spatial information updating apparatus 100 determines that the spatial information of the object has been changed and performs a process of updating the spatial information of the database (S360).

신규 파일과 저장 파일의 공간정보 범위가 동일한 경우, 공간정보갱신장치(100)는 파일 내 객체가 저장된 위치를 나타내는 인덱스 레코드를 비교할 수 있다(S350). 공간정보파일의 헤더에는 각 객체의 공간정보가 저장된 위치를 가리키는 인덱스를 포함하는 인덱스 레코드가 존재한다. 각 객체마다 레코드가 존재하므로 새로운 객체가 추가되거나 변경되면 인덱스 레코드의 개수나 값이 변경된다. 공간정보갱신장치(100)는 객체의 위치를 나타내는 레코드 전체를 서로 비교하지 않고 신규 파일과 저장 파일의 마지막 인덱스 레코드만을 서로 비교하여 동일한지 판단할 수 있다. 인덱스 레코드의 일 예가 도 6에 도시되어 있다.When the spatial information range of the new file and the saved file are the same, the spatial information updating apparatus 100 may compare index records representing locations where objects in the file are stored (S350). In the header of the spatial information file, there is an index record including an index indicating the location where the spatial information of each object is stored. Since a record exists for each object, the number or value of index records changes when a new object is added or changed. The spatial information updating apparatus 100 may determine whether they are the same by comparing only the last index record of the new file and the stored file without comparing all records indicating the location of the object with each other. An example of an index record is shown in FIG. 6 .

공간정보갱신장치(100)는 신규 파일과 저장 파일에서 객체의 위치를 가리키는 인덱스 레코드가 서로 상이하면(S350), 객체의 공간정보가 변경되었다고 판단하고 데이터베이스의 공간정보 갱신과정을 수행한다. 반면, 신규 파일과 저장 파일의 레코드가 동일하면(S350), 신규 파일에는 객체의 변경된 공간정보가 존재하지 않으므로 공간정보의 갱신과정을 수행하지 않는다. The spatial information updating apparatus 100 determines that the spatial information of the object has been changed when the index records indicating the location of the object in the new file and the storage file are different from each other (S350), and performs a process of updating the spatial information of the database. On the other hand, if the records of the new file and the stored file are the same (S350), the space information update process is not performed because the spatial information of the object that has been changed does not exist in the new file.

본 실시 예는 파일 크기의 비교(S310)부터 인덱스 레코드의 비교(S350)까지의 여러 과정을 순차적으로 수행하여 공간정보의 변경 여부를 파악하는 방법을 설명하고 있으나, 공간정보의 변경 여부를 파악하는 과정은 일부의 비교 과정만으로 구성될 수 있다. 예를 들어, 공간정보갱신장치(100)는 파일 크기 및 부분 데이터의 비교 과정(S310,S320)만을 수행하여 공간정보의 변경 여부를 파악할 수 있다. 또 다른 실시 예로, 공간정보갱신장치(100)는 파일 크기 및 부분 데이터의 비교 과정과 더불어 데이터 형식 비교 과정(S320), 공간정보의 범위 비교 과정(S330), 인덱스 레코드 비교 과정(S350) 중 적어도 하나 이상을 더 포함하여 공간정보의 변경 여부를 파악할 수 있다.This embodiment describes a method of determining whether spatial information is changed by sequentially performing various processes from file size comparison (S310) to index record comparison (S350). A process may consist of only some comparison process. For example, the spatial information updating apparatus 100 may determine whether the spatial information is changed by performing only the file size and partial data comparison process (S310 and S320). As another embodiment, the spatial information updating apparatus 100 performs at least one of a data format comparison process (S320), a spatial information range comparison process (S330), and an index record comparison process (S350) in addition to a file size and partial data comparison process. By including one or more, it is possible to determine whether spatial information is changed.

도 4는 본 발명의 실시 예에 따른 공간정보파일에서 일부 영역을 추출하여 비교하는 방법의 일 예를 도시한 도면이다.4 is a diagram showing an example of a method of extracting and comparing a partial region from a spatial information file according to an embodiment of the present invention.

도 4를 참조하면, 공간정보갱신장치(100)는 공간정보파일(400)의 복수의 기 정의된 위치에서 기 정의된 크기(예를 들어, 12byte 등)의 부분 데이터(410,420,430)를 추출한다. 공간정보갱신장치(100)는 공간정보파일(400)을 그 파일 포맷 형식에 따라 디코딩하여 읽는 것이 아니라 공간정보파일(400)을 아스키(ASCII) 모드 등과 같이 파일에 저장된 값을 그대로 읽은 후 부분 데이터(410,420,430)를 추출할 수 있다. Referring to FIG. 4 , the spatial information updating apparatus 100 extracts partial data 410 , 420 , and 430 of a predefined size (eg, 12 bytes) from a plurality of predefined positions of the spatial information file 400 . The spatial information update device 100 does not decode and read the spatial information file 400 according to the file format, but reads the spatial information file 400 as it is in ASCII mode, etc., and then reads the partial data (410,420,430) can be extracted.

공간정보파일에서 부분 데이터(410,420,430)를 추출할 위치는 다양하게 설정 가능한다. 예를 들어, 공간정보갱신장치(100)는 파일의 시작위치부터 기 정의된 일정 간격(예를 들어, 1000byte 간격 등)마다 일정 크기의 영역을 부분 데이터(410,420,430)를 추출한 위치로 설정할 수 있다. 다른 예로, 공간정보갱신장치(100)는 파일의 전체 크기를 기 정의된 수(예를 들어, 10)로 나눈 값의 간격으로 부분 데이터를 추출할 위치를 결정할 수 있다. 파일크기가 12,345byte이면, 공간정보갱신장치는 12,345/10 = 1,234byte 간격으로 파일 시작위치부터 10군데의 부분 데이터를 추출할 수 있다. 즉, 파일 전체에서 균일하게 일정 부분의 부분 데이터(410,420,430)를 추출할 수 있다.Positions to extract partial data (410, 420, 430) from the spatial information file can be set in various ways. For example, the spatial information updating apparatus 100 may set an area of a certain size as a location where the partial data 410, 420, and 430 are extracted at predetermined intervals (eg, 1000 byte intervals, etc.) from the start of the file. As another example, the spatial information updating apparatus 100 may determine a position to extract partial data at an interval of a value obtained by dividing the total size of a file by a predefined number (eg, 10). If the file size is 12,345 bytes, the spatial information updating device can extract 10 partial data from the start of the file at intervals of 12,345/10 = 1,234 bytes. That is, partial data 410 , 420 , and 430 of a certain portion can be uniformly extracted from the entire file.

공간정보갱신장치(100)는 신규 파일과 저장 파일로부터 복수 개의 부분 데이터를 모두 추출하여 한꺼번에 서로 비교하거나, 부분 데이터를 읽을 때마다 서로 비교할 수 있다. 부분 데이터를 추출할 때마다 비교하는 경우 현재 추출한 부분 데이터가 상이하면 신규 파일과 저장 파일은 서로 상이한 것이므로, 공간정보갱신장치(100)는 부분 데이터 추출 과정을 더 이상 진행하지 않고 종료할 수 있다.The spatial information updating apparatus 100 may extract all of a plurality of partial data from a new file and a stored file and compare them with each other at once or each time partial data is read. When partial data is compared every time it is extracted, if the currently extracted partial data is different, the new file and the stored file are different from each other, so the spatial information updating apparatus 100 may end the partial data extraction process without proceeding any further.

다른 실시 예로, ERSI사의 파일 포맷을 이용하는 경우에, 공간정보갱신장치(100)는 SHP 파일로부터 부분 데이터를 추출하되, 헤더가 존재하는 파일 앞부분부터 수행하지 않고 실제 공간정보가 존재하는 파일의 뒷부분에서 앞부분으로 부분 데이터를 추출하는 과정을 수행할 수 있다. As another embodiment, in the case of using the file format of ERSI, the spatial information updater 100 extracts partial data from the SHP file, but does not start from the front of the file where the header exists, but from the end of the file where the actual spatial information exists. The process of extracting partial data can be performed as the front part.

도 5는 본 발명의 실시 예에 따른 공간정보파일의 헤더의 일 예를 도시한 도면이다.5 is a diagram showing an example of a header of a spatial information file according to an embodiment of the present invention.

도 5를 참조하면, 공간정보파일의 헤더(500)에는 공간정보파일에 저장된 객체의 공간정보의 데이터 형식(510)이 기재되어 있다. 본 실시 예는 ERIS사의 SHP 파일의 헤더의 일 예를 도시하고 있으며, 32번째 바이트에 데이터 형식(510)이 존재한다. 도 3의 예에서 신규 파일과 저장 파일의 헤더에 기록된 데이터 형식이 서로 다르면, 신규 파일에는 객체의 변경된 공간정보가 존재한다고 판단할 수 있다.Referring to FIG. 5 , a data format 510 of spatial information of an object stored in the spatial information file is described in the header 500 of the spatial information file. This embodiment shows an example of the header of ERIS' SHP file, and the data format 510 exists in the 32nd byte. In the example of FIG. 3 , if the data formats recorded in the headers of the new file and the storage file are different from each other, it can be determined that the new file contains the changed spatial information of the object.

공간정보파일의 헤더(500)에는 객체의 공간정보의 범위(520)가 저장될 수 있다. 예를 들어, ERIS사의 SHP 파일의 헤더(500)에는 36번째 바이트부터 객체의 X,Y,Z 좌표에 대한 공간정보 범위 정보(520)가 저장된다. 도 3의 예에서, 신규 파일과 저장 파일의 헤더에 기록된 공간정보의 범위(520)가 서로 다르면(즉, X,Y,Z의 좌표값 등), 신규 파일에는 객체의 변경된 공간정보가 존재한다고 판단할 수 있다.A range 520 of spatial information of an object may be stored in the header 500 of the spatial information file. For example, in the header 500 of ERIS' SHP file, spatial information range information 520 about the X, Y, and Z coordinates of an object is stored from the 36th byte. In the example of FIG. 3, if the range 520 of the spatial information recorded in the header of the new file and the saved file is different from each other (ie, X, Y, Z coordinate values, etc.), the new file contains the changed spatial information of the object. can judge that it does.

도 6은 본 발명의 실시 예에 따른 객체의 공간정보의 저장 위치를 포함하는 인덱스 레코드의 일 예를 도시한 도면이다.6 is a diagram illustrating an example of an index record including a storage location of spatial information of an object according to an embodiment of the present invention.

도 6을 참조하면, 공간정보파일에는 객체의 공간정보가 저장된 위치를 나타내는 인덱스 정보를 포함하는 레코드가 존재한다. 예를 들어, ERIS사의 경우 SHX 파일의 헤더(600)에 각 객체의 공간정보가 저장된 파일의 위치를 나타내는 인덱스 레코드(610)가 존재한다. 도 3의 예에서, 신규 파일과 저장 파일의 헤더에 기록된 인덱스 레코드(610)의 수가 서로 다르거나 마지막 인덱스 레코드의 값이 서로 다르면, 신규 파일에는 객체의 변경된 공간정보가 존재한다고 판단할 수 있다. Referring to FIG. 6, a record including index information indicating a location where spatial information of an object is stored exists in the spatial information file. For example, in the case of ERIS, an index record 610 indicating the location of a file in which spatial information of each object is stored exists in the header 600 of the SHX file. In the example of FIG. 3 , if the number of index records 610 recorded in the headers of the new file and the storage file are different from each other or the value of the last index record is different from each other, it can be determined that the new file has the changed spatial information of the object. .

일 실시 예로, 공간정보갱신장치는 신규 파일과 저장 파일의 인덱스 레코드(610) 전체를 서로 비교하거나, 인덱스 레코드의 마지막 레코드를 서로 비교할 수 있다.As an example, the spatial information updating apparatus may compare the entire index records 610 of the new file and the stored file with each other or the last record of the index records with each other.

도 7은 본 발명의 실시 예에 따른 공간정보파일의 변경 여부를 신속하게 파악하기 위하여 압축데이터를 이용하는 방법의 일 예를 도시한 도면이다.7 is a diagram showing an example of a method of using compressed data to quickly determine whether a spatial information file has been changed according to an embodiment of the present invention.

도 7을 참조하면, 공간정보갱신장치(100)는 공간정보파일에 포함된 객체의 공간정보가 변경되었는지 파악하는데 사용하는 각종 정보(700)를 하나로 압축하여 압축데이터 크기(710)를 파악할 수 있다. Referring to FIG. 7 , the spatial information updating device 100 compresses various types of information 700 used to determine whether the spatial information of an object included in a spatial information file has been changed into one and determines the compressed data size 710. .

예를 들어, 공간정보파일에 포함된 객체의 변경 유무를 파악하는데 파일크기, 부분 데이터, 데이터 형식, 공간정보의 범위, 인덱스 레코드 등의 정보(700)를 사용한다면, 공간정보갱신장치(100)는 데이터베이스에 저장된 저장 파일에 대해 위 정보(700)를 파악하고 압축하여 얻은 압축데이터 크기(710)를 미리 저장할 수 있다.For example, if information 700 such as file size, partial data, data format, range of spatial information, and index record is used to determine whether an object included in a spatial information file has been changed, the spatial information updating apparatus 100 may pre-store the compressed data size 710 obtained by identifying and compressing the above information 700 for the storage file stored in the database.

공간정보갱신장치(100)는 신규 파일을 수신하면, 그 신규 파일에 대해서도 파일 크기, 부분 데이터 등의 값(700)을 파악한 후 그 값들을 압축하여 압축데이터 크기(710)를 얻은 후, 그 압축데이터 크기와 데이터베이스에 미리 파악하여 저장된 저장 파일의 압축데이터 크기를 비교하여 공간정보파일에 포함된 객체의 공간정보가 변경되었는지 파악할 수 있다. When a new file is received, the spatial information updating device 100 determines values 700 such as the file size and partial data for the new file, compresses the values to obtain the compressed data size 710, and compresses the values. It is possible to determine whether the spatial information of an object included in a spatial information file has been changed by comparing the data size with the compressed data size of a storage file that has been identified and stored in the database in advance.

본 실시 예의 경우 공간정보갱신장치(100)는 파일 크기, 부분 데이터, 데이터 형식 등의 각각의 정보에 대하여 신규 파일과 저장 파일을 일일이 비교하는 것이 아니하 한 번에 모든 정보(700)를 추출한 후 그 압축데이터 크기(710)를 한 번만 비교하면 되므로 각 정보를 비교하는 경우에 비해 더 신속하게 객체의 공간정보가 변경되었는지 파악할 수 있다.In the case of this embodiment, the spatial information updating device 100 extracts all information 700 at once, rather than comparing new files and stored files one by one for each information such as file size, partial data, and data format. Since the size of the compressed data 710 needs to be compared only once, it is possible to determine whether spatial information of an object has changed more quickly than in the case of comparing each piece of information.

도 8은 본 발명의 실시 예에 따른 공간정보갱신장치의 일 예의 구성을 도시한 도면이다.8 is a diagram showing the configuration of an example of a spatial information update device according to an embodiment of the present invention.

도 8을 참조하면, 공간정보갱신장치(100)는 파일수신부(800), 검색부(810), 비교부(820) 및 갱신부(830)를 포함한다. Referring to FIG. 8 , the spatial information updating apparatus 100 includes a file receiving unit 800 , a search unit 810 , a comparison unit 820 and an update unit 830 .

파일수신부(800)는 공간정보파일을 수집니다. 예를 들어, 파일수신부(800)는 공간정보를 수집 관리하는 공간정보서버에 접속하여 새로 수신된 공간정보파일을 수집할 수 있다.The file receiving unit 800 receives spatial information files. For example, the file receiving unit 800 may collect a newly received spatial information file by accessing a spatial information server that collects and manages spatial information.

검색부(810)는 수신한 공간정보파일(즉, 신규 파일)에 포함된 공간정보 식별정보에 해당하는 공간정보파일(즉, 저장 파일)을 데이터베이스에서 검색한다. The search unit 810 searches the database for a spatial information file (ie, a stored file) corresponding to the spatial information identification information included in the received spatial information file (ie, a new file).

비교부(820)는 신규 파일에서 공간정보의 변경 유무를 파악하기 위하여 필요한 적어도 하나 이상의 정보를 추출한 후 저장 파일의 정보와 비교한다. 예를 들어, 공간정보의 변경 유무를 파악하기 위하여, 비교부(820)는 신규 파일로부터 파일 크기, 부분 데이터, 데이터 형식, 공간정보의 범위, 인덱스 레코드 중 적어도 하나 이상을 추출할 수 있다. The comparator 820 extracts at least one piece of information necessary to determine whether or not spatial information has been changed in a new file, and then compares the extracted information with the information of the stored file. For example, in order to determine whether spatial information has been changed, the comparator 820 may extract at least one of a file size, partial data, data format, range of spatial information, and an index record from a new file.

비교부(820)는 신규 파일로부터 추출한 정보를 저장 파일의 정보와 비교하여 상이하면 공간정보가 변경되었다고 판단한다. 일 실시 예로, 비교부(820)는 도 3과 같이 파일 크기, 부분 데이터, 데이터 형식, 공간정보의 범위, 인덱스 레코드를 신규파일로 순차적으로 추출하면서 저장파일의 해당 정보와 비교하는 과정을 순차적으로 수행할 수 있다. 이때 저장 파일의 파일 크기, 부분 데이터 등의 정보는 비교부(820)가 필요시마다 추출하거나 이전에 미리 파악하여 데이터베이스에 저장되어 있을 수 있다.The comparator 820 compares the information extracted from the new file with the information of the stored file, and determines that the spatial information has been changed if different. As an embodiment, the comparison unit 820 sequentially extracts the file size, partial data, data format, range of spatial information, and index records as a new file, as shown in FIG. can be done At this time, information such as the file size and partial data of the stored file may be extracted by the comparator 820 whenever necessary or may be identified in advance and stored in the database.

다른 실시 예로, 비교부(820)는 도 7과 같이 공간정보의 변경 유무를 파악하기 위하여 신규 파일로부터 추출한 적어도 하나 이상의 정보를 압축한 압축데이터 크기와 저장 파일로부터 추출한 적어도 하나 이상의 정보를 압축한 압축데이터 크기를 비교할 수 있다. As another embodiment, the comparator 820 compresses the size of compressed data obtained by compressing at least one piece of information extracted from a new file and compressed data obtained by compressing at least one piece of information extracted from a stored file in order to determine whether spatial information has been changed, as shown in FIG. 7 . Data sizes can be compared.

갱신부(830)는 비교부에 의해 신규 파일에 포함된 객체의 공간정보가 변경된 것으로 판단되면, 신규 파일에 포함된 객체의 공간정보를 읽어 데이터베이스에 저장된 공간정보를 갱신한다.When it is determined by the comparing unit that the spatial information of an object included in the new file has been changed, the updating unit 830 reads the spatial information of the object included in the new file and updates the spatial information stored in the database.

본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광데이터 저장장치 등이 있다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The present invention can also be implemented as computer readable codes on a computer readable recording medium. A computer-readable recording medium includes all types of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical data storage devices. In addition, the computer-readable recording medium may be distributed to computer systems connected through a network to store and execute computer-readable codes in a distributed manner.

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far, the present invention has been looked at with respect to its preferred embodiments. Those skilled in the art to which the present invention pertains will be able to understand that the present invention can be implemented in a modified form without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments should be considered from an illustrative rather than a limiting point of view. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the equivalent scope will be construed as being included in the present invention.

Claims (9)

공간정보를 포함하는 적어도 하나 이상의 신규 파일을 수신하는 단계;
상기 신규 파일에 포함된 공간정보 식별정보에 해당하는 저장 파일을 데이터베이스에서 검색하는 단계;
상기 신규 파일과 상기 저장 파일의 크기를 비교하는 단계;
상기 신규 파일과 상기 저장 파일에 대하여 각 파일 내 기 정의된 복수의 위치에 기록된 부분 데이터를 아스키 모드로 추출하고 비교하는 단계; 및
상기 파일의 크기가 서로 다르거나, 상기 파일의 크기가 동일하고 상기 부분 데이터가 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 단계;를 포함하고,
상기 기 정의된 복수의 위치는 파일의 시작위치로부터 기 정의된 일정 간격으로 지정된 위치인 것을 특징으로 하는 공간정보 갱신 방법.
Receiving at least one new file including geospatial information;
searching a database for a storage file corresponding to the spatial information identification information included in the new file;
comparing the sizes of the new file and the stored file;
extracting and comparing partial data recorded at a plurality of predefined positions in each file with respect to the new file and the stored file in an ASCII mode; and
Updating spatial information using the new file when the file sizes are different from each other, or when the size of the files is the same and the partial data are different from each other;
The method of renewing spatial information, characterized in that the plurality of predefined positions are positions designated at predetermined intervals from the start position of the file.
제 1항에 있어서,
상기 파일의 크기 및 상기 부분 데이터가 동일하면, 상기 신규 파일의 헤더에 기록된 공간정보의 데이터 형식과 상기 저장 파일의 헤더에 기록된 공간정보의 데이터 형식을 비교하는 단계;를 더 포함하고,
상기 공간정보를 갱신하는 단계는, 상기 신규 파일과 상기 저장 파일의 데이터 형식이 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 단계;를 포함하는 것을 특징으로 하는 공간정보 갱신 방법.
According to claim 1,
If the size of the file and the partial data are the same, comparing the data format of the spatial information recorded in the header of the new file with the data format of the spatial information recorded in the header of the storage file;
The updating of the spatial information may include updating the spatial information using the new file if the data formats of the new file and the storage file are different from each other.
제 2항에 있어서,
상기 데이터 형식이 동일하면, 상기 신규 파일의 헤더에 기록된 공간정보 범위와 상기 저장 파일의 헤더에 기록된 공간정보 범위를 비교하는 단계;를 더 포함하고,
상기 공간정보를 갱신하는 단계는, 상기 신규 파일과 상기 저장 파일의 공간정보 범위가 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 단계;를 포함하는 것을 특징으로 하는 공간정보 갱신 방법.
According to claim 2,
If the data format is the same, comparing the spatial information range recorded in the header of the new file with the spatial information range recorded in the header of the storage file;
The spatial information updating method may include updating the spatial information using the new file if the spatial information ranges of the new file and the stored file are different from each other.
제 3항에 있어서,
상기 공간정보가 동일하면, 상기 신규 파일의 헤더에 기록된 객체 공간정보의 저장 위치를 나타내는 레코드와 상기 저장 파일의 헤더에 기록된 객체 공간정보의 저장 위치를 나타내는 레코드를 비교하는 단계;를 더 포함하고,
상기 공간정보를 갱신하는 단계는, 상기 신규 파일과 상기 저장 파일의 레코드가 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 단계;를 포함하는 것을 특징으로 하는 공간정보 갱신 방법.
According to claim 3,
If the spatial information is the same, comparing the record indicating the storage location of object spatial information recorded in the header of the new file with the record indicating the storage location of object spatial information recorded in the header of the stored file; do,
The updating of the spatial information may include updating the spatial information using the new file if the records of the new file and the storage file are different from each other.
제 4항에 있어서, 상기 비교하는 단계는,
상기 헤더에 기록된 레코드들 중 마지막 레코드를 비교하는 단계를 포함하는 것을 특징으로 하는 공간정보 갱신 방법.
The method of claim 4, wherein the comparing step,
and comparing the last record among the records recorded in the header.
제 1항에 있어서, 상기 공간정보를 갱신하는 단계는,
상기 저장 파일의 파일 크기 및 파일 내 기 정의된 복수의 위치에 기록된 부분 데이터를 압축하여 얻은 제1 압축데이터 크기와 상기 신규 파일의 파일 크기 및 파일 내 기 정의된 복수의 위치에 기록된 부분 데이터를 압축하여 얻은 제2 압축데이터 크기를 비교하여 서로 동일한지 파악하는 단계;를 포함하는 것을 특징으로 하는 공간정보 갱신 방법.
The method of claim 1, wherein the updating of the spatial information comprises:
The size of the first compressed data obtained by compressing the file size of the stored file and partial data recorded at a plurality of predefined locations within the file and the file size of the new file and partial data recorded at a plurality of predefined locations within the file Comparing sizes of second compressed data obtained by compressing , and determining whether they are the same; Spatial information updating method comprising:
제 6항에 있어서,
상기 신규 파일에 대한 제2 압축데이터 크기는 미리 파악하여 상기 데이터베이스에 저장되어 있는 것을 특징으로 하는 공간정보 갱신 방법.
According to claim 6,
The method of renewing spatial information, characterized in that the size of the second compressed data for the new file is determined in advance and stored in the database.
공간정보를 포함하는 적어도 하나 이상의 신규 파일을 수신하는 파일수신부;
상기 파일에 포함된 공간정보 식별정보에 해당하는 저장 파일을 데이터베이스에서 검색하는 검색부;
상기 신규 파일과 상기 저장 파일의 크기를 비교하거나, 상기 신규 파일과 상기 저장 파일에서 기 정의된 복수의 위치에 기록된 부분 데이터를 아스키 모드로 추출하여 비교하는 2차 비교부; 및
상기 파일의 크기가 서로 다르거나, 상기 파일의 크기가 동일하고 상기 부분 데이터가 서로 다르면 상기 신규 파일을 이용하여 공간정보를 갱신하는 갱신부;를 포함하고,
상기 기 정의된 복수의 위치는 파일의 시작위치로부터 기 정의된 일정 간격으로 지정된 위치인 것을 특징으로 하는 공간정보갱신장치.
a file receiving unit for receiving at least one new file including spatial information;
a search unit for searching a database for a stored file corresponding to the spatial information identification information included in the file;
a second comparison unit for comparing the size of the new file and the stored file, or extracting and comparing partial data recorded at a plurality of predefined positions in the new file and the stored file in an ASCII mode; and
An update unit for updating spatial information using the new file when the file sizes are different or when the file sizes are the same and the partial data are different,
The spatial information updating device, characterized in that the plurality of predefined positions are positions designated at predetermined intervals from the start position of the file.
제 1항 내지 제 7항 중 어느 한 항에 기재된 방법을 수행하기 위한 컴퓨터 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.

A computer-readable recording medium recording a computer program for performing the method according to any one of claims 1 to 7.

KR1020210040484A 2021-03-29 2021-03-29 Method for updating spatial information and apparatus therefor KR102538668B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210040484A KR102538668B1 (en) 2021-03-29 2021-03-29 Method for updating spatial information and apparatus therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210040484A KR102538668B1 (en) 2021-03-29 2021-03-29 Method for updating spatial information and apparatus therefor

Publications (3)

Publication Number Publication Date
KR20220135026A KR20220135026A (en) 2022-10-06
KR102538668B1 true KR102538668B1 (en) 2023-06-01
KR102538668B9 KR102538668B9 (en) 2024-01-11

Family

ID=83597110

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210040484A KR102538668B1 (en) 2021-03-29 2021-03-29 Method for updating spatial information and apparatus therefor

Country Status (1)

Country Link
KR (1) KR102538668B1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287986A1 (en) * 2008-05-14 2009-11-19 Ab Initio Software Corporation Managing storage of individually accessible data units

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
김형수 외, UFID를 이용한 객체기반 수치지도 공간 데이터 모델, 한국공간정보시스템학회 논문지 제11권 제1호, pp71-78(2009)*
이진수 외, 객체 단위 기반의 기본지리정보 수정갱신 방법 및 시스템 구현, 제33회 대한토목학회 정기학술대회, pp2931-2934(2007)*

Also Published As

Publication number Publication date
KR20220135026A (en) 2022-10-06
KR102538668B9 (en) 2024-01-11

Similar Documents

Publication Publication Date Title
CN111723959B (en) Region dividing method and device, storage medium and electronic device
TW201107716A (en) Geospatial object property assessment apparatus, geospatial object property assessment system, editor apparatus and method of assessing a property of a geospatial object
US20080091742A1 (en) System and method for detecting and updating geographical information dataset versions
WO2020052312A1 (en) Positioning method and apparatus, electronic device, and readable storage medium
KR101599133B1 (en) Method and system for providing map data of navigation device
CN110196834A (en) It is a kind of for data item, file, database to mark method and system
JP2017102672A (en) Geographic position information specification system and geographic position information specification method
CN108256020B (en) Abnormal route detection method, abnormal route detection device, server and storage medium
CN110705830A (en) Risk assessment method and device and server
CN111738558B (en) Visualization method, device, equipment and storage medium for behavior risk identification
CN112215439B (en) Geological disaster emergency command data processing method and system based on GIS
US9213759B2 (en) System, apparatus, and method for executing a query including boolean and conditional expressions
KR102538668B1 (en) Method for updating spatial information and apparatus therefor
JP2011215984A (en) Apparatus and method for processing data and program
CN110647595B (en) Method, device, equipment and medium for determining newly-added interest points
CN110688995A (en) Map query processing method, computer-readable storage medium and mobile terminal
CN108075918B (en) Internet service change detection method and system
CN110457705B (en) Method, device, equipment and storage medium for processing point of interest data
CN113570341A (en) Distribution network equipment information input method and device
CN114064574A (en) Trademark monitoring method and device combining RPA and AI, electronic equipment and storage medium
CN113360506A (en) Highway engineering BIM-based paper archive digital processing method and system
CN107872874B (en) Method for updating positioning data, server and computer readable medium
JP2022023495A (en) Urban asset management system and urban asset management method
KR100941771B1 (en) Method and apparatus for updating gis data
CN111858093A (en) Message processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
G170 Re-publication after modification of scope of protection [patent]