Skip to main content

New answers tagged

0 votes

Calculating search cursor/percentage using ArcPy

You have a number of issues. Don't nest cursors. But if you do nest cursors (just don't), you need to reset() it after each complete iteration of the inner cursor. You never loop over your ...
user2856's user avatar
  • 67.1k
0 votes

Keeping curves intact while modifying geometry in an UpdateCursor

This question is mistitled, it should read "Keeping curves intact with ArcPy Geometry constructors." There is no limitation to working with true curves and UpdateCursor - ArcGIS Pro | ...
bixb0012's user avatar
  • 2,151
0 votes

Exporting MXD file from ArcMap to PDF using ArcPy not retaining embedded Excel tables when converted to PDF

I haven't used the old mapping module as much as the new mp module so I can't really test, but from reading the documentation it seems like the table is a DataFrame element and you might need to set ...
hwelch's user avatar
  • 11
0 votes

How to export and manage images from Survey123 dataset in ArcGIS Pro, separating data points and handling errors

The workspace which you set the editor class to use must be the workspace that is holding the input feature class you are deleting from. From your screenshot it is clear you are pointing the editor ...
Hornbydd's user avatar
  • 43.8k
2 votes
Accepted

Keeping curves intact while modifying geometry in an UpdateCursor

Thanks to the various comments and links to similar questions (namely Determining if polyline has true curve using ArcPy with ArcMap), I was able to come up with an acceptable solution. Update Cursors ...
Midavalo's user avatar
  • 29.8k
0 votes

arcpy - Select by Location in an Update Cursor

All you need to do is use a Cursor spatial_filter: The issue with your code is that the select by attributes does nothing to a Cursor. Selecting a layer modifies the OID set of the layer object and ...
hwelch's user avatar
  • 11
1 vote

Update aprx data sources using arcpy

As @jdavid05 said, the secondary loop within the file loop is causing the error. the root returned by a os.walk is a string: [ ('<root>', ['<dir>', ...], ['<file>', ...]), ... ] ...
hwelch's user avatar
  • 11
1 vote
Accepted

Check to make sure layers overlap before clipping - Python script

You can include a test for overlapping between the raster dataset (input_fc) extent and the clipping geometry (clip_geometry) before attempting to clip. Raster datasets are always rectangular so using ...
Michael Stimson's user avatar

Top 50 recent answers are included