Shapefile

황상진·2023년 1월 1일
0

mobiltech

목록 보기
1/2

참고 - Shapefile - Wikipedia

shapefile format은 지리 정보 시스템 (GIS) 소프트웨어용 지리 공간 벡터 데이터 형식

sahpefile 형식은 점, 선 및 다각형과 같은 벡터 기능을 공간적으로 설명

.shp, .shx, .dbf 세 개의 필수 파일로 구성되어있다.

shapefile은 .shp와 관련되어있지만 다른 파일이 필요하므로 단독으로 배포가 불완전하다.

.shp - shape format - 지형 지물 그 자체

.shx - shape index format - 앞뒤로 빠르게 탐색할 수 있는 기능의 geometry index

.dbf - attribute format - 각 도형에 대한 열 형식 속성

shape format

  • header
    • 100바이트로 고정되어 있으며, 17개 필드를 포함하고 있다. (파일정보)
    • 포함된 주요 정보는 아래와 같다.
      • 파일코드, 파일길이, 버전, shape타입, shape의 x, y, z, m 범위
  • record
    • record-header
      • 8바이트의 레코드 헤더 - record number + record length
    • record-contents
      • 가변길이의 실제 기하학 데이터
        • shape type(4byte) + shape content
        • shape type은 아래와 같다.
          • Null shape(0), Point(1), Polyline(3), Ploygon(5), MultiPoint(8), PointZ(11), PolylineZ(13), PolygonZ(15), MultiPointZ(18), PointM(21), PolylineM(23), PolygonM(25), MultiPointM(28), MultPatch(31

shape index format

  • shp와 동일한 100byte의 header와 8byte 고정길이의 2필드(record offset + record length)로 구성된다.
  • shp, dbf의 색인(index) 역할을 한다.

shapefile attribute format

  • 각 feature에 대한 속성값을 저장한다.
  • dBase IV 형식을 사용한다.
profile
Web FrontEnd Developer

0개의 댓글