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

learn more… | top users | synonyms (1)

3
votes
0answers
68 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
57 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
90 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
134 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
49 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
120 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
150 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
82 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
93 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
56 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
54 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
58 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
66 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 ...
1
vote
0answers
35 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
24 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
59 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
53 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
35 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
53 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
53 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
58 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
388 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
139 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
26 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
74 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
246 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
43 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
83 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
66 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
48 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
54 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
71 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
102 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
81 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
40 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 ...
2
votes
2answers
107 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
77 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
80 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
31 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 ...
4
votes
1answer
32 views

How to toggle on/off number of inputs using ModelBuilder?

I am building a model to process between two and five files (the number of inputs changes depending on the scenario). I would like to have the option for the users to input up to five files, but ...
0
votes
2answers
104 views

Find duplicates in a field then update another field with a Y or N with Python (ArcGIS)

I am attempting to create a python script (ArcGIS 10.1) that will identify duplicated records within a points shapefile with a Y or N (possibility of over 5000 records). Similar to this: xyCombine | ...
0
votes
0answers
48 views

Training course for Fixing Data Sources

Is there any good training course or literature that pays some attention to automated processes for fixing map documents' data sources? Esri's little documentation on it is not helpful enough for me.
3
votes
2answers
159 views

Converting Date field to string using ArcGIS for Desktop?

I'm working with two data sets that require a compound key to join or relate. The two fields are: 'Node_ID' which is a long integer field referring to a particular electrical substation [887932] ...
0
votes
1answer
89 views

ArcPy Error - 'continue' not properly in loop [closed]

Is there a way to get the continue function to work? Here is my code:
0
votes
1answer
650 views

TypeError: 'NoneType' object is not iterable from Python Scripting for Geoprocessing Workflow exercise?

I am currently taking ESRI's Python Scripting for Geoprocessing Workflows. I have following their step by step however there seem to be a problem that I am getting an error. import arcpy #Set ...
2
votes
2answers
55 views

List File Geodatabase Topology

I'm trying to write a script that looks into a dataset and list all the elements in the dataset. The dataset comprises of Feature classes and FGDB Toppology. When I uses ListFeatureClasses, it outputs ...
1
vote
0answers
23 views

Is it possible to call a complicated query as a stored procedure within a geoprocessing service?

I need to implement a searching geoprocessing service. A part of the query should be very complicated and use oracle text. My service should support spatial search too. 1) I am thinking of ...
-1
votes
1answer
121 views

ValueError: Layer: Unexpected error from replaceDataSource()?

I'm trying to write a script that allows me to look through map documents and replace each layer's data source in each map document. Everything is working logically I believe, and all my loops are ...