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

learn more… | top users | synonyms (1)

1
vote
1answer
23 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
91 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 ...
2
votes
3answers
115 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
122 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
118 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
174 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 ...
3
votes
1answer
23 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
83 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
27 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
75 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
102 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
122 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
22 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
42 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
50 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
33 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
97 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
52 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
67 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
55 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
68 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
51 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
101 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
122 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
25 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
57 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
67 views

Cause of ERROR 000732: Input Layer: Dataset plan does not exist or is not supported?

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
48 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
65 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
23 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
64 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
51 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
62 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
115 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
164 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 ...
0
votes
0answers
14 views

Importing XML Schema, Update/Delete Field Names

Presently, I am trying to write a script to import a XML workspace that contains the outline of schema. I want to create a tool/script that allows the user to import it, specify the number of certain ...
0
votes
2answers
98 views

RuntimeError: Underlying DBMS error ORA-00936: missing expression schema.tableName STATE_ID is not column in table?

I created a search cursor to retrieve some data from a feature class. The broken example shown below is used successfully in other scripts I created. The only difference that comes to mind is I'm ...
2
votes
2answers
58 views

How to flip a polyline based on a separate polyline feature class being left or right to it

Can't go into detail about what these features actually are but I will just refer to them as the green line and the black line. The black lines are not able to ever overlap the blue polygons. Black ...
0
votes
1answer
51 views

GetParameterAsText(arcpy) does not work

I am new in this area. I was practicing the function GetParameterAsText(). I know that when you run the code (for example in PythonWin) it works like the function raw_input(), therefore it should ...
1
vote
1answer
147 views

Error: 'NoneType' object is not iterable (arcpy.ListRasters)

I am trying to extract a raster through a particular shapefile. import arcpy from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension("Spatial") env.overwriteOutput = True ...
0
votes
1answer
80 views

How to create lines from points from different feature class ArcPy

I want to create lines based on two points: 1st line: point number 1 from pointFc, point number 1 from centFc 2nd line: point number 2 from pointFc, point number 2 from centFc and so on Where did I ...
2
votes
1answer
78 views

How to list items in a raster catalog?

I have a managed raster catalog in a file geodatabase that is comprised of 12 images. The screenshot shows the raster catalog footprint with the names of the tiff images that make up the raster ...
0
votes
1answer
59 views

Merge Feature Records with Identical Parameters in Two Different Fields using ArcPy or SQL [SOLVED]

I'm trying to merge feature records based on identical parameters in two different fields using Python or SQL. I have a polygon feature class with ~800 records, that I've intersected with another ...
0
votes
1answer
60 views

FeatureClassToFeatureClass_conversion taking too long

I wrote a python script in order to get all features near a point and its distances. To reach that, I'm using LocateFeaturesAlongRoutes_lr, then performing a join with a feature layer and finally ...
0
votes
1answer
39 views

Update Cursor not updating field correctly [closed]

I've got an issue with an update cursor not working correctly. The kicker is that when I dissolve by the field that isn't updating correctly, the output is actually correct. I have the same syntax on ...
1
vote
1answer
64 views

How to define NoData values in the ArcPy Clip raster tool?

I'm clipping some rasters with the ArcPy Clip tool (from the raster toolset) and a polygon feature and I'm having some problems with nodata values. The script I'm using is based on the code from ...
2
votes
1answer
94 views

Why does thumbnail on one MXD not update?"

I want to make modification on multi-mxd properties, I try Arcpy script with a loop like " for mxd in mxdList:" , but I always have same results, Thumbnails are not created... import arcpy,os ...
1
vote
2answers
101 views

Intersection point of polygon and the line created by two points ArcPy

I have polygon layer. I selected the most distant vertex from centroid (picture: point A). (How to do that is in the answer here: Select the most distant vertex from polygon's centroid using ...
2
votes
1answer
235 views

Recomendations about graphic interface for arcpy/python script

I have done some scripting using arcpy and python, and I want to make some interface to select some .shp. What are the best graphic tool for python to make this? I dont need high detailed graphics.
1
vote
2answers
439 views

arcpy.mapping.ListLayers() without calling current mxd document

my question is how can I use the arcpy.mapping.ListLayers() function without calling the current mxd? I'm hoping to run the python script without having an ArcMap document open. My setsymbology code ...