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

learn more… | top users | synonyms (1)

0
votes
1answer
14 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 ...
0
votes
2answers
26 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 ...
1
vote
1answer
730 views

Why does CON statement give ERROR 010240: Could not save raster dataset to (value) with output format GRID?

I am receiving the following error when trying to run the following code: import arcpy from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension = "Spatial" env.workspace = ...
1
vote
1answer
966 views

Converting MapInfo (MapBasic) Script into ArcPy?

I have a MapBasic script that divides an irregular polygon into smaller polygons of 1 hectare each. Would anyone help me to convert the following into an ArcPy script. ' This program requires an ...
0
votes
1answer
57 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 ...
4
votes
2answers
1k views

How to programmatically work with featureclasses from multiple geodatabases?

I have produced a Python script which creates multiple buffers of specific (listed) feature classes within a geodatabase. This is achieved by running each feature class through a for loop. I would ...
1
vote
1answer
652 views

Appending from file geodatabase to ArcSDE fails using ArcPy?

I'm trying to append a feature class from a file geodatabase to an Arcsde featureclass using this line of code: arcpy.Append_management("parcel_copy", sde_path+"parcel" ,"NO_TEST") This line works ...
-1
votes
0answers
36 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 ...
0
votes
0answers
13 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
16 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
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 ...
1
vote
0answers
21 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 ...
1
vote
1answer
141 views

Import shapefiles into PostGIS using Python with psycopg2

I want to import shapefiles to PostGIS using Python with arcpy & psycopg2 to connect to PostGIS. I don't want to use the existing shapefile loader nor ogr, just write my own import tool. My steps ...
2
votes
1answer
139 views

How to refresh display for newly added labels with ArcObjects

I've added a shapefile to an MXD and Edited the symbolization of it with ArcObjects. Now I'm trying to edit the labeling with ArcObjects. I've successfully been able to edit the default class in the ...
0
votes
0answers
12 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 ...
2
votes
1answer
25 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 ...
2
votes
2answers
790 views

Clip_management to raster extent outputs larger raster than raster extent

Using Python and ArcMap 10.0 SP5, I'm trying to reproject and clip a large input raster to exactly the same grid as a smaller target raster (same extent, pixel sizes and projection). The problem is ...
3
votes
2answers
2k views

Getting values from attribute table and inserting another table using ArcPy?

I have line feature class of a river network and “FromTo” table. Lines are dissolved so they are not segmented from junctions. I need to write a Python script in ArcGIS to do following: Begin from ...
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 ...
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 ...
1
vote
1answer
897 views

Using a Select By Location in Python and Calculating a field based on what State Plane a point falls in

Here's what I have so far. Do I need to make another feature layer based on the selection? import arcpy arcpy.MakeFeatureLayer_management(r"PATH TO THE POINT", "point_lyr") ...
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
163 views

How to automatically generate least-cost paths between several polygons?

What is the fastest way to automatically generate least-cost paths (LCPs) between several polygons with ArcGIS ? I created a python program to do this by using the functions "CostDistance" and ...
0
votes
0answers
34 views

Problems using da.UpdateCursor in python Add_in to Edit Feature Class

I am currently attempting to create a Python Add_in tool which will perform a set of geoprocessing operations resulting in new values for a specific !shape.area!acres calculation on a new layer and ...
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 ...
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
67 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 ...
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 ...
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 ...
1
vote
1answer
4k views

Debugging ImportError: No module named arcpy?

I have written a script and am trying to run it in Python IDLE 2.7.6. I first try to import arcpy, but I get an error message saying "ImportError: No module named arcpy". Why doesn't it work? ...
3
votes
1answer
70 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 ...
1
vote
1answer
148 views

Looping through Layers, Add Layer to MXD, Export Image, Repeat, using ArcPy?

ArcGIS 10.2.2 I am trying to loop through a list of layers in a folder, add each layer to an mxd and export an image of the added layer. I have added arcpy.mapping.RemoveLayer to the script to remove ...
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
1answer
37 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 ...
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
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
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 ...
1
vote
2answers
44 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 ...
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 ...
1
vote
2answers
43 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 ...
2
votes
1answer
1k views

How do I get statistics out of a table using Python in Arc 10?

I am very new to programming (I started learning this semester) and would very much appreciate helop with one piece of a project. I have the following table, and I need to write a script compatible ...
1
vote
1answer
43 views

Is there an arcpy tool to delete/unregister a replica geodatabase?

Seems odd but I can't find an arcpy or geoprocessing tool to delete/unregister replicas. When you create a replica it gets registered with the GDB that the data comes from. Afterwards you can't ...
1
vote
0answers
28 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 ...
3
votes
1answer
228 views

Exporting records from an attribute table and placing them in a txt file

I am trying desperately to grab records in a shapefile's attribute table and copy them, with additional formatting to a txt file. Below is the code I have developed thus far: I have used the ...
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 ...
6
votes
5answers
284 views

How to access adjacent rows with cursor?

In the attached screenshot, the attributes contain two field of interest "a" and "b". I want to write a script to access the adjacent rows in order to make some calculations. To access a single row, ...
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 ...
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 ...