A site-package created by Esri to expose ArcGIS for Desktop (and ArcGIS Pro) geoprocessing, mapping, etc, to Python.

learn more… | top users | synonyms (8)

1
vote
1answer
13 views

Automating the deletion of donut holes

I am using ArcGIS 10.2.2 and I need a way to automatically delete parts of a sketch. For example, I have multiple polygons with numbers inside of them. As shown below, the polygon has the number 28, ...
1
vote
0answers
39 views

Updating a table using outputs and update.da.cursor

I have the following code however I need the outputs in a table which can be analysed further. How can I take the outputs from the code below and input into the table. I know I need to use a cursor ...
1
vote
1answer
327 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
19 views

UpdateCursor error

I have a problem with arcpy.UpdateCursor. The script has to fill a table with data of an xml file. The script is the following: newtable = arcpy.TableToTable_conversion(selectlayer,outputlocation,...
0
votes
0answers
19 views

Auto update map service when feature class is updated

I wrote a python script to create an MXD from template and auto publish it. The following is the excerpt of my code: #publish MXD method def PublishMXDToArcGISServer(id, in_arcgisAgs, in_publishWS): ...
0
votes
0answers
7 views

How to set parameters for maxp-regionalization tool? [on hold]

I am really new at using code in arcgis. I've recently found pysal library and I'm very interested in using the script on maxp-regionalization. Does anybody have an idea on how to set the ...
0
votes
0answers
102 views

Create Vertex and add empty attributes to it [on hold]

How can I create a vertex(and then a point feature on the vertex) on a polyline and give it some empty attributes(create fields), move an existing vertex, delete vertex? I am in ArcGIS environment and ...
6
votes
1answer
2k views

Adding Table to Layout View using ArcPy?

I am using ArcGIS 10.1 and I have a non-spatial table and some layers in a Data Frame. When I switch to Layout View I want to be able to show the map in a data frame element and the table in another ...
0
votes
0answers
2k views

insert cursor and arcpy.da.editor [on hold]

I am trying to insert geometries and attributes to a featurclass the has attachments enabled. The featureclass is in an sqlserver SDE 10 database with service pack 2 installed and the featureclass is ...
0
votes
1answer
990 views

ArcPy SelectLayerByAttribute Error and how to control GP output layer name [on hold]

I have a rather long script that first references an SDE feature class (non-versioned) to perform an attribute selection based on a SQL selection. I've been unable to figure out why the script will ...
0
votes
0answers
30 views

Failed to connect to database

I'm getting 'Failed to connect to database' error when trying to open a file geodatabase in both ArcMap and ArcCatalog. In addition to closing Arc and restarting I've tried the following - ...
-3
votes
1answer
41 views

Subtracting two ascii files using ArcPy?

I have many files with name format yyyymmddhhmm_tprate.asc 201508010600_tprate.asc , 201508011200_tprate , 201508011800_tprate, 201508020000_tprate and so on .......... I want to subtract ...
0
votes
1answer
25 views

Create 1' Contours Using Bare Earth Lidar .XYZI Point Data

I have 42 tiles of Lidar .XYZI point data containing approximately 800,000 points each and i need to create 1' contours out of the data. I have access to ArcMAP 10.3 and the 3D Analyst and Spatial ...
1
vote
1answer
792 views

How to add Table View to Data Frame using ArcPy in ArcMap 10.0?

How does one add a table to the current map in ArcMap 10.0? 10.1 has the function arcpy.mapping.AddTableView, but this function does not exist in earlier versions. Must the table be made into a layer ...
0
votes
0answers
18 views

How to pass variables of a Python script to another Python script on ArcGIS [duplicate]

I'm using Python window of ArcGIS 10.2 to run a Python script. But now I need to pass values from another python sript to main script, so I tryed this: import arcpy import subprocess subprocess.Popen(...
4
votes
3answers
3k views

Create an ArcCatalog OLE DB Connection using Python

Is it possible to create an OLE DB connection (*.odc) to a database in ArcGIS 10 , but using Python instead of the ArcCatalog GUI wizard? I don't need to necessarily create a file on disk, just make ...
2
votes
2answers
377 views

ArcPy Data Driven Pages AttributeError: PageLayoutObject: Error in executing ExportToPDF

I am trying to export a series of datadriven pages. Executing on a single page fine no issue, executing on a few pages no issue. executing on many pages serious drama. Initially i thought it might be ...
0
votes
0answers
12 views

Delete feature class attribute from sde database arcpy script [on hold]

I want to write a python standalone script which compares two feature class from SDE geodatabase. For Example, fc1 contains 10 attribute rows and fc2 contains only two rows which match with the fc1 ...
3
votes
1answer
34 views

How to set up Python/ArcPy with ArcGIS Pro 1.3

My ArcGIS Pro install recently updated from 1.2 to 1.3. In reading Python in ArcGIS Pro 1.3 I discovered that Esri have changed how ArcGIS Pro uses Python/ArcPy. Legacy: In ArcGIS Pro 1.0 ...
0
votes
1answer
20 views

Creating network dataset from template

I am using a script based on Esri's one, to create a network dataset from a template. I am using ArcGIS Pro 1.3. The problem is that the network dataset is not not created and I get no errors, so can'...
0
votes
1answer
596 views

arcpy.Clip_analysis() Automatically Affixing .shp.shp to Target Feature Class Name?

I created a Python script that was previously working fine, but is now giving me an error when I try to use the arcpy.Clip_analysis() function in arcmaps 10.2.1. I am not adding a filetype extnsion ...
5
votes
0answers
126 views

Determining Thalweg line of river without bathymetry?

I have the boundaries and centerline of a river. The Thalweg line defines the deepest elevation of a watercourse (see Image taken from Google). I do not have accurate enough bathymetry or Digital ...
0
votes
0answers
111 views

Copy Raster Catalog from .mdb to .gdb, but only within a certain extent with arcpy? [on hold]

I am trying to copy a raster catalog from a personal geodatabase to a newly created file geodatabase but only within a certain extent. Using the script below gives me a new file geodatabase with a new ...
0
votes
1answer
21 views

Q: Is there a Model builder/Python method to view an in-line variable's value in a model parameter's dialog box?

I've developed a model that summarizes road attributes (e.g., volumes) across a digitized polyline. The model has input/parameter dialog boxes for a road feature class, workspace, and attribute ...
2
votes
0answers
85 views

Reading feature class attributes with or without quotes in ArcPy?

I'm working on a script that clips a batch of feature classes by a selection made in another feature class. The way it works is by reading the clip feature fields, then allowing the user to select the ...
1
vote
1answer
21 views

How to execute a clip after a buffer in a custom script tool

I'm working on a script which Buffers roads in a layer, then clips the buffered roads from an area Here is my script thus far: import arcpy import os from arcpy import env env.workspace = "C:/...
1
vote
1answer
64 views

how to skip creating an empty feature class using featureclass to featureclass in arcpy

I have a script that finds points outside of selected areas and creates a feature class in a file geodatabase. However, sometimes there are no points outside of the selected area. Currently, the ...
0
votes
1answer
23 views

Can a model or python script prompt the user to select a feature?

I'm trying to create a tool in python where a user splits a road (a polyline feature of shapefile) and the tool automatically recalculates the road ranges depending on where it was split. I know how ...
0
votes
1answer
20 views

Script with searchCursor crashing arcmap

I was trying to make a script that counts the max lenght found in each field of a table with data in it, but it immediately crashes arcmap upon executing I know there might be a tool available on the ...
1
vote
1answer
315 views

How to auto-increment attribute fields using cursors and conditional statements?

I am trying to create unique IDs for an attribute named "FACILITYID" (str) and have got a ton of help from related posts and online python tutorials. I selected the rows I wished to create unique ID's ...
1
vote
2answers
61 views

Python Add-in using arcpy.mapping.ListLayers() does not update when run multiple times

I am developing a Python Add-in for ArcMap 10.4 that, upon a click on a map, opens a wxPython GUI that contains a combo box listing the layers in the map document. Here's a current snippit from my ...
1
vote
1answer
39 views

Alternative to self.Destroy() for wxPython in Arcmap?

I have created a Python Add-in for ArcMap 10.4 that involves a wxPython UI to display upon a click on a map. The UI is populated with default values as well as a combobox displaying the layers on the ...
0
votes
1answer
41 views

calculating first quarter of a raster by zonal statistics

I want to calculate the 1th quarter of raster values (beneath polygons) by zonal statistics but it does not have quarter. Zonal statistics has :MIN, MAX, MEAN, MAJORITY,RANGE,.... and does not have ...
1
vote
2answers
283 views

Accessing advanced symbol levels with python in ArcMap

Does anyone know if it is possible to access the symbolgy levels in ArcGIS10 with python? I have a layer "temp" that I print to a pdf. The symbology is printed correctly but is drawn in the wrong ...
0
votes
2answers
280 views

Can I use my SearchCursor in Select by Location

I am trying to select the largest polygon that contains each feature in a feature class but none of the features in another feature class. I have written the code that seems logical to me but (of ...
0
votes
0answers
28 views

000800 error for versions only when working in a geodatabase that uses an Operating System Authentication for its connections

I wrote a toolbar that takes some input and uses it to modify an SDE geodatabase. It usually works well in a geo database that uses Database Authentication for its connections , but recently I ran ...
0
votes
1answer
29 views

Text time to datetime field not working [on hold]

I have a text field in a FGDB with time in the format hh:mm:ss and would like this to be a datetime object in a new field. I don't think FGDB can use only time and require a date, it would be fine if ...
0
votes
1answer
24 views

Mosaicing rasters in arcpy

I am mosaicing rasters in arcpy but it is returning the error, AttributeError: 'module' object has no attribute 'MosaictoNewRaster_management' I am using the code: import arcpy from arcpy.sa import *...
0
votes
1answer
28 views

UpdateCursor not filling correctly with conditional statement

I am attempting to update a table so that a field, "ALLREADY", fills with "Y" or "N" depending upon if "dmready" equals "total_records" AND if "dm_stat" is equal to "Ready for DM". When I run my ...
0
votes
3answers
32 views

using where clause for selecting more than one value in the field in arcpy.Select_analysis

I have a problem in using the Select_analysis or Select by attribute, what I need t do, is to extract all the residential uses from a land use feature class, and make a feature class for residential, ...
1
vote
1answer
17 views

How to loop through features in a layer, zoom to that feature and export to png

I have a large number of lines in a shapefile representing sites on a map. Each has a unique 2- or 3-digit Id. I want to zoom to each feature in turn and export the map as a PNG file. I have cleared ...
0
votes
1answer
576 views

Polygon Neighbors Analysis script (ArcPy 10.1) producing erroneous results?

I'm struggling with a python script that is supposed to calculate a field for a polygon feature class. The calculation is of the average of a field value (P_TOT_DEV) for each of a given polygon's ...
0
votes
0answers
25 views

Calculate exact percentile for each rastercell and create new raster with percentile values [closed]

I need to calculate the exact percentile value of each raster cell in a raster layer, in order to create a new raster layer with this exact (decimal) percentiles. (In excel this function would be "...
0
votes
1answer
312 views

Manipulating distances in python. Problem with ShapeLength [closed]

I have a question more than a problem. I'm getting the distance of a line using python with arcpy.da.SearchCursor or FeatureClassToNumPyArray. The result I get is a double. Example: arcpy.da....
0
votes
0answers
530 views

Adding HTML popup in exported PDF map? [duplicate]

I am producing some maps of a point layer using arcpy.mapping.ExportToPDF. Is there a possibility of creating HTML popup for the final PDF based on this link? http://help.arcgis.com/en/arcgisdesktop/...
5
votes
2answers
3k views

Running 64-bit background geoprocessing inside ArcMap?

I'm running ArcMap 10.2 and just set up 'ArcGIS for Desktop Background Geoprocessing (64 bit)' and now I have both the ArcGIS10.2 folder and ArcGISx6410.2 folder inside my python folder. I have ...
7
votes
1answer
2k views

Get shape filename in attribute field using field calculator

I apologize for crossposting against the ESRI geoprocessing forum, but it seems like this one gets answers. I'd like to have a modified append tool (ArcToolbox) that takes multiple shapefiles with ...
3
votes
1answer
1k views

After ArcGIS 10.2.1 update, Arcpy 64 bit import Error

I've updated my ArcGIS desktop version from 10.2 to 10.2.1 and have noticed that when I run the 64 bit version of IDLE I now get an error when trying to import arcpy: Python 2.7.3 (default, Apr 10 ...
4
votes
1answer
798 views

Has anybody used arcpy.mapping.ExportReport successfully on 64bit machine?

The online help for arcpy.mapping.ExportReport says that it has some restrictions on use but does not list 64bit machines amongst them. I am running the following test from IDLE under ArcGIS 10.1 SP1 ...
12
votes
2answers
2k views

SP1 for ArcGIS 10.1 has extension for 64-bit Python for background geoprocessing — implications for other Python use

If the 64-bit Background Geoprocessing for ArcGIS Desktop 10.1sp1 is installed how does that affect Python configuration for general use? Esri has released SP1 for the ArcGIS 10.1 product, and for ...