A site-package created by Esri to expose GeoProcessing from ArcGIS to Python.

learn more… | top users | synonyms (8)

1
vote
1answer
111 views

Zoom/Pan function in python addin tool

I have created one python addin tool which creates some points along a line, it works good. my problem is when my tool gets activated i am not able able to zoom/pan the map. map view just get stuck ...
2
votes
1answer
48 views

comparing rasters, cells that have changed value

I am attempting to compare two rasters representing a species distribution model for now and the future. The rasters have the exact same extent and cell sizes. here is when is gets tricky, they are ...
2
votes
1answer
47 views

Change Date to Future Date in Map Title Using Python or Dynamic Text [duplicate]

I'm trying to create a dynamic map title in ArcMap that updates based on current day + 2 days. For example, if I run the code on the 20th of a given month, the title should update to show the 22nd. ...
1
vote
0answers
34 views

Why are my modifications to UniqueValuesSymbology classLabels not following through to PDF export? [closed]

I have a vector layer that I add to a data frame. I modify the unique values symbology class labels. I then export the map document as a PDF and the labels in the PDF do not reflect the modifications. ...
1
vote
2answers
62 views

Error 999999 exporting table view?

ArcGIS 10.1. When I try to export a table view with CopyRows_management, I get an invalid sql error. However, the sql statement by all accounts work fine. When I perform a GetCount_management, the ...
2
votes
2answers
77 views

Wrap text element labels

I am writing a python script for batch map production and for every map the script replaces a text label called "Company". sometimes the name is way to long and it extends onto the map and off the map....
1
vote
1answer
33 views

Use previous results as rectangle in Clip_management

I would like to use arcpy.Clip_management to clip a raster to a previously generated feature class (using ClippingGeometry), but still have to enter values for a rectangle, under the form "Xmin Xmax ...
3
votes
1answer
111 views

Compare and update values from different source using arcpy

Shape file: "table1.shp" Field name: "Name" Field name: "Result" Flat file: "referenceTable" Field name: "STREET" Field name: "AKA" I need to compare the value "Name" in "table1.shp" to the ...
5
votes
1answer
105 views

Field Calculator text field to new shapefile

I have point features being selected by a polygon feature and copied to their own shapefile. I also have certain values of the polygon feature being applied to the newly created point file. The ...
1
vote
0answers
48 views

Arcpy create feature class representation

I have written a script which allows me to select multiple feature classes and apply both a representation (based on a template layer) and set a transparency value before adding to the map. ...
0
votes
1answer
77 views

Using Python Script to get equal name as given and compare to multiple shp file in folder and copy as output for tool?

The following images will show my model. I used a piece of Python script and trying to get the output from it as a layer and use it for rest of the tool. However, I am getting error as displayed in ...
1
vote
0answers
24 views

Cursor update row operator [closed]

This is a find and replace script I have been working on. I feel I am very close, as the script does everything but actually change the values, leading me to believe there is an operator issue. I have ...
2
votes
1answer
40 views

MXD defined symbology not retained

I'm trying to create some layers from feature classes located in the geodatabase. The MXD is created, symbology on feature classes defined within ArcMap, but for some reason my symbology is not ...
2
votes
1answer
39 views

Writing Python Script to get equal name as given and compare to multiple shp file in folder and copy selected shp file to new folder?

Need to go through multi shp file in a folder and copy a single feature which has the same name as entry to the new folder with staying same name and format. I create a piece of python code that can ...
1
vote
0answers
25 views

ListBookmarks does not output any features [closed]

I'm trying to use ListBookmarks in Python to output my bookmarks to features. I directly copied the code in the sample provided. It "succeeds" and creates the feature class I wanted, but it is empty ...
1
vote
2answers
136 views

Arcpy Creating Multi-page Table/PDF with Reportlab/PyPDF2

I am writing a scrip to batch automate hundreds of map PDF's. Along with the PDF's I generate a unique Table/reportlist for each map from the 'receptors' that fall within each boundary of the map. The ...
1
vote
1answer
36 views

Conversion of Sirgas2000 projection system to wgs84

I am having a bunch of .csv files containing "x" and "y" of some locations (to be specific, Brazil and the coordinate system is SIRGAS 2000). I want to convert them into wgs84 i.e, lat/long using ...
2
votes
2answers
538 views

AttributeError: 'NoneType' object has no attribute 'split' from arcmap only

I'm running a simple python script from arcmap that sends an html post and processes the response. This script runs just fine from pythonwin but for some reason I receive the following error when ...
2
votes
1answer
44 views

How to select certain fields from a feature class to create a new feature class

I am stuck on how to create multiple features classes from one feature class using a select few fields. I have the following attribute table for a shapefile. I would like to select the 'USAF', '...
2
votes
1answer
62 views

Polygon scaling using arcpy

Is it possible to scale each polygon by a numeric value in an attribute table field using arcpy. I have updated the code from some previous excellent work done by Evil Genius import arcpy import ...
2
votes
2answers
120 views

ArcPy Calculate Null Values to Zero in Multiple Fields

I have a table that has Null values and I would like to insert a portion in my script to calculate these Null values to 0 in only a few of my columns in my table. Here is my script so far: with ...
2
votes
2answers
39 views

How can I alter the value field in a raster?

I'm using ArcGIS. I have a raster with angles in the value field. But the value field is type long integer. I would like to change it to float. Is that possible? Some more details: I've started with a ...
3
votes
1answer
54 views

Calculating summary statistics and access resulting value in table using ArcPy?

With arcpy, I want to calculate the mean value of a specific field in a shapefile and print the resulting value for the user. I use the Summary Statistics tool and it works, but the resulting value ...
0
votes
1answer
39 views

Clip tool gives ERROR 000732?

I am trying to execute clip tool in python on arcGIS 10. But it gives error: ERROR 000732: Output Extent: Dataset D:/Work/Map/SampleGdb/Sample_02.gdb/Sample_02.gdb/Subcatchments does not ...
0
votes
1answer
76 views

Creating polyline using mouse clicks with Python Addin tool?

Can somebody tell me how to create a line geometry by mouse click with python addin? I am using below code in python addin tool. class ToolClass8(object): """Implementation for Testmsg_addin.tool (...
0
votes
1answer
41 views

SelectByAttribute is not working (ArcGIS, Arcpy. Python script) -

My script is below. I use to file from filegeodatabase to select all of rows (in a loop, one by one) to create a simple map and export it to jpeg. For some reason, once I updated my script to run ...
0
votes
1answer
42 views

Total Count in Attribute Table

I am trying to add all of the counts in an attribute table, to get the total number of counts (I am trying to figure out the percent aspect for a polygon). My code works fine, I am not getting any ...
3
votes
1answer
56 views

Getting full path for feature classes in dataset using ArcPy?

I have a python script that I am writing to create a copy of a database and then clean it up (basically remove any empty items). Everything is working with the exception of feature classes that are ...
2
votes
3answers
68 views

Search directory of shp files for an empty attribute value

I'm trying to search through a directory of shp files for any shp file with a specific field that is empty. Here is my code as of right now. import arcpy from arcpy import env env.workspace = r'C:\...
0
votes
1answer
52 views

arcpy custom script tool to find and replace floats and ints?

I created a custom script tool that can find and replace text. See the image link for what my tool interface looks like too, and I'll point out the find and replace fields are both set to string in ...
5
votes
1answer
75 views

Creating ArcPy scripting tool with dropdown box for sql expression choice

I am creating an ArcPy scripting tool to allow users to select a feature from a feature layer and then zoom to that selection. I have successfully created this tool and now am working on creating the ...
1
vote
0answers
151 views

Python with ArcGIS: import scikit-learn fails (bad numpy.dtype)

I am trying to install scikit-learn 0.17.1 (current) into my Python 2.7.3 that accompanies my ArcGIS 10.2. The installation through easy_install goes through smoothly, but I get the following error on ...
3
votes
2answers
34 views

ArcGIS 10.2 Model Builder If no selection is made, then do not append to empty feature class

I'm creating a model in model builder that is very easy to construct and understand. However, I ran into a slight problem. The logic of the model is that it will take user selected features from a ...
0
votes
0answers
16 views

Create Polyline line by Mouseclick using python addin [duplicate]

I am trying to create polyline by using python Addin tool. but could not understand properly how it works. the Python Addin Tool is not much documented in Esri Website. so i am not able to understand ...
1
vote
1answer
31 views

Operations lists arcpy

I have a list with 4 raster files and another list with 4 vector files. I want to relate each of the raster file 1 file list 1 vector list. I try to do and I related file 1 raster to vector file 1,2,3,...
0
votes
1answer
86 views

Using variable in Arcpy select analysis

I need to use arcpy.Select_analysis() in my arcpy script, but I have problem with using variables. When I use hard coded values in where_clause, it is working. where_clause = '"Area" > 20' arcpy....
1
vote
2answers
106 views

How to keep a parameter blank in a script tool?

I've developed a sort of find and replace script tool that functions. But I'm not able to figure out how to find empty cells in fields and replace them.For the "Find" parameter, I have tried entering "...
0
votes
1answer
55 views

Populating the drop down of GPValueTable

In a Python Toolbox the user has to select a city from a list of 50 world cities. More than one city can be selected. The best UI control for that would be Autocomplete / Autosuggest, but since this ...
0
votes
1answer
55 views

Writing Python Script to Iterate through several geodatabases in folder and copy feature classes to single geodatabase?

I need to go through multi GDB in 1 folder and copy all feature classes from each GDB and copy them into the single GDB. I create a piece of python code that can go through each different GDB and also ...
5
votes
1answer
108 views

Using feature class name as name in output (buffer_analysis)

I'm pretty new in python, and I'm trying to iterate through a list of feature classes, and perform a buffer on each feature class. So I've done this: import arcpy from arcpy import env env....
3
votes
2answers
507 views

ImportError: No module named pandas in Python window of ArcMap after installing with pip?

I have downloaded pandas from this site then unzipped it in site-packages and run python setup.py for installing pandas. Pandas was installed successfully. After that I tried importing pandas into ...
0
votes
0answers
18 views

Fuzzy membership output different in arcpy and desktop

I am running a fuzzy membership on multiple rasters with the following code: arcpy.env.workspace=r'F:\Sheyenne\Normalized_Indices\NDII' NDIIout='F:\Sheyenne\Normalized_Indices\Fuzzy_Membership\NDII\\'...
2
votes
1answer
29 views

Problems with insert cursor

I am counting the number of features in a geodabase. I am triying to insert the feature name and the count inside a dbf table which has only two fields: "FEAT" (Text field which containts the feature ...
0
votes
1answer
63 views

Creating Replica using ArcPY with check_out type

I am running the following command in python and it works fine no error but it does not generate a mdb in output path folder and give me the input path result as output child source arcpy....
2
votes
1answer
78 views

Developing find and replace script tool?

I'm being tasked for developing a script tool that can find ultimately needs to be able to find any string and replace it with another string in an attribute table. Below is what I have so far, and it ...
0
votes
1answer
38 views

Get filepath then append a feature class to that feature class Python Addins

I'm trying to use tool bar buttons (python addins) to add a filepath and then append another feature class (known to have identical schema, no test needed) to that filepath. My syntax isn't working ...
2
votes
2answers
82 views

Spell checking for ArcGIS Desktop?

Looking for a free spell check for ArcGIS 10.1. Someone wrote a VBA for pre-10 here. Is there a way to implement it in 10.1, perhaps writing it in python instead of VBA?
4
votes
1answer
118 views

Creating arrays and polylines from dictionary using ArcPy?

I have created a dictionary out of a csv values from an excel spreadsheet. I'm trying to use the keys and values in the dictionary to create arrays (one per 'Rhino') that I can use to create polylines....
3
votes
1answer
157 views

Not getting correct result from for loop

The for loop below works without error, but the result is get in the table of my database is wrong. Its as if the for loop skips right over the first 3 if and elif statements and goes to the else. The ...
0
votes
0answers
32 views

Arcpy Select by Location out of memory

I have multiple lines (lines) intersecting points (centroids) from which I want to extract landuse values and then write the extracted values to the lines as 'land1' and 'land2' values. I need to ...