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

learn more… | top users | synonyms (7)

1
vote
1answer
25 views

Updating Field to Calculated Variable using Arcpy

I'm trying to use the updateCursor to insert a calculated value in the correct field. However, I keep on receiving an execution error. I think it is an easy fix, but I am new to arcpy and cannot ...
1
vote
2answers
14 views

ArcGIS Server - Can python GP services returns json data to client through REST?

Can python GP services returns json data to client through REST? Imagine I have a python GP service that creates buffers around points and then merge the polygons together. I would like to send the ...
1
vote
1answer
21 views

Iterating a model that contains values too low [on hold]

Beginner Python programmer here, I have exported my Model Builder model from ArcGIS to Python. What I am trying to do is provide some kind of clause saying "if the data selected has less than 2 ...
1
vote
1answer
44 views

(Arcpy) read values from a txt file and convert the data into a shapefile

I´m a beginner at python programming and wanted to start with a litte and hopefully simple project. I tried to read float values out of a textfile and write them into a shapefile. The program is ...
0
votes
1answer
20 views

Create feature datasets from group layer name

Is it possible to create feature dataset, based on the name from group layers. I have two separate codes, one for finding out the names of group layers, and other to create feature datasets. ...
1
vote
0answers
14 views

Append tool Error “WARNING 000594”

I am trying to migrate a dataset from one fileGDB to another using the Append tool. When running a few features get copied over however the rest get the following error: “WARNING 000594”: Input ...
1
vote
2answers
31 views

Creating a subselection with arcpy

I want to do the following: from a point layer's table, 1) grab all GEBID (an attribute) and create a list(1) with unique GEBIDs 2) iterate through the list(1) in a loop:   2a) stuff all features ...
3
votes
1answer
16 views

Calculate visibility with polygonal visual barriers

I have the raster file for my digitial elevation model as well as a polygon shapefile with polygons representing different kinds of environments (forest, field, meadow, etc), and wouldlike to ...
0
votes
1answer
35 views

How to run in background an .exe program withArcGIS?

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 ...
2
votes
2answers
35 views

Is it possible to have two input feature layers and a derived output feature layer in an 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 ...
1
vote
1answer
84 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 ...
1
vote
0answers
25 views

Versioning in ArcGis? [on hold]

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 ...
-1
votes
2answers
435 views

Connecting to Oracle database on a network in python

There is lots of information out there on how to do this, unfortunately, it all looks like Greek to me. I need a connection to a DB so I can add and use tables and featureclasses contained within ...
1
vote
1answer
30 views

How do I get arcpy.Select_analysis to skip conditions that don't exist

I have data from 2007 to 2015 of various animals that I'm trying to break up by year and name. I wrote a little for loop that goes through all the items in my attribute table (gps_points). The ...
1
vote
1answer
44 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 ...
0
votes
1answer
19 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
20 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
19 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 ...
0
votes
1answer
936 views

ArcPy SelectLayerByAttribute Error and how to control GP output layer name

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 ...
2
votes
1answer
63 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: ...
2
votes
2answers
44 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 ...
1
vote
1answer
22 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
67 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 ...
1
vote
1answer
30 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. ...
0
votes
2answers
26 views

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

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
28 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 ...
0
votes
2answers
43 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 ...
1
vote
1answer
24 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 ...
3
votes
0answers
17 views

Get results for each topology errors for Polyline or Points?

You know when you set up a topology to build topology rules for each polyline, or points. Is there a way around for me to get the results or summary for each Line Errors ? For example, when you set ...
2
votes
0answers
27 views

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

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). It gives me error: File ...
6
votes
2answers
129 views

How can arcpy to be interactive?

I'm developing an interface with arcgis and python. When I have only python, I can become my script interactive using: S = float(raw_input( 'Please enter the value: ')) I can open and run my ...
1
vote
2answers
14 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, ...
1
vote
1answer
50 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, ...
2
votes
1answer
36 views

Multiple Input Feature Classes with Different Names - Model Builder

I have created the model below to create "straight lines" from a route (Feature Class is the Route in the model). This model will save me a lot of time compared to doing it manual. The manual steps ...
1
vote
1answer
34 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 ...
2
votes
1answer
29 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
32 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 ...
0
votes
0answers
19 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 ...
0
votes
1answer
23 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
45 views

ArcGIS 10.2x64: Batchfile->Python->Batchfile->Python with Arcpy [on hold]

I'm using ArcGIS 10.2 x64 with Python 2.7. Here's the outline of what I'm trying to do: Step 1 - Execute a batch file which kicks off a python script, pylaunch.py, which imports arcpy Step 2 - ...
2
votes
1answer
271 views

Unsupervised raster classification using GDAL

Is there an equivalent in GDAL to the Arcpy ISO data unsupervised classification tool, or a series of methods using GDAL/python that can accomplish this?
-1
votes
1answer
39 views

Listing Points Within Polygon for Hadoop? [on hold]

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
2answers
41 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 ...
0
votes
1answer
99 views

How to find identical street names with consecutively numbered addresses using Arcpy

I am trying to write a python script that will only select multiple rows with the same street name if they have consecutively numbered addresses and then place those street names in a list. For ...
2
votes
1answer
612 views

arcpy export - unable to set exact extent of dataframe

I am trying to use arcpy's ExportToPNG function to produce tiles for Nasa WorldWind, which will require very specific extents of outputted tiles. Pretty simple code - abbreviated below: mxd = ...
0
votes
1answer
43 views

python addin manager validation of code

I have a toolbar (in ArcGIS) set up with two buttons using python addin manager, can someone help me make sure this works, when I run these buttons nothing happens. import arcpy import pythonaddins ...
1
vote
1answer
30 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 ...
4
votes
0answers
32 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
0answers
12 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
0answers
35 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 ...