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

learn more… | top users | synonyms (7)

2
votes
1answer
30 views

python script tool validation checkboxes to radio boxes?

I am trying to build a tool in arcmap, which uses radio buttons in its gui. Since I read, that radio buttons are not supported, I figured, it couldn't be too hard changing the behaviour of simple ...
0
votes
0answers
13 views

arcpy.UploadServiceDefinition_server sometime fails with Error:999999 and fixed with swapping identical ags connection files

I need help resolving an intermittent 999999 failure during arcpy.UploadServiceDefinition_server. I'm using arcpy.UploadServiceDefinition_server with a saved ags arcserver connection file as part of ...
1
vote
1answer
20 views

Add shp attribute data to column with python script

If feature column (feature is the name of the column) in table is ferry crossing in the attribute data then I need to add Yes to the Ferry column that I have already added to the table. If the ...
5
votes
5answers
2k views

How to add Radio Buttons to Python Script tool dialog?

I have 3 Point shapefiles for 3 species that contains the accession points of each. The user needs to specify only one species at a time. I need to write a script tool for adding the selected Point ...
0
votes
1answer
14 views

Arcpy get point feature at start and endpoint of Line feature

I am having trouble getting a feature that is at the start and end point of a line. I can get the start and end point of the line but I am not sure how to grab the Point feature that is at the start ...
2
votes
1answer
27 views

ArcPy - Syntax Error when using reclassify tool

I have been writing a code to automate a variety of processes in Arc Toolbox. I have used a line to reclassify before but this time when using it I am coming up with a Parsing Error (SyntaxError). I ...
2
votes
1answer
37 views

arcpy.da.SearchCursor(fc,[“SHAPE@”]) has no firstPoint object

I am having trouble getting the start and end point of a line using the code below. import arcpy with arcpy.da.SearchCursor("Lines",["Material","SHAPE@"]) as curs: for row in curs: ...
0
votes
0answers
10 views

Script for running Feature Class To Coverage tool runs into error on arcgis server

I have created a script for converting feature classes to coverage and it runs fine in arcmap. But after publishing and running it on the server, it fails to execute and returns the following error ...
2
votes
1answer
69 views

Spatial Join Field Mapping in ArcPy?

I know there already are posts about this subject, I tried to derive a solution for my own problem but the code for field mapping is very complex to me. I have a Raster 100x100m and point layers that ...
2
votes
0answers
36 views

How do I speed up testing debugging when I am loading a large module as part of my program? [on hold]

I'm using PyScripter to do some python geocoding automation and I'm coming across the situation where I am waiting several tens of seconds for a large module to be imported. This is very inconvenient ...
1
vote
2answers
44 views

Using Python to select records by date field

I am trying to write a python script to select records created within the past 7 hours (date field - database time) using a where-clause within arcpy. The table is ArcSDE database (Microsoft SQL ...
7
votes
1answer
120 views

In ArcMap, use python to disable “Scale map elements proportionally to changes in page size”

I am changing sources on MXDs in differents offices using ArcPy and ArcGIS 10.0. As observed here, the printer settings revert to the default printer when the instruction mxd.save() is sent. Losing ...
1
vote
2answers
40 views

IOError: “[u'Hospitals',u'Parcels',u'Roads']” does not exist

I was wondering if someone could help me figure out what's going wrong with my code. It's at the very end of a code that, once a link to a geodatabase is inserted, will print the name, directory, ...
3
votes
1answer
24 views

Getting different pixel depths from output raster when done in ArcMap versus Arcpy?

When I use 'Plus' in Spatial Analyst to add together two 8-bit unsigned rasters (pixel values 0-100) the output raster is 8-bit unsigned (pixel values 0-200) but when I try and do the same thing ...
2
votes
0answers
57 views

Merge n number of adjacent polygons

I have over 17,000 individual polygons. I want to merge two adjacent polygons so that I finish with approximately 8,500 polygons. The polygons need to be merged based on location, merge two adjacent ...
0
votes
1answer
25 views

Export all data driven pages to PDF using Python script

I am a novice Python user but I am trying to create a script which will allow me to export all of the data driven pages within an mxd to a single pdf file (without having to open the mxd) I currently ...
2
votes
2answers
50 views

FeatureClassToFeatureClass_conversion: How to export feature class to shapefile without losing OBJECTID

I am trying to automate a workflow which involves exporting multiple feature classes (within a geodatabase) to shapefile format. My inclination has been to use the ...
0
votes
1answer
43 views

how do I create a feature class from a table?

I have a database table that has the column and types defined. But it's a database table. I need a feature class so I can add spatial functionality, like add a SHAPE field. How do I create a feature ...
0
votes
0answers
29 views

Adding a Field to a Feature Class using Python

I'm trying to create a script that adds an integer field to a File GDB, calculates it, buffers it, then clips it to a different GDB featureclass. Can anyone help me, I'm stuck so far!? I'll provide my ...
0
votes
0answers
46 views

Inexplicable behavior after function call using 'arcpy.mapping.ListLayers'

I have seen some discussions regarding (eventual) bugs when using acrpy.mapping.ListLayers (and perhaps(?) other 'mapping' methods) where the (current) mxd is passed. I have a feeling the following is ...
1
vote
2answers
60 views

Column does not exist - python

My goal is to count the number of wells in each county. I've verified the columns are correct as listed in the attribute table. Do I have a typing or formatting error? I wanted to pull county names ...
0
votes
2answers
441 views

Spatial ETL Tools won't run “AttributeError: 'module' object has no attribute, etc.”

I have a python script that runs 5 Spatial ETL tools that I wish to run as a scheduled task. Each of the tools will run successfully from ArcCatalog and also from the ArcCatalog Command line. If I ...
-6
votes
0answers
27 views

Exporting Multi Maps like JPEG,etc with Python? [on hold]

I need to Export Multi Maps like JPEG or .... ETC with Python
0
votes
0answers
16 views

Issues with Euclidean Allocation Python Script [on hold]

I am trying to calculate catchments for each reach in my high resolution NHN. The main inputs I am using are Primary & Secondary Watershed, a single-flowline dendritic version of the NHN high-res ...
0
votes
2answers
46 views

Using ArcPy, I can't panToExtent to intended area using Decimal Degree coordinate

I'm trying to programmatically pan to a coordinate before I export a map and I've started off by using Identify to get a test coordinate in Decimal Degrees: mxd = arcpy.mapping.MapDocument("CURRENT") ...
0
votes
0answers
22 views

Using Near Feature Tool with Conditions

I am using near feature tool in ArcGIS 10.1. However, I need to add another condition to it (not only the nearest). The feature (point) that i am looking for, is the nearest (point) and also doesnot ...
0
votes
1answer
31 views

Python Process Question

I'm a new Python student looking for some help regarding a homework problem. I need to analyze wells with each county in a state. So I have the wells shapefile and a counties shapefile for a state. ...
1
vote
2answers
28 views

Labeling Poles in Sequential Order on Data Driven Pages Along a Curvy Route

Is there a way to automate the process of labeling poles #'s on data driven pages along a curvy route in sequential order? The many bends and turns of the route is throwing off the ordering. the ...
5
votes
3answers
1k views

Issue on using Pyscripter with ArcGIS 10.2

Can someone please let me know how I can set the Pyscripter 2.5.3.0 x64 works with Python 2.7.3 which comes with ArcGIS? what I did was: 1- I installed the ArcGIS 10.2 2- I installed Pyscripter ...
2
votes
1answer
193 views

ArcPy Data Driven Pages AttributeError: PageLayoutObject: Error in executing ExportToPDF

I am trying to export a series of datadriven pages. Executing on a single page fine no issue, executing on a few pages no issue. executing on many pages serious drama. Initially i thought it might be ...
1
vote
2answers
58 views

How to get and create featureclasses in Python toolboxes?

I'm writing my first python toolbox. I know there's a way to do this in batch processing, but for proof of concept I want to write this pyt tool to call the Clip tool and add the resulting ...
0
votes
0answers
46 views

Automate nightly updates

Can anybody help with pseudo code or pseudo outline? I am trying to create a nightly update using an xml file. I have not tried anything to tackle this issue other than research. Currently a XML ...
2
votes
1answer
1k views

Field Filter and Value Pick List for a Python Toolbox ValueTable Parameter

In an ArcGIS Python Toolbox (pyt file), how do I specify a filter for a Value Table parameter? In my value table I have two columns. The first is a a field name derived from a selected table view and ...
1
vote
1answer
39 views

Find Feature class into another feature data

I am trying to find the feature classes from one feature data into another feature classes. But I'm getting nothing at the end as a result of the matc statement. The data in the arc environment is ...
1
vote
1answer
24 views

Aligning point along the line in ArcGIS

I have a line and some points along with line, but they are not equally distanced from line. I want to align them at equal distance along the line, let's say, every point should be at a distance of 10 ...
0
votes
0answers
18 views

Selecting groups of files and iterating composite raster

I have a query regarding the best way to process the multispectral data I requested to be collected for my MSc study site. The data I am working with has been saved as single band tiffs, rather than ...
8
votes
4answers
2k views

Accessing attribute table within shapefile and replace values?

I would like to find a Python script that will access an attribute table within a shapefile and either update or replace records inside a field column. More specifically, I would like to use the ...
7
votes
2answers
4k views

How to send long JSON objects (polygon geometry, table rows) in POST request to Geoprocessing Service?

I am seeking to understand my options for sending long JSON objects in a request to a Geoprocessing Service. In particular, I am looking for some example code to illustrate how to include two long ...
1
vote
2answers
42 views

Recording the ArcPy script execution method

I have composed an ArcPy script which is run via a windows scheduler.The same script is loaded into a script tool so a user can run the process manually. I've used: get parameters as text, with or's ...
0
votes
0answers
18 views

How to add local locator map/index in ArcGIS 10x?

I want to add local locator map in ArcGIS,like: As it shown in zoom level, otherwise by datadriven pages defines the locator map in original is like:. What kind of python script i can used for this to ...
1
vote
1answer
622 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
45 views

AttributeError: 'Layer' object has no attribute 'listLayers'

I want to use the result of OD cost matrix for my further calculations. However, whne I try to extract the sublayer "lines" it returnes an error AttributeError: 'Layer' object has no attribute ...
0
votes
1answer
160 views

OD Cost Matrix Settings (Arcpy)

I have what is hopefully a fairly simple question. I am trying to run an OD cost matrix for every minute of a day for research I am performing. All of the settings will be the same for each run, ...
0
votes
0answers
812 views

Using ArcPy, is there a way to change the color of a symbol in a UniqueValuesSymbology object?

I have an template mxd I reference with several pre-defined layers. The only variable I need to modify is the color of certain symbols in the layer. I have tried to modify and dig around the Symbology ...
0
votes
1answer
54 views

Improving processing time of ArcPy script?

Background: I work for an electrical utility, and we have a point feature class called "meters" that contains approximately 35,000 records. These records represent the actual power meter, and contain ...
2
votes
1answer
22 views

Set label font size for layer via Python

I have some ArcMap addin that creates new layer and add it into table of content. I need to set up labels for that layer. I have made some script for labeling layer: mxd = ...
1
vote
0answers
18 views

Create symbology for new layer using Python (arcpy.mapping)

I have some ArcMap addin that creates new layer and add it into table of content. I need to set up a symbology for the newly created layer based on the attribute table (three differnet values > three ...
6
votes
3answers
7k views

arcpy.MakeFeatureLayer in-memory layer still exists when subsequent step fails during testing

When I used arcgisscripting to create in-memory output layer with gp.makefeaturelayer, I would put it in a try/except block and delete the gp object in the except piece when the makefeaturelayer would ...
0
votes
1answer
240 views

Field Mapping in ArcPy gives Error in adding input field to field map?

I have a process in which I am joining a DBF table to multiple shapefiles to create a new output of some selected fields which result from the join. I am new to fieldMapping and need help figuring out ...
0
votes
0answers
13 views

Deleting a Column from feature class of file geodatabase using Python? [on hold]

I have a file geodatabase in ArcGIS which contains around 500 feature classes. All of those feature classes have an accuracy column, and I want to delete that column from all those feature classes. ...