All Questions
Tagged with update-cursor or cursor 
        
            
                1,058 questions
            
            
            
                -1
            
            votes
        
        
            
                0
            
            answers
        
        
            
                45
            
            views
        
        
            
            
        Can an arcpy.da.UpdateCursor be used on a layer in a geopackage? [closed]
                    Can an arcpy.da.UpdateCursor be used on a geospatial layer in a geopackage?  Within a Jupyter notebook in ArcGIS Pro v3.5 I have been using arcpy.da.SearchCursor to process records in a layer in a ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                39
            
            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
        
        
            
                149
            
            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
        
        
            
                83
            
            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
        
        
            
                102
            
            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
        
        
            
                89
            
            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
        
        
            
                115
            
            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
        
        
            
                151
            
            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 ...