当前位置:网站首页>(转)ArcGIS中ObjectID,FID和OID字段有什么区别?
(转)ArcGIS中ObjectID,FID和OID字段有什么区别?
2022-06-09 23:01:00 【石头变钻石?】
ArcGIS Desktop 需要独立的表和属性表都有一个ObjectID字段,这个字段中包含一个唯一的,长整型的数值来指定每一条记录。这个ID是由ESRI的软件来管理的,是不能够手动更改的。
在Shapefiles, geodatabase feature classes, 和独立的表格中ObjectID的处理方式不同。
—在一个shapefile中, 'FID’字段包含ObjectID,并且值从零开始。
—在一个geodatabase feature class 或者geodatabase中的独立的表格中, ‘OBJECTID’ 字段包含ObjectID, 值从1开始。
—在一个独立的dBase 表格中, ‘OID’ 字段包含ObjectID, 值从零开始。
在使用ArcGIS Desktop编辑数据的时候,不同的ObjectID字段的功能不一样:
—如果一个shapefile中的一条记录被删除了, FID会重新编号,这样这个值会从0开始按顺序逐渐增大。编号之间没有间隔。
—如果一个 geodatabase feature class 或者一个 geodatabase table中的一条记录被删除了, OBJECTID不会重新编号, 并且列表中的间隔会保存。
—如果一个dBase表格中的一条记录被删除了,OID会从0开始重新编号。编号之间没有间隔。
数据转换导致ObjectID被重写。
—当一个geodatabase feature class被导出或者转换成shapefile的格式,或者当一个geodatabase 表格被导出成dBase格式, 输出shapefile或者表格中的记录将被从0开始按顺序重新编号。
—当一个geodatabase feature class被导出或者转换到一个新的 geodatabase feature class, 或者当一个geodatabase table 被导出或者转换到一个新geodatabase table, 输出的feature class 或者table中的记录将被从1开始按顺序重新编号。
在选择字段用来Join或者Relate表格的时候,需要注意这些特点。如果一个 shapefile要使用FID 和 OBJECTID 来Join到一个feature class, 由于feature class 没有一条记录是OBJECTID = 0,所以shapefile的FID = 0的记录将不会与feature class 中的任何一条记录相匹配。
(文章转载地址:https://blog.csdn.net/lysc_forever/article/details/20656183)
边栏推荐
- 荐书 | 手牵手一步两步望着天,看星星一颗两颗连成线
- jg-文件上传代码-以及导出excel
- emu8086的入门使用
- Getting started with Emu8086
- Discussion on solving LCA by multiplication method
- Project training (XV) -- Video multi character recognition supplement
- 2022 operation of simulated examination platform for examination question bank of pillar special operation certificate for metal and nonmetal mines
- 双塔模型-语义索引策略 [In-batch Negatives]
- Mazhiqiang: research progress and application of speech recognition technology -- RTC dev Meetup
- Introduction to Tencent ncnn
猜你喜欢

【卷指南】Mendeley文献管理工具教程

微机原理与接口技术习题1

Book club recruits | let's read "Mr. toad goes to see a psychologist"

Simulated annealing-n queen problem
流程测试支持批量参数导入,测试效率直接拉满!

“當你不再是程序員,很多事會脫離掌控”—— 對話全球最大獨立開源公司SUSE CTO

"At the age of 35, I have no sideline, so I'm embarrassed to mix in the workplace": get rid of the sideline of dead salary recommendation

我服了,MySQL表500W行,居然有人不做分区?

读书会招募 | 一起来读《蛤蟆先生去看心理医生》吧

不能在此路径中使用此配置节,如果在父级别上锁定了该节,便会出现这种情况的解决办法
随机推荐
Is Hebei Hengyin futures a regular platform? Is it safe?
Features and functions of IPSec
Question bank and answers of 2022 metal and nonmetal mine blasting examination
MATLAB中对tif格式栅格影像读取-保存
Break that mirror and be yourself
Some problems of youtubednn recall
浅谈企业自媒体如何才能脱颖而出
opencv体系结构
JVM 讲解
IOS cache - nscache and sandbox cache
致广大、尽精微,曙光问道算力服务“神经系统”
Deploy MySQL based on statefulset in kubernetes (Part 1)
leetcode695. Maximum area of the island (medium)
String-4-242. Valid Letter ectopic words
Manual single precision floating point type
Online text string batch replacement tool
"At the age of 35, I have no sideline, so I'm embarrassed to mix in the workplace": get rid of the sideline of dead salary recommendation
Detailed explanation of IEEE 754 floating point number standard
单细胞数据复现-肺癌文章代码复现7
Dynamic reading of protobuf data