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

learn more… | top users | synonyms (8)

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
61 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
30 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
30 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
44 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
64 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
67 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
68 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
70 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, ...
1
vote
0answers
32 views

spatial join field mapping Arcpy, change merge rule

I have a line feature class which represents a stream network. At a confluence of two river segments, I'm joining the stream segments to the point of intersection via spatial join (one to one join). I ...
0
votes
0answers
29 views

Iterate value of a given field to create sequential value in another field in same feature class

The dilemma I'm trying to work through seems simple enough yet with limited Python experience not sure how to approach in Model Builder. I have a parcel feature class stamped with Twnshp, Range, and ...
0
votes
3answers
90 views

Use if statement to delete row data, ArcGIS 10.3.1, Python 2.7

I have a indoor positioning shp file. I need to do the data cleaning for the further analysis. and here is the attribute table: Field(Sheet1_minor) is the name of beacon, and Fields(Beacon_41_B1,B2,...
0
votes
2answers
38 views

Randomly extract value in time dimension at point location from NetCDF?

I have a set of point locations (point feature dataset) and a netCDF file containing 30 years of daily precipitation data. My goal is to randomly select a precipitation value in the time dimension ...
0
votes
1answer
44 views

Arcpy Slow to Read Datasets from Connection (.sde) File

I'm looking to automate publishing map services to ArcGIS Server, and in doing so I'm creating map documents that have only one layer; each layer is from a SQL Server 2014 database that I am accessing ...
2
votes
1answer
53 views

Query over all layers in a mxd Arcpy

A newbie to python here. Ive been trying to query all layers on a mxd and have sucessfully implemented a script by advice on here. What I need to do now is to firstly make the query a parameter that ...
0
votes
0answers
6 views

using the output from Make NetCDF Table View for table to table

I have a nc file and I used Make NetCDF Table View tool to build a table view and then use table to table tool to make a .dbf file. when I do it manually in ArcGIS it is done but when I use stand ...
1
vote
1answer
57 views

Calculating distances with SciPy and subsequently join identifiers

I have lots of start points and a handful of destination points. Using 'Point Distance' from the toolbox takes ages to calculate and write the results. Hence, I was looking for alternatives and went ...
1
vote
1answer
21 views

exporting attribute tables of multiple rasters to excel

I had a raster and I clipped it using a shapefile of polygons. Now I have about 5500 individual raster images. I have to export the attribute table of each raster to excel so that I can then append ...
0
votes
1answer
34 views

Finding the overall weighted centroid from other centroids [closed]

I'm new to python, and I'm trying to find the overall weighted population centroid of a state, using the unweighted centroid from counties. These unweighted centroids already have a popualtion field ("...
2
votes
1answer
39 views

Access resolved/rendered dynamic text from ArcPy or ArcObjects?

Using ArcPy (or ArcObjects if essential), is there a way to retrieve the rendered text of a text element that includes Dynamic Text? The text property of the TextElement includes the Dynamic Text ...
0
votes
1answer
49 views

Explanation of HAND (height above nearest drainage) model procedure

i tried to follow this procedure Spatial Analysis - Calculate a cells elevation (height) above the nearest stream cell but i have some problem to understand everything. I mean the 2th answer in the ...
0
votes
0answers
34 views

Average raster to single value in ArcMap

I need to shift a raster a small bit. I got the distance and the direction using the path distance and cost path tools. I walked into two problems. I have a raster with distance values. I want to ...
0
votes
1answer
32 views

Exporting graduated symbology to pdf [closed]

I'm creating a mapbook(PDF) of all California's counties with its population centroid. The code runs, but the graduated symbology for the centroid is not displaying on the pdf. # Imports import os, ...
2
votes
1answer
42 views

Getting inset map selected and magnified in ArcPy?

I want to create a mapbook(PDF) of all states in USA, and also create an inset map by using a second data frame. I got my mapbook to run, but then I can't get the inset map in the second data frame ...
0
votes
1answer
25 views

Shapefile not displaying points (vertices) in ArcMap

this code finds all the vertices of every census tract for the state of California and Colorado. The code runs, and creates a shapefile with all proper filled fields (totpop, XCoord,YCoord, area1 etc.)...
4
votes
3answers
63 views

Batch Clipping Single Raster with Multiple Shapefiles in ArcPy?

I have a single raster file and about 40 small polygons shapes. I would like to clip the raster by the extent of all these shapes, and create 40 resulting .img files. I know I can just do this by ...
0
votes
1answer
26 views

Assign multiple domains to multiple feature classes within a geodatabase

I have a geodatabase that has multiple domains (50 +) and I want to assign them to specific feature class fields (there's over 50 feature classes) in an automated way because I'd like to run this ...
3
votes
1answer
64 views

Why does my python script run out of memory from IDLE but runs Ok from Python Window in ArcMap?

Why does my code work in ArcMap but not in IDLE? It is similar to: why does arcpy function work in ArcMap python window but not from stand-alone script? except that the answer to that question does ...
1
vote
3answers
37 views

ArcGIS Dissolve/SQL group by

I have a GIS layer that has thousands of Facility IDs. For each Facility ID there can be multiple Chemical ID's. For each chemical ID there is a maximum of 3 zone types. Zone A, B, C. But there is not ...
0
votes
0answers
32 views

Map Service properties (arcpy): Error parsing recycleInterval, recycleStartTime, keepAliveInterval

Need to publish web service using arcpy tuning up its properties through the parameter names passing them into function parameter_toggle (see code bellow). We are getting error (see picture bellow) in ...
0
votes
0answers
22 views

Raster result is different for arcpy.sa CON and arcpy.gp.Con_sa

I have to add two rasters, one bigger than the other, but before adding I have to set the value of NODATA of smaller raster to the value of bigger raster. So i used the following code to do it: ...
0
votes
0answers
32 views

ArcGis 10.2.2. - Spatial Analyst - Zonal statistics as table fails on feature class with many polygons - within script for overlapping polygons

I am using a script to calculate zonal statistics as table for overlapping polygons. #------------------------------------------------------------------ # makeZones.py # Find zonal statistics as a ...
0
votes
1answer
55 views

Copy query feature layer into a feature class - error 000732

I am trying to create a python script to copy data from a MSSQL view (includes a geometry field) into a feature class. They are both held within the same database. I have tried arcpy....
2
votes
1answer
52 views

saving survey123 data programmatically using python

I'm recording data using the Survey123 app which logs data into a standard ESRI rest service, stored in my AGOL account. I would like to save this data an SDE dataset. Is it possible to do so using ...
2
votes
1answer
29 views

Adding values from list into Attribute with UpdateCursor?

I have a list of values of buildings total height and want to update the corresponding field in the shapefile. fclass is my shapefile totalh is the field which i want to update totaheight is a list ...
1
vote
1answer
66 views

Max width and Max length of a polygon?

Is there a way to calculate the max width and length of a polygon or polygons? I'm currently working with roughly 10K+ building interior layouts. What I'm trying to do is generate and populate an SQL/...
0
votes
1answer
38 views

What size of activeDataFrame? [closed]

I want to write a script in Python for ArcGIS to search for the size of an activeDataFrame (DataFrame) in meters (scale)?
2
votes
1answer
60 views

ArcPy Insert cursor losing vertices when writing Polygon features?

I'm currently trying to code a geodesic buffer from points (the one that is implemented in ArcGIS is very slow). The idea is to calculate 100 point coordinates (P_Buffer) around an initial point (P) ...
3
votes
2answers
92 views

How do I physically order overlapping ArcGIS features?

I have a feature class with multiple overlapping polygons. It's a highways fc and contains underpasses, overpasses and at grade roads & intersections. The problem I have encountered is that the ...
1
vote
1answer
46 views

Unique pairs based on multi values

I will try to be as detailed as I can with the purpose and walkthrough of the situation. I have 2 Feature Classes (fc1 and fc2). fc1 is a polygon shapefile with no overlapping polygons and an id for ...
1
vote
0answers
24 views

Using ArcPy to run Create Random Raster tool executes successfully every other time, but fails with ERROR 999999 on alternate runs?

I am trying to create a python script to run several ArcMap tools in succession on a DEM. The script will ideally create a random raster (based on a normal distribution, with a mean of 0 and a ...
1
vote
1answer
41 views

Arcpy Spatial Join Fails: Field is Not Nullable

We are working to perform a spatial join of a very large point .shp of voters (target_features) with another of incidents (join_features). arcpy.SpatialJoin_analysis(target_features, join_features, ...
0
votes
1answer
35 views

Holding onto row values while using cursors

I'd like to be able to use an update cursor to go through rows in a table, holding onto the previous rows value, and comparing it to the current row value, to populate a new field with this value. ...
1
vote
1answer
38 views

ArcGIS- Add feature names to coded value list for domain

I've got two feature classes, "Points" and "Lines", the first is a feature point class, the other is a line class. I've got a coded value domain field for the "Points" class, that I'd like to add the ...