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

learn more… | top users | synonyms (1)

0
votes
1answer
62 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
48 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
42 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
55 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
83 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
83 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
31 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
41 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
33 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
62 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
42 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
48 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
76 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
112 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
45 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 ...
1
vote
2answers
103 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
119 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
73 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 ...
2
votes
1answer
83 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
54 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 ...
1
vote
1answer
50 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 does not work in ...
0
votes
0answers
55 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
61 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
29 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
1answer
21 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
57 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
47 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
34 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
48 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 ...
1
vote
1answer
49 views

Is there String Size Restriction in ArcGIS Python Script Tool parameter?

I'm trying to post a list of unique ID's (as a string) to a Python script tool for processing by ArcGIS Desktop 10.0. The list may be 50k+ id's long (~450kb). e.g. ...
0
votes
2answers
53 views

Feature Class to Coverage arcpy

Not much info out there these days on coverages in PYTHON. I need to convert a feature class to a coverage but cannot find out how to do it in python. All I have found is ...
4
votes
4answers
298 views

How to iterate fields and remove Null values and spaces

Is it possible to iterate fields in a table to remove Null values and spaces (where there is no value)? In other words, I would like to replace Null and " " with "" (no space). Cobbling arcpy ...
0
votes
1answer
104 views

Python: TypeError: a float is required

I have a python script with some parameters - see screen. You see the last parameter is of type Double, default Value 0. The code i have this: Ausrichtung = float(arcpy.GetParameterAsText(9)) if ...
1
vote
0answers
24 views

Adding layer to MXD from different SDE slows down ArcPy script

My python script looks at layers in an MXD, then does a couple of clip and measure operations and generates a PDF. It works accurately and quickly (0.5-3 seconds) when all the layers in the MXD are ...
0
votes
1answer
72 views

Trying to update separate table with SearchCursor

Learning Python to use in ArcGis 10.2 and becoming bald I want to get value from a certain field from one attribute table into another attribute table. IN PT1, If Meas of Object1 > Meas of Object2, ...
4
votes
3answers
228 views

ArcGIS Python code how to find if layer data is from an .mdb or a .gdb

In my ArcGIS Python code, I need to loop over a couple of layers, and from those layers only select the operational fittings: arcpy.SelectLayerByAttribute_management(fittings, "NEW_SELECTION", ...
1
vote
0answers
41 views

Python loop doesnt work properly for hundreds of Raster files (HDF)!

For generating Time Series, I prepared a python script which are supposed to get all task done through looping. Interestingly, It stops working after 12 HDF file but I need to do loop through all ...
1
vote
1answer
75 views

Automated map export, iterating layers and editing text

So just a beginner here. I've been automating a few map exports with ArcMap, I've used stack exchange to mash together some scripts to export maps with one FC symbolised using different fields and ...
0
votes
1answer
61 views

Field Mapping in ArcPy gives Error in adding input field to field map?

I have a process in which I am joining a DBF table to multiple shapefiles to create a new output of some selected fields which result from the join. I am new to fieldMapping and need help figuring out ...
1
vote
1answer
43 views

How to change font size in table of content

How can i change the font size of layers in the TOC manualy and also with arcpy ? The default is to small
1
vote
0answers
30 views

Modify a Python script to one that uses RasterDomain_3d fuctionality - and writes resulting shapefiles it to one

As I am not very experienced with Python I need your help. I managed to modify a Script (that has been posted here Get boundary of raster image as polygon in ArcGIS Desktop? by ...
1
vote
3answers
51 views

Select Layer by Location problem

i want to create a python scipt query using arpy in arcgis i have one polyline shapefile and one polygon shapefile i want to choose(select) the polygons where contained within in the polylines ...
0
votes
0answers
59 views

Output extent environment is not respected by Select Layer By Attribute (ArcGIS 10.2)

I cannot get the arcpy.env.extent working for Select Layer By Attribute GP tool. I can verify that I get various values for coordinates when I have panned to various areas on the map. Copy Features GP ...
0
votes
1answer
101 views

Create multiple new shapefiles using information contained in a table

I'm hoping to create a script that creates a new shapefile for each record in a table. My python experience is limited, and it has been a while since I used it, so I'm having a hard time getting ...
0
votes
4answers
77 views

arcpy interate row, in a python script? SQL Select expression not working

I am creating a python script where I am trying to iterate over point feature class. I want to create seperate Feature classes from each individual day. So select daynumber and then export it to a new ...
0
votes
1answer
39 views

Cloning a transactional version in ArcGIS

In ArcGIS documentation, I cannot find any references to cloning a transactional version. Is there a built in method for it? I think I know how to do it manually in Arcpy, basically creating a new ...
1
vote
2answers
77 views

How can I leverage ArcGIS Online sign in credentials/dialog box in a python add-in for Desktop?

When a user has signed in to their ArcGIS Online account in ArcGIS for Desktop (File > Sign In) they have access to their AGOL maps and services and have the ability to publish services and run GP ...
0
votes
1answer
69 views

Batch arcpy.CopyRaster after arcpy.ASCIItoRaster

I'm new to arcpy and am having trouble running CopyRaster. Do I need a separate for loop for this process like I have below? import os,arcpy, glob filepath = ...
0
votes
2answers
73 views

Select layer by attribute for entries in a dictionary (python)

I'm kinda new to python (and programming) and having trouble figuring out how to properly specify what I want to do. Basically, my code compares names of well owners and orps owners and saves all ...
0
votes
0answers
27 views

MakeXYEventLayer_management input problems

I have a huge excel data base and want to make with the tool MakeXYEventLayer_management a new Layer for my coordinates in my table. I found this code on ArcGIS help: try: # Set the local variables ...