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) 问题:有一个订 ...
随机推荐
- misc刷题
前言:听说misc打得好,头发多不了 kali自带的字典: cd /usr/share/wordlists/ 字典网站:http://contest-2010.korelogic.com/wordli ...
- Linux的环境变量配置在/etc/profile或/etc/profile.d/*.sh文件中的区别是什么?
@ 目录 login shell non-login shell 它们的区别 Linux的环境变量可在多个文件中配置,如/etc/profile,/etc/profile.d/*.sh,~/.bash ...
- Numpy的一些学习记录
Numpy的一些记录 产生numpy.array的方式 import numpy as np arr1 = np.array([1, 2, 3]) print(arr1) arr2 = np.zero ...
- Windows Server 2008 R2系统安装
把系统U盘插到服务器上,然后启动服务器进入BIOS界面选择U盘启动. 根据服务器的不同,进入BIOS界面的按钮也不一样,主流的有F10.F11.F12.F2.ESC.delete等. 在从BIOS启动 ...
- java定时任务之Qutaz
前不久一直在学习Qztaz,干好写了一个案例分享一下给大家,希望大家可以用得到. 那么现在开始吧, 一:什么事Qutaz? Quartz是OpenSymphony开源组织在Job scheduling ...
- (十一)整合 FastDFS 中间件,实现文件分布式管理
整合 FastDFS 中间件,实现文件分布式管理 1.FastDFS简介 1.1 核心角色 1.2 运转流程 2.SpringBoot整合FastDFS 2.1 核心步骤 2.2 核心依赖 2.3 配 ...
- oracle 常用语法()
一ORACLE的启动和关闭 1在单机环境下 2在双机环境下 Oracle数据库有哪几种启动方式 1startup nomount 2startup mount dbname 3startup open ...
- Spark JDBC系列--取数的四种方式
Spark JDBC系列--取数的四种方式 一.单分区模式 二.指定Long型column字段的分区模式 三.高自由度的分区模式 四.自定义option参数模式 五.JDBC To Other Dat ...
- Spring Boot:添加导出Excel表格功能
1.添加POI依赖 2.创建EXCEL实体类 3.创建表格工具类 4.创建ExcelConstant 5.创建ExcelController 1.添加POI依赖 <dependency> ...
- 给jekyll博客添加天气插件
layout: post title: 给博客添加天气插件 date: 2020-04-26 author: Dapenson header-img: img/post-bg-debug.png ca ...