来源: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
    1. dBASE II version no: 02h
    1. Sum of lengths of all fields + 1 (deletion flag). Max. length is 1,000 bytes
    1. Terminator: 0Dh if all 32 fields present, otherwise 00h.
    1. Field type Field type: C, N or L
    1. Field descriptor array Max. 32 fields
    1. Field lenght: 0 - ffh. Logical fields = 1, decimal no ( = no of digits)
    2. Field name can be undefined (= 1 x 00h)
  1. Field address in memory can be ignored.
  2. 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的数据格式(转载)的更多相关文章

  1. 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 ...

  2. spring中context:property-placeholder/元素 转载

    spring中context:property-placeholder/元素  转载 1.有些参数在某些阶段中是常量 比如 :a.在开发阶段我们连接数据库时的连接url,username,passwo ...

  3. SqlServer中的merge操作(转载)

    SqlServer中的merge操作(转载)   今天在一个存储过程中看见了merge这个关键字,第一个想法是,这个是配置管理中的概念吗,把相邻两次的更改合并到一起.后来在technet上搜索发现别有 ...

  4. postgis数据库文件shapefile导入 dbf file (.dbf) can not be opened.shapefile import failed.

    Destination: public.train_polylineSource File: C:\Documents and Settings\Administrator\桌面\ffffff\tra ...

  5. 解决Asp.net Mvc返回JsonResult中DateTime类型数据格式的问题

    问题背景: 在使用asp.net mvc 结合jquery esayui做一个系统,但是在使用使用this.json方法直接返回一个json对象,在列表中显示时发现datetime类型的数据在转为字符 ...

  6. MyBatis学习总结(三)——优化MyBatis配置文件中的配置(转载)

    本文转载自:http://www.cnblogs.com/jpf-java/p/6013548.html 一.连接数据库的配置单独放在一个properties文件中 之前,我们是直接将数据库的连接配置 ...

  7. 重温WCF之数据契约中使用枚举(转载)(十一)

    转载地址:http://www.zhuli8.com/wcf/EnumMember.html 枚举类型的定义总是支持序列化的.当我们定义一个新的枚举时,不必应用DataContract特性,就可以在数 ...

  8. ASP.NET Web API 中的异常处理(转载)

    转载地址:ASP.NET Web API 中的异常处理

  9. MSSQL中建立分区表(转载备忘)

    转载自CSDN地址:http://bbs.csdn.net/topics/330087045 SQL Server 2005 分区表实践——建立分区表(partition table) 问题:有一个订 ...

随机推荐

  1. 基于Dockfile构建JAVA环境网站镜像

    查看本地目录 [root@docker tomcat]# ls apache-tomcat-8.5.16.tar.gz  Dockerfile  jdk-8u91-linux-x64.tar.gz   ...

  2. 【linux】系统编程-7-网络编程

    目录 前言 10. 网络编程 10.1 简要网络知识 10.2 IP协议 10.2.1 IP地址编址 10.2.2 特殊IP地址 10.2.1 首限广播地址 10.2.2 直接广播地址 10.2.3 ...

  3. Vitis下载安装尝试

    Vitis下载安装记录 一.下载安装 文章目录 一.下载安装 提示:以下是本篇文章正文内容,下面案例可供参考 一.下载安装 首先本次下载主要使用的是linux系统,所以我们先看一下Vitis支持的li ...

  4. 04--Docker数据卷和数据卷容器

    .为什么要使用数据卷: Docker容器产生的数据,如果不通过docker commit生成新的镜像,使得数据做为镜像的一部分保存下来,那么当容器删除后,数据自然也就没有了.为了能保存数据在docke ...

  5. 1.2V升压5V和2.4V升压5V芯片,适用于镍氢电池产品

    一节镍氢电池1.2V升压5V电路芯片,两节镍氢电池2.4V升压到5V的电源芯片 PW5100具有宽范围的输入工作电压,从很低的0.7V到5V电压. PW5100输出电压固定3V,3.3V,5V可选固定 ...

  6. Android 开发学习进程0.27 kotlin使用 和viewbinding的使用

    kotlin-android-extensions 插件被废弃 笔者曾经尝试写过一部分的kotlin代码 主要是项目中一些代码是kotlin完成的,其中我认为 kotlin的kotlin-androi ...

  7. 离线安装docker-ce

    1.用一台可以连外网的虚拟机把docker-ce安装包下载下来,vim /tmp/docker-download.sh #!/bin/bash set -e mkdir -p /apps/docker ...

  8. axios用法

    1 axios.get('https://api.apiopen.top/getJoke?type=all', { 2 params: {//用于传参 3 type: 'all' 4 } 5 }).t ...

  9. React中组件间通信的方式

    React中组件间通信的方式 React中组件间通信包括父子组件.兄弟组件.隔代组件.非嵌套组件之间通信. Props props适用于父子组件的通信,props以单向数据流的形式可以很好的完成父子组 ...

  10. Java——单例模式、多线程

    单例模式 单例模式练习 单例模式的分类 懒汉式 懒汉式相关练习 饿汉式 饿汉式相关练习 线程安全 使用双重检测机制实现线程安全的懒汉式 使用静态内部类实现线程安全的单例模式 多线程 多线程的三种方式 ...