All Questions
Tagged with insertcursor or cursor
1,057 questions
0
votes
0
answers
37
views
Writing Python script to decide which polygon to delete
I'm working through a project where I'm trying to identify upstream wetlands associated with various stream crossings in a large area. To model the event of a blocked stream crossing, I'm trying to ...
2
votes
1
answer
145
views
Using ArcPy Search Cursor
I am trying to update some scripts to Python 3.9.x. I am copying a dataset from an enterprise geodatabase to a file geodatabase. Once copied, I would like to have a search cursor go through the owner ...
1
vote
0
answers
48
views
ArcPy UpdateCursor Runtime Error DBMS does NOT support function
I have a feature class (polygon) in an Enterprise Geodatabase that I want to update an integer field with data from a different feature class (people) that is in a separate Enterprise Geodatabase.
The ...
1
vote
1
answer
70
views
Cursor tethered to 0,0 coordinates by red dotted line when draw polygon in QGIS
In QGIS 3.40.4 Bratislava, I am trying to add a polygon layer to an imported AutoCAD file. Whilst my new polygon layer is at the top of my layers list, I can't start to draw. The cursor seems to be ...
0
votes
0
answers
75
views
Stop the geoprocessing tool from overwriting results with the same name
I'm working on a geoprocessing tool in the ArcGIS Pro environment. My Goal is to manually work on a set of points (requiring me to go thru all of them individually) and let the tool do its work on ...
0
votes
1
answer
81
views
Unable to add a row field by field in ArcGIS Pro table using Python script [closed]
I have written a Python script that creates a table with at most one row. The user is prompted to input values for each field, and the table should be updated accordingly. However, while the code is ...
0
votes
1
answer
73
views
Using ArcPy to insert polygons
I am trying to insert three polygon into a shapefile. The goal is to use a function that will create the polygon. That way, I can pass the coordinates of the polygon into the function. I have read ...
0
votes
1
answer
100
views
Adding multiple fields to feature class
I have created a simple arcpy script to add four fields (name, shapeArea, shapeLen, quantile, in that order) to a layer and to compute the values of shapeArea and shapeLen. Because I need to do this ...
1
vote
1
answer
59
views
ArcPy Update Cursor Output Order
I have a workflow that ingests a feature class, loops through with an update cursor, and then appends to an SDE table. The output feature order does not match the input order. I suspect parallel ...
1
vote
1
answer
110
views
Duplicating records by using column delimiter in ArcGIS Pro
In ArcGIS Pro 3.3, I have a shapefile where I need to create duplicate records (while preserving geometry per duplicated record) based on the values in a column. The table is structured similar to ...
0
votes
1
answer
102
views
Using search cursor or select for related table data in ArcPy
I am very new to ArcPy and code.
I have about 600 zones that overlay ~8000 different census blocks, which have been divided so that census blocks that aren't fully inside a zone are split, meaning ...
1
vote
1
answer
88
views
Calculating search cursor/percentage using ArcPy
I work with zoning info and have a series of census blocks that are overlapped by a larger zone. I used the identity tool to split the census blocks so that where they overlap they are separated, ...
1
vote
2
answers
113
views
Keeping curves intact while modifying geometry in an UpdateCursor
I am trying to modify some lines in ArcGIS Pro, shifting the Start vertex to coordinates in a pair of fields in the layer attributes. My arcpy script works... almost.
import arcpy
aprx = arcpy.mp....
0
votes
2
answers
150
views
arcpy - Select by Location in an Update Cursor
I have parcels and a buffer around greenways. I'm trying to populate a field in the parcel fc with a '1' if the parcel intersects the buffer. I can get that fine with an update cursor and select ...
1
vote
0
answers
39
views
Nested cursors with arcy.da.SearchRelatedRecords
I am trying to use python (arcpy) to filter through some data in my Ancestry-GIS.
All inside the same geodatabase I have:
A point feature class called
places
shape | placename | GlobalID |
Two non-...