Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A site-package created by Esri to expose ArcGIS Desktop (ArcMap and ArcGIS Pro) geoprocessing, mapping, etc, to Python.
1
vote
1
answer
306
views
Text element not updating in arcpy.mapping?
I am trying to get a text element to input an address using the below code. It seems that the code picks up the right elements, is finding the text elements I want to change but isn't able to actually …
1
vote
0
answers
94
views
Point feature class showing up empty?
After days of solving errors and various issues I finally have code that runs in ArcMap... but the shapefile that shows up does not show any points on the map. I checked the attribute table and all fi …
0
votes
1
answer
243
views
When to Update Row within an Update Cursor that uses multiple if statements for different fi...
I have a model that requires a stupid number of conditional statements. The older version was utilizing feature layers, select by attributes, and Calculate fields many, many times. I rewrote it to uti …
1
vote
Carrying over attributes after building geometry in ArcPy with ArcGIS Pro
OBJECTID fields are a unique type of field that will not carry over well when changing up a feature class or creating a new feature class. It's why having a unique identifier for each row is highly en …
3
votes
1
answer
495
views
How to use Arcpy to set Extent to "Union of Inputs"
However, how do I do that using arcpy, I know you can set a specific extent, but am not sure how to turn on the Union of Inputs option found under processing extent in ArcMap itself using only python. …
1
vote
1
answer
113
views
Select Issues with Converting Feature Class to Shapefile with only certain fields
This is not a copy of previous questions like Selecting certain fields from feature class to create new feature class in ArcPy? but builds on them.
I have two approaches and two different issues. …
-1
votes
2
answers
4k
views
Using Calculate Field, how do you make one field equal another, existing, field? [closed]
I know this is simple, but I can't remember how to make one field equal another within arcpy. Currently the code is as below:
arcpy.CalculateField_management(newFc, "HouseNumber","!HouseNumber! = ! …
0
votes
0
answers
115
views
ArcPy merge output only has the first feature class in list
I have a script that generates several feature classes. I use a function to create the feature classes within a loop. The loop outputs a dictionary with a name string as key and the feature class path …
1
vote
1
answer
146
views
Invalid Syntax on Update Cursor update
I'm using a dictionary created by a search cursor from one feature class to update another feature class with an update cursor. I'm getting an invalid syntax error for the cursor.updateRow(row) and..h …
0
votes
1
answer
173
views
Error type 000582 when trying to create buffer
I am trying to create buffers around a point FC that has an acreage field. The point FC has some rows that are null and some that report an acreage of 0.
I'm running into an issue when it comes to the …
1
vote
Accepted
Error type 000582 when trying to create buffer
I was getting this error because arcpy.sfa.CreateBuffers tries to output to a portal feature class, not a geodatabase. I was using the wrong tool..
1
vote
1
answer
217
views
Restricting one parameter value list against another's chosen value in Python Toolbox using ...
I have a script loaded as a toolbox into ArcGIS Pro. It has two multi-value string parameters.
Is there a way to restrict the second parameter's list against the first?
For example, if a user picks "N …
2
votes
1
answer
807
views
Cursor to update feature class by location?
for row in cursor2:
row[0] = lotnum
# delete the cursor
del cursor
My code is based on a question answered here: Using Select By Location to update field in feature class using ArcPy …
0
votes
1
answer
182
views
Getting dataframe extent from a polygon and exporting to PDF issue
# Import modules
import arcpy
from arcpy import mapping
# Allow overwriting
arcpy.env.overwriteOutput = True
# Get the X and Y information for each polygon
mxd = mapping.MapDocument("CURRENT")
df …
1
vote
1
answer
1k
views
How to, if possible, copy data from an ArcGIS REST Service?
I do not believe this is a copy of Download Dataset From ArcGIS REST Service or Extracting data from ArcGIS REST endpoint? due to the source and type of service.
I would like to copy the features from …