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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

batch save as layer to relative path in ArcPy

I would like to use a similar code as below, but one that uses relative paths. Since my input is a batch of tif files (not layers), I do not know if I need to use other functions like ...
3
votes
0answers
7 views

How to run a python script on the server, returning the results to the client

Here's the end result I'm trying for: the user clicks on a feature on an ArcGIS Server JS map a Python script is triggered on the server the Python script uses an attribute from the feature (eg its ...
3
votes
1answer
49 views

More efficient way to get the start and the end points of a line (arcpy)?

I am collecting start and end points for a large polyline feature class in a file geodatabase. I am using arcpy, ArcGIS 10.3, Python 2.7.3 64-bit and a 10.3 compressed file geodatabase with just one ...
1
vote
1answer
16 views

Using Python Script to change Pie Chart Symbology

I am trying to change the symbology for Pie chart in ArcGIS. I have a feature class which is joined to a table and I will like to symbolized as a pie chart. I will be symbolizing it a lot thus I am ...
-2
votes
0answers
24 views

How to set NULL value by arcpy.da.InsertCursor on date column?

How to set NULL value by arcpy.da.InsertCursor on date column? I try insert "NULL", None, '', 0 dictIN= [{'field1':"test1",'date1':'01-02-2015','date1':''},\ ...
0
votes
1answer
33 views

Pythonic way to recalculate feature extent in ArcGIS 10.2

I am creating a tool that will automate a tedious process of data standardization. One of the steps is to recalculate the feature extent of a SDE file. Surprisingly I cannot find anything useful in ...
1
vote
2answers
25 views

Inline variable substitution in Model Builder using python code

I have an inline variable substiution which I would like to import into my Python script. Is that possible? I am trying to make a parameter within my path. My path currently is ...
1
vote
1answer
37 views

ArcGIS geometry update from table XY

I am trying to update the geometry of a point FC stored in a FileGeodatabase using ArcPy. I got this Python script to compare the values of the SHAPE@X and SHAPE@Y and change the Geometry if not ...
1
vote
1answer
23 views

How do I insert a date string into the database as a date?

I'm using an InsertCursor to insert rows into a feature class. One of the fields in the source data may contain a NULL data value. The destination feature class requires a date - it is not nullable. ...
1
vote
0answers
32 views

Arcpy.Exists Fails On Existing Layers

I am running into an issue where the arcpy.Exists() function returns a false for a known good layer in the python interactive window. We are using a map document template for the layers set up in the ...
5
votes
2answers
402 views

Split one field into 3 fields?

I need to split the values in a field according to what they represent to be able to do a join on the data. As seen above I have a ID field that needs to be split into the following: The ID consist ...
0
votes
1answer
21 views

Accessing “valueField” property of layer's symbology using ArcPy?

This has been really hard to debug, as I had no idea where to look at first, but I have made an attempt to access the "valueField" property of a layer file. This layer file is of the UNIQUE_VALUES ...
0
votes
1answer
16 views

How to troubleshoot “RuntimeError: The field is not nullable [Column_Name]”?

I have a python (arcpy) script that extracts data from a database table, processes it, and inserts into a feature class. It works in my development environment but not in production. I recently ...
0
votes
2answers
54 views

Set arcpy command line parameter same as Tool parameter

I have a python script that works correctly when used in a toolbox but not from the command line. How do I duplicate the toolbox magic that happens when specifying a parameter Data Type? There is ...
2
votes
2answers
63 views

Using lists in Python functions [on hold]

I have some code in a function that uses a list, which works, but is there a way to write a list outside of the function and use it within the function code? For example in my code below I have a ...
2
votes
2answers
44 views

How to get cell value along Flow Direction

I have: a flow direction raster where I took off (assigned NoData value) the cells that overlayed the river network (from flow accumulation). a perfectly overlapping raster where I asigned a ...
1
vote
2answers
146 views

Why is my cursor empty?

Yesterday I set up a Python script using a cursor on a layer. Today I've tried running again and no matter what I run it in, the cursor is empty. I've tried removing the query on the layer, tried ...
0
votes
0answers
51 views

Problem exporting ecw project- arcpy

I work with arcview 10.3. Every time i export maps with ecw raster format , python (version 2.7.8) get crashed and i see: I use this code: import arcpy,os,sys,string import arcpy.mapping from arcpy ...
2
votes
1answer
216 views

What is the word for “Bar” progress and write it in python script?

I am a beginner in python and have written a few scripts and I am wondering if there is a term for python to call and show the progress of the bar telling you from start to finish like you see in ...
2
votes
1answer
26 views

ArcGIS Python Toolbox Parameter Filter.List ValueList Delete/Remove for Reconciling Versions

Does anyone know if and how you can remove a value from a parameter filter list? In my case, I am using a python toolbox in ArcGIS 10.2.2 and want a drop down list of all the versions for the person ...
1
vote
1answer
36 views

How to print a list of Tools from their respective Toolboxes with arcpy?

I would like to print a list of Toolboxes as listed in my Python code, however I would also like to print the tools in that Toolbox under neath the Toolbox name like so; Analysis Tools(analysis) ...
0
votes
1answer
31 views

How do I load multiple shapefiles into the same existing feature class?

I have a hundreds of shapefiles and, based on the filename, I need to load it into one of three feature classes (points, polylines, or polygons). My code works until it tries to load the second file ...
1
vote
3answers
47 views

SearchCursor Index Out of Range

I'm using ArcGIS 10.2 and trying to obtain values in a field using SearchCursor. Would someone help me with this? import arcpy oc = r"C:\Users\Scratch\oc.shp" catchments = ...
2
votes
2answers
51 views

Export ArcGIS Metadata as a .pdf

I've been asked to automate the exporting of metadata from ESRI feature classes into .pdf files. We don't want the .xml files, rather a .pdf version of what you see in the Description panel in ...
2
votes
1answer
41 views

Faster way to “geocode” on unique ID?

I've inherited some scripts that (to my mind) "abuse" geocoding to position points based on a LocationID field. As the name implies, this field is a unique ID that really doesn't need to be "fuzzy ...
-1
votes
1answer
59 views

Unable to merge two shapefiles (created from text files) using ArcPy? [closed]

I am trying to merge 2 shapefiles together created from 2 text files. I am new to python and managed to get the textfiles into shapefiles, however, when trying to merge the two newly created ...
1
vote
1answer
41 views

Problem with tool validation script in ArcGIS?

I have tried to write some validation code for a script in ArcGIS. This validation code more or less repeats what the script itself does, which is a simple cutting up of a long string by using the ...
1
vote
1answer
16 views

Can Arcpy Reconcile Initiate the Interactive Conflict Review?

I'm pretty new to python but trying to hide a lot of the nitty-gritty of creating a grandfathered version and reconciling from my users. I've gotten pretty far, but can't figure out a way for a ...
0
votes
1answer
40 views

Replacing arcpy.AddMessage() with open source?

I've recently inherited some old python scripts that contained ArcPy modules. I'm using version 10.0. I am looking for an error messaging system that replaces arcpy.AddMessage()?
1
vote
2answers
34 views

SplineWithBarrier (Spatial Analyst) - different results between model builder and external python script

I'm puzzled by different results I get from application of SplineWithBarrier (Spatial Analyst) using Modelbuilder and by external Python scripting: import arcpy points_shp = "pointShape.shp" ...
0
votes
0answers
42 views

How to estimate Kriging parameters in ArcGIS

I have got the following problem: I have got a shapefile of rain gauges with a field giving the precipitation amount in a particular day. I need to interpolate the precipitation values to obtain a ...
2
votes
1answer
66 views

Using ArcGIS model to batch export set of layout view as JPEGs?

I have a large number of layout views I would like to export as JPEG maps using ArcMap 10.0. The layout view is based upon a user defined grid. Normally what I would do is manually select a grid, ...
0
votes
1answer
19 views

How do I get a result's status description instead of a status integer?

This code snippet outputs 4 when the run was successful. Great! But how is displaying a number useful to anyone unless that person knows how / where to look up the status integer? I could perform a ...
0
votes
1answer
43 views

Passing ModelBuilder parameter to update cursor gives ERROR 999999?

I have two point layers. I trust the geometry (read: x and y coordinates) from one of them, but not the attributes data. I trust the attribute data but not the geometry from the other one (the ...
0
votes
1answer
20 views

Save a copy and replace the last six characters (date format) from a list of user selected MXD documents

The following script has the following objectives: User selected MXD files. Here I use a multivalue parameter for FILE with a filter for MXD in the tool box settings. Changing selected text based on ...
0
votes
2answers
72 views

How to add XY point and update attributes with ArcPy 10.0

I would like to create a script tool that takes 3 parameters in ArcMap: Google maps coordinate (e.g. -33.876846, 151.215117) text string text string The coordinates would define the XY geometry, ...
1
vote
1answer
9 views

Error using EnableEditorTracking

Using code from http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000016p000000 trying to enable editor tracking. It works fine if there is no feature dataset in the GDB, but the moment ...
2
votes
3answers
33 views

Arcpy logging error messages

I am trying to write any error messages that arise in my script and record it in a text file. When I check my errorLog, the error messages are not recorded. Below is my code: Note the parameter ...
1
vote
1answer
52 views

How to update the Z value using an UpdateCursor?

I have created the following script to mimic the ArcGIS 3D Analyst tool, FeatureTo3DByAttribute, which creates a 3D copy of a 2D feature class and sets the Z to a specified attribute. import arcpy, ...
6
votes
2answers
97 views

Clean up attributes

I want to clean up the attribute table of a road shapefile for all the entries in the fields. For example: As seen below I have a road feature with a "Name", Name From and Name To in the attribute ...
3
votes
3answers
66 views

Error when Projecting Rasters using ArcPy?

Using ArcGIS 10.3 I'm receiving the dreaded 'ERROR 999999' when attempting to project a geodatabase full of rasters from WGS84_UTM_zone_10N to Nad83_BC_Environment_Albers import arcpy InRasterGDB = ...
5
votes
2answers
100 views
+50

ArcPad Checkout from python command line

I have been developing a script to automate my ArcPad checkin/checkout processes. My problem is that I am having trouble getting arcpy to recognize the ArcPad tools from the command line. From the ...
2
votes
1answer
14 views

Is it possible to set data source of ArcMap MXD via replica MXD on remote server?

I have two ArcGIS Server instances, one is development and the other is production. I've copied the MXDs and .msds from my arcgisserver folder on server one to server two for back up. Instead of ...
1
vote
3answers
47 views

How to return a unique value from table using Arcpy?

Using Arcpy in Python, I would like to return / print '0.15' from the following table: When I use the following code I get "(u'D', 0.20)" as my print statement in Python: import arcpy fc = ...
1
vote
1answer
25 views

Creating ArcGIS tool that can run list of checks?

Is it possible to create a tool in Arcmap where by uploading a shapfile, the tool can run a various number of checks/tests (ie intersecting other shapefiles) and flags or highlights conflicting ...
1
vote
1answer
31 views

Error Creating Feature Layer from Parcel Fabric, Error 000732

Currently I am writing a python script that creates a feature layer from our parcel fabric and then appends that data into a different SDE feature class. The problem is that when executing ...
0
votes
1answer
44 views

SyntaxError: can't assign to function call, arcpy set parameter as text

I have a python script loaded into arcgis ModelBuilder, and when I run the model I keep getting an error when the script tries to run, at the line where I am setting the output as a text parameter. ...
0
votes
2answers
68 views

Populate cross street name at intersections

Just a follow up of an older post seen here: Python script/Model to populate cross street names at intersections I need to create a shapefile of Road segments with a "To_Road/s" and "From_Road/s" as ...
0
votes
0answers
19 views

Multibuffer in arcpy is too slow?

I have to make multibuffer to a several shp's (30 or +) and with this code the it takes 30 minutes or more. import arcpy,time,glob,os def multibuffer (probe,Zona_trab,nombarch3,recortes2): ...
1
vote
1answer
27 views

How to make list of MXDs from multi-value parameter in ArcPy?

I would like to selectively choose my MXD documents through the multivalue or filter parameter in the toolbox. From the selected MXD's the user should be able to replace text and re-save the ...