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

learn more… | top users | synonyms (7)

0
votes
1answer
26 views

Background color changes when projecting a raster with ArcGIS 10.4

I'm using the Project Raster tool via arcpy: arcpy.ProjectRaster_management( in_raster = clipped_raster, out_raster = projected_clipped_raster, out_coor_system = ...
0
votes
1answer
24 views

os module can't find time files were created, because “system can't find file specified”

I have ~200 layers in a Map Document, and I am trying to find the dates that these layers were created on (so I can export to database later). Some of these layers are housed in groups and sub-groups ...
2
votes
2answers
26 views

Reference Items in Generated List for Multiple Record Selection and Iterate

I'm new to Python and am having trouble with a list of all things. The data I am currently working with consists of multiple road segments (contained in 'STREETNAME' field) each of which has a ...
1
vote
0answers
36 views

Versioning in ArcGis? [closed]

I create 2 replica by tool CreateReplica_management. This tool return 2 mdb: A.mdb with feature class FC1, FC2. B.mdb with feature class FC1, FC2. First user edit FC1 from A.mdb Second user edit FC2 ...
3
votes
0answers
26 views

Automatic point plotting in ArcGIS from thresholded image [closed]

I would like to know whether it is possible to plot points automatically on a map in ArcGIS by using a raster file as a reference. The image below would represent an example of line that comes from ...
0
votes
2answers
31 views

Get List of manualy selected features on MXD and run script on selected features : [closed]

Using arcgis 10.3, I trying to write code that when i do selection on layer manualy on MXD (not in the script) and run the script, the script need to run just on the selected features. I have tried - ...
0
votes
0answers
36 views

How to georeference *.tiff to a given feature geometry automatically?

I´ve got the task to georeference an tiff image to the referencing polygon footprint (Polygon). I have found a lot of ways to do get the footprint from a raster but I could not find a way to use ...
3
votes
2answers
248 views

Global name "fc' not defined?

First, I'm trying to call a function from a module (final_functions) I created in a separate script. However I receive the following error: Traceback (most recent call last): File ...
1
vote
1answer
45 views

Python Addin - Disable Toolbar in Layout View

I'm trying to disable a toolbar with nested menus and buttons when an mxd is in layout view, but it's not working. I also get no output in the ArcGIS python window when I switch to layout view. ...
1
vote
1answer
30 views

Clip each layer in mxd with Arcpy

In the arcpy window in arcgis, I'm trying to: iterate through each layer in an mxd clip the layer to a shapefile (also in the mxd) export each clipped layer to a geodatabase, with the name of each ...
0
votes
2answers
51 views

Multiple rename shapefiles and feature classes in python

I have multiple shapefiles, in different sources (D:\GIS\Folder A", "D:\GIS_Temp\Name". And some of them have space in their name (File X, File Y, etc). What should be the code that could rename all ...
3
votes
2answers
61 views

Having two input feature layers and derived output feature layer in ArcGIS Python Toolbox tool?

I'm unable to find an example of an ArcGIS Python Toolbox similar to the one I'm trying to get to work. The standalone python script works beautifully. Turning it into a Python Toolbox so I can use ...
2
votes
1answer
66 views

Select by frequency

I've got a number of shapefiles with some redundant data. I'm looking for a way to select where a single attribute occurs more than a certain number of times (in this case four) and remove them from ...
2
votes
1answer
69 views

Script slow because of conditional statements

I have created a Python addin for ArcMap. It has two comboboxes. Combobox1: Search for facility by name. If there is one facility with that name the mxd zooms to the selected extent. Combobox2: ...
0
votes
1answer
43 views

How to run in background an .exe program withArcGIS? [closed]

I am working with the ArcGIS program that reads Python language. For that I've already implement scripts as script tool on the ArcGIS. Now I need to run in background an exe program "gams". Is it ...
3
votes
0answers
25 views

Get results for each topology errors for Polyline or Points? [closed]

When you set up a topology to build topology rules for each polyline, or points, is there a way to get the results or summary for each Line Errors? For example, when you set "Must Not Overlap", ...
1
vote
2answers
21 views

trying to update empty string field with a string

I need to update a column of values such that empty fields are changed to the string "OFF_ROAD." I've looked up a plethora of examples, and this is what I'm trying to get to work, but when I run it, ...
3
votes
0answers
40 views

Python with ArcCatalog for Table or Geography view? [closed]

Is there a way to automate the preview tab in Arc Catalog using Python? Say if I wanted to preview the geography of a feature class where I have the path and just don't really want to connect to the ...
1
vote
1answer
37 views

Problem in reading mosaic_dataset path from a csv file

Based on this How to batch Check geometry in ArcGIS for a list of datasets from a CSV? code, i'm trying to extract the mosaic dataset path's within multiple folders. If i directly provide the ...
5
votes
1answer
83 views

How to add Unique ID number to a list if rows contain a consecutive sequence (Arcpy)

I am trying to use an Arcpy Python code to identify the Unique ID number for streets that contain consecutive addresses and ignore rows that do not. For example: FULLST | LOR | HIR | UID Gate ...
2
votes
2answers
53 views

Parsing new field into calculate field

I have a pivot table that has 11 ShipTypeGroup fields with "Long" field properties that cant be divided by 12, due to decimal places. Therefore I am trying to create a new field, copy attributes ...
2
votes
1answer
32 views

Arcpy tool attribute selection

I'm trying to make tool of change detection between two polygons layers by fields of initial state and final state. Everything is working except attribute selection, I would like user could choose ...
0
votes
1answer
35 views

Alternative to raw_input on arcgis

In python only, I use S = float(raw_input( 'Insert the value: ') when I want allow to user insert a value then is used in that script. When I try to use the same on a python script that I've already ...
1
vote
1answer
63 views

Arcgis 10.2.2 Python Addin - Add Layer to Layout View?

I've developed a python addin toolbar that adds a desired layer file (chosen from a button nested in a menu in the toolbar) to the table of contents in a project. The functionality only works, ...
0
votes
1answer
27 views

Arcpy buff does not provide the output attribute “Shape_Area”

I made a loop to buffer several times a certain network using arcpy. What I noticed is that when I run the code, the output files do not have the attribute fields "Shape_Area" and "Shape_Length" that ...
0
votes
0answers
22 views

ArcSoc used up its stack

My published Geoprocessing service crashs always when I start it. Now I found the following error in the dump file: Error Message: The thread used up its stack I didnt use any loop in my arcpy ...
2
votes
0answers
29 views

How to get 4 values for different Indexes and names of rasters for set of points? [closed]

I am trying to get 4 values for different Indexes and names of rasters for set of points, but get problem with defining function def extractIndex(raster, pathName). #List of Folders 4 Folders ...
-1
votes
1answer
42 views

Listing Points Within Polygon for Hadoop? [closed]

I am very familiar with a point in polygon analysis but instead of counting how many points are within each polygon. Does anyone know how to list the points within the polygon and add a field that ...
1
vote
1answer
37 views

How to export list of feature classes in multi gdb's to a csv file?

Using the codes mentioned here How to list feature classes in multiple geodatabases in a folder? i was able to list all the feature_classes in multiple geodatabases within a folder. Problem is i don't ...
4
votes
0answers
45 views

Geoprocessing Service crash while executing

I have created a geoprocessing service, which can print a webmap(JSON) to a PDF or PNG. The ArcGis for Server and ArcGis for Desktop are running on my workstation. The Website, which host my webmap ...
1
vote
2answers
48 views

Arcpy fail to loop between files in different directories

I want to perform a loop of intersections between different files in different directories. Here is my code: Intersects = ['Name1','Name2','Name3','Name4','Name5'] #Names of my files ...
1
vote
0answers
20 views

Using arcpy to loop through multiple network analysis tasks

I am writing a script with ArcPy to look at modelling closed roads and the length of possible diversions. This is being done with the network analyst tools. The basic process I am using is to: ...
1
vote
1answer
37 views

Creating new layer in ArcGIS for Desktop with Python Toolbox?

I would like to create new shapefile layer or memory layer with one point with certain coordinates in ArcGIS 10.2 with Python Toolbox. Which function should I use? I wrote this code: import arcpy ...
1
vote
0answers
38 views

Import csv value to an empty field in a point feature class

I have a .csv with three colums and a point feature class with an empty field that i would like to fill with a value of the csv. In the .csv i have 15 rows with a code. In the feature class just one ...
0
votes
2answers
27 views

Getting name of raster in point shp.file Attribute Table using ArcPy? AttributeError: 'unicode' object has no attribute 'contains'

I am trying to get name of raster for corresponding point if point belongs to raster and fill column "name" in points Attribute Table: but no names in Attribute Table column "name" of point's ...
2
votes
1answer
25 views

How to save output in different file after clip

I am new to GIS. I have several rasters in one file location I am using clip tool to loop over several rasters in arcgis. When I start I am choosing workspace, which is the folder where my input ...
0
votes
1answer
54 views

Attribute table updating using ArcPy cursors?

I have a line type shapefile representing the road network of a country. That the country has experienced more change in the road names is why I want to create a script that will help me make update ...
1
vote
2answers
115 views

Scripting (Python) Feature Class content into Shapefiles following an UTM data structure

Consider a Feature Class and two of its fields are "UTM_grid" and the "OID". Scripting with python 2.7 for ArcGIS 10.3. "UTM_grid" field contains the geographic info (e.g. B1SD40B) and was broken ...
3
votes
0answers
82 views

topology problem in the python script(arcpy)

I'm using Python 2.7 and ArcGIS 10.1. I have one topology problem in my Python script and I don't know how to fix it. I have one road and I want to select polygons with a query where intersect with my ...
2
votes
1answer
47 views

Cannot perform buffering loop with arcpy

I have 5 buffers to perform using 5 fields of a shapefile. I try to run it with the following code: Buffers = ['JF1','JF2','JF3','FF','FB'] env.workspace = "C:\Mydirectory\Myfile.shp" network = ...
3
votes
1answer
53 views

Python script to print the feature classes which are referencing AGS map services

I have an AGS site and need to identify which feature classes in my SQL Server DB reference the AGS map and feature services. I am not familiar with this environment and would like to automate the ...
1
vote
0answers
26 views

Classifying a Raster with Unique Values from Existing Layer File and Dynamically Change Labels - How to Create a UniqueValues Raster Layer File?

I'm creating a python tool that needs to have the output raster added to the current map and symbolized using unique values. I have been able to accomplish this by creating a template layer file and ...
3
votes
1answer
35 views

Building a tool to both geocode and do topology check on the geocoded point (ArcGIS)

Never built a tool in ArcGIS. Would someone tell me if it's feasible to create a single tool (preferably using Python) which: Geocodes an address Checks to see if geocoded point falls within a ...
1
vote
1answer
26 views

string u' encoding problem

the goal of my program is to retrieve data from a field one after another at the end to compare with other values of another table when I execute the code that allows me to point to the values of the ...
2
votes
3answers
150 views

arcpy codes to write ranked values

I have a dataset with ranked attributes(e.g. very low, low, moderate, high, very high). I would like to write a python code using arcpy to give a numeric values to each rank, such as 0,5,10,20,50,100. ...
1
vote
0answers
71 views

Command works in Console, but not in Python Toolbox

I want to create a memory layer with points in ArcGIS with Python Toolbox. I found an in_memory function. Here is the question: Why this command works in Python Console in ArcGIS, but not in Python ...
0
votes
0answers
40 views

Python script iterator to interpolate accross multiple fields of attribute table

I interpolated precipitation data in ArcMap (ver. 10.2) using a surface-fitting tool [e.g. Global Polynomial Interpolation (GPI)]. I built a GPI model using model builder in ArcGIS 10.2, but the model ...
3
votes
0answers
56 views

Arcpy code only works when run in two chunks, not as one piece

I have a weird thing happening with my script. When I copy/paste it into the python cmd line within ArcMap, I get error messages. However, if I run the first part, then copy in the very last line by ...
1
vote
2answers
34 views

Changing ArcSDE version of *.mxd in ArcPy?

Is there a way to switch the version a .mxd data source is pointing at without using arcpy.mapping.findAndReplaceWorkspacePaths? I have a script that automates map book production that works very ...
2
votes
2answers
47 views

editing and manipulating tables with python

I’m new to ArcMap and was wondering if anybody could help me out. I have a shapefile with counties and wells in that county. In the table I’m trying edit it so that for each county calculate the total ...