shp 파일 구성

(shp, sbx, sbn, shx, dbf, cpg, prj, 등등)

main file

shp - 쉐이프 포맷 : 도형파일(벡터형식)

shx - 쉐이프 인덱스 포맷 : 도형의 위치, 방향정보

dbf - 속성 포맷 : 각 도형의 속성정보, dBase 포맷

sbn, sbx - 도형의 공간 인덱스(공간 로딩 속도를 빠르게 해주는 부가적인 파일)

prj : 좌표정보

Main File (.SHP)

.shp is a mandatory Esri file that gives features their geometry. Every shapefile has its own .shp file that represent spatial vector data. For example, it could be points, lines and polygons in a map.

Index File (.SHX)

.shx are mandatory Esri and AutoCAD shape index position. This type of file is used to search forward and backwards.

dBASE File (.DBF)

.dbf is a standard database file used to store attribute data and object IDs. A .dbf file is mandatory for shape files. You can open .DBF files in Microsoft Access or Excel.

Projection File (.PRJ)

.prj is an optional file that contains the metadata associated with the shapefiles coordinate and projection system. If this file does not exist, you will get the error “unknown coordinate system”. If you want to fix this error, you have to use the “define projection” tool which generates .prj files.

Extensible Markup Language File (.XML)

.xml file types contains the metadata associated with the shapefile. If you delete this file, you essentially delete your metadata. You can open and edit this optional file type (.xml) in any text editor.

Spatial Index File (.SBN)

.sbn is an optional spatial index file that optimizes spatial queries. This file type is saved together with a .sbx file. These two files make up a shape index to speed up spatial queries.

Spatial Index File (.SBX)

.sbx are similar to .sbn files in which they speed up loading times. It works with .sbn files to optimize spatial queries. We tested .sbn and .sbx extensions and found that there were faster load times when these files existed. It was 6 seconds faster (27.3 sec versus 33.3 sec) compared with/without .sbn and .sbx files.

Code Page File (.CPG)