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
Accepted
Having new points inserted into shapefile automatically display using ArcPy?
Problem: My original code should have used the "Shape@XY" token to add 'geometry' to all NEW points.
Solution: New code below (notice 4th argument 'SHAPE@XY' in the Insert Cursor, and 4th argument 'n …
0
votes
3
answers
619
views
Understanding ArcPy tools needed to create shapefile from CSV table? [closed]
I realize this question isn't focused on a problem per se, but I hope it is allowed because I think it would be valuable to those who want to better understand Arcpy scripting AND I've already tried searching …
1
vote
2
answers
322
views
Having new points inserted into shapefile automatically display using ArcPy?
Displaying points from a table is easy - you just right click the table and choose "Display XY Data".
But what is the comparable method for shapefiles? When you right click a shapefile the "Displa …
0
votes
1
answer
666
views
Why does "arcpy.FeatureClassToFeatureClass_conversion” Remove the Target Feature Class from ...
Code Snippet:
import arcpy
Source_CSV = r"\\int.ec\Data\Stations.csv"
Target_FC = r"Q:\Data\Stations.gdb\Stations"
Description = arcpy.Describe(Target_FC)
Target_FC_name = Description.name
Target_GDB …
5
votes
3
answers
6k
views
Writing ArcPy Update Cursor "Where Clause" that Refers to its own Rows?
I'm using Arc 10.2.2.
I have 2 files:
"Input_Table.exe" (only 3 columns: "ID", "Lat", and "Lon")
"Target_Shapefile.shp" (many columns including the same "ID", "Lat", and "Lon")
Any rows in the T …
1
vote
1
answer
2k
views
Syntax Error related to File Path / Name in ArcPy Script
I'm using ArcGIS Desktop 10.2.2.
I'm getting the following error when I run a script in Arc.
SyntaxError: EOL while scanning string literal
The error message points to the line where I set my work …
-1
votes
1
answer
537
views
What Arcpy Functions (in proper sequence) will Convert CSV to Feature Class? [closed]
Can anyone suggest the simplest sequence of arcpy functions to use in a script that will convert a csv to a feature class (and overwrite if pre-existing)? … I'm not asking for a complete script, just the appropriate arcpy functions in the proper order. …
2
votes
1
answer
92
views
Why is "arcpy.GetParameterAsText" deleting Target Feature Class?
To prove it to myself I changed the script file in the Source tab of the Tool Parameters Window to the following simplified script:
import arcpy
Target_FC = arcpy.GetParameterAsText(1)
Yes really, …
3
votes
2
answers
643
views
Why is FeatureClassToFeatureClass tool Failing on Long cell values (Arc 10.2)?
Here is my Code Snippet:
import arcpy
Source_CSV = r"\\int.ec\Data\Stations.csv"
Target_FC = r"Q:\Data\Stations.gdb\Stations"
Description = arcpy.Describe(Target_FC)
Target_FC_name = Description.name … \arcpy\conversion.py", line 1675, in FeatureClassToFeatureClass
raise e
ExecuteError: ERROR 001156: Failed on input OID 1263820748, could not write value 'LS_ blue with white trim_ has overflow in …
-1
votes
1
answer
100
views
Writing Nested Loops Using SelectLayerByAttribute_management Iteratively over Multiple Fields?
I need to select all rows matching specific values across 3 columns and then iteratively change one value at a time and continue making selections. The reason is to capture certain summary statistics …
0
votes
0
answers
171
views
Why is Append_Management failing on just 2 (out of 9) table columns?
In Arc 10.2 I have a script tool that uses arcpy.Append_management() to transfer .csv data into a freshly truncated feature class table. It works perfectly on all .csv tables except one in which it f …
1
vote
1
answer
94
views
Imposing New Projection on Multiple Shapefiles using ArcPy?
I'm getting the following error 000732 with my arcpy script:
Here is my script (the error is coming from the final line):
import arcpy, os
from arcpy import env
source_data_folder = arcpy.GetParameterAsText …
3
votes
2
answers
783
views
Selecting Multiple Layers with ArcPy?
I have scripted tools in ArcPy that gather inputs using "GetParameterAsText", which then show up in the tool GUI like this:
But that is for gathering a single file by navigating to it and selecting …
2
votes
1
answer
740
views
arcpy.FeatureClassToFeatureClass_conversion() gives ERROR 000732: Output Location: Dataset ....
\arcpy\conversion.py", line 1675, in FeatureClassToFeatureClass
raise e
ExecuteError: Failed to execute. … What is wrong with the Parameters as used in the "FeatureClassToFeatureClass" Arcpy Tool below? …
0
votes
2
answers
122
views
Iteratively Updating Just Bottom Row in Table using ArcPy?
Selecting specific row in attribute table using ArcPy (without iterating through whole table)? …