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

learn more… | top users | synonyms (1)

0
votes
0answers
11 views

Problems in saving the output of a Conditional Statement

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
14 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
10 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
20 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
20 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
24 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
16 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
28 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
20 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
22 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
43 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
66 views

Is this algorithm Possible? [on hold]

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
41 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
69 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
24 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
32 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
36 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
23 views

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

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
30 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
21 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
27 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
42 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
42 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
32 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
25 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
22 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
32 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
59 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 ...
0
votes
0answers
22 views

Applying symbology to layers and exporting to JPEG using ArcPy? [closed]

This is my first stab at Python/ArcPy! I have numerous point shapefiles that I am trying to apply a specific symbology to and create jpeg files of the same map for each symbolized shapefile. I am ...
2
votes
1answer
35 views

How do I combine a wildcard command along with %s in a where clause statement?

I am trying to write a script where the user can search for a five digit zipcode using an input statement and a search cursor. The zipcodes in the file though are nine characters long (i.e. ...
2
votes
1answer
23 views

How to use Spatial Criteria with ArcPy Data Access Search Cursor?

The ArcGIS documentation for the Data Access Search Cursor states: The records returned by SearchCursor can be constrained to match attribute criteria or spatial criteria. But I can't see any ...
0
votes
0answers
39 views

What is the function for Joins and Relates?

I was writing a script to do a Join based on Spatial location. I don't want to do a spatial join as it will have all the fields of the layer that is joined to the target layer. I want only the fields ...
0
votes
0answers
33 views

Using Eclipse/PyDev's debugger with ArcPy?

I have been using eclipse to help me write my scripts with arcpy and arcgis. I have been using add message in arcpy to help debug but that is very slow and doesn't always give me enough information. I ...
0
votes
1answer
26 views

map(arcpy.AddError, traceback.format_exc().split(“\n”))

What does this expression mean? I see this in many python scripts. try: ... except Exception as e: import traceback map(arcpy.AddError, traceback.format_exc().split("\n")) ...
0
votes
1answer
17 views

Erase polygon from line to get line?

How can I erase a polygon from a line to get the erased line? Conceptual image below. Erase Tool does not work when mixing polygons and lines.
1
vote
1answer
27 views

Python tools won't open when clicked on

I am creating a python toolbox within ArcGIS 10.3 and I am having issues opening it up in ArcMap. I have been editing it, saving it, and running it within ArcMap this whole time to test it little by ...
1
vote
2answers
28 views

How to remove newline from AddMessage() with ArcPy?

I am looking for a way to add text in the same line in the progress dialog box. The AddMessage() adds a newline and this is not convenient. For example: I want to have one line with the text: ...
2
votes
1answer
27 views

Calling Python script tool from ArcGIS model using relative path?

I am new to ArcGIS and facing a problem in calling a script tool from a model. I have the following file structure: E:\MyFolder MyToolbox.tbx ScriptTool Model Scripts myscript.py The ...
0
votes
1answer
67 views

Tool for generating Feature Class including field names/type

I am trying to build a tool that will generate a feature class and then populate the fields with the correct column name and format based off a CSV file. Has anyone had any luck doing this before? ...
1
vote
0answers
38 views

Switching between python versions for Arcpy [duplicate]

I’m developing a multi-module project in Python. I’m new to GIS and my boss doesn’t have a strong technical background. I’ve been instructed to use the Arcpy module to do functions such as intersect. ...
0
votes
2answers
69 views

Using Python to field calculate Lat/Long with decimal degrees rather than meters

The below is a snippet of a python script that I am writing that basically adds two fields - Latitude and Longitude, then calculates them. I could use the Add XY Tool which gets me to the same point. ...
0
votes
0answers
22 views

I need to link to or copy MS Access macros from a “master” database to MS Access personal geodatabase

Here's my situation: I'm a python and arcpy novice. I’ve been cannibalizing and modifying code from different sources into a work in progress. Development is in ArcGIS 10.1 and will need backwards ...