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

learn more… | top users | synonyms (1)

1
vote
0answers
46 views

Extracting color values from layer to build index using ArcPy/ArcMap?

My university wants the maps we create to become more standardized and so we're changing all the colors on our base vector map. The new standard needs to be indexed and I have the task of creating ...
0
votes
2answers
46 views

ArcGIS Extract Data Tool

I am lookinig for a way to use an AOI to search and extract data from the data drive on the network at work. So, for example, I have folders of elevation data. Instead of sorthing through each folder ...
0
votes
0answers
63 views

Error in python code for map automation (loop)

I try to make this code work but I cannot find the error (not very familiar with python) The code should basically run through a file GDB where all the feature classes are stored. It then should ...
2
votes
0answers
42 views

Inserting accumulative attribute in dynamic text element based on Date field using ArcGIS for Desktop?

I've got a line feature class that contains Date field. I've made a layout view in order to display time animation of this feature class. I've managed to enable the time option in the layer and to ...
0
votes
0answers
33 views

Automating Raster Calculator [duplicate]

I am seeing mixed answers on other posts so I thought I would ask here. Is there a way to automate the raster calculator? I am trying to create a series of inundation maps at fine increments. It ...
1
vote
1answer
90 views

Script for selective dissolving of multiple features

I am kinda new to Python and arcpy and have done some basic online courses on this. So I do have an idea how these scripts are structured/written and how they work. Now I have to perform a seemingly ...
1
vote
1answer
39 views

Read raster at request size through Python

I'm trying to read the raster (tif) file using Python. What I want is to read the raster at a specific request size rather than its original resolution. Example: If a raster has a cellsize of 5 x ...
2
votes
1answer
118 views

Arcpy: formatting string for file name

I have the following question about formatting a string which I use to create output file names. I loop a SearchCursor to create .png file. I extract two columns form the cursor e.g. "GMS_ID" and ...
2
votes
1answer
40 views

Adding new records to attachment match table from select number of features from feature class using ArcPy?

I am seeking some ArcPy/Python help. I use the mobile app GIS Pro to collect data in the field, which allows me to export shapefiles containing a field called Photos, containing a list of names of ...
0
votes
1answer
50 views

Getting wrong results in Search Cursor of ArcPy/Python script? [closed]

I have two functions: First one will crated the feature layer second one will access the same created layer and prints the result. when i run my script first time it will print the wrong results. ...
2
votes
2answers
95 views

Creating shp from txt files using ArcPy?

I have a txt file like this: Point 0 347172.2 4269952.7 60.9090909091 1 337172.8 4278952.4 85.7334909091 2 344572.3 4547952.2 123.909673091 3 347532.8 8777952.8 456.467809091 END The third column ...
0
votes
2answers
62 views

Attribute field based off intersecting polygon

I need to add a polygon for each bookmark (which works fine) and then attribute a field based off which Zip Codes the bookmark polygon intersects. I dont know if I am on the right track. The code ...
0
votes
0answers
36 views

Feature Services & arcpy.ConsolidateMap_management & .replaceDataSource

We have several in house published feature services, including some from our Esri Data Stores. When I use arcpy.ConsolidateMap_management on an mxd (10.1) the Feature Services are nicely consolidated ...
0
votes
0answers
43 views

How to go about buffering different values in a field separately?

I have a clip of urban areas where the names are all messy with hyphens, apostrophe's etc so have decided to use the number value for each name to populate a list. My aim is to do analysis on each ...
0
votes
2answers
80 views

Automate entire map production in ArcMap?

I am trying to gather some information on how to create maps based on an existing base map I have. The basemap has all the data loaded. So the user will enter data into a form and the would do a save ...
0
votes
0answers
15 views

Small individual tables/crosstabs for points from Access to plot on maps

I currently have an Access database (accdb format) that is currently linked in GIS (ArcGIS 10.1) through an OLE DB connection. I have a groundwater analytical table with 36,000+ records that contains ...
0
votes
0answers
77 views

Calculate Lat/Long in decimal degrees

I'm trying to calculate the location of several points in a python script. However, the Add XY tool is in feet, rather than decimal degrees. The following Calculate Field lines just cause an error ...
0
votes
1answer
27 views

Error 000177: Failed to create relationship class in Python

I am trying to use python to create a relationship class between a feature class and dbf. I keep getting, "ERROR 000177: Relationship classes can only be created in the same database that ...
2
votes
1answer
40 views

Replacing layer ArcSDE connection

I am very new to using Python... I have an MXD with all of my layer files in it. They are grouped by category etc. Each layer file references a dataset within my SDE. My SDE has two different ...
0
votes
0answers
16 views

How to change features to have unique symbology color? [duplicate]

Say I have many features which need to have unique symbology color, how can I do this in ArcGIS 10.1. Possible using Python script? or Just simple tool in ArcToolBox.
1
vote
0answers
65 views

Are there any Python scripts available for Hydrology to compute watershed Basin from csv file?

Let's say I have surface data available in CSV format (x,y,z). In order to create a watershed basin from surface data, there are some intermediate steps we need to follow. ASCII to surface raster ...
0
votes
2answers
60 views

Iterating list returned by arcpy.ListFeatureClasses() gives error 'NoneType' object is not iterable?

I have the following code, where i write from a list of featureclasses the fisrt row of 2 specific fields to a text file. But when i run it either erases all the previous stored data from text or ...
1
vote
1answer
40 views

Python script to accumulate flow volumes for a pipeline geometric network

I have a point wells layer and a polyline pipeline layer. The wells are snapped to the end of the pipeline segments. The wells layer has weekly updated flow volumes and I'd like to find a way to ...
0
votes
1answer
43 views

MERGE/ COMBINE two ADJACENT CONTOUR-LINES with Python

I am a python begginer; I found a script that "BARBOSSA" posted in the "blog" ( Append or merge consecutive line segments (contours) as one single line of the same elevation value) I am trying to use ...
1
vote
2answers
58 views

Using lists to work with feature classes having different spatial references in ArcPy?

This is my first arcpy script attempting to use lists. Input: 4 dif Excel files, each with a dif spatial reference Output: 4 dif feature classes (in same geodatabase), each with original spatial ...
0
votes
1answer
36 views

Error using UpdateCursor to copy a GlobalID field

I am trying to use an Update Cursor to copy a GlobalID field into a string field. However, I keep getting an error saying "Objects in this class cannot be updated outside an edit session [Medians]". ...
2
votes
1answer
47 views

problems overwriting files in ArcSDE with python script

I'm having a great deal of difficulty overwriting files when using ArcSDE. The usual 'arcpy.env.overwriteOutput' method doesn't seem to work. When I run this script: import arcpy from arcpy import ...
0
votes
0answers
53 views

Checking for overlaps using python

Trying to write a code where python checks for overlapping polygons within a file geodatabase in the current mxd and basically prints the feature class names overlapping. Here is what i have: import ...
1
vote
0answers
33 views

Clipping Feature Classes by Data View Extents with ArcPy?

Have a fully functional script about 90% of the time. It is that 10% that is really bothering me and I cannot seem to deduce a solution. Script will take the user defined dataframe view extents and ...
1
vote
0answers
70 views

Update Data Driven Pages Index layer via Python

I am trying to find a way to update the index layer for data driven pages through arcpy. I understand that to access DDP from arcpy.mapping you need to be referencing a MXD that has DDP enabled. My ...
0
votes
2answers
78 views

Troubleshooting ERROR 000814: Invalid file type from arcpy.TableToExcel()?

I wrote the script below to iterate through a file geodatabase's feature classes and convert them to an excel table. However, it returns the error ExecuteError: Failed to execute. Parameters are not ...
-4
votes
1answer
70 views

Handling ArcPy locks in Python script?

i am writing script which uses different Tools of arcgis and implementing different functionalities .. My script consists in different Functions running in an order. Each function is connected to ...
1
vote
4answers
50 views

ArcPy merge using a list from GetParameterAsText

I am pretty new to ArcPy so bear with me. I am having a hard time understanding how to feed a list of FCs from a "GetParameterAsText" into something like the merge tool. I have my GetParamterAsText ...
1
vote
1answer
49 views

Accessing bands in .pix (PCIDSK) file in python/arcpy

I am trying to perform zonal statistics on a single band from a multi-band raster in .pix format. I have things working great with a tiff file. I am able to access the bands using this code: desc = ...
1
vote
1answer
38 views

Intermittent exceptions in CopyRows_management

Occasionally, but frequently enough to be a pain, my script throws an error. The script runs fine most of the time but when it fails, I get this: Traceback (most recent call last): File "XXX.py", ...
0
votes
1answer
38 views

How to call the Manage Map Cache Tiles tool hosted by default in the system folder of arcgis server. I am getting ERROR 001428

When I am trying to call the GP tool Manage map service cache tiles that is hosted on the arcgis server by default in the system folder, I am geeting the followning error: ERROR 001428 Failed to ...
0
votes
2answers
78 views

Repair/Check for empty geometry in ArcSDE?

I understand that the standard validation/repair tools are not for use with ArcSDE and that ESRI needs to fix this, but are there work-arounds for at least checking where there might be empty geometry ...
1
vote
1answer
57 views

CSV to ArcGIS table, insufficient text field length

I currently use arcpy.TableToTable_conversion in order to convert a CSV file into an ArcGIS file geodatabase table. This works when string length is less than or equal to 255 characters. Whenever 255 ...
0
votes
0answers
29 views

Checking if Terrain Model has pyramids or data sources using ArcPy/Python?

I asked this question in the Esri forums and got nothing but a lesson on LAS point cloud classifications—not even remotely what I had asked. I’m hoping someone here can point me in the right ...
0
votes
0answers
30 views

How to add multiple feature classes from gdb to mxd using ArcPy? [duplicate]

I'm using ArcGIS 10.2 and I am trying to to add multiple feature classes (eg. c101ppt, c102ppt, c103ppt... [name end with ppt] from a geodatabase to a mxd. The name of feature layer need to be the ...
1
vote
1answer
29 views

Changing Mosaic Dataset Properties in Map Document using ArcPy?

Does anyone know if it is possible in ArcGIS 10.3 for Desktop to access and change mosaic dataset properties within a map document using ArcPy? I am trying to write text into the symbology ...
0
votes
0answers
49 views

Select Visible Rasters (Mosaic Datasets) using ArcPy?

I am wondering if anyone knows if there is arcpy functionality available in ArcGIS 10.3 or can be coded easily to replicate the select visible rasters command (manually right clicking on a Mosaic ...
0
votes
0answers
56 views

Computing Area Weighted Average on Rasters Using Raster to Polygon

I am using ArcGIS 10.3 for Desktop. I am trying to compute area weighted averages for polygons in a shapefile using values in a single band raster data set. The approach I am taking is that I am ...
0
votes
1answer
31 views

Zonal Statistics as Table output is missing some polygons ONLY when run from Python script

I have a raster file from which I am attempting to calculate mean values for polygons defined in a shapefile. Using the Zonal Statistics as Table tool from within ArcGIS works great. My shapefile ...
0
votes
1answer
47 views

How to check for empty string?

I am running a loop to go through tables of a database's feature classes to rewrite the URL links that are currently in the records. The first elif statement is to check whether there is an empty ...
-2
votes
1answer
35 views

NumPy Array to Feature Writes only first array object to feature class [closed]

I am consuming a json web-service with NumPy Array to Feature, I have many nested try/except blocks to consume the data/find errors/etc. The script is functional, however I am having trouble seeing ...
4
votes
1answer
103 views

Can I project a single set of coordinates that are not in a table or feature class with arcpy?

I have been searching for the easiest way to convert a single set of State Plane Coordinates (in units of "Feet") to Decimal Degrees using arcpy. All the methods I have seen so far involve one of the ...
3
votes
1answer
118 views

Is there a quick way to see the fields in a table via arcpy?

I frequently find myself in Python debug mode, trying to examine the fields of a layer or table. arcpy.Describe(lyr).fields returns an array of <geoprocessing describe field object> which isn't ...
1
vote
1answer
112 views

import arcpy failed Python 2.7 with ArcGIS 10.3 64-bit Background geoprocessing RuntimeError: NotInitialized

I want to run a python script that uses arcpy. It was running earlier on a 32-bit machine without problems. On a 64-bit machine I get a MemoryError. The 64-bit backgroundgeoprocessing of ArcGIS 10.3 ...
0
votes
1answer
41 views

How to publish the Manage map server cache tile (Server) tool as an arcGis geoprocessing service?

I need to publish the Manage map server cache tile on the arcgis server as a geoprocessing service. As a result I will be able to update the tiles of a tiled service through a service call. I face ...