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

learn more… | top users | synonyms (1)

1
vote
2answers
53 views

How to remove repetitive text in attributes?

I would like to clean up fields that contain repeated "Street Names". As seen below, I have fields "Name_From" and "Name_To". These fields sometimes repeat the same name (highlighted). I would like to ...
1
vote
0answers
74 views

Update Layer Symbology based on 1 field with changing data

I am running ArcGIS 10.2.2 Version 10.2.2.3552, using ArcMap. I have quite a big task here and before i attempt it i want to know if it is even possible. I've looked up some similar questions on ...
1
vote
2answers
109 views

Errors using arcpy.CalculateField_management

EDIT: What I forgot to mention when I first had this question is that I was trying to do these calculations on a layer which had joins, BUT where the join was on data that was added from an Excel ...
1
vote
0answers
41 views

How to to get time slice in raster dataset using ArcGIS?

I have a couple of rasters made in different time. Some of the rasters are overlapping and some of them - not. I need fast and efficient way to get time sliced values for each pixel. For example: ...
1
vote
2answers
75 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
0answers
54 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 ...
1
vote
0answers
83 views

Estimating parameters of a semivariogram?

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 precipitation map for a particular ...
1
vote
1answer
26 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 ...
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
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
60 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
2answers
102 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 ...
1
vote
0answers
38 views

Issues in projection while defining data frame extent by coordinates

I'm trying to set the following coordinates to a dataframe: custom_extent = {1:-87.678956, 2: -87.611652, 3:41.867129, 4:41.954932} where 1 is key for XMin, 2 is key for XMax, 3 is key for YMin, ...
1
vote
0answers
59 views

Group contiguous polygons by sum of values [duplicate]

I have a polygon layer of watersheds (N = 1950) for South Africa. Within each watershed is a value (number of people; POPULATION field). I need to find a way to automatically group contiguous ...
1
vote
0answers
88 views

How to auto-increment attribute fields using cursors and conditional statements?

I am trying to create unique IDs for an attribute named "FACILITYID" (str) and have got a ton of help from related posts and online python tutorials. I selected the rows I wished to create unique ID's ...
1
vote
0answers
29 views

Saving fields after a raster join with python arcgis

I am working on a raster processing script in which i join a categorical raster with a table that includes some extra data on each category. After much hassle, I have the join working, but I can't ...
1
vote
2answers
37 views

Getting number as parameter to use in SQL expression leads to ExecuteError: ERROR 000358?

In my script I am using the Select tool (arcpy.Select_analysis) and in the SQL expression, I want to use a number that I call in as a parameter. I have trying to script it like: subsize = ...
1
vote
0answers
64 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
59 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. ...
1
vote
3answers
77 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 ...
1
vote
1answer
42 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 ...
1
vote
0answers
60 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 ...
1
vote
2answers
66 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
36 views

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

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
vote
0answers
42 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 ...
1
vote
1answer
120 views

Debugging ArcPy ImportToolBox AttributeError: Object: Tool or environment <ConcatenateRowValues_AA> not found?

First post here. I am trying to use the ConcatenateRowValues tool provided by ESRI. My overall code for my script is working fine except when it tries to use the ConcantenateRowValues Tool. I start ...
1
vote
1answer
60 views

How do you calculate a new field for a raster table based on value from a joined table?

I need to know whether it is possible to calculate a new field for a raster table based on a value from a joined table. Ideally I'd like to be able to accomplish this task without having to add table ...
1
vote
1answer
59 views

How to use coverage tools in arcpy?

I have a process in which I need to use coverages. I can create the coverages just fine using FeatureClassToCoverage_conversion within arcpy but trying to union 2 coverages together does not work in ...
1
vote
0answers
40 views

Open GP tool as batch using pythonaddins

I'm working on a python toolbar addin and want to open a custom script tool as a batch process upon clicking a button. Is this possible using pythonaddins.GPToolDialog()? I can open as batch by simply ...
1
vote
1answer
56 views

Is there String Size Restriction in ArcGIS Python Script Tool parameter?

I'm trying to post a list of unique ID's (as a string) to a Python script tool for processing by ArcGIS Desktop 10.0. The list may be 50k+ id's long (~450kb). e.g. ...
1
vote
0answers
30 views

Adding layer to MXD from different SDE slows down ArcPy script

My python script looks at layers in an MXD, then does a couple of clip and measure operations and generates a PDF. It works accurately and quickly (0.5-3 seconds) when all the layers in the MXD are ...
1
vote
0answers
47 views

Python loop doesnt work properly for hundreds of Raster files (HDF)!

For generating Time Series, I prepared a python script which are supposed to get all task done through looping. Interestingly, It stops working after 12 HDF file but I need to do loop through all ...
1
vote
1answer
88 views

Automated map export, iterating layers and editing text

So just a beginner here. I've been automating a few map exports with ArcMap, I've used stack exchange to mash together some scripts to export maps with one FC symbolised using different fields and ...
1
vote
0answers
30 views

Modify a Python script to one that uses RasterDomain_3d fuctionality - and writes resulting shapefiles it to one

As I am not very experienced with Python I need your help. I managed to modify a Script (that has been posted here Get boundary of raster image as polygon in ArcGIS Desktop? by ...
1
vote
0answers
29 views

Is it possible to call a complicated query as a stored procedure within a geoprocessing service?

I need to implement a searching geoprocessing service. A part of the query should be very complicated and use oracle text. My service should support spatial search too. 1) I am thinking of ...
1
vote
1answer
58 views

How to Compact geodatabases in multiple directories using ArcPy?

I am trying to write a script to walk through all folders in my workspace and find and compact all geodatabases in my workspace. I feel like I'm on the right track but I am stuck. import acrpy, os ...
1
vote
0answers
25 views

The 3D polygon generated by skyline in arcgis has no Z value

I used the skyline tool to generate the skyline in a certain scenario, when the visible angle is less than 120°, the skyline is right, as the pic below: When the visible angle is bigger than 120, ...
1
vote
1answer
64 views

Scripting creation of cogo polylines including curves

Is it possible to create polyline features from cogo type text files? I have some files that have survey type coordinates in them and they contain straight line segments as well as curves (defined by ...
1
vote
2answers
132 views

Changing variable name in for loop

I am trying to run a simple python script that changes a feature to a polygon. However, I want the outputted polygon to have the same name an the inputted feature. The code that I ran, outputs the ...
1
vote
1answer
53 views

Calculating centroid latitude in ArcMap throws error in Arcpy

I can create a centroid latitude field in ArcMap10.1 using "Calculate Geometry..." in the attribute table, but when I try the same thing using: arcpy.CalculateField_management(bins_WGS84, "cent_lat", ...
1
vote
0answers
55 views

Custom error message with 'Error Code -1' in ArcGIS script tool

I have a script tool in ArcGIS 10.2 and I have altered the tool's validation code to show my custom error messages using setErrorMessage method. It works but when an error message is displayed it ...
1
vote
0answers
53 views

Using choice of one parameter to populate column of multi-value control ready to have values for second column chosen?

This relates to my earlier question Can one parameter choice on Python toolbox tool set Display Names of other parameters?, but attempts to describe the requirement, rather than my attempted solution, ...
1
vote
1answer
45 views

ERROR 000358: Invalid expression “Parcelles_class.OBJECTID” = 1 OR “output_table1.src_OBJECTID” = 1 Failed to execute (Select)

I'm executing this code. I don't know if i'm missing something, I'm using Arcpy, Python, Arcgis 10.1 whereclause1 = '"Parcelles_class.OBJECTID" = 1' whereclause2 = '"output_table1.src_OBJECTID" = ...
1
vote
2answers
69 views

can't set up script tool parameters

I'm using arcgis 10.0. I red the ESRI doc to setting up script tools parameters, but I don't succeed at setting them up. My parameters before (without variable) #arcpy.env.workspace = ...
1
vote
0answers
37 views

Parsing long lat xml tags into shapefile using ArcPy? [closed]

i have this xml http://www.massdot.state.ma.us/feeds/MARoadwayEventsXML.aspx import arcpy import xml.etree.ElementTree as etree xmlD = etree.parse("C:\data.xml") root = xmlD.getroot() this will ...
1
vote
0answers
97 views

Download layers from arcGIS online in python [closed]

How can I get layers/maps from arcgis online in Python? I mean to download layers from Arcgis online in python, just like publishing. I've searched about it in the documentation of Arcgis 10.2.2, but ...
1
vote
2answers
114 views

Use row as input to other processes in python

I am new to python and need help. Looked for my answer but don't know if I am even using the correct terminology. I have a model in which I iterated through rows and performed a set of processes on ...
1
vote
0answers
38 views

ArcPy RemoveLayer removes all layers in loop

I am trying to remove layers that are not found within a list. The loop iterates through the layers within the Map_Left data frame. However, when I run this, it removes all of the layers within the ...
1
vote
0answers
93 views

Extract layer by attribute and export to new shapefile using arcgis scripting 9.3

I have a n-number of shape files based on attribute i want to extract the layer to export to new shape file, Using feature class to feature class conversion i can do, but i want to check for specific ...
1
vote
0answers
80 views

multiprocessing and the ArcGIS in_memory workspace

I am trying a script that makes use of multiprocessing and a number of tools within arcpy. The script works only if I write all input, intermediate, and output from child multiprocessing executions to ...