Questions tagged [objectid]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
56 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
1answer
20 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 ...
0
votes
1answer
77 views

What requirements does ArcMap have for an ObjectID field name? [closed]

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
2answers
44 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
0answers
53 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
2answers
150 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 '...
2
votes
1answer
175 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
1answer
158 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
0answers
83 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
1answer
113 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
1answer
126 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
0answers
105 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
1answer
164 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
0answers
44 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
1answer
52 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
1answer
108 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
4answers
912 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
1answer
455 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
1answer
362 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
1answer
121 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
1answer
145 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
3answers
3k 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
1answer
466 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
0answers
372 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
2answers
3k 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
3answers
780 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
1answer
115 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
1answer
696 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 ...
12
votes
1answer
6k 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 ...
-3
votes
3answers
3k 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)?