shapefile中dbf的数据格式(转载)
来源:http://www.clicketyclick.dk/databases/xbase/format/db2_dbf.html#DB2_DBF_NOTE_4_SOURCE
Xbase: dBASE II data files (*.dbf)
_______________________ _______
0 | Version number *1| ^
|-----------------------| |
1 | Number of records | Record
2 | in data file (16 bit) | header
|-----------------------| | _ |=======================| _______
3 | Date of last update | | / 0| Field name in ASCII | ^
4 | YYMMDD | | / : (terminated by 00h) : |
5 | | | | | | |
|-----------------------| | | 10| | |
6 | Length of each record | | | |-----------------------| For
7 | ( 16 bits ) *2| | | 11| Field type in ASCII *4| each
|-----------------------|--|--- | |-----------------------| field
8 | | | ^ | 12| Field length (binary)| |
9 | Field descriptor | | | ____/ |-----------------------| |
: Array *5 : | | 13| Field adress in memory| |
: (Terminated by 0Dh) : | | 14| | |
: : | | ______ |-----------------------| |
: : | | \ 15| Field decimal count | |
: : | | \_ |=======================| _v_____
| | | |
519| | | |
|-----------------------| | |
520| Terminator *3|__v__v_
|=======================| |
521| Records | |
: : |
: : |
: : |
: : |
n| | |
|__End_of_File__________| ___v____ End of file ( 1Ah ) *11
- Sum of lengths of all fields + 1 (deletion flag). Max. length is 1,000 bytes
- Terminator: 0Dh if all 32 fields present, otherwise 00h.
- Field type Field type: C, N or L
- Field descriptor array Max. 32 fields
- Field lenght: 0 - ffh. Logical fields = 1, decimal no ( = no of digits)
- Field name can be undefined (= 1 x 00h)
- Field address in memory can be ignored.
- Deleted flag. Blanks (20h) are valid! "*" = deleted.
Note that records remain in the datafile when deleted (i.e. are marked with "*") The deleted record are moved out of the valid range of records by the pack command. But is still present in the data file!!! This means that the file size is unchanged!
Deleted Packed
=========== ===========
|Header | |Header |
|-----------| |-----------|
|Valid 1 | |Valid 1 |
|-----------| |-----------|
|Deleted 1 | |Valid 2 |
|-----------| |-----------|
|Valid 2 | |Valid 3 |
|-----------| |===========|
|Deleted 2 | |EOF |
|-----------| |===========|
|Deleted 3 | |Deleted 1 |
|-----------| |-----------|
|Valid 3 | |Deleted 2 |
|===========| |-----------|
|EOF | |Deleted 3 |
=========== ===========
shapefile中dbf的数据格式(转载)的更多相关文章
- PostGIS中dbf file (.dbf) can not be opened.shapefile import failed
postgis数据库文件shapefile导入 dbf file (.dbf) can not be opened.shapefile import failed. Destination: publ ...
- spring中context:property-placeholder/元素 转载
spring中context:property-placeholder/元素 转载 1.有些参数在某些阶段中是常量 比如 :a.在开发阶段我们连接数据库时的连接url,username,passwo ...
- SqlServer中的merge操作(转载)
SqlServer中的merge操作(转载) 今天在一个存储过程中看见了merge这个关键字,第一个想法是,这个是配置管理中的概念吗,把相邻两次的更改合并到一起.后来在technet上搜索发现别有 ...
- postgis数据库文件shapefile导入 dbf file (.dbf) can not be opened.shapefile import failed.
Destination: public.train_polylineSource File: C:\Documents and Settings\Administrator\桌面\ffffff\tra ...
- 解决Asp.net Mvc返回JsonResult中DateTime类型数据格式的问题
问题背景: 在使用asp.net mvc 结合jquery esayui做一个系统,但是在使用使用this.json方法直接返回一个json对象,在列表中显示时发现datetime类型的数据在转为字符 ...
- MyBatis学习总结(三)——优化MyBatis配置文件中的配置(转载)
本文转载自:http://www.cnblogs.com/jpf-java/p/6013548.html 一.连接数据库的配置单独放在一个properties文件中 之前,我们是直接将数据库的连接配置 ...
- 重温WCF之数据契约中使用枚举(转载)(十一)
转载地址:http://www.zhuli8.com/wcf/EnumMember.html 枚举类型的定义总是支持序列化的.当我们定义一个新的枚举时,不必应用DataContract特性,就可以在数 ...
- ASP.NET Web API 中的异常处理(转载)
转载地址:ASP.NET Web API 中的异常处理
- MSSQL中建立分区表(转载备忘)
转载自CSDN地址:http://bbs.csdn.net/topics/330087045 SQL Server 2005 分区表实践——建立分区表(partition table) 问题:有一个订 ...
随机推荐
- 获取Java线程转储的常用方法
1. 线程转储简介 线程转储(Thread Dump)就是JVM中所有线程状态信息的一次快照. 线程转储一般使用文本格式, 可以将其保存到文本文件中, 然后人工查看和分析, 或者使用工具/API自动分 ...
- XShell的手动直连,避免配置ssh免密的一些问题
- C#高级编程第11版 - 第九章 索引
[1]9.1 System.String 类 String类中关键的方法.如替换,比较等. [2]9.1.1 构建字符串 1.String类依然有一个缺点:因为它是不可变的数据类型,这意味当你初始化一 ...
- Java层面上下文切换
前言 在过去单CPU时代,单任务在一个时间点只能执行单一程序.之后发展到多任务阶段,计算机能在同一时间点并行执行多任务或多进程.虽然并不是真正意义上的"同一时间点",而是 多个任务 ...
- 后端API接口的错误信息返回规范
前言 最近我司要制定开发规范.在讨论接口返回的时候,后端的同事询问我们前端,错误信息的返回,前端有什么意见? 所以做了一些调研给到后端的同事做参考. 错误信息返回 在使用API时无可避免地会因为各种情 ...
- LOJ2125
LOJ2125 树上操作 题目描述 有一棵点数为 N 的树,以点 1 为根,且树有点权.然后有 M 个操作,分为三种: 把某个节点 x 的点权增加 aa . 把某个节点 x 为根的子树中所有点的点权都 ...
- Java Web学习之路
编程基础 1-1 常用数据结构 数组.链表.堆.栈.队列.Hash表.二叉树等1-2 算法思想 算法时间复杂度和空间复杂度的分析计算 1-2 算法思想:递推.递归.穷举.贪心.分治.动态规划.迭代.分 ...
- linux反弹shell总结
1.1发送文件(公网发内网) 文件发送端: nc -lp 6666 < 文件 文件接收端: nc 发送端ip 发送端端口 > 新文件 1.2发送文件(内网发公网)文件发送端: nc -lp ...
- 20000套免费ppt模板获取攻略
前言 又到年末了,发现需要用到简历,PPT这些的地方又多了.PPT这东西吧,颜值真的很重要,毕竟老板拉融资都是用ppt拉来的.只要ppt够精美,外加上你的故事讲得好,A轮指定不是问题呀.往小处说,就是 ...
- 漫画 | CPU战争40年,真正的王者终于现身!
上个世纪70年代,内存又慢又贵, 程序员得想尽一切办法节省内存. 那个时代的编译器也比较差劲 所以,70年代的程序员几乎都写得一手好汇编. 为了帮助程序员写好汇编,这个时候的CPU也有意把指令集做了增 ...