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

learn more… | top users | synonyms (1)

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
49 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
60 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
45 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
60 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
43 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
35 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
43 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
77 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
20 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
46 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
23 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
80 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
11 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
34 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
53 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
107 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
71 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
136 views

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
53 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
34 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
49 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
79 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 ...
0
votes
1answer
28 views

How do I create a new feature class from an existing FC and a WHERE clause?

I have a feature class. I want to copy the FC and use a WHERE clause to limit the rows copied. I tried using the CopyFeatures_management but it throws an error on the CopyFeatures_management() line. ...
1
vote
1answer
22 views

How do I omit the field mapping in a Copy As Python Snippet?

I performed a task ArcMap 10.1, using the Spatial Join tool in the toolbox. Then, from the Results widows, right-click and select Copy As Python Snippet. This will be the basis for a script that will ...
1
vote
2answers
63 views

Setting field equal to raster Name ID for batch process in ArcPy

I am wanting to set an existing field called RasterID to the name of the raster for which the attribute table belongs to, but for a batch of rasters. Is there a way to do this with my current code ...
1
vote
1answer
29 views

Connect to postgresql using ARCSDESQLExecute

I'm trying to connect to a postgresql database using ARCSDESQLExecute from ArcPy. When running my script as stand alone (debug from pyscripter) it works fine. When running my script as a tool from ...
0
votes
0answers
49 views

Django with arcpy 10.3: RasterDB.dll problem

I am working on a Django application and I need to be able to work with arcpy for geoprocessing. I have installed the Anaconda python distribution to use as the python for Django, because it has conda ...
0
votes
1answer
28 views

Interpolating rasters into a mosaic from point data using LayerTime object python code

While trying to run the ArcGIS provided python script to interpolate a bunch of rasters on a time-enabled point feature class file I get the following error: Runtime error Traceback (most recent ...
0
votes
1answer
33 views

Changing data source of ArcSDE layers to replace connection and names in thousands of MXDs?

I am facing a situation in wich our GIS data provider changed the path to their SDE Data server, and also changed the names of the the layers in their SDE Data. Need to do changes on thousands of ...
4
votes
1answer
44 views

Arcpy describe raster colormap

Does anyone know a way to use arcpy.describe to see if there is a colormap on a raster? Can't find anything in the help.
3
votes
2answers
70 views

Using ArcPy to zoom to Y,X (string) coordinate pair copy/pasted from Google Maps?

I frequently use google maps to find locations, and paste the coordinates into the "go to XY" toolbar in decimal degrees. It's a bit repetitive to paste the latitude into one box, and the longitude ...
1
vote
2answers
93 views

Prevent arcpy.Append from crashing if data is too long for field

We're appending a bunch of information from somebody else's database into ours. Much of it is text information, and the origin database doesn't appear to have much limit on the length of those ...
1
vote
0answers
19 views

Equivalent method to arcpy.Raster(), but for a TIN [closed]

I am creating a Python script in a toolbox in ArcGIS 10.0. When the input dataset is a raster, I can use: myRaster = arcpy.Raster('elevation') What should I do when the input dataset is a TIN? Is ...
1
vote
1answer
38 views

Accessing advanced symbol levels with python in ArcMap

Does anyone know if it is possible to access the symbolgy levels in ArcGIS10 with python? I have a layer "temp" that I print to a pdf. The symbology is printed correctly but is drawn in the wrong ...
1
vote
1answer
45 views

Apply Symbology Layer to a group layers

I have several mxds (located in C:\Project ) that have 250 layers each. All the layers as the same name- "plan" and they all in group layers like that (added picture for example): I try to change ...
0
votes
1answer
26 views

How to apply the 'Integrate' tool (data management) using arcpy

I try to integrate two features (shapes) with their ranks using arcpy. -- arcpy.Integrate_management() -- I don't get a clue from the explanation/example in ArcGIS help. It's straight forward, ...
0
votes
1answer
42 views

ArcGIS Spatial Analyst in arcpy - FATAL ERROR (INFDEF) DIRECTORY FULL

I have been running into this error in several geoprocessing scripts I've written lately. When I call a spatial analyst function I return this error: FATAL ERROR (INFDEF) DIRECTORY FULL import ...
0
votes
2answers
16 views

Arcpy/python Syntax Error. Variable Creation

I'm having a problem when trying to create a new variable within python. i = datetime.datetime.now() tme = i.strftime('%d/%m/%Y') print tme This portion of the code creates a date variable (tme) in ...
6
votes
1answer
58 views

Is the column order returned by arcpy.ListFields() always the same?

I'm using arcpy.ListFields() to get a list of fields in my Feature Class. Based on my limited testing of several geodatabases and tables, the order of fields returned is the field order specified in ...
0
votes
1answer
35 views

Select by location and copy to new shape and name based on attribute

I have a point features and polygon features. I need to: Select points that intersect the polygons Copy the points to a new shapefile Name this new point shapefile using an attribute of the polygon ...
0
votes
1answer
33 views

Finding Pseudo Nodes using ArcGIS for Desktop?

Trying to write a python scrip to find and dissolve pseudo nodes for a large dataset. Anyone have any code to perform such a task? For example, I have a road line with several end/start nodes ...
0
votes
1answer
55 views

Error in python code for loop using SearchCursor, selectlayerbyattribute, and copyfeatures tools

I am fairly new to python scripting for ArcGIS. I am trying to create maps where each county is selected and then copied into a new layer with only that county's data. Then, I used ApplySymbologyFrom ...
2
votes
1answer
84 views

How to check if an ArcGIS extension has already been checked out manually in arcpy?

I've written a python script that uses a Spatial Analyst function and hence requires the Spatial Analyst extension to be enabled. I would like to be able to check out the extension only if it hasn't ...