A site-package created by Esri to expose ArcObjects to Python.

learn more… | top users | synonyms (1)

0
votes
1answer
4 views

Merge layer files in folders and subfolders with arcpy

I work with arcview 10.3. I try to merge layer files in order to get one layer file that include all the features in the other layer files. All layer files as different names, and they all spread in ...
-1
votes
1answer
16 views

Why can't I use AddField_management in ArcPy?

I get this error, when I try to run this ArcPy code in Eclipse PyDev. The red underline under SearchCursor is not important, the Eclipse doesn't recognise the import, but that works perfectly (sure, ...
0
votes
0answers
18 views

Learning Network Analyst module of ArcPy (arcpy.na)? [on hold]

Can anyone recommend online resources for learning to use the arcpy.na Network Analyst extension. I'm particularly interested in automating network solves with input parameters, but would also like to ...
0
votes
1answer
15 views

Error using arcpy.da.SearchCursor and MakeFeatureLayer

im trying to write a script that allows me to iterate through my map layers, and for each layer, iterate over each feature and add a field that gives the location of the feature using my index layer ...
0
votes
1answer
37 views

Add field to feature class by location

im trying to write a script that allows me to iterate through my map layers, and for each layer, iterate over each feature and add a field that gives the location of the feature using my index layer ...
0
votes
1answer
14 views

Merge shapefiles in folders and subfolders with arcpy

I try to merge 20 shapefiles in order to get one shapefile that include all the features. All shapefiles are called "migrashim", and they spread in big folder that divided to a lot of sub folders. ...
0
votes
0answers
18 views

Edit attribute table for several layer files?

I try to edit attribute table for 20 layers that spread in big folder that divided to a lot of sub folders. In How to edit attribute tables using Python/ArcPy? the script used only for one layer at ...
1
vote
3answers
34 views

Remove a layer from TOC in my printed PDF?

I am new at writing Python code so I'm just grasping the basics. I am trying to clip two shapefiles so that they are within the map boundaries. After that, I want to remove the unclipped layers and ...
2
votes
2answers
27 views

Python Script tools for ArcGIS 10.2 is very slow (get raster properties)

I am using python script tools for ArcGIS 10.2, under Windows 8.1 64bit. When I am using the arcpy.GetRasterProperties_management() command, it's very slow to process the data. For example. I tried ...
0
votes
1answer
22 views

Buffer ring problem with uses of make feature layer

Im trying to create a buffer ring shape but gets me the error 210: arcgisscripting.ExecuteError: ERROR 000210: Cannot create output C:\Trabajo Carto\TempPrograma\"capa de Ringbuff70".shp Failed ...
0
votes
1answer
37 views

How can I refer to two tables in ArcPy's CalculateField_management?

I tried to refer to the different table's fields just like I saw in How to Calculate Field in joined table using ArcPy? but it doesn't work. There are two tables in my example. I have created table ...
1
vote
1answer
26 views

How to update symbology without loading all symbols into TOC using ArcPy?

I am using ArcMap 10.0 Service pack 5. (government computer, no choice here). I am trying to automate a common mapping task... I have a clipped layer (SoilsClipped - which has maybe 4 or 5 ...
0
votes
2answers
32 views

What fields can the CalculateField_management expression parameter contain?

What fields can the CalculateField_management expression parameter contain? I mean the parameters can be the fields what are in the output table, or can they be a field of another table too? There ...
2
votes
0answers
33 views

Overwriting layers in a geodatabase maintaining its position in a feature class list

I'm working with ArcGIS 10. I work on ecological habitat mapping. I have some features classes inside a geodatabase which represent years of data on a specific area. Each has a reliability field with ...
0
votes
0answers
20 views

How to use calculatefield_management with ArcPy and joined second table? [duplicate]

How can I use calculatefield_management with ArcPy if I have a joined second table? I want to go through the attached table's field and I want to get records where the certain fields is. How can I ...
1
vote
2answers
40 views

Is it possible to toggle draft mode in ArcGIS with Python?

I'm curious if it is possible to toggle on and off 'draft mode' in layout view in ArcGIS using python scripting. Does anyone have any ideas? Python is preferred, but if there is another solution in a ...
1
vote
0answers
26 views

How to implement 3NF (third normal form) in ArcGIS attribute tables?

How can I implement 3NF (third normal form) in ArcGIS attribute tables? I have a field what have redundant values, and I need to run different functions for these redundant datas, so I need to place ...
-1
votes
3answers
54 views

Batch Re-projection script syntax error

import arcpy ... sourceWorkspace = "C:\\Users\\tx8p90\\Desktop\\Lesson2" ... targetProjection = "C:\\Users\\tx8p90\\Desktop\\python excercise data\\Lesson1\\contourlines.shp" ... listDataSet = ...
1
vote
1answer
20 views

ApplySymbologyFromLayer works in ArcMap but not in python script

So the ApplySymbologyFromLayer_management() tool doesn't seem to like me, at least when I try to use it in a script. I have a Field_Boundary2.lyr file that has a "hollow" fill color and a black ...
2
votes
2answers
18 views

replaceDataSource for Tables from one SDE server to another server

I found the code that works to change the layers in my mxd from one SDE workspace to the other SDE worksspace. The script runs, but does not change the tables to the new SDE workspace. I replaced lyr ...
0
votes
1answer
26 views

Writing a simple code to replaceWorkspace

I am trying to write the code but it gave me the error within the Python window: >>> mxd = arcpy.mapping.MapDocument("CURRENT") path = "C:\Student\MapScripting10_0" ...
0
votes
1answer
52 views

How to show the attribute table of selected features using arcpy?

Is there a way to show the attribute table of selected features using arcpy? Maybe in the mapping module? I would like to be able to select some features and then have an Add-In button that ...
1
vote
1answer
27 views

How to reduce area boundaries resolution?

I managed to plot zip codes boundaries for an entire US state using ArcGIS data and python tools such as arcpy and Bokeh. The result: The dataset has high resolution area boundaries so, I have like ...
0
votes
1answer
23 views

equation solving by using python or model builder in arcmap 9.3

I want to solve one formula in arcmap 9.3 by using Python or Model builder. I have one shape file, in that there is in attribute table for field A & B Solve the formula: A*B/Sum(A). where Sum(A) ...
2
votes
1answer
35 views

conditional python script to delete records

I am new to python programming. I am wondering if someone could tell me how to write a python script that would find all records in an attribute table that have identical values in one field, then ...
2
votes
2answers
62 views

Can we no longer reference an ArcMap layer to get the spatial reference?

I'm currently using ArcGIS 10.2.1. In previous custom geoprocessing tools, I've used the following code to create a feature class in-memory, and set the spatial reference using an existing layer in ...
0
votes
1answer
49 views

Incorporate SHAPE@LENGTH in arcpy.da.UpdateCursor

What is the correct way to incorporate SHAPE@LENGTH in arcpy.da.updatecursor. Consider the following shortened version of my actual code: def check_for_missing_fields(field_list, feature_lyr): ...
1
vote
0answers
16 views

Import CAD annotation from multiple DWGs into multiple Geodbs

I'm new here (and to python). I'm trying to use the "importCADAnnotation" tool to import annotation from multiple .dwg files in a directory to new annotation layers within file geodbs (with the same ...
0
votes
1answer
25 views

Add multiple GDB files in subdirectories to mxd using python

I have GDB files located in many sub-Folders and sub-sub-Folders. All Sub Folders are located in one large directory i asked it for layer file in Add multiple Layer files in subdirectories to mxd ...
0
votes
0answers
14 views

Configure Geoprocessing Service after publishing?

I want to use some variables in a geoprocessing service like a URL, that should be configurable from the arcgis ardmin or manager. Is it possible have a tool input, which value will be specified by ...
3
votes
0answers
26 views

ArcGIS Solar Radiation Tool - How is Local Solar Time/Local Time handled as input to the “within-day” time configuration?

I am scripting hourly interval runs of the Area Solar Radiation Tool, and need a hand understanding how to account for Local Solar Time (LST) versus Local Time (LT) within the tool. First off, I ...
0
votes
1answer
37 views

Animating alterations to DEM based on function using ArcGIS for Desktop?

I've generated a function that alters height values of a DEM based on certain criteria. What I'm looking at doing now is animating this in ArcScene. Is there a way, in ArcGIS, for each frame to be the ...
0
votes
2answers
32 views

Python column checker-comparing 2 fields

One problem I am having is the following: I want to create an automatic program to see how well the automozation has been with comparing the results of 2 columns to each other in the same column. In ...
1
vote
1answer
19 views

Debugging ArcPy ImportToolBox AttributeError: Object: Tool or environment <ConcatenateRowValues_AA> not found?

First post here. I am trying to use the ConcatenateRowValues tool provided by ESRI. My overall code for my script is working fine except when it tries to use the ConcantenateRowValues Tool. I start ...
1
vote
2answers
56 views

Python scripting for feature classes (loop, sort, merge, and replace)

This is what I have to accomplish using a python script for ArcGIS 10.1: Loop through all feature classes and first add a field, then write the name of the feature class into the added field. Merge ...
1
vote
1answer
29 views

How do you calculate a new field for a raster table based on value from a joined table?

I need to know whether it is possible to calculate a new field for a raster table based on a value from a joined table. Ideally I'd like to be able to accomplish this task without having to add table ...
0
votes
2answers
43 views

Permanently add a python toolbox to ArcToolbox

I've written a python toolbox for my company containing several scripts to speed up various repetitive tasks. Each time we want to use it we have to open ArcToolbox, right click and select "Add ...
1
vote
2answers
54 views

Add multiple Layer files in subdirectories to mxd using python

I have more than 300 layer files located in many sub-Folders and sub-sub-Folders. All Sub Folders are located in one large directory.I read Use python to add layers to TOC and I try, with arcpy, to ...
1
vote
3answers
63 views

A mistake in very easy python code (Buffer 1 - Buffer 2- Erase 2 fom 1)

I need to make 500m rings (not full circle) around points (cities). I try to make 1. buffer: 2500 - 8500m (each 500m) and second buffer 3000 - 9000 (each 500m) and then erase 2500m from 3000m, 3000m ...
1
vote
1answer
43 views

python application extension onCreateFeature

Trying to populate certain attributes as soon as a feature is created. I have tried the python add-in application extension function "onCreateFeature", which does get triggered when a feature is ...
-2
votes
1answer
49 views

Writing ArcPy code to modify multiple attribute records?

How and where can I write a script or code, what can I run and it computes all of the values according to a few column values? The base column values can change, so with this method I can avoid ...
0
votes
1answer
29 views

How to use coverage tools in arcpy?

I have a process in which I need to use coverages. I can create the coverages just fine using FeatureClassToCoverage_conversion within arcpy but trying to union 2 coverages together or trying to ...
0
votes
0answers
27 views

arcpy Unable to remove directory. Possible causes: 1- Not owner of the directory 2- Another person or application is accessing this directory

Using arcpy and reclassify, I'm trying to run a loop reclassifying the same dataset accoding to different values. I've reduced this example to three loops, the original is much longer. import arcpy ...
1
vote
3answers
45 views

Move Incorrectly Placed Address Points to Correct Parcel

I'm currently in the process of cleaning up a municipality's address point data. I'm working with two data sets: address points and parcel polygons. Both the address point data and the parcel polygons ...
0
votes
0answers
12 views

Open GP tool as batch using pythonaddins

I'm working on a python toolbar addin and want to open a custom script tool as a batch process upon clicking a button. Is this possible using pythonaddins.GPToolDialog()? I can open as batch by simply ...
0
votes
0answers
12 views

Reconciling to a non-parent version in ArcGIS

I am trying to find a neat way to clone a GDB version in ArcGIS and as suggested in Cloning a transactional version in ArcGIS, it seems reconciling from the source to the clone is the way to go. ...
1
vote
2answers
47 views

Using raw_input python to accept string with a dash (-)

Hello I have the following python input. The user will enter a value with a dash always. E.g. 2015-0001 Var1 = raw_input("Enter the number with dash: ") ...
0
votes
1answer
28 views

Connecting to ArcSDE with arcpy is slow (ArcSDESQLExecute)

I'm creating an API which will allow queries to be performed on my GeoDatabase. I'm using ArcSDESQLExecute to connect to ArcSDE (backed with an Oracle database). Creating the connection object is very ...
0
votes
0answers
29 views

Parameters for CreateFishnet

I´m about to create a fishnet. The CreateFishnet tool has several parameters, between them the origin_coord - The starting pivot point of the fishnetl. Data type of this parameter is Point Now there ...
0
votes
1answer
27 views

For Loop Batch Copy Raster TIFF to BMP in ArcMap

I need to convert TIFFs to BMPs using CopyRaster from ascii to raster output TIFFs. I am not sure how to define the "outRaster" so that it will convert the rasters to BMP. I'm guessing that the line ...