SHP文件结构分析(点文件),把下面的内存复制到记事本里,用Fixedsys字体,就可以看到各部分的起始:
------------------------------------主文件头--------------------------------------------------------
[ 大根堆 ] [ 小根堆...[ FileCode] [ Unused ] [ Unused ] [ Unused ] [ Unused ] [ Unused ] [ FileLen ] [ Version ] ]
00 00 27 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 90 E8 03 00 00
[ShapeType] [ Xmin ] [ Ymin ] [ Xmax ] [ Ymax ]
01 00 00 00 00 00 00 00 48 00 22 41 00 00 00 C0 4B BF 52 41 00 00 00 00 C6 90 22 41 00 00 00 80 06 CB 52 41
[ Zmin ] [ Zmax ] [ Mmin ] [ Mmax ]
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[------记录头---------] [----------------------记录内容---------------------------]
[ 大根堆 ] [ 小根堆 ]
[ RecNum ] [ ContLen ] [ShapType ] [ X ] [ Y ]
00 00 00 01 00 00 00 0A 01 00 00 00 00 00 00 00 AA 1C 22 41 00 00 00 80 8A BF 52 41
00 00 00 02 00 00 00 0A 01 00 00 00 00 00 00 00 9C 10 22 41 00 00 00 00 9E C7 52 41
00 00 00 03 00 00 00 0A 01 00 00 00 00 00 00 00 48 00 22 41 00 00 00 00 A4 C6 52 41
00 00 00 04 00 00 00 0A 01 00 00 00 00 00 00 00 80 04 22 41 00 00 00 00 71 C7 52 41
00 00 00 05 00 00 00 0A 01 00 00 00 00 00 00 00 1A 1D 22 41 00 00 00 00 0F CA 52 41
00 00 00 06 00 00 00 0A 01 00 00 00 00 00 00 00 6E 52 22 41 00 00 00 C0 CC C9 52 41
00 00 00 07 00 00 00 0A 01 00 00 00 00 00 00 00 56 83 22 41 00 00 00 40 71 C5 52 41
00 00 00 08 00 00 00 0A 01 00 00 00 00 00 00 00 56 2E 22 41 00 00 00 00 DD C9 52 41
00 00 00 09 00 00 00 0A 01 00 00 00 00 00 00 00 50 57 22 41 00 00 00 80 D9 CA 52 41
00 00 00 0A 00 00 00 0A 01 00 00 00 00 00 00 00 6C 63 22 41 00 00 00 80 1E C2 52 41
00 00 00 0B 00 00 00 0A 01 00 00 00 00 00 00 00 26 0E 22 41 00 00 00 00 ED C8 52 41
00 00 00 0C 00 00 00 0A 01 00 00 00 00 00 00 00 F0 66 22 41 00 00 00 80 D0 C9 52 41
00 00 00 0D 00 00 00 0A 01 00 00 00 00 00 00 00 C8 11 22 41 00 00 00 00 DC C5 52 41
00 00 00 0E 00 00 00 0A 01 00 00 00 00 00 00 00 B0 15 22 41 00 00 00 00 A4 C6 52 41
00 00 00 0F 00 00 00 0A 01 00 00 00 00 00 00 00 44 70 22 41 00 00 00 00 87 CA 52 41
00 00 00 10 00 00 00 0A 01 00 00 00 00 00 00 00 90 8F 22 41 00 00 00 00 AF C0 52 41
00 00 00 11 00 00 00 0A 01 00 00 00 00 00 00 00 70 5A 22 41 00 00 00 80 02 CA 52 41
00 00 00 12 00 00 00 0A 01 00 00 00 00 00 00 00 30 09 22 41 00 00 00 00 C8 C0 52 41
00 00 00 13 00 00 00 0A 01 00 00 00 00 00 00 00 5C 87 22 41 00 00 00 80 6A C1 52 41
00 00 00 14 00 00 00 0A 01 00 00 00 00 00 00 00 34 1E 22 41 00 00 00 C0 4B BF 52 41
00 00 00 15 00 00 00 0A 01 00 00 00 00 00 00 00 C6 90 22 41 00 00 00 80 06 CB 52 41
00 00 00 16 00 00 00 0A 01 00 00 00 00 00 00 00 72 3F 22 41 00 00 00 80 A9 C3 52 41
00 00 00 17 00 00 00 0A 01 00 00 00 00 00 00 00 6E 87 22 41 00 00 00 00 C2 C1 52 41
00 00 00 18 00 00 00 0A 01 00 00 00 00 00 00 00 BE 0D 22 41 00 00 00 00 D8 C9 52 41
00 00 00 19 00 00 00 0A 01 00 00 00 00 00 00 00 A8 63 22 41 00 00 00 00 34 C3 52 41