-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try to get GlobalID if OID is not found in retrieved feature (arcgis) #2425
Conversation
About GlobalID and ObjectID in ArcGIS: (by chatGPT) The GlobalID is not a direct substitute for the ObjectID in ArcGIS, although both are unique identifiers. There are key differences between these two fields in terms of purpose and behavior:
Can GlobalID substitute for ObjectID? In general, no. The ObjectID is fundamental for ArcGIS’s internal functioning and is required for basic tasks like editing, selection, and geoprocessing. The GlobalID serves a different purpose, primarily related to synchronization and managing relationships between distributed features. While both are unique identifiers, many ArcGIS tools specifically need an ObjectID to function. If your layer or table lacks an ObjectID, you cannot simply use a GlobalID as a replacement for functions that require the ObjectID. Use GlobalID in cases such as:
In summary, the GlobalID has a specialized use case and cannot replace the ObjectID for many basic ArcGIS operations. |
About if is possible than a featrue has no ObjectId in ArcGIS: (by ChatGPT) In ArcGIS, it is not normal for a feature to lack an ObjectID, as this field is essential for many core functionalities. The ObjectID is an automatically generated unique identifier for each feature in a feature class or table, and it is required for tasks such as selection, editing, and geoprocessing. However, there are certain scenarios where a feature might not have an ObjectID:
Consequences of lacking an ObjectID:
If your feature does not have an ObjectID and you need one, you can usually create it by exporting the data to a new feature class or saving it in a geodatabase, which will automatically generate the ObjectID field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Before this get_objectId was returning -1 even if no ObjectID is found in entity
Related #2424 (comment)