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

learn more… | top users | synonyms (1)

-1
votes
0answers
17 views

Making tool in arcmap by using modelbuilder or python [on hold]

I want to make one tool in arcmap9.3. In this tool I want 5 input. These 5 input are shape files and these are for same area but data are diffrent(like I have baroda area and I have climate data, soil ...
1
vote
2answers
123 views

How to count point shp inside polygon shp using Python?

This is my first time here, so I'll try to be as specific as I can. What I'm trying to do is found out which polygon contains the most points and write the result in a text file. Here is my script : ...
1
vote
1answer
21 views

Issue with using arcpy.GetParameter and arcpy.GetParameterAsText to write layer source to text file

I am trying to get a Map Document and (a new) text file as user defined parameters, in order to write to the text file a list of layer sources. The text file is then suppose to open once complete. ...
1
vote
1answer
25 views

errors after installing 64 bit background geoprocessing on ArcGIS desktop 10.2.2

I installed 64 bit background geoprocessing on my ArcGIS 10.2.2 and then changed my pythonpath to "C:\Python27\ArcGISx6410.2" so that my code can benefit from the 64bit. then I had to install a 64b ...
-2
votes
0answers
48 views

How to solve performance issues with this ArcPy code?

This is my ArcPy code. Only this part of code was active (and a few lines before to be able to use those variables) what was running for 1 hour and inserted only 2863 records instead of 33000. This is ...
-1
votes
0answers
13 views

How to translate to C# [on hold]

> # Importing arcpy > # import arcpy > > # Set the workspace environment and run Clip_analysis arcpy.env.workspace = "C:/Data/Tongass" arcpy.Clip_analysis("standb4", > "clipcov", ...
1
vote
0answers
43 views

Eliminate in Arcpy

I am attempting to move away from Coverages. One of the tools we have did a great job of eliminating slivers from our datasets based on hard and soft boundaries for elimination rulesets; howver, it is ...
1
vote
0answers
35 views

Creating Automated Upload Script

I have a bit of a complex scenario that I'm unsure how to put together into one model or script file. What I'm doing is creating service definition files then uploading these SD files to a server. ...
3
votes
1answer
50 views

Using ArcPy to Remove Join?

I am trying to remove a join in arcpy and have been all over the forums and help topics but cannot get my script to remove the join. I have tried many combinations of inputs to the remove join but to ...
1
vote
1answer
30 views

Iterate Through Folders within Folders

I am having some trouble creating a model that will iterate through folders and subfolders. I want to be able to have the top level folder as a parameter and then have the code go through each of the ...
3
votes
1answer
38 views

Python output for batch “FeatureToRaster” in ArcPy

I am trying to batch process the conversion of shapefiles to rasters. I am stuck on how to specify the name for each output raster file. Part of the trick is that my input shapefiles are the names of ...
1
vote
1answer
42 views

problem with adding 64-bit background geoprocessing to ArcGIS 10.2.2

My code written in python language using Arcpy works perfectly with small to average size datasets; however, with a big dataset, the script stops in the middle of execution which most likely is due to ...
1
vote
1answer
21 views

Buffering continuously throws error “Background Server Threw an Exception” (Error 001143). Why?

I have written a code to create 1 meter buffers for features of converted feature classes (from rasters). I want to dissolve by the field "Class" so that I will have significantly smaller datasets to ...
1
vote
2answers
75 views

Insert.da.Cursor, Error - Sequence size must match size of row

So I'm working on this script which creates a table within a geodatabase. It then grabs the unique values from a list and attempts to insert them into the table using an Insert Cursor. I get the ...
1
vote
2answers
24 views

Words from ArcPy Scripts Appear in Map Document?

I created a slope map of the U.S. using ArcPy scripts (ArcGIS 10.2). I just completed the map. However, some of the words from my ArcPy scripts show up in the map document, both in data and layout ...
1
vote
1answer
47 views

Creating layers using definition query for each field in ArcPy?

I have a shapefile that contains a text field "Company" that i would like to use to run a definition query to create a layer file. I want to be able to create a layer for each company. I had a look ...
1
vote
2answers
88 views
+50

Divide polygons into *n* number of groups of equal counts with ArcGIS 10.2

One of my tasks for work is to divide parcels into groups. These groups will be used by agents to talk to property owners. The goal is to make the agent's job easy by grouping parcels that are near ...
0
votes
0answers
12 views

Symbology templates mess up colors and legend labels when used in Python script

I'm having issues when trying to symbolize a layer from a .lyr template using a python script. The templates work when imported in ArcMap as seen below: But when run with the following Python ...
0
votes
1answer
9 views

Writing SOAP returned values to table in file geodatabase

I have this small script which takes the lat, lon of buses in Ottawa, I am using this as a basis for another script that I have to write, but since this one works I would like to use this in my test ...
2
votes
0answers
14 views

Create Map Tile Package (tpk) progress? arcpy.CreateMapTilePackage_management

I'm using arcpy.CreateMapTilePackage_management to happily create a .tpk - all good. Trouble is this can take a matter of hours, or days for a large complex mxd, once ...
0
votes
1answer
37 views

Merge layer files in folders and subfolders with arcpy

I work with arcview 10.3. I try to merge layer files in order to get one layer file that include all the features in the other layer files. All layer files as different names, and they all spread in ...
0
votes
1answer
25 views

Why can't I use AddField_management in ArcPy?

I get this error, when I try to run this ArcPy code in Eclipse PyDev. The red underline under SearchCursor is not important, the Eclipse doesn't recognise the import, but that works perfectly (sure, ...
1
vote
1answer
33 views

Error using arcpy.da.SearchCursor and MakeFeatureLayer

im trying to write a script that allows me to iterate through my map layers, and for each layer, iterate over each feature and add a field that gives the location of the feature using my index layer ...
0
votes
1answer
46 views

Add field to feature class by location

im trying to write a script that allows me to iterate through my map layers, and for each layer, iterate over each feature and add a field that gives the location of the feature using my index layer ...
0
votes
1answer
38 views

Merge shapefiles in folders and subfolders with arcpy

I try to merge 20 shapefiles in order to get one shapefile that include all the features. All shapefiles are called "migrashim", and they spread in big folder that divided to a lot of sub folders. ...
1
vote
1answer
53 views

Edit attribute table for shapefiles in folders and subfolders with arcpy?

Continuously to Merge shapefiles in folders and subfolders with arcpy I try to edit attribute table for 20 shapefiles that spread in big a folder and are divided to a lot of sub folders. All ...
1
vote
3answers
41 views

Remove a layer from TOC in my printed PDF?

I am new at writing Python code so I'm just grasping the basics. I am trying to clip two shapefiles so that they are within the map boundaries. After that, I want to remove the unclipped layers and ...
2
votes
2answers
31 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
1answer
25 views

Buffer ring problem with uses of make feature layer

Im trying to create a buffer ring shape but gets me the error 210: arcgisscripting.ExecuteError: ERROR 000210: Cannot create output C:\Trabajo Carto\TempPrograma\"capa de Ringbuff70".shp Failed ...
0
votes
1answer
39 views

How can I refer to two tables in ArcPy's CalculateField_management?

I tried to refer to the different table's fields just like I saw in How to Calculate Field in joined table using ArcPy? but it doesn't work. There are two tables in my example. I have created table ...
1
vote
1answer
29 views

How to update symbology without loading all symbols into TOC using ArcPy?

I am using ArcMap 10.0 Service pack 5. (government computer, no choice here). I am trying to automate a common mapping task... I have a clipped layer (SoilsClipped - which has maybe 4 or 5 ...
0
votes
2answers
32 views

What fields can the CalculateField_management expression parameter contain?

What fields can the CalculateField_management expression parameter contain? I mean the parameters can be the fields what are in the output table, or can they be a field of another table too? There ...
2
votes
0answers
44 views

Overwriting layers in a geodatabase maintaining its position in a feature class list

I'm working with ArcGIS 10. I work on ecological habitat mapping. I have some features classes inside a geodatabase which represent years of data on a specific area. Each has a reliability field with ...
0
votes
0answers
22 views

How to use calculatefield_management with ArcPy and joined second table? [duplicate]

How can I use calculatefield_management with ArcPy if I have a joined second table? I want to go through the attached table's field and I want to get records where the certain fields is. How can I ...
1
vote
2answers
41 views

Is it possible to toggle draft mode in ArcGIS with Python?

I'm curious if it is possible to toggle on and off 'draft mode' in layout view in ArcGIS using python scripting. Does anyone have any ideas? Python is preferred, but if there is another solution in a ...
1
vote
0answers
27 views

How to implement 3NF (third normal form) in ArcGIS attribute tables?

How can I implement 3NF (third normal form) in ArcGIS attribute tables? I have a field what have redundant values, and I need to run different functions for these redundant datas, so I need to place ...
-1
votes
3answers
55 views

Batch Re-projection script syntax error

import arcpy ... sourceWorkspace = "C:\\Users\\tx8p90\\Desktop\\Lesson2" ... targetProjection = "C:\\Users\\tx8p90\\Desktop\\python excercise data\\Lesson1\\contourlines.shp" ... listDataSet = ...
1
vote
1answer
20 views

ApplySymbologyFromLayer works in ArcMap but not in python script

So the ApplySymbologyFromLayer_management() tool doesn't seem to like me, at least when I try to use it in a script. I have a Field_Boundary2.lyr file that has a "hollow" fill color and a black ...
2
votes
2answers
20 views

replaceDataSource for Tables from one SDE server to another server

I found the code that works to change the layers in my mxd from one SDE workspace to the other SDE worksspace. The script runs, but does not change the tables to the new SDE workspace. I replaced lyr ...
0
votes
1answer
27 views

Writing a simple code to replaceWorkspace

I am trying to write the code but it gave me the error within the Python window: >>> mxd = arcpy.mapping.MapDocument("CURRENT") path = "C:\Student\MapScripting10_0" ...
0
votes
1answer
53 views

How to show the attribute table of selected features using arcpy?

Is there a way to show the attribute table of selected features using arcpy? Maybe in the mapping module? I would like to be able to select some features and then have an Add-In button that ...
1
vote
1answer
30 views

How to reduce area boundaries resolution?

I managed to plot zip codes boundaries for an entire US state using ArcGIS data and python tools such as arcpy and Bokeh. The result: The dataset has high resolution area boundaries so, I have like ...
0
votes
1answer
25 views

equation solving by using python or model builder in arcmap 9.3

I want to solve one formula in arcmap 9.3 by using Python or Model builder. I have one shape file, in that there is in attribute table for field A & B Solve the formula: A*B/Sum(A). where Sum(A) ...
2
votes
1answer
37 views

conditional python script to delete records

I am new to python programming. I am wondering if someone could tell me how to write a python script that would find all records in an attribute table that have identical values in one field, then ...
2
votes
2answers
63 views

Can we no longer reference an ArcMap layer to get the spatial reference?

I'm currently using ArcGIS 10.2.1. In previous custom geoprocessing tools, I've used the following code to create a feature class in-memory, and set the spatial reference using an existing layer in ...
0
votes
1answer
52 views

Incorporate SHAPE@LENGTH in arcpy.da.UpdateCursor

What is the correct way to incorporate SHAPE@LENGTH in arcpy.da.updatecursor. Consider the following shortened version of my actual code: def check_for_missing_fields(field_list, feature_lyr): ...
1
vote
0answers
18 views

Import CAD annotation from multiple DWGs into multiple Geodbs

I'm new here (and to python). I'm trying to use the "importCADAnnotation" tool to import annotation from multiple .dwg files in a directory to new annotation layers within file geodbs (with the same ...
0
votes
1answer
28 views

Add multiple GDB files in subdirectories to mxd using python

I have GDB files located in many sub-Folders and sub-sub-Folders. All Sub Folders are located in one large directory i asked it for layer file in Add multiple Layer files in subdirectories to mxd ...
0
votes
0answers
16 views

Configure Geoprocessing Service after publishing?

I want to use some variables in a geoprocessing service like a URL, that should be configurable from the arcgis ardmin or manager. Is it possible have a tool input, which value will be specified by ...
3
votes
0answers
27 views

ArcGIS Solar Radiation Tool - How is Local Solar Time/Local Time handled as input to the “within-day” time configuration?

I am scripting hourly interval runs of the Area Solar Radiation Tool, and need a hand understanding how to account for Local Solar Time (LST) versus Local Time (LT) within the tool. First off, I ...