KR100321773B1 - Method of converting spatial data to postscript format in spatial database system - Google Patents

Method of converting spatial data to postscript format in spatial database system Download PDF

Info

Publication number
KR100321773B1
KR100321773B1 KR1019980053074A KR19980053074A KR100321773B1 KR 100321773 B1 KR100321773 B1 KR 100321773B1 KR 1019980053074 A KR1019980053074 A KR 1019980053074A KR 19980053074 A KR19980053074 A KR 19980053074A KR 100321773 B1 KR100321773 B1 KR 100321773B1
Authority
KR
South Korea
Prior art keywords
spatial
spatial data
class
postscript
converting
Prior art date
Application number
KR1019980053074A
Other languages
Korean (ko)
Other versions
KR20000038181A (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 KR1019980053074A priority Critical patent/KR100321773B1/en
Publication of KR20000038181A publication Critical patent/KR20000038181A/en
Application granted granted Critical
Publication of KR100321773B1 publication Critical patent/KR100321773B1/en

Links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

1. 청구범위에 기재된 발명이 속한 기술분야1. TECHNICAL FIELD OF THE INVENTION

본 발명은 공간 데이터베이스 시스템에서 공간 데이터를 포스트스크립트 형식으로 변환하는 방법과 그를 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체에 관한 것임.The present invention relates to a method of converting spatial data into a PostScript format in a spatial database system and a computer-readable recording medium having recorded thereon a program for realizing the same.

2. 발명이 해결하려고 하는 기술적 과제2. The technical problem to be solved by the invention

본 발명은, 다양한 응용프로그램에서 사용할 수 있도록 공간 데이터베이스 시스템의 공간 정보를, 데이터의 효율적인 이용에 중점을 두고 어떤 운영체제에서나 사용가능하고 또한 거의 모든 프린터에서 지원 가능한 포스트스크립트 형식으로 변환하는 방법과 그를 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공하고자 함.The present invention provides a method and method for converting spatial information of a spatial database system into a PostScript format that can be used on any operating system and supported by almost all printers, with an emphasis on efficient use of data for use in various applications. To provide a computer-readable recording medium that records a program for the purpose.

3. 발명의 해결방법의 요지3. Summary of Solution to Invention

본 발명은, 데이터베이스 관리 시스템에서 공간 데이터를 변환하는 방법에 있어서, 입력장치로부터 원하는 공간 정보와 출력 정보를 입력받는 제 1 단계; 상기 입력받은 출력 정보를 가지고 포스트스크립트(PostScript) 파일 형식으로 출력 형식을 설정하는 제 2 단계; 입력된 공간 정보에 포함되는 클래스나 클래스와 관련된 공간 데이터를 공간 데이터베이스에서 추출하는 제 3 단계; 및 상기 추출된 공간 데이터에 대한 클래스 객체의 모든 공간 데이터 타입을 분석하여, 그 분석 결과에 따라 해당 공간 데이터를 상기 포스트스크립트(PostScript) 파일 형식으로 변환하는 제 4 단계를 포함함.The present invention provides a method for converting spatial data in a database management system, comprising: a first step of receiving desired spatial information and output information from an input device; A second step of setting an output format in a PostScript file format using the received output information; Extracting, from a spatial database, a class or spatial data associated with the class included in the input spatial information; And analyzing all spatial data types of the class object with respect to the extracted spatial data, and converting the spatial data into the PostScript file format according to the analysis result.

4. 발명의 중요한 용도4. Important uses of the invention

본 발명은 데이터베이스 관리 시스템 등에 이용됨.The present invention is used in a database management system and the like.

Description

공간 데이터베이스 시스템에서 공간 데이터를 포스트스크립트 형식으로 변환하는 방법 {Method of converting spatial data to postscript format in spatial database system}How to convert spatial data to postscript format in spatial database system}

본 발명은 공간 데이터베이스 시스템에서 공간 정보를 데이터의 효율적인 이용에 중점을 둔 포스트스크립트(PostScript) 형식으로 변환하여 출력용 도면을 생성하는 공간 데이터를 포스트스크립트 형식으로 변환하는 방법과 그를 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체에 관한 것이다.The present invention records a method for converting spatial data into PostScript format by converting spatial information into PostScript format focused on efficient use of data in a spatial database system and generating a drawing for output, and a program for realizing the same. The present invention relates to a computer-readable recording medium.

종래에는 공간 데이터베이스 시스템에서 공간 정보를 처리할 때, 특성, 정확성, 사용의 용이성 및 수용성 등의 시스템 특성에 따라 상이한 출력기능을 나타내었다. 또한, 공간 정보를 출력할 때, 지도, 속성에 따른 테이블 또는 파일이나 보고서의 형식으로 나타내었다.Conventionally, when processing spatial information in a spatial database system, different output functions have been shown according to system characteristics such as characteristics, accuracy, ease of use, and water solubility. In addition, when outputting spatial information, it is shown in the form of a map, a table according to attributes, or a file or report.

그러므로, 상이한 시스템에서의 출력이 어렵고, 다양한 응용분야에 대한 공간 데이터베이스로부터 원하는 공간 정보만을 추출하여 출력하기 어려운 문제점이 있었다.Therefore, it is difficult to output in different systems, and it is difficult to extract and output only desired spatial information from a spatial database for various applications.

본 발명은, 상기한 바와 같은 문제점을 해결하기 위하여 제안된 것으로, 다양한 응용프로그램에서 사용할 수 있도록 공간 데이터베이스 시스템의 공간 정보를, 데이터의 효율적인 이용에 중점을 두고 어떤 운영체제에서나 사용가능하고 또한 거의 모든 프린터에서 지원 가능한 포스트스크립트 형식으로 변환하는 방법과 그를 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공하는데 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been proposed to solve the above-mentioned problems. The present invention provides spatial information of a spatial database system so that it can be used in various applications, and can be used in any operating system with an emphasis on efficient use of data. The aim is to provide a computer-readable recording medium that records a program for converting to a PostScript format that can be supported by.

도 1 은 본 발명이 적용되는 중형급 컴퓨터의 하드웨어 구성예시도.1 is an exemplary hardware configuration of a medium class computer to which the present invention is applied.

도 2 는 본 발명에 따른 공간 데이터베이스 시스템에서 공간 데이터를 포스트스크립트 파일로 변환하는 과정의 개략적인 구성도.2 is a schematic structural diagram of a process of converting spatial data into a PostScript file in a spatial database system according to the present invention;

도 3 은 본 발명에 따른 공간 데이터베이스 시스템에서 공간 데이터를 이용하여 포스트스크립트 파일로 변환하는 방법의 일실시예 흐름도.3 is a flow diagram of one embodiment of a method of converting a PostScript file using spatial data in a spatial database system in accordance with the present invention.

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

101 : 중앙처리장치(CPU) 102 : 주기억장치(메모리)101: central processing unit (CPU) 102: main memory (memory)

103 : 보조기억장치 104 : 출력장치103: auxiliary storage device 104: output device

105 : 입력장치105: input device

상기 목적을 달성하기 위한 본 발명은, 데이터베이스 관리 시스템에서 공간 데이터를 변환하는 방법에 있어서, 입력장치로부터 원하는 공간 정보와 출력 정보를 입력받는 제 1 단계; 상기 입력받은 출력 정보를 가지고 포스트스크립트(PostScript) 파일 형식으로 출력 형식을 설정하는 제 2 단계; 입력된 공간 정보에 포함되는 클래스나 클래스와 관련된 공간 데이터를 공간 데이터베이스에서 추출하는 제 3 단계; 및 상기 추출된 공간 데이터에 대한 클래스 객체의 모든 공간 데이터 타입을 분석하여, 그 분석 결과에 따라 해당 공간 데이터를 상기 포스트스크립트(PostScript) 파일 형식으로 변환하는 제 4 단계를 포함하여 이루어진 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method of converting spatial data in a database management system, comprising: a first step of receiving desired spatial information and output information from an input device; A second step of setting an output format in a PostScript file format using the received output information; Extracting, from a spatial database, a class or spatial data associated with the class included in the input spatial information; And a fourth step of analyzing all spatial data types of the class object with respect to the extracted spatial data and converting the corresponding spatial data into the PostScript file format according to the analysis result. .

또한, 본 발명은, 프로세서를 구비한 데이터베이스 관리 시스템에, 입력장치로부터 원하는 공간 정보와 출력 정보를 입력받는 제 1 기능; 상기 입력받은 출력 정보를 가지고 포스트스크립트(PostScript) 파일 형식으로 출력 형식을 설정하는 제 2 기능; 입력된 공간 정보에 포함되는 클래스나 클래스와 관련된 공간 데이터를 공간 데이터베이스에서 추출하는 제 3 기능; 및 상기 추출된 공간 데이터에 대한 클래스 객체의 모든 공간 데이터 타입을 분석하여, 그 분석 결과에 따라 해당 공간 데이터를 상기 포스트스크립트(PostScript) 파일 형식으로 변환하는 제 4 기능을 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공한다.The present invention also provides a database management system having a processor, comprising: a first function of receiving desired spatial information and output information from an input device; A second function of setting an output format in a PostScript file format using the received output information; A third function of extracting a spatial data related to a class or a class included in the input spatial information from a spatial database; And a program for analyzing all spatial data types of the class object with respect to the extracted spatial data and converting the spatial data into the PostScript file format according to the analysis result. It provides a recording medium that can be read by.

먼저, 본 발명의 이해를 돕기 위해 그 개념을 간략하게 살펴보면 다음과 같다.First, briefly look at the concept to help the understanding of the present invention.

지리정보시스템은 지리적 속성을 포함하는 공간 객체의 그래픽 요소와 그에 따른 속성 정보를 데이터베이스 시스템에서 일반 데이터를 처리하듯이 관리하며 사용자에게 가시적인 그래픽 화면을 제시하여 데이터베이스 디자인부터 입출력 및 분석에 활용할 수 있도록 지원하는 통합 시스템이다.The geographic information system manages the graphic elements of spatial objects including geographic attributes and their attributes as if they were processed by the database system, and presented graphical screens to the users so that they could be utilized for database design, input and output, and analysis. Support integrated system.

지리 정보 시스템은 공간 정보를 처리하기 위해서 데이터 입력, 데이터 처리, 데이터 조작 및 분석, 데이터 출력 등 크게 네가지 기능을 제공한다. 이중 출력 기능은 특성, 정확성, 사용의 용이성 및 수용성 등에 따라 시스템별로 다양하다. 지도, 속성 등의 테이블 또는 파일이나 보고서의 형식으로 나타낼 수 있다.Geographic information system provides four functions such as data input, data processing, data manipulation and analysis, and data output to process spatial information. Dual output capabilities vary from system to system depending on characteristics, accuracy, ease of use and acceptability. It can be displayed in the form of a table, file, or report such as a map or property.

본 발명은 각종 도면 및 도로, 통신, 전력, 가스, 상하수도, 철도, 공항, 항만 등의 시설물 관리 분야와 도시계획, 수자원 관리, 토지관리, 국방, 소방 등의 다양한 지리정보응용분야에 대한 공간 데이터베이스에 대해서 원하는 공간 정보에 대한 출력용 도면을 생성할 수 있으며, 특히 출력용지 옵션, 데이터베이스 영역, 클래스, 주석등을 원하는대로 설정하도록 하여 필요한 부분에 대해 원하는 지형만을 선별적으로 출력할 수 있도록 하는 방법을 제시하고자 한다.The present invention is a spatial database of various drawings and facilities management fields such as road, communication, power, gas, water and sewage, railway, airport, harbor, and various geographic information applications such as city planning, water resource management, land management, defense, firefighting, etc. You can create a drawing for outputting the spatial information you want, and in particular, set the output paper options, database area, class, and annotations as desired so that you can selectively print only the desired terrain for the required part. I would like to present.

상술한 목적, 특징들 및 장점은 첨부된 도면과 관련한 다음의 상세한 설명을 통하여 보다 분명해질 것이다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일실시예를 상세히 설명한다.The above objects, features and advantages will become more apparent from the following detailed description taken in conjunction with the accompanying drawings. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 실시예에서 공간 데이터베이스는 객체 관계형 지리정보시스템(Geographic Information System : GIS)용 데이터베이스관리시스템(Database Management System : DBMS)인 제우스(GEUS)에서 제공하는 데이터베이스를 사용한다.In the embodiment of the present invention, the spatial database uses a database provided by GEUS, which is a database management system (DBMS) for an object relational geographic information system (GIS).

도 1 은 본 발명이 적용되는 중형급 컴퓨터의 하드웨어 구성예시도이다.1 is an exemplary hardware configuration of a medium class computer to which the present invention is applied.

도 1에 도시된 바와 같이, 공간 데이터베이스 시스템에서 공간 데이터를 포스트스크립트(PostScript) 형식으로 변환하는 과정은, 주기억 장치(102)에 기록되어 중앙처리장치(101)에 의해 제어의 흐름에 따라 실행된다. 입력장치(105)를 통하여 요청된 공간 정보와 관련된 데이터베이스는 이미 만들어져서 보조기억장치(103)에 저장되어 있다고 가정한다.As shown in FIG. 1, the process of converting spatial data into a PostScript format in the spatial database system is recorded in the main memory device 102 and executed by the central processing unit 101 according to the flow of control. . It is assumed that a database related to the spatial information requested through the input device 105 has already been created and stored in the auxiliary storage device 103.

도 2 는 본 발명에 따른 공간 데이터베이스 시스템에서 공간 데이터를 이용하여 포스트스크립트 파일로 변환하는 과정의 개략적인 구성도이다.2 is a schematic structural diagram of a process of converting a PostScript file using spatial data in a spatial database system according to the present invention.

도 2에 도시된 바와 같이, 프로그램을 보조기억 장치(103)에서 주기억 장치(102)에 올린 후, 중앙처리 장치(101)에 의해 작업이 시작되면 입력 모듈(201)로부터 출력 정보와 공간 정보를 입력받는다. 출력 정보는 용지 형태, 용지 크기, 여백주기, 용지에 그려질 영역의 크기, 지도 타이틀, 범례 영역 등이며 공간 정보는 데이터베이스 이름, 그려질 데이터베이스 영역, 선택할 클래스들의 이름, 선택되는 클래스에 대한 주석의 설정 여부 등이 포함된다. 출력 정보와 공간 정보가 정확히 입력되었는지를 확인하고 출력 정보를 참조하여 용지 형태나 용지 크기, 여백주기를 포스트스크립트 파일에 설정한다.As shown in FIG. 2, after the program is uploaded from the auxiliary memory device 103 to the main memory device 102, when the operation is started by the CPU 101, output information and spatial information are received from the input module 201. Receive input. The output information is paper type, paper size, margin period, size of area to be drawn on paper, map title, legend area, etc. Spatial information includes database name, database area to be drawn, names of classes to be selected, and comments about selected class. Whether it is set or not. Check that the output and space information is entered correctly, and set the paper type, paper size, and margin period in the PostScript file by referring to the output information.

여기서, 공간 데이터베이스는 지리적 속성을 포함하는 공간 객체의 그래픽 요소와 그에 따른 속성 정보를 일반 데이터를 처리하듯이 처리 및 관리하는 데이터베이스를 말하며, 공간 데이터베이스 시스템은 통신시설분야 및 국방분야를 비롯하여 환경, 도시개발, 토목, 수자원, 교통, 통계 등 각 분야에서 시설관리 및 계획에 광범위하게 이용하는 시스템을 말한다.Here, the spatial database refers to a database that processes and manages graphic elements of spatial objects including geographic attributes and attribute information thereof according to general data, and the spatial database system includes an environment, a city, a communication facility field and a defense field. It is a system widely used for facility management and planning in various fields such as development, civil engineering, water resources, transportation, and statistics.

이어서, 공간 정보에서 입력된 데이터베이스에 접근하여 원하는 클래스가 존재하는지를 조사하고 원하는 클래스가 존재하면 추출 모듈(202)에서는 클래스에 대한 인스턴스들을 추출한다. 이때, 클래스와 관련된 모든 인스턴스들을 가져오는 것이 아니라 위상 관계에 고려하여 만족되는 인스턴스만을 가져온다. 공간 데이터베이스에서는 다음과 같은 위상 관계를 나타내는 연산자가 있다.Subsequently, the database input from the spatial information is accessed to check whether the desired class exists, and if the desired class exists, the extraction module 202 extracts instances for the class. At this time, not all instances related to the class are imported, but only instances that are satisfied in consideration of the topological relationship. In the spatial database, there are operators that represent the following topological relationships:

Disjoint : 두 공간 객체가 서로 분리되어 있음Disjoint: two spatial objects are separated from each other

Touch : 두 공간 객체가 서로 접해 있음Touch: Two spatial objects are in contact with each other

Overlap : 선이나 영역의 두 공간 객체가 서로 겹치는 부분을 가짐Overlap: Two spatial objects in a line or area have overlapping parts

Equal : 두 공간 객체의 모양이 동일하고 구성 요소가 같음Equal: Two spatial objects have the same shape and identical components

Match : 두 공간 객체의 모양이 동일하고 구성 요소가 다름Match: Two spatial objects have the same shape and different components

Cross : 두 객체가 서로 교차함Cross: Two objects cross each other

Cover : 한 공간 객체가 다른 공간 객체를 포함(경계가 만나는 경우)Cover: One spatial object contains another spatial object (when bounding)

Covered : 한 공간 객체가 다른 공간 객체에 포함됨(경계가 만나는 경우)Covered: One spatial object is included in another (when bounding)

Contain : 한 공간 객체가 다른 공간 객체를 포함(경계가 만나지 않는 경우)Contain: One spatial object contains another spatial object (unless bounds meet)

Contained : 한 공간 객체가 다른 공간 객체에 포함됨(경계가 만나지 않는 경우)Contained: One spatial object is contained in another (unbounded)

한편, 추출 모듈(202)에서 입력된 공간 정보에 포함되는 클래스에 대해 입력된 데이터베이스 영역과의 위상 관계를 조사하기 위해서 다음의 각 조건을 만족하는 인스턴스들을 추출한다.On the other hand, in order to examine the phase relationship with the input database area for the class included in the spatial information input by the extraction module 202, the instances satisfying each of the following conditions are extracted.

첫째, 클래스 객체의 모든 공간 데이터 타입에 대해 입력된 데이터베이스 영역이 클래스 객체와 경계가 만나지 않으면서 포함하는 관계(contain)인지를 조사하여 만족하는 클래스의 인스턴스를 구한다.First, it finds an instance of a class that satisfies by checking whether the database area entered for all spatial data types of the class object is a containment without encountering a boundary with the class object.

둘째, 클래스 객체의 공간 데이터 타입이 점(point)인 경우에 입력된 데이터베이스 영역이 클래스 객체와 서로 접해 있는 관계(touch)인지를 조사하여 만족하는 클래스의 인스턴스를 구한다.Second, if the spatial data type of the class object is a point, it checks whether the input database area is in touch with the class object and obtains an instance of a satisfied class.

셋째, 클래스 객체의 공간 데이터 타입이 점(point)을 제외한 나머지 타입인 경우에 입력된 데이터베이스 영역이 클래스 객체와 경계가 만나면서 포함하는 관계(cover)인지를 조사하여 만족하는 클래스의 인스턴스를 구한다.Third, if the spatial data type of the class object is any type other than a point, it checks whether the input database area covers the class object and includes a boundary to find an instance of a satisfied class.

넷째, 클래스 객체의 공간 데이터 타입이 단순선(simpleline)이나 복합선(polyline)인 경우에 입력된 데이터베이스 영역이 클래스 객체와 서로 교차하는 관계(cross)인지를 조사하여 만족하는 클래스의 인스턴스를 구한다.Fourth, if the spatial data type of the class object is a simpleline or polyline, it checks whether the input database area crosses the class object and obtains an instance of a satisfied class.

다섯째, 클래스 객체의 타입이 원(circle)이나 사각형(rectangle), 다각형(polygon)인 경우에 입력된 데이터베이스 영역이 클래스 객체와 서로 겹치는 부분을 가지는 관계(overlap)인지를 조사하여 만족하는 클래스의 인스턴스를 구한다.Fifth, if the class object type is circle, rectangle, or polygon, it checks whether the input database area overlaps with the class object and checks whether it is an overlapping class instance. Obtain

변환 모듈(203)에서는 추출모듈(202)에서 추출된, 조건을 만족시키는 인스턴스들에 대해 포스트스크립트 포맷으로 변환시킨다.The conversion module 203 converts the extracted instances from the extraction module 202 into PostScript format for the instances satisfying the condition.

공간 데이터베이스에서 제공하는 공간 데이터 타입은 일반적으로 점(point), 단순선(Simpline), 복합선(Polyline), 다각형(Polygon), 원(Circle), 사각형(Rectangle) 타입 등을 가질 수 있다.Spatial data types provided by a spatial database may generally have a point, a simple line, a polyline, a polygon, a circle, a rectangle, and the like.

여기서, 공간 데이터란 공간 데이터베이스에서 제공되는 공간 데이터 타입에 맞는 데이터를 말하는데, 예를들면 점은 x좌표와 y좌표로 구성되며 (10, 15), (200, 300) 등이 공간 데이터가 된다. 나머지 공간 데이터 타입도 그 특성을 나타낼 수 있도록 정의되어 있으며, 이에 맞게 데이터를 생성할 수 있다.Here, the spatial data refers to data corresponding to the spatial data type provided by the spatial database. For example, the point is composed of x coordinates and y coordinates, and (10, 15), (200, 300), and the like are spatial data. The remaining spatial data types are also defined to represent their characteristics, and data can be generated accordingly.

추출 모듈(202)에서는 점 객체를 가진 인스턴스에 대해서는 포스트스크립트에서 제공하는 좌표를 이동하는 명령어(moveto)를 사용하여 원하는 위치로 가서 점을 그리는 명령어(arc)를 사용하여 포스트스크립트 형식으로 변환한다. 단순선 객체를 가진 인스턴스에 대해서는 포스트스크립트에서 제공하는 좌표를 이동하는 명령어(moveto)를 사용하여 원하는 위치로 가서 선을 그리는 명령어(lineto)를 사용하여 포스트스크립트형식으로 변환한다. 복합선 객체를 가진 인스턴스에 대해서는 포스트스크립트에서 제공하는좌표를 이동하는 명령어(moveto)를 사용하여 원하는 위치로 가서 여러개의 선을 그리는 명령어(lineto)를 사용하여 포스트스크립트 형식으로 변환한다.The extraction module 202 converts the instance having the point object into a PostScript format by using a moveto command to move the coordinates provided by PostScript to a desired location and using the arc to draw the point. For instances with simple line objects, use the moveto command to move the coordinates provided by PostScript to go to the desired location and convert it to PostScript format using the lineto command. For instances with compound line objects, use the moveto command to move the coordinates provided by PostScript to the desired location and use the lineto to draw multiple lines to convert to PostScript format.

다각형 객체를 가진 인스턴스에 대해서는 포스트스크립트에서 좌표를 이동하는 명령어(moveto)를 사용하여 원하는 위치로 가서 여러개의 선을 그리는 명령어(lineto)를 사용하여 포스트스크립트 형식으로 변환하고 필요시 공간 객체의내부를 색으로 채우는 명령어(fill)를 사용하여 다각형의 내부를 나타내는 색을 나타낸다. 원 객체를 가진 인스턴스에 대해서는 포스트스크립트에서 좌표를 이동하는 명령어(moveto)를 사용하여 원하는 위치로 가서 점을 그리는 명령어(arc)를 사용하여 포스트스크립트 형식으로 변환하고 필요시 공간 객체의 내부를 색으로 채우는 명령어(fill)를 사용하여 원의 내부를 나타내는 색을 나타낸다. 사각형 객체를 가진 인스턴스에 대해서는 포스트스크립트에서 좌표를 이동하는 명령어(moveto)를 사용하여 원하는 위치로 가서 여러개의 선을 그리는 명령어(lineto)를 사용하여 포스트스크립트 형식으로 변환하고 필요시 공간 객체의 내부를 색으로 채우는 명령어(fill)를 사용하여 다각형의 내부를 나타내는 색을 나타낸다.For instances with polygon objects, use Post to move the coordinates in PostScript (moveto) to the desired location and use Lineto to draw multiple lines, convert them to PostScript format, and A color fill command is used to indicate the color that represents the interior of the polygon. For instances with original objects, use the moveto command to move the coordinates in PostScript to the desired location and use the arc command to draw the points, convert them to PostScript format, and color the interior of the spatial object if necessary. Use the fill command to indicate the color of the interior of the circle. For instances with rectangular objects, use Post to move the coordinates in PostScript (moveto) to the desired location and use Lineto to draw multiple lines, convert them to PostScript format and, if necessary, convert the interior of the spatial object. A color fill command is used to indicate the color that represents the interior of the polygon.

이때, 각 공간 객체의 색을 표현하기 위해 공간 객체의 색을 설정하는 명령어(setrgbcolor)를 사용하고 각 객체의 굵기를 나타내기 위해 공간 객체의 굵기를 설정하는 명령어(setlinewidth)를 사용한다. 위의 작업으로 공간 입력정보에 속한 한 클래스에 대해 원하는 데이터베이스 영역내에 있는 인스턴스들을 추출할 수 있다.In this case, a command (setrgbcolor) for setting the color of the spatial object is used to express the color of each spatial object, and a command (setlinewidth) for setting the thickness of the spatial object is used to indicate the thickness of each object. The above operation extracts the instances in the desired database area for a class in the spatial input.

도 3 은 본 발명에 따른 공간 데이터베이스 시스템에서 공간 데이터를 이용하여 포스트스크립트 파일로 변환하는 방법의 일실시예 흐름도이다.3 is a flowchart illustrating an embodiment of a method of converting a PostScript file using spatial data in a spatial database system according to the present invention.

입력모듈(201)로부터 출력 정보와 공간 정보를 입력 받아, 그 출력 정보와 공간 정보가 정확히 입력되었는지 확인하고(301), 출력 정보를 참조하여 용지형태나 용지 크기, 여백주기를 포스트스크립트 파일을 설정한다(302).Receives output information and space information from the input module 201, checks that the output information and space information are correctly input (301), and sets the PostScript file for the paper type, the paper size, and the margin period by referring to the output information. (302).

포스트스크립트 파일을 설정한(302) 후에는, 공간 정보에서 입력된 데이터베이스에 접근하여 원하는 클래스가 존재하는지를 조사하고(303), 원하는 클래스가 존재하면 추출 모듈(202)에서는 클래스에 대한 인스턴스를 추출한다(304). 이때, 클래스와 관련된 모든 인스턴스를 가져오는 것이 아니라 위상 관계에 고려하여 만족되는 인스턴스만을 가져온다.After setting up the PostScript file (302), the database input from the spatial information is accessed to check whether the desired class exists (303), and if the desired class exists, the extraction module (202) extracts an instance for the class. 304. At this time, not all instances related to the class are imported, but only instances that are satisfied in consideration of the topological relationship.

가져온 클래스에 대한 조건을 만족시키는 인스턴스들에 대해 포스트스크립트 포맷으로 변환시킨다(305). 출력 정보에 나타나 있는 다른 클래스들이 있는지를 확인하고(306), 있으면 클래스에 대한 인스턴스를 추출하고(304), 조건을 만족시키는 인스턴스들에 대해 포스트스크립트 포맷으로 변환시키는(305) 과정을 수행하여 각 클래들에 대해 원하는 데이터베이스 영역내의 인스턴스들을 구하고 포스트스크립트 형식으로 변환할 수 있다.The instances that satisfy the condition for the imported class are converted to PostScript format (305). Checks if there are other classes shown in the output information (306), extracts instances for the classes (304), and converts them to PostScript format (305) for the instances that meet the conditions, You can get the instances in the desired database area for the clad and convert them to PostScript format.

상술한 바와 같은 본 발명의 방법은 프로그램으로 구현되어 컴퓨터로 읽을 수 있는 기록매체(씨디롬, 램, 롬, 플로피 디스크, 하드 디스크, 광자기 디스크 등)에 저장될 수 있다.The method of the present invention as described above may be implemented as a program and stored in a computer-readable recording medium (CD-ROM, RAM, ROM, floppy disk, hard disk, magneto-optical disk, etc.).

이상에서 설명한 본 발명은 전술한 실시예 및 첨부된 도면에 의해 한정되는 것이 아니고, 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능하다는 것이 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 있어 명백할 것이다.The present invention described above is not limited to the above-described embodiments and the accompanying drawings, and various substitutions, modifications, and changes can be made in the art without departing from the technical spirit of the present invention. It will be apparent to those of ordinary knowledge.

상기한 바와 같은 본 발명은, 각종 도면 및 도로, 통신, 전력, 가스, 상하수도, 철도, 공항, 항만 등의 시설물 관리 분야와 도시계획, 수자원관리, 토지관리, 국방, 소방 등의 다양한 지리정보응용분야에 대한 공간 데이터베이스에 대해서 원하는 공간 데이터로 출력용 도면을 생성할 수 있으며, 특히 출력용지 옵션, 데이터베이스 영역, 클래스, 주석 등을 원하는 대로 설정하도록 함으로 필요한 부분에 대해 원하는 지형만을 선별적으로 출력할 수 있는 효과가 있다.As described above, the present invention is applicable to various drawings and roads, communication, electric power, gas, water and sewage, railway, airport, port, facility management field and city planning, water resource management, land management, national defense, firefighting, etc. You can create a drawing for output with the spatial data you want for the spatial database of the field. In particular, you can selectively print only the desired terrain for the required part by setting the output paper options, database area, class, and annotations as desired. It has an effect.

Claims (6)

데이터베이스 관리 시스템에서 공간 데이터를 변환하는 방법에 있어서,In a method of transforming spatial data in a database management system, 입력장치로부터 원하는 공간 정보와 출력 정보를 입력받는 제 1 단계;A first step of receiving desired spatial information and output information from an input device; 상기 입력받은 출력 정보를 가지고 포스트스크립트(PostScript) 파일 형식으로 출력 형식을 설정하는 제 2 단계;A second step of setting an output format in a PostScript file format using the received output information; 입력된 공간 정보에 포함되는 클래스나 클래스와 관련된 공간 데이터를 공간 데이터베이스에서 추출하는 제 3 단계; 및Extracting, from a spatial database, a class or spatial data associated with the class included in the input spatial information; And 상기 추출된 공간 데이터에 대한 클래스 객체의 모든 공간 데이터 타입을 분석하여, 그 분석 결과에 따라 해당 공간 데이터를 상기 포스트스크립트(PostScript) 파일 형식으로 변환하는 제 4 단계A fourth step of analyzing all spatial data types of the class object with respect to the extracted spatial data and converting the spatial data into the PostScript file format according to the analysis result; 를 포함하는 공간 데이터를 포스트스크립트 형식으로 변환하는 방법.How to convert spatial data containing to PostScript format. 제 1 항에 있어서,The method of claim 1, 상기 공간 데이터베이스는,The spatial database, 점(point), 단순선(simpline), 복합선(polyline), 다각형(polygon), 원(circle) 및 사각형(rectangle)과 같은 공간 데이터 타입을 제공하는 것을 특징으로 하는 공간 데이터를 포스트스크립트 형식으로 변환하는 방법.Spatial data in PostScript format, which provides spatial data types such as points, simple lines, polylines, polygons, circles, and rectangles. How to convert. 제 2 항에 있어서,The method of claim 2, 상기 공간 데이터는,The spatial data is, 공간 데이터베이스에서 제공되는 점(point), 단순선(simpline), 복합선(polyline), 다각형(polygon), 원(circle) 및 사각형(rectangle)과 같은 공간 데이터 타입의 특성을 나타낸 데이터인 것을 특징으로 하는 공간 데이터를 포스트스크립트 형식으로 변환하는 방법.Characterized by the characteristics of spatial data types such as points, simple lines, polylines, polygons, circles, and rectangles provided by the spatial database. To convert spatial data into PostScript format. 제 1 항 내지 제 3 항 중 어느 한 항에 있어서,The method according to any one of claims 1 to 3, 상기 제 3 단계는,The third step, 클래스 객체의 모든 공간 데이터 타입에 대해 입력된 데이터베이스 영역이 클래스 객체와 경계가 만나지 않으면서 포함하는 관계(Contain)인지를 조사하여 만족하는 클래스의 인스턴스를 구하는 제 4 단계;A fourth step of obtaining an instance of a class that satisfies whether the input database area includes all the spatial data types of the class object without including a boundary with the class object; 클래스 객체의 공간 데이터 타입이 점(point)인 경우에, 입력된 데이터베이스 영역이 클래스 객체와 서로 접해 있는 관계(touch)인지를 조사하여 만족하는 클래스의 인스턴스를 구하는 제 5 단계;A fifth step of obtaining an instance of a satisfied class by checking whether the input database area is in touch with the class object when the spatial data type of the class object is a point; 클래스 객체의 공간 데이터 타입이 점(point)을 제외한 나머지 타입인 경우에 입력된 데이터베이스 영역이 클래스 객체와 경계가 만나면서 포함하는 관계(Cover)인지를 조사하여 만족하는 클래스의 인스턴스를 구하는 제 6 단계;If the spatial data type of the class object is a type other than a point, a sixth step of obtaining an instance of a class that satisfies by examining whether the input database area includes a boundary that meets the class object and includes a boundary; 클래스 객체의 공간 데이터 타입이 단순선(simpleline)이나 복합선(polyline)인 경우에 입력된 데이터베이스 영역이 클래스 객체와 서로 교차하는 관계(cross)인지를 조사하여 만족하는 클래스의 인스턴스를 구하는 제 7 단계; 및The seventh step of obtaining an instance of a satisfied class by checking whether the input database area crosses the class object when the spatial data type of the class object is a simple line or a polyline. ; And 클래스 객체의 타입이 원(circle)이나 사각형(rectangle), 다각형(polygon)인 경우에 입력된 데이터베이스 영역이 클래스 객체와 서로 겹치는 부분을 가지는 관계(overlap)인지를 조사하여 만족하는 클래스의 인스턴스를 구하는 제 8 단계When the class object type is circle, rectangle, or polygon, it checks whether the input database area is overlapping with the class object to find an instance of the satisfied class. 8th step 를 포함하는 공간 데이터를 포스트스크립트 형식으로 변환하는 방법.How to convert spatial data containing to PostScript format. 제 4 항에 있어서,The method of claim 4, wherein 상기 제 4 단계는,The fourth step, 상기 추출된 공간데이터에 대한 클래스 객체의 공간 데이터 타입이 어떠한 타입인지를 분석하는 제 9 단계;A ninth step of analyzing a type of a spatial data type of a class object with respect to the extracted spatial data; 상기 제 9 단계의 분석 결과, 클래스 객체의 공간 데이터 타입이 점(Point)인 경우에 포스트스크립트(PostScript)에서 제공하는 좌표를 이동하는 명령어와 점을 그리는 명령어로 대응시켜서 변환시키는 제 10 단계;A tenth step of converting coordinates provided by PostScript into a command for drawing a point and a command for drawing a point when the spatial data type of the class object is Point; 상기 제 9 단계의 분석 결과, 클래스 객체의 공간 데이터 타입이 단순선(SimpleLine)인 경우에 포스트스크립트(PostScript)에서 제공하는 좌표를 이동하는 명령어와 선을 그리는 명령어로 대응시켜서 변환시키는 제 11 단계;An eleventh step of converting coordinates provided by PostScript into a command for drawing a line and a command for drawing a line when the spatial data type of the class object is a simple line as a result of the analysis of the ninth step; 상기 제 9 단계의 분석 결과, 클래스 객체의 공간 데이터 타입이 복합선(PolyLine)인 경우에 좌표를 이동하는 명령어와 여러개의 선을 그리는 명령어로 대응시켜서 변환시키는 제 12 단계;A twelfth step of converting the coordinates by converting the coordinates into a command for moving coordinates and a command for drawing a plurality of lines when the spatial data type of the class object is a polyline; 상기 제 9 단계의 분석 결과, 클래스 객체의 공간 데이터 타입이 다각형(Polygon)인 경우에 포스트스크립트(PostScript)에서 제공하는 좌표를 이동하는 명령어, 여러개의 선을 그리는 명령어와 필요시에 공간 객체의 내부를 색으로 채우는 명령어로 대응시켜서 변환시키는 제 13 단계;As a result of the analysis of the ninth step, when the spatial data type of the class object is a polygon, a command for shifting coordinates provided by PostScript, a command for drawing multiple lines, and an interior of the spatial object, if necessary A thirteenth step of converting by converting the image into a color filling instruction; 상기 제 9 단계의 분석 결과, 클래스 객체의 공간 데이터 타입이 원(Circle)인 경우에 포스트스크립트(PostScript)에서 제공하는 좌표를 이동하는 명령어, 점을 그리는 명령어와 필요시에 공간 객체의 내부를 색으로 채우는 명령어로 대응시켜서 변환시키는 제 14 단계; 및As a result of the analysis of the ninth step, when the spatial data type of the class object is a circle, a command for moving the coordinates provided by PostScript, a command for drawing a point, and a color of the interior of the spatial object, if necessary A fourteenth step corresponding to and converted into a command filled with a; And 상기 제 9 단계의 분석 결과, 클래스 객체의 공간 데이터 타입이 사각형(Rectangle)인 경우에 포스트스크립트(PostScript)에서 제공하는 좌표를 이동하는 명령어, 여러개의 선을 그리는 명령어와 필요시에 공간 객체의 내부를 색으로 채우는 명령어로 대응시켜서 변환시키는 제 15 단계As a result of the analysis of the ninth step, when the spatial data type of the class object is a rectangle, a command for shifting coordinates provided by PostScript, a command for drawing multiple lines, and an interior of the spatial object, if necessary The fifteenth step of converting by matching 를 포함하는 공간 데이터를 포스트스크립트 형식으로 변환하는 방법.How to convert spatial data containing to PostScript format. 프로세서를 구비한 데이터베이스 관리 시스템에,In a database management system having a processor, 입력장치로부터 원하는 공간 정보와 출력 정보를 입력받는 제 1 기능;A first function of receiving desired spatial information and output information from an input device; 상기 입력받은 출력 정보를 가지고 포스트스크립트(PostScript) 파일 형식으로 출력 형식을 설정하는 제 2 기능;A second function of setting an output format in a PostScript file format using the received output information; 입력된 공간 정보에 포함되는 클래스나 클래스와 관련된 공간 데이터를 공간 데이터베이스에서 추출하는 제 3 기능; 및A third function of extracting a spatial data related to a class or a class included in the input spatial information from a spatial database; And 상기 추출된 공간 데이터에 대한 클래스 객체의 모든 공간 데이터 타입을 분석하여, 그 분석 결과에 따라 해당 공간 데이터를 상기 포스트스크립트(PostScript) 파일 형식으로 변환하는 제 4 기능A fourth function of analyzing all spatial data types of the class object with respect to the extracted spatial data and converting the spatial data into the PostScript file format according to the analysis result 을 실현시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for realizing this.
KR1019980053074A 1998-12-04 1998-12-04 Method of converting spatial data to postscript format in spatial database system KR100321773B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980053074A KR100321773B1 (en) 1998-12-04 1998-12-04 Method of converting spatial data to postscript format in spatial database system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980053074A KR100321773B1 (en) 1998-12-04 1998-12-04 Method of converting spatial data to postscript format in spatial database system

Publications (2)

Publication Number Publication Date
KR20000038181A KR20000038181A (en) 2000-07-05
KR100321773B1 true KR100321773B1 (en) 2002-03-08

Family

ID=19561383

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980053074A KR100321773B1 (en) 1998-12-04 1998-12-04 Method of converting spatial data to postscript format in spatial database system

Country Status (1)

Country Link
KR (1) KR100321773B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100609575B1 (en) * 1999-12-31 2006-08-04 주식회사 케이티 Method to store geographic data files in object-relational database management systems

Also Published As

Publication number Publication date
KR20000038181A (en) 2000-07-05

Similar Documents

Publication Publication Date Title
US6801673B2 (en) Section extraction tool for PDF documents
US8892990B2 (en) Automatic creation of a table and query tools
US8261179B2 (en) Web page hot spots
US20060224952A1 (en) Adaptive layout templates for generating electronic documents with variable content
US20130191732A1 (en) Fixed Format Document Conversion Engine
US8269791B2 (en) Information processing apparatus and method for processing a vector image composed of a plurality of objects described by structured document data
CN111190519A (en) File and control processing method, device, equipment and storage medium thereof
KR100321773B1 (en) Method of converting spatial data to postscript format in spatial database system
Domokos et al. An open visualization framework for metamodel-based modeling languages
KR20010037981A (en) Method for converting map data to data for object_related geographic information system
KR100356017B1 (en) 3D GIS for creating, editing, storing and visualizing 3D geographic features and 3D geographic objects using XML and method thereof
Edmund Lien et al. Structured implementation of an image query language
Chen A Multiple-Representation Paradigm for Document Development
Liu et al. Symbol recognition and automatic conversion in GIS vector maps
JPH08147445A (en) Document managing method and document processor for realizing the same
KR100250978B1 (en) Method for converting autocad drawing to infomap drawing
KR100307314B1 (en) Method for viewing informap drawing using object representation
KR100609575B1 (en) Method to store geographic data files in object-relational database management systems
KR0175738B1 (en) Data base transformation method
Ulugtekin et al. Current scopes of cartography: small display map design
Lien A database system to support image algorithm evaluation
CN115203602A (en) DWG two-dimensional graph display method and system
CN117055884A (en) Method for displaying and operating CAD drawing at Web front end
Dia et al. From Functional Requirements to NoSQL Database Models: Application to IoT Geospatial Data
CN114283441A (en) Two-dimensional drawing recognition modeling method and device suitable for railway passenger station

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: 20110105

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee