A site-package created by Esri to expose GeoProcessing from ArcGIS to Python.

learn more… | top users | synonyms (8)

0
votes
1answer
46 views

How to access output parameters from a Python Toolbox Tool called by .NET?

I am trying to access an output parameter from a Python toolbox tool and cannot find any information about how this is done: I am developing an Esri Add-In for ArcGIS 10.1 SP1 for Desktop (Build 3143)...
2
votes
1answer
52 views

Is it possible to inherit a session in ArcGIS 10.0 through the Python window?

So, I'm still struggling with an ESRI 10.0 installation with an Oracle ArcSDE database. I'm nearing the end .... In trying to programmatically edit the versioned data. It needs to be done in an ...
0
votes
2answers
64 views

Creating a dict with Search Cursor

I need to find how many routes are assigned to each account number in a feature class. I'm using search cursor twice, first to build a set of account numbers, second to get the number of times a route ...
1
vote
0answers
28 views

How do I use a field attribute in the file name of a PDF export?

I've made a script that iterates through a set of data driven pages. Right now I have it that just the ID number of the data driven page is used in the file name to distinguish between each export. ...
0
votes
1answer
23 views

ArcMap highlight features from code

I have a shapefile of lines containing an amount n of elements. I exported these features and analyzed them with another program (Matlab), which provided me as an output a row vector of length n ...
1
vote
4answers
58 views

Iterate through a list to use then use SearchCursor to populate new list

I have a featureclass of buildings. Each one has a unique number ("BO_UNIQ"). I create a list of these unique numbers (1251 elements). I then want to iterate though this list and get facility names ...
1
vote
0answers
18 views

Nightly backup using Import XML Document arcpy ERROR 000791

I'm having some trouble using arcpy.ImportXMLWorkspaceDocument_management to import an XML document into a file geodatabase for a nightly backup routine. The code for the import is as follows: try: ...
0
votes
0answers
14 views

Installing Python 3.4.1 of ArcGIS Pro on machine which has Python 2.7 from ArcGIS for Desktop? [duplicate]

I want to install ArcGIS Pro but have just read it needs python 3.4.1. As I have already ArcGIS 10.3.1 with python 2.7 installed, I was wondering if there will be any complications during the ...
1
vote
0answers
26 views

Pycharm cannot find reference 'SearchCursor' in 'arcpy.da'

Whenever I try to use a search cursor from arcpy in pycharm, I get this unresolved reference error. I should note that it was working fine earlier in the night, I have no idea what happened. I've ...
0
votes
0answers
13 views

arcGIS heatmap of routes, populating counts for shading

im currently making a heatmap in arcGIS of routes, it's creating polyline features of different shades. I used this guide: https://luke-webber.github.io/polyline-heatmap/. however, I cant get the ...
1
vote
0answers
22 views

arcRest Token Required

I'm using the arcRest sample copy_item.py file to save an AGOL feature service. The complete script on ESRI's github page is here: https://github.com/Esri/ArcREST/blob/master/samples/copy_item.py I'...
0
votes
1answer
29 views

I want to create a tool that will search a single field, in a single layer and zoom to that location? [closed]

I have a feature class of valves and another of fire hydrants. Each has a unique identifier field. I want to create a tool that has one dialogue that allows input of a identifier then zooms to that ...
2
votes
1answer
34 views

Iterate through layers of an MXD

I found this, under the topic How to iterate through layers of an MXD? answered by Midavalo I wanto to know if its possible to change something in the second line, to iterate through all data frames ...
1
vote
1answer
61 views

Geometry Object Intersect

I'm trying to intersect two polyline feature classes and generate a point output using geometry objects. Its intersecting almost 2 million features with 250,000+ features, so running it with arcpy....
1
vote
0answers
23 views

Arcpy code repetition provides slight differences in the outputs [closed]

I made a python script that uses arcpy to buffer some network areas, intersect them with another shapefile, and from this output make some calculations that are saved to an Excel spreadsheet. I run ...
0
votes
1answer
58 views

Filtering parameters in ArcPy Python script tool avoid repeating selecting same value in sequence parameters?

I am trying to make a tool in which there are many sequence parameters (based on the same field of a feature class), and each of them is multi value to make a user choose from a check a list one or ...
0
votes
0answers
14 views

combobox show two layers: selected layer + 1 field of another layer

I am new to Python, I have problem with combobox. When I select one layer of list, I want to show selected layer and near analysis from another table. Or When I select one layer of list, I want to ...
0
votes
1answer
42 views

arcpy perform function on features in feature class

My data consists of a directory of shp files. I'm trying to accomplish the following: Go through each shp file and perform a function on each feature. The way my script is working now, it is ...
0
votes
0answers
37 views

Pure virtual function error on ArcPy

I am running a script to export a series of mxds to pdf via ArcPy in an ArcToolbox tool (code below). I already reduced it to the minimum of code necessary but still, NON REPRODUCIBLE, I get a ...
2
votes
0answers
49 views

ArcGIS Dissolve failing with small polygons

I have an arcpy script which clips (Clip_analysis) a shapefile of polygons to a grid square, converts any multipart polygons created to singlepart polygons (MultipartToSinglepart_management), runs ...
0
votes
0answers
25 views

Borrow ArcGIS 10.3.1 Licenses with Script (Any Language) from License Manager Server

We are trying to create an installation advertisement for our users (we have a lot) to borrow Arc 10.3.1 licenses from a server located elsewhere for a period of time (270 days), and then delete the ...
1
vote
1answer
78 views

Merge Shapefiles and Add File Name to Attribute Table

I am trying to merge lots of point shapefiles together to form 1 large shapefile. What i want to be able to do is get the name of each of the point files to appear in the attribute table either during ...
0
votes
1answer
28 views

Calculate Acos in ArcMap

I am trying to calculate acos in ArcMap (shp) using Python. Here is the code: arcpy.CalculateField_management(fc_Arcs, "Angle", math.acos(0.88), "PYTHON_9.3") If I set the value i.e. 0.88 I am ...
2
votes
1answer
24 views

Extract by mask with multiple shapefiles and multiple rasters

I have two folders, one which is the shapefiles which define the polygons for my extract by mask (there are 33 of them) and one which has my rasters (10 of them). For each of the 33 shapefiles I want ...
10
votes
6answers
1k views

Is there a faster way in python of finding the smallest number in a field?

Using arcgis desktop 10.3.1 I have a script which uses a search cursor to append values to a list and then use min() to find the smallest integer. The variable is then used in a script. The Feature ...
2
votes
2answers
74 views

How to use variable in expression in arcpy CalculateField tool?

I want to use the following expression in the arcpy.CalculateField_management tool. I have a variable called "value" and a field called "Field01" I want to use (value - Field01) / 20 I can´t seem ...
0
votes
1answer
34 views

What parameter's data type is Short integer in arcgis 10.3 model builder?

I am defining a parameter for a python script in model builder. The script calculates a single value from a featureclass using a formular referencing values of a long integer field in the same table. ...
-1
votes
0answers
29 views

Iterating columns and feature to raster conversion?

I cannot do iterations on fields correctly. The fields contain rain intensities. Each field represents a time ... 15 minutes, 30 min, 45 min .... I have 50 fields. I want to end with 50 raster ...
2
votes
1answer
26 views

moving the objects in a feature class by a field within the table of that feature class

I have a feature class and I want to move its objects based on two fields in it I used the following code but get error: with arcpy.da.UpdateCursor(fc2,["SHAPE@XY","centerpo_4","centerpo_5"]) as ...
1
vote
1answer
23 views

How to change just one title when multiple titles are present in mxd?

I have an mxd with multiple titles and I'm trying to write a script that iterates a process that activates a layer, changes one of the titles, then exports it. I've got it all working except for ...
1
vote
1answer
41 views

How to apply symbology from another layer in arcpy

I'm trying to add symbology to a group of feature classes. Listed below is one example. The field names are the same, but the symbology isn't working in arcpy. It does however work when I used the ...
0
votes
1answer
28 views

Setting default gdb from ArcPy?

I created a new gdb by arcpy.CreateFileGDB_management('e:/Rstack', 'new.gdb') arcpy.env.workspace = 'e:/Rstack/new.gdb' But how to set this new gdb as my default gdb by arcpy, without opening ...
1
vote
0answers
43 views

Arcpy: Delete rows from joined table

I would like to delete all rows which are joined to a layer from a csv table. Only the joined records which match (keep only matching records) should be deleted. After the records are deleted, the ...
1
vote
1answer
124 views

Creating python dictionary that maps each domain to multiple coded values in File Geodatabase?

I have a File GDB that has domains and coded values. I would like to extract those values from the GDB and build a dictionary. For example: I have hundreds of domains and with each domain has a set ...
1
vote
2answers
57 views

Gdal_calc.py problems from command line?

I hope someone can help me with this issue with gdal_calc.py. When I call gdal_calc.py from the command line, I get the following error (after displaying the error message I will describe my current ...
0
votes
0answers
13 views

Using filter with an optional parameter

Is it possible to set a filter on an optional parameter in ArcGIS PYT toolbox? All examples I've seen (http://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/defining-parameters-in-a-python-...
0
votes
0answers
29 views

Displaying details of geographic transformation using Tkinter and ArcPy?

I am using Tkinter V8.5.15 and Python V2.7.8 I am writing a tkinter program using python v2.7 and I would like to display the details of a selected geographic transformation. Esri describe how to ...
0
votes
0answers
16 views

ArcPy ExportToPDF view log of broken layers

I was wondering if anybody knows of a way to export a log of layer that were broken and not drawn (including layer paths) after using the ExportToPDF function? arcpy.mapping.ExportToPDF(current_mxd,...
0
votes
1answer
29 views

Iterating over a raster layer in ArcGIS using Python

I have a raster layer for drive times. I have another raster layer with my bounding geography. I want to tell ArcGIS: For every cell in geography: if the corresponding cell in drive time is not ...
-1
votes
0answers
36 views

Arcpy: Make feature layer, select by attribute, and copy features failing to execute

I ran the following script five times, and got my expected result of an individual file for each polygon I had selected from the original shapefile. I then closed Pythonwin, then reopened the file and ...
2
votes
1answer
42 views

Batch intersect and multiprocessing with arcpy

I admit what I am working on is way over my head, especially as I've only been dabbling in python for a few months. I am attempting to write a script that allows me to use Intersect analysis on about ...
3
votes
1answer
58 views

Loop over directory with XTools tool

I'm trying to loop through a directory of shp files with an XTool Pro tool via arcpy. My script successfully performs the operation on the first shp file, but then fails on the rest with a 000584 ...
0
votes
0answers
35 views

Table not appearing when using ExportToPDF in standalone arcpy script?

I am writing a script using arcpy.mapping that takes a template mxd and adds in data to generate a report. The template mxd contains a table on the layout which was added via the table options menu -> ...
1
vote
1answer
63 views

Convert string into date format problems

I have a string column within an attribute table that has a string in the format of: yyyyMMdd HH:mm:ss (i.e 20150417 13:32:05) I've tried using the convert time field tool within the python IDE in ...
3
votes
1answer
67 views

Installing ArcPy (from ArcGIS Pro) with Anaconda?

I would like to use ArcPy from ArcGIS Pro with my Anaconda install. ArcGIS Pro installs a 64bit python3 version of arcpy. How do I add this version of arcpy to my anaconda 64bit python3 install? And ...
0
votes
2answers
84 views

Labelling layers with Python

I need to turn labels on for previously used layer. Here is the code: import arcpy import sys from arcpy import env env.overwriteOutput = 1 gp = arcgisscripting.create(9.3) fc_Mord = arcpy....
1
vote
0answers
68 views

Python/Arcpy Crashing [closed]

I am running a fairly large script where I export to a PDF. Now I added an export to Excel along with export to PDF from the same MXD. The Python window says python.exe has stopped working, ends then ...
2
votes
1answer
60 views

Arcpy Join field options

I am looping through Municipalities and clipping a layer called AllZones containing Multiple Facility (FACID) with multiple chemicals per Facility (CID). 1 to many relationship FacilityID, ...