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) 问题:有一个订 ...
随机推荐
- 如果using语句中出现异常,资源会被释放掉吗?
<CLR Via C#>第三版 P489 在using内部抛出了异常,被using的对象还是会被释放掉. Using编译时会自动生成Try Finally代码块. 同样Using只能用于实 ...
- apk开发环境!多亏这份《秋招+金九银十-腾讯面试题合集》跳槽薪资翻倍!再不刷题就晚了!
开头 最近很多网友反馈:自己从各处弄来的资料,过于杂乱.零散.碎片化,看得时候觉得挺有用的,但过个半天,啥都记不起来了.其实,这就是缺少系统化学习的后果. 为了提高大家的学习效率,帮大家能快速掌握An ...
- 关掉IE提示“当前安全设置会使计算机有风险”
我们先来看一下IE浏览器出现的提示窗口,该窗口位于最顶端,不点击设置的话,无法进行下一步的操作. 这时我们点击开始按钮 ,在弹出菜单中选择"运行"菜单项. 在打开的Windows运 ...
- python_3 装饰器参数之谜
装饰器参数之谜 之前已经初步了解过装饰器了,知道了装饰器可以"偷梁换柱",在不改变函数的调用方式和函数内容的时候,而把函数的功能偷偷地修改. 那么问题来了,如果被修改的函数中有参数 ...
- (转载)微软数据挖掘算法:Microsoft 神经网络分析算法原理篇(9)
前言 本篇文章继续我们的微软挖掘系列算法总结,前几篇文章已经将相关的主要算法做了详细的介绍,我为了展示方便,特地的整理了一个目录提纲篇:大数据时代:深入浅出微软数据挖掘算法总结连载,有兴趣的童鞋可以点 ...
- LOJ10068 秘密的牛奶运输
LOJ10068秘密的牛奶运输 题目描述 Farmer John 要把他的牛奶运输到各个销售点.运输过程中,可以先把牛奶运输到一些销售点,再由这些销售点分别运输到其他销售点. 运输的总距离越小,运输的 ...
- js部分知识整理,google浏览器的代码调试
整理一些学过的js知识点,包括js中3个括号的含义,this的使用,递归,google浏览器的代码调试.Location的属性及常用方法,window对象常用方法,open方法等. js括号 在js中 ...
- 应急响应-PDCERF模型 (转)
目录 应急响应流程 防御模型 SDL 应急响应流程 很多人认为应急响应就是脸上被黑的机器去查查什么情况,是不是被中了botnet病毒.是不是被人中了rootkit等,是不是被挂了webshell等.应 ...
- kubernetes 身份与权限认证 (ServiceAccount && RBAC)
Kubernetes中提供了良好的多租户认证管理机制,如RBAC.ServiceAccount还有各种Policy等. ServiceAccount Service Account为Pod中的进程 ...
- Java 高并发 解决方案
1.HTML静态化 2.图片服务器分离 3.数据库集群和库表散列 4.缓存 5.镜像 6.负载均衡 1)硬件四层交换 2)软件四层交换 一:高并发高负载类网站关注点之数据库 二:高并发高负载网站的系统 ...