Questions tagged [objectid]
The objectid tag has no usage guidance.
36
questions
1
vote
1
answer
117
views
How to delete duplicate objectID in ogrmerge?
I am using ogrmerge to merge two GeoJSON files together. These two files can sometimes have duplicate objectIDs. Is there a way I can specify from the ogrmerge command options to only select distinct ...
3
votes
1
answer
454
views
Copying Object ID from an online layer to offline one using Feature class to Feature class conversion (ArcGIS Pro)
I have an online feature class "A" with a field "OBJECT ID". I am using Feature Class to Feature Class conversion to create a copy in my local Geodatabase.
While doing so I ...
0
votes
0
answers
518
views
ArcGIS Pro - My point feature class won't display respect the drawing order according to ObjectID field
I'm trying to share a point feature class as a web layer. When I do the draw order of my points is opposite of what I expected.
It is my understanding that the draw order is based upon ObjectID and ...
0
votes
1
answer
613
views
Why is the OBJECTID= 0 (zero)? [closed]
I consider myself fairly new to ArcGIS, in that I'm comfortable with all of the basic map-drawing functions. However, there are still things that confuse me.
I am working on a project where I must ...
3
votes
1
answer
747
views
Is the ObjectId value guaranteed to be unique after features are deleted and re-created in an enterprise geodatabase?
I'm working with an enterprise MS SQL Server geodatabase which is accessed via SDE. ArcGIS manages ObjectId values such that they are uniquely assigned as features are added to the geodatabase.
My ...
0
votes
3
answers
3k
views
ArcMap says there is no Object-ID field, but there is, even after exporting data as shapefile
Starting just a day or two ago, I have been running into the same issue every time I try to Display XY coordinates from a .csv file. When I add a .csv file, Display XY Data, I get an error that there ...
2
votes
1
answer
1k
views
Dropping OID column when executing "Table to Table" tool in ArcMap ModelBuilder?
I am creating a ModelBuilder model, and from a feature class I am exporting the final output as .txt with "table to table" tool. (I just want a list of two fields (PID and DIST ). On the tool's field ...
1
vote
1
answer
63
views
ArcObjects - IFeature HasOID property returning false when there is clearly an OID [closed]
When inspecting features in my featureclass, I am checking to see if a feature has an OID using the HasOID property. Even though the feature(s) clearly has an ID on visual inspection (via ArcMap), the ...
3
votes
1
answer
1k
views
What requirements does ArcMap have for an ObjectID field name?
When creating standalone tables in a geodatabase, what are the requirements for the OID/FID/ObjectID field name? Specifically, does it have to be named 'ObjectID'?
1
vote
2
answers
246
views
arcpy.Select_analysis choosing only a fraction of the record
I'm trying to divide up a feature class into a number of smaller sets. I have been using Select_analysis with objectid to divide up the featureclass so far but know that this is not the best method.
...
0
votes
0
answers
118
views
Adding old FID to new feature class using ArcMap?
I have been tasked to relocate some assets, about 1000 preexisting point and line feature classes. I will be collecting the correct GPS coordinates to realign all the assets but I'm not sure how to ...
0
votes
2
answers
949
views
Merging layers with different objectid types
I have a problem that's stumped me. I'm merging flood hazard layers from FEMA. For most states, the objectid is a real number. California (we're always the weird ones) has an objectid that's '...
3
votes
1
answer
1k
views
Reference ObjectID in a where clause within an UpdateCursor
I have a dynamic list of ObjectID values I need to filter an UpdateCursor on. I am setting a where_clause as:
where_clause_points = "[ObjectID] IN({0})".format([x for x in inspected_points])
Which ...
0
votes
1
answer
618
views
Pirmary key constraint on objectid field
I am trying to copy data from a PostgreSQL (9.4) DB table to an SDE table. Both have an objectid field. If I copy the data from the source table with the OID field, I get an error because the values ...
0
votes
0
answers
331
views
Gdal Read Geodatabase Features Don't Show Object ID
I am using Gdal Node.js interface to read features of a layer from a Esri Geodatabase. My javascript code looks like this:
var dataset = gdal.open(inputPath);
var layer = dataset.layers.get(layerName)...
1
vote
1
answer
194
views
Getting features using objectID in ArcGIS Runtime SDK for iOS?
In ArcGIS Server 10.2, there is a method named lookupFeatureWithObjectId in the class AGSFeatureLayer.h.
However, there is no such method in ArcGIS Runtime SDK for iOS version 100.x.
How can i ...
0
votes
1
answer
375
views
Is ArcGIS archiving based on ObjectID or GlobalID?
My question is about the "archive" functionality that is available for the enterprise geodatabase tables in ArcMap.
Does it use the ObjectID to determine that an object is the same as an archived one?...
0
votes
0
answers
228
views
ArcGIS 10.2 objectid returning non sequential values
I am making a SQL insert in a geotable. I'm getting the objectid via:
sde.gdb_util.next_rowid('my_user', 'my_table')
However, I've noticed that numbers given are not always in sequence. For instance,...
2
votes
1
answer
482
views
Preserving OID when appending in ArcPy?
The following snippet works perfectly when appending one FC to another, with a slight schema difference (1 field):
target_layer = "blah blah blah.sde/yada.DBO.yada_yada"
append_layer = renamefgdb+'\...
1
vote
0
answers
68
views
Unable to create new feature for FeatureLayer with editor widget
I´m using this sample for default editor widget with the help of ArcGIS API for JavaScript. I replaced featurelayers with my own layer. It´s possible to update and delete features, but I don´t create/...
0
votes
1
answer
84
views
Assigning row-wise value to rotated grid of points using ArcGIS Desktop?
I am working with a climate model that operates by means of a rotated grid of points. The rotation angle is about 15 degrees counterclockwise. The points are provided with (N, E) coordinates, but ...
1
vote
1
answer
355
views
Field Calculator: extract single cell based on it's OBJECTID?
Is it possible to copy a single value inside a field based on it's OBJECTID from another field?
Some sort of if-then-else logic?
For example I would like to copy the value in the Area field ...
6
votes
5
answers
2k
views
Does the OBJECTID in an Oracle Geodatabase table have a primary key constraint, by default?
Tables that are created in Oracle using ArcGIS Desktop are given an OBJECTID field by default. The OBJECTID field is assigned a unique not-nullable index.
Does the OBJECTID in an Oracle Geodatabase ...
1
vote
1
answer
699
views
Create a table that is not registered with the geodatabase
I am doing some testing that requires having a Oracle table that is not registered with the geodatabase. For instance, Adding an Incrementing ID Field can only be performed on a table that is not ...
1
vote
1
answer
967
views
How can I create a numeric field (not ObjectID) with a unique number for each record?
I need to do some analysis in ArcGIS, export the data to Excel, do some more analysis, import the results back to ArcGIS, and join the resulting table back to one of the original feature classes. Am I ...
2
votes
1
answer
143
views
Making ArcGIS tool to generate ObjectIDs that start from Upper left rather than bottom left in Fishnet?
When I spatial join a fishnet with another fishnet, I see ObjectIDs start from bottom left of the feature rather than Upper left of features. How can I make ArcGIS to create feature class having ...
1
vote
1
answer
370
views
Find Delta only records in ArcGIS (SDE) [closed]
We have spatial layers in ArcSDE with objectid as unique value, I've taken this data to another platform & migrated data to cloud.
Now, after months, back in ArcSDE and want to migrate new data (...
2
votes
3
answers
4k
views
FeatureClassToFeatureClass_conversion: How to export feature class to shapefile without losing OBJECTID
I am trying to automate a workflow which involves exporting multiple feature classes (within a geodatabase) to shapefile format.
My inclination has been to use the ...
1
vote
1
answer
839
views
Retrieve OBJECTID from query result from GISServer
Is there any way to obtain the OBJECTID value from returned result from GISServer query?
For example:
var searchString = "OBJECTID = 0001 OR OBJECTID = 0002";
var queryTask = new esri.tasks....
1
vote
0
answers
481
views
Error 000666, does not have OID with Locate Features Along Route in ModelBuilder [closed]
I'm trying to take a bunch of point data and determine what points of surveyed lines are closest to each point. To this end I have put together a model that loops through the line features and in ...
7
votes
2
answers
5k
views
where is the sequence in Oracle associated with the Objectid field in ArcGIS, and how to manage it?
I am working in ArcGIS 10.1 with tables from Oracle, now under control of SDE, after making use of the option: 'Register with Geodatabase'. All these tables have a column named 'Objectid' with an ...
1
vote
3
answers
1k
views
Unable to edit map in ArcGIS
For some reason I am unable to edit my map in ArcGIS. When I click 'start editing' on the editor toolbar, I get the following error message:
I've ensured that my field names in the Excel table don't ...
2
votes
1
answer
144
views
buffer by objectid in arcpy
is there a way in Arcpy (arcgis 10.2.1) to buffer lines by selecting thier objectid?
arcpy.Buffer_analysis("MY_JUNK","d:/data/ArcGIS/Default.gdb/MY_JUNK_Buffer1","10 Meters","FULL","ROUND","NONE","#")...
1
vote
1
answer
1k
views
How to get Last ObjectID of feature class using ArcPy?
I have a feature class and I need to know the ObjectID of its last record.
What is the best way to find out last ObjectID?
Opening a search cursor and reading all the records is one way, but is ...
16
votes
1
answer
9k
views
What's the best way to get the OBJECTID name?
What's the best way to get the OBJECTID name of a feature class?
I know you can use "OID@" in a cursor to get the field, but can you get the name from that as well?
I'm writing a script, and need to ...
-2
votes
3
answers
4k
views
Copying table in ArcGIS Desktop and keeping same feature ID (objectID)?
What geoprocessing tool can I use to copy a table from an ArcSDE Geodatabase to a Personal Geodatabase, keeping the feature ID (objectID)?