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

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Why does closing and re-opening ArcCatalog before running an ArcGIS modelbuilder model improve stability? and can this be replicated in the model?

I am using ArcGIS 10.2.2 and ModelBuilder. I have a set of model that work and have been tested. I notice that if I run through the models one after another the open dialogue becomes very slow to ...
2
votes
3answers
65 views

Finiding Duplicate in buffer distance?

i am desperately looking for solution for one problem. i am having one Point Shape file, i need to check that if there is any duplicate point nearby(lets say 10 meter). i am not familiar with ...
7
votes
2answers
98 views

Bing Authorization interrupts arcpy script

I made this happy little arcpy script to fix some data source problems: print "Hi, I will fix find and replace file path sections on your behalf. \nGive me a moment to just count the number of MXDs ...
1
vote
0answers
7 views

Downgrading WRF Hydro GIS Pre-Processing Tools 2.2 to work with ArcGIS Desktop 10.0?

I have just come across the WRF Hydro GIS Pre-Processing Tools for the first time. The version I am looking at is 2.2 and its documentation says: The processing workflow for creating WRF-Hydro ...
0
votes
1answer
26 views

ArcPy PrintMap is cutting off part of layout?

I am running a script that pulls certain .mxd files out of a folder and prints them for me. For some reason, when I use the script, part of the layout is cutoff; on the other hand, when I open each ...
0
votes
2answers
95 views

Change Data Source of Raster Layer Added to Map Display? Unexpected default

I have a script that I'm using to generate raster maps and automatically add them to the map display, but when they are added they are sourced to a temporary location. I use the same code for ...
3
votes
0answers
30 views

Altering input files in a Python toolbox? [on hold]

I'm trying to add a temporary field to one of the input feature classes in my Python toolbox. arcpy.AddWarning("Adding field of type " + fieldType.upper() + " to FC " + varFC + " called " + ...
0
votes
1answer
28 views

Arcpy unzipping script: ERROR 000714 Error in executing: cmd.exe /C

I wrote script for unzip archive with GDB. It works locally, i.e from ArcGis Desktop. But when I publish scrypt as geoprocessing service, it doesn't work - ERROR 000714: Error in script Zip22. Error ...
-1
votes
1answer
35 views

JoinField General Function Failure[featureclasName] [on hold]

I am trying a simple joinfield in arcpy and i keep getting the error: Execute error: ERROR 999999: Error execution function General function failure [AA] failed to execute JoinField Below are ...
0
votes
1answer
168 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 ...
1
vote
1answer
29 views

Copy GeoTIFF metadata to TIFF using ArcPy

I have conducted some image manipulation on GeoTIFFs in a program and the resulting TIFFs now have no spatial information attached. Their x,y origins are (0,0). Since these processed images are of ...
1
vote
1answer
74 views

Create and Find Shortest Path

In my project, I need to calculate each village's distance along a route to a seaport. However, as you can see in the picture(now deleted for space), not all the villages are connected to ...
0
votes
1answer
23 views

How to automate ArcGIS share service with python

Right now i am sharing a map service in ArcGIS by following these steps. File --> Share as --> Service --> then click on overwrite an existing service --> select appropriate map --> Click on Analyse ...
0
votes
1answer
28 views

“select by attribute” error, when using getParameter

I'm developing an ArcGIS tool by Python. Below is a part of the inputs: StudyArea = arcpy.GetParameterAsText(0) LandCover = arcpy.GetParameterAsText(1) gridcode = arcpy.GetParameterAsText(2) ...
2
votes
1answer
169 views

ArcPy script stops running randomly with no error returned

I am doing a batch watershed and analysis process on 135 points. This script worked great the first time I ran it. Ever since the first time, however, I have had the script stop at random moments. ...
3
votes
1answer
142 views

DBSCAN gives “AttributeError: NoneType has no attribute issparse”

I am running a Python script invoking the DBSCAN tool to cluster feature points. When I open ArcMap, load the feature layer, and run the script, it works the way I expect it to. But if I run it ...
2
votes
1answer
29 views

Align and reshape polygons based on surrounding polylines

I am trying to use a shapefile with polygons and I am trying to align it to a road network, that the polygons align themselves to surrounding streets. Is there a way to automatize alignments between ...
1
vote
0answers
24 views

ArcGIS python add in to call python script for importing mdb data

im trying to change from a .net toolbar to a python toolbar in ArcGIS 10.2 and am having some difficulty. I have some stand alone python script which i know works and does what i need to do but i ...
0
votes
2answers
62 views

How to get the parameter defined in one tool to another tool in same python toolbox?

This is what I am looking for: Create two tools in Python Toolbox: Tool1 and Tool2 (I am able to do that) I want to define a parameter in Tool2 whose value depends on parameter entered by user in ...
3
votes
4answers
63 views

Debugging ArcGIS Python scripts

I am new to Python and coding generally, and I cannot figure out how to set up a debugger that will work with Arcpy. I am trying to use PyCharm, but it always gets caught up with the fact that it ...
2
votes
1answer
346 views

Saving a ArcMap layers RGB values into the attribute table

I am wanting to take a symbolized layer in an mxd, and save it's symbol color (like a polygon fill) into its attribute table as an RGB value. My goal is to use this value in MapInfo to symbolize it's ...
1
vote
3answers
85 views

arcpy.mapping.MapDocument(“CURRENT”) fails when running python script in background as tool

The engineers I work with have requested an autosave feature for ArcGIS, so I thought I'd make them a python tool that routinely saves. The script works fine when run in the foreground, but fails when ...
3
votes
1answer
74 views

Why does arcpy.ListFeatureClasses() take so incredibly long?

I'm having an issue where calling arcpy.ListFeatureClasses() in a workspace with 400 shapefiles takes a very long time (more than 10 minutes). Using the os module to achieve the same effect takes ...
0
votes
0answers
22 views

How to dynamically create new parameters based on previously entered parameter in python toolbox?

This is what I am looking to create in a python toolbox: Create a parameter to get geodatabase (.gdb) file from the user. (the .gdb file has some number of feature classes) After user enters the gdb ...
2
votes
1answer
36 views

Calculate Row if Row Value Equals Value in List

I have a folder of photos named with a building ID that corresponds to a building ID in a building footprints feature class. Not all rows in the footprints feature class have a corresponding photo. ...
0
votes
1answer
15 views

Update Description of Feature Class in SDE or GDB

I need to add a Description to a Feature Class using arcpy. The feature class lives in our enterprise geodatabase. The Feature Class does not live in an MXD file, nor will it ever for this script's ...
1
vote
1answer
59 views

Check fields data type before insertion to table

I am trying to insert a python list of tuples to arcgis table. there is type mismatch which is obvious. Each Value in tuples have different type and fields in table have different data types. So, ...
1
vote
1answer
36 views

Arcpy.da.SearchCursor to retrieve the min and max measure values from Polyline-M shape

Is there a way to use a search cursor in ArcGIS to read the minimum measure and maximum measure values of a linear referenced route layer using arcpy? My goal is to build a route event using the start ...
0
votes
1answer
26 views

Copy shapefile to SDE feature class using arcpy

Is it possible to copy shapefiles to SDE geodatabases using ArcPy? I have tried using Copy_management, but it says that it cannot copy between different workspaces. Is there a different function that ...
0
votes
2answers
37 views

How do I go from the results of Calculate UTM Zone (Cartography) to a spatial reference object?

Calculate UTM Zone (Cartography) assigns a UTM zone to each feature within a feature class as a field value. The value returned is a 'UTM spatial reference string', which is a long string that looks ...
0
votes
0answers
32 views

ArcGIS Server geoprocessing service throws ERROR 000732: Input Features: Dataset <MyFeatureClass> does not exist or is not supported?

I have a script in Python, that works well when I ran it in ArcMap. When I tried to execute it in ArcGIS Server as a service I got this error: Failed to execute. Parameters are not valid.  ERROR ...
0
votes
0answers
38 views

Aggregate / Calculate Cell Statistics >1000 Rasters

I'm looking for a tool/script that does simply what "Cell Statistics - Mean/Sum" in ArcGIS does but for more than 1000 Rasters (TIF) (I need to process ~10000 Raster at once). I'm not used to use ...
37
votes
10answers
11k views

What are some resources for learning ArcPy?

I would like to learn ArcPy, but I do not know quite where to begin. Does anyone have any good advice on where I should start to learn ArcPy?
2
votes
0answers
49 views

Creating python script to split selected lines at a set length

I have been having trouble trying to come up with a python script that will go through a polyline feature class representing a river system and split all the streams intersecting with a central river ...
1
vote
1answer
23 views

How do I batch input alias names from a table for a large dataset in ArcMap or ArcCatalog?

I would like to populate the alias names for the fields in the ACS 2014 5 year estimates file geodatabase (all 11439 of them). The ACS fgdb comes with the short_name and long_name in the metadata ...
3
votes
0answers
33 views

Creating arc segment between two points with common field using Python?

I need to create Arc Segments between multiple points with like data using half the distance between the two like points as the radius of the arc segment. I would prefer to use python to ...
0
votes
1answer
1k views

Debugging AttributeError: Object: Tool or environment <tool> not found in arcgisscripting?

I have a problem executing the code below in ArcGIS 9.3. The file is not found in split_row_0717.py Please kindly help any modification and thank you. The error said that Traceback (most recent ...
2
votes
1answer
60 views

Convert feature class names to lower case?

I'm simply trying to loop through the first immediate set of folders in a directory, then the GDB's, and finally the feature classes, however, now I get "ERROR 000840: The value is not a Data Element. ...
0
votes
1answer
72 views

Interpolating rasters into mosaic from point data using LayerTime object in ArcPy?

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 ...
1
vote
2answers
94 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 ...
0
votes
2answers
54 views

SaveToLayerFile failed - “value is not a layer”

Tried doing a SaveToLayerFile on a layer in a workspace, but it confusingly says it's not a layer. I know it is a layer because the script can access lyr properties (e.g. name) and all of the ...
3
votes
1answer
101 views

How do I figure out the length of polyline features in a feature class with a WGS 1984 coordinate system?

I'm trying to figure out lengths of polyline features in a feature class with a WGS 1984 coordinate system. Here's code to list lengths: >>> import arcpy >>> inFc = ...
0
votes
0answers
45 views

Creating a point file with python from a pdf file

I have a 1500 pdf document that I need to extract latitude and longitude coordinates from. The Lat and long are formatted as one attribute so they need to be split plus there are a few other columns. ...
1
vote
1answer
259 views

How to create sequential field based on sorted data? (or extract pop-up data?)

I downloaded a kmz field and converted it to a GDB fc on arcmap. However, the field I need to label the layer by is stored in the pop-up html field... It looks like this: <html ...
0
votes
0answers
27 views

Create individual feature classes for every record in a single feature class [duplicate]

I have arc desktop 10.3. I have a feature class (nycd) with 59 records in it. I'm trying to create a simple map with an inset that shows where each community district is located in that borough. I'd ...
2
votes
2answers
246 views

Python Script tools for ArcGIS 10.2 is very slow (get raster properties)

I am using python script tools for ArcGIS 10.2, under Windows 8.1 64bit. When I am using the arcpy.GetRasterProperties_management() command, it's very slow to process the data. For example. I tried ...
0
votes
0answers
5 views

What is the default mosaic_method value for MakeMosaicLayer_management?

What is the default mosaic_method for MakeMosaicLayer_management (see help here)? Usually, the docs say This is the default after the default value. And that is usually first option listed. Is the ...
0
votes
1answer
284 views

Debugging RuntimeError: Object: Error in executing tool from arcpy.RasterDomain_3d()?

I´m always getting an Error with my Python-Code. Even though it is almost the same as on the ArcGIS Help Website. The Error occurs in line 19: Traceback (most recent call last): File ...
4
votes
1answer
532 views

mosaic raster to file geodatabase yields missing raster sections

Since upgrading to ArcGIS 10.1 (SP 1) from 10.0, I've been encountering an issue when running the arcpy.MosaicToNewRaster_management() tool with output to a file geodatabase. I'm principally working ...
1
vote
1answer
163 views

Publishing commercial ArcGIS Server Geoprocessing Services?

I've developed a set of ArcToolbox Python scripts, which I've been using on certain projects for clients. The approach we've been taking is to have our clients pay us to run these tools, and provide ...