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

learn more… | top users | synonyms (1)

0
votes
0answers
22 views

Arcpy.Delete_management() not deleting folder?

I've written a script in Python that takes in two ascii files that represent surfaces, then convert them to Rasters, and finally Negate their values (i.e. multiply all cells by -1). In the script, I ...
1
vote
1answer
25 views

Python for select by attribute then remove from current selection

I have a table called"July_join". Within this table I have many attributes or columns. I want first to select every thing under "grade" column that has values of 90, then remove from this selection ...
0
votes
0answers
26 views

How to add rule and add feature class to topology using arcpy and stop getting error 000732?

This script successfully added feature classes to topology when that is all I had scripted it to do. Now I've added the add rule parts (#added) and it's still just adding feature classes without ...
0
votes
1answer
35 views

Error Executing tool: ArcPY

I am stuck with a code due to a RunTimeError: Object: Error in Executing tool and I really can't find the mistake. The code is # Now, the script for "Adding Surface Info" to the network, using the ...
0
votes
0answers
20 views

remove layer from mxd document using arcpy

I would like to remove some layers from the MXD document currently used by a service in the ArcGis Server. I am using arcpy to achieve this task. Here is my code for removing layers from MXD ...
4
votes
1answer
83 views

Python toolbox tool objects do not remember instance variables between function calls?

I am developing a Python toolbox, and came across a peculiar behavior: The tool objects does not remember any instance variables between function calls. Consider this code: import arcpy class ...
0
votes
0answers
14 views

Multi Input Python Toolbox in Arcgis

I use Python toolbox in arcgis, it is possible to add a multiple input file table? And is possible to filter input files allowed by extension?
0
votes
1answer
35 views

Is there a script to Python for Click to toggle selectable?

I cannot write a script using ArcPy (Click to toggle selectable). To make a layer unavailable for sampling! I just need to create a tool to automate several processes, one of them is the ability to ...
0
votes
2answers
30 views

Changing sequence of point features into order along line using ArcPy?

The picture below shows that the order of attribute record for point features is different to their actually distributed location. How can I change or sort the attribute records into a proper order ...
0
votes
1answer
26 views

How do I transfer one field name from text file to a new field name in feature class?

I am working on a script that involves incidents of fire. I'm taking my values from a text file that is comma delimited. The first line of the text file contains the field names ...
1
vote
2answers
34 views

Copying feature classes from Personal Geodatabase to File Geodatabase using ArcPy?

I have huge amount of personal geodatabases that contain dataset and feature classes (one dataset with four feature classes and one feature classes outside of the dataset in each mdb). I want to ...
0
votes
1answer
70 views

Sorting points based on Northing and Easting

I have around 1320 point/centroid features in a shapefile for my research plots. Each point/centroid has X and Y coordinate associated with them which were calculated using Field Calculator > Geometry ...
-1
votes
1answer
48 views

Arcpy Copy Feature Classes with Overwrite to specific feature datasets

Objective - I have a target GDB "schema" with set feature dataset names and feature classes (no features) within them. I want to copy submittal geodatabase feature classes into that target. I first ...
1
vote
0answers
32 views

ArcGIS Python Add-in using non-GUI window

Does anyone know how to create ArcGIS Python Add-in, that will allow after clicking on a feature, open a new window with a few pictures connected with the feature and then let the user change these ...
0
votes
0answers
16 views

Problems in saving the output of a Conditional Statement [on hold]

I have a problem saving my output from the following script. I can see an un-displayable image at the intended location with the same name as the first intended output. Mostly my gis crashes down and ...
1
vote
1answer
24 views

Point to raster conversion works as a tool in arcmap but fails when attempted with identical parameters in a script

I'm working on a script that will automate a stream delineation protocol given a DEM and a culvert layer. I was having difficulty troubleshooting problems with the point to raster conversion tool so I ...
0
votes
0answers
15 views

python script for splitting a polygon feature into equal parts

Is there a python script for splitting a polygon feature into equal parts in arcgis 10.1 . I know arcgis 10.3 has a segmentalongline function but I m looking for Arcgis 10.1 functionality. THis is ...
2
votes
0answers
22 views

How to save Result File from command line arcpy?

What do I need to do in order to get a custom arcpy script to save an execution run into the Results window, and/or just straight to an .rlt file directly? The script is run from the command line ...
1
vote
0answers
29 views

Add Attribute Data to Polyline from Point

I have code that is taking a point dataset and converting into lines based on an ID similar to point to Line. It is also creating 32 new fields in the polyline that I want to populate from the the ...
2
votes
1answer
29 views

Automating Line Creation with Multiple Points

I have a feature class that has over 1500 points in it. I then need to create line segments from these points based on an ID number. For example points 1-6 have the ID 1, points 7-12 ID 2 etc. Each ...
0
votes
0answers
17 views

set feature extent of feature class inside feature dataset

I have created a feature dataset and created feature classes inside that. When i see the properties of feature classes, the feature extent is empty. Now i want to define feature extent using arcpy ...
0
votes
2answers
29 views

SyntaxError with cursor and Feature Selection in ArcPy?

I tried to select each feature in the layer "temp" and use the selected feature to select features in the other layer "Railway" based on location and then do some calculations with the "Railway" layer ...
0
votes
1answer
36 views

Adding a group layer to another group layer in an Mxd using python

I would like to take an empty group layer and add it an existing group layer within an MXD. The empty group layer does not currently exist , i am going to use an empty group layer i have saved within ...
0
votes
1answer
24 views

TypeError: unsupported operand type(s) for *: 'float' and 'geoprocessing Layer object'

I am getting a rather unclear type error, and after searching online I cannot find any solutions that help. I am trying to create my own python toolbox for wifi router signal loss, and I am trying to ...
0
votes
1answer
23 views

Pragmatic Best Placement of Points within Polygon

I am looking to plot the ideal placement of police vehicles within a specific precinct (polygon). Rather than placing them myself, calculating a buffer of travel time (e.g. within 3 minutes), and ...
2
votes
1answer
47 views

Loop through columns Python arcpy.ListFields

I am trying to run a Python script that loops through all fields in my input feature attribute table. I have searched extensively and tried to use arcpy.ListField to work but it seems all people got ...
1
vote
0answers
69 views

Is this algorithm Possible? [closed]

I have some basic notions of python. I would like to know if this algorithm is feasible in ArcMap: loop through all entries in a dBase table for each entry, open the related table (Shapefile ...
0
votes
1answer
42 views

Isolate points with same parcel but different x and y coordinates

I have a large list of 100000 points in shapefile format. These points have address, parcel number and x and y coordinates as attributes. I would like to know which and how many points have the same ...
1
vote
0answers
20 views

Clip layout view to output graphics extent using python

I need to implement, within this very simple piece of code, the option that replicate the "Clip to output graphics extent" available from the ArcGIS 10.0 Export Map UI standard command. Is it ...
3
votes
1answer
81 views

Union on lines using ArcPy?

Essentially I want to union multiple (20) congruent line shapefiles, where overlapping line segments in the input shapefiles are combined into a single resulting output shapefile. But I can't union ...
2
votes
0answers
25 views

Spatial Analyst tools adding extra column of NoData

I've got a script tool in ArcGIS that runs Curvature and Aspect from Spatial Analyst, and the outputs of both contain an extra column. I've attempted to set the extent in the both the tool and the ...
1
vote
0answers
35 views

Merging two or more selected features from same layer into one feature with ArcPy?

I need the functionality of the editor > merge command for use in a python script tool. I realize this function is not directly accessible through ArcPy, but I am hoping someone can help with a work ...
1
vote
1answer
40 views

InsertCursor fails when trying to insert XY point data

I have a text file with X and Y coordinates, as well as a third piece of information. I'm trying to create a point feature class from this text file by use of an insert cursor. I'm working with ...
1
vote
0answers
25 views

Getting points from a particular section of point cloud data [closed]

I have a las file and I'm trying to analyze it using ArcGIS/ArcPy. Are there any built-in functions that I can use (maybe using a tool or las data property) to isolate a chunk of points? I want to be ...
2
votes
1answer
32 views

Rename feature classes in file geodatabase in bulk

I see may versions of this post but none quite get me to where I need to be. I have 50,000 features classes in a file geodb. They are a1_xxxxx_xx I need to rename them all to a6_xxxxx_xxx This is ...
0
votes
1answer
22 views

Seeking ArcPy equivalents for SPLINE and SETWINDOW commands from ArcInfo Workstation?

I know of a list of conversions between AML and ArcPy. I was wondering if anyone knew of another resource to go between the two? In particular I am looking for a SETWINDOW (AML) function in ArcPy, ...
1
vote
0answers
29 views

Ways to reduce buffer if it passes through a certain layer

I am trying to do WiFi analysis on signal strength in ArcGIS Desktop, and one of the big problems that I am running into is how to reduce the signal when it comes in contact with a wall, as it does in ...
1
vote
2answers
44 views

Maximum distance to polygon edge

I have a point feature class and a polygon feature class, and each point is located within one polygon. Is there a way to programmatically calculate the distance from each point to the farthest ...
1
vote
2answers
46 views

How to check for empty values in fields of a featureclass?

(ArcGIS Desktop 10.0 Python 2.7) I need to check if any empty fields exist in featureclass fields in a gdb. These could be NONE, NULL "". The field name here is "Stand". The following code doesn´t ...
0
votes
1answer
28 views

insert rows not displayed in arcmap

I am selecting rows from one shape file and inserting to other by using below script executed from PythonWin. Both shape files have same structure. Records are properly inserted and able to see them ...
0
votes
1answer
33 views

How to add multiple fields to many Feature class using Arcpy

I have a geodatabase with multiple Feature Class (at least 100). I would like to add in each attribute table of each Feature Class, two new columns. I have to do that with a python script because it ...
1
vote
1answer
29 views

What is the most efficient way to get the values of a previous row in a table using ArcPy? [duplicate]

I am very new to ArcGis and I would like to get a specific value of the previous row in a table. I found this question here on gis.stackexchange.com and experimented a little bit. However, I found ...
0
votes
0answers
25 views

How to build a raster populated with an equation in a python toolbox?

I am working on creating a python toolbox to solve for WiFi signal properties based on various inputs, and for the end result I would like to have the output in the form of a raster. I need this ...
0
votes
1answer
27 views

Adding field values from feature class into empty field of another feature class using append

I am attempting to add a feature class ("dis.shp") into an empty feature class("fc.shp") in a geodatabase using Python script. I have had success with the code below. However, I also would like to ...
0
votes
0answers
24 views

Select polygon feature(s) in ArcMap and pass this selection into Python Addin

Does anyone has an Pyhton example to select polygon feature (or features) in ArcMap and pass this selection into a Python Addin? The selection made by mouse will be better.
0
votes
1answer
33 views

Convert multi KML and KMZ into shapefile using ArcPy?

I try to convert with arcpy (python 2.7.8) 50 KML and KMZ files, that i downloaded from google earth into shapefiles. All files located in many sub-Folders. All Sub Folders are located in one large ...
0
votes
1answer
54 views

Create FeatureDataSet in geodatabase with Arcpy from a table

I create an empty file geodatabase (gdb), and I would like to import in this gdb several feature dataset, at least 120 different dataset. I would like to import those dataset from a table like an ...
1
vote
3answers
63 views

Python says my shapefile does not exist. Why?

I'm working on a script that prints the names of hospitals that are within a certain zip-code. When I run my code, though, python keeps giving me an Error message that says that my Hospitals shapefile ...
1
vote
1answer
39 views

MakeFeatureLayer throwing error 00840: The value is not a feature layer

I'm working through tutorials from the book "GIS Tutorial for Python Scripting," by David W. Allen, and I have this code pretty much exactly the way the book wants it (I altered one variable name from ...
0
votes
1answer
32 views

Projection For Measuring Distances

Is it the case that when I use Arc GIS to compute nearest distance from a point to a poly-line/polygon, I need to project them both in an equidistant projection? Note: I am using the near tool. What ...