0
votes
2answers
27 views

Export Raster Data to TIFF, BMP, or PNG File Using Python

I am writing a Python script to export a Raster Dataset to a TIFF, BMP, or PNG file, as I would manually by right-clicking on the layer, choosing Data | Export Data, and then make my choices in the ...
1
vote
1answer
33 views

Calculating fields using a list of features

I've written some basic code which creates a new .dbf and adds two fields to it: 1 for today's date, another which should contain the names of shapefiles located in another folder. What I'd like to do ...
0
votes
0answers
20 views

ArcPy select and merge dropping records from table?

I'm working on a python script for ArcGIS using the arcpy module. I have ArcGIS 10.1 and Python 2.7 on Windows 7 machine and using Notepad ++ and IDLE to run it. The script selects specific records ...
0
votes
1answer
35 views

Using a Search Cursor with a list

I'm hoping someone knows the answer to this as I am pretty new to Python. What I'm attempting to do is create a list of .dbf tables using a wildcard which I've managed to do. From there my goal is to ...
0
votes
1answer
60 views

Summing column values in table using arcgisscripting?

I need to create a python script that sums a column's values in a table. Thereafter, the script is supposed to get the percentage of each individual row in that column and populate this percentage ...
2
votes
2answers
47 views

Duplicating polygons in Layer using ArcPy cursors?

I am trying to Duplicate some polygons in the same layer with the same attributes, But it will duplicated them with Null Geometry, i have tried getValue() method, but i got error import arcpy ...
0
votes
1answer
44 views

Updating file geo database table

I have an input csv file that I process using a python script and generate a new output csv file. I then, in the same python script use Table to Table (Conversion) in order to store the data from the ...
0
votes
1answer
46 views

Iterating shapefiles using ModelBuilder or Python?

What tool can I use to run many shapefiles to intersect with a shapefile as a output? It looks like that Iterate tools is use for feature classes or datasets and I don't see any for the shapefile. ...
1
vote
1answer
48 views

Writing multiple file geodatabase tables into csv file with arcpy

I was asking a question about Merging geodatabase previously, (link: Merge from arcpy.ListTables() producing duplicate rows?) and although the script worked, it took more than 9 hours to run when ...
2
votes
1answer
21 views

ArcPy Empty Buffers

I have written an ArcPy script to process a DTM into a point feature class to be used in Landform classification and ranking. It successfully produces what I need most of the time. Randomly the ...
1
vote
1answer
59 views

How to get the name of a subtype field in a feature class in Python?

I have a geodatabase with many feature classes. Some of the feature classes have subtype fields. Their names vary feature class by feature class. I now want to find the names of those subtype fields. ...
1
vote
1answer
51 views

ArcGIS 10.1 arcpy Update Cursor is returning a list instead of a row

I keep getting the following error: Traceback (most recent call last): File "R:\GIS_ScriptsandTools\PullHotParametersLabel.py", line 16, in TitleLine = ""+row.getValue(IDfield)+" ("+ ...
0
votes
3answers
31 views

FeatureClassToFeatureClass_conversion in ArcGis 10.1

I have many > 60 .dwg files I want to convert just the polyline parts of these and have put together a list of python commands using excel to get something like this: However when I try running ...
1
vote
2answers
33 views

Filter by quantity / query in ArcGIS

I have some data stored in a CSV file containing name and date ranges. For example: ID | Name | Start | End | X | Y ------------------------------- 1 | Test | 2014 | 2015` | ... | ... | 2 | ...
1
vote
0answers
14 views

How to add report to layout using Arcpy [duplicate]

I have a script that creates MXDs and layouts dynamically, i need to to add to each data frame in the layout report using arcmap report wizard rather then export to pdf, is it possible ?
1
vote
1answer
33 views

How can I do a definition query on a layer and zoom to it?

I am trying to do definition query to a layer and to zoom to the same layer, but I got an error ("SyntaxError: can't assign to operator") ?? dataFrame = arcpy.mapping.ListDataFrames(mxd)[0] # the ...
0
votes
0answers
23 views

Real-time Feature/Geometry Aggregation in Map Service Layer

Use-Case Provide a map service layer that perform a real-time aggregation of geometry objects grouped on a set of criteria from a normalized data source, labeling the resulting image based on data ...
2
votes
1answer
74 views

How to turn on all fields before appending?

I'm using append on model builder, no test schema type. In order that field will match they need to be at the same order, and visble. How can I turn on all fields of input layer before appending ...
4
votes
2answers
112 views

Using Spatial References with ArcPy after *.prj files no longer installed by ArcGIS 10.1 for Desktop?

I'm writing a python script that uses the CreateFeatureclass_management tool, without a template. One of the required parameters is a spatial reference. I used to be able to point to the system *.prj ...
1
vote
3answers
80 views

Merging many to one data rows in arcpy [duplicate]

The dataset 'left_right_merge' at the bottom of my screen shot shows the dataset that I'm currently working with. The NODE values indicate a single point feature, but is duplicated with many ...
0
votes
1answer
42 views

Add points to shapefile and display over map interactively using Python Add-Ins

I want to add points to a shapefile interactively using pythonaddins and display them over map. Points are added to shapefile but not to display. Please suggest how to fix this discrepancy. class ...
1
vote
0answers
42 views

Optimizing arcpy script to batch generate OD cost matrix in road networks

Following the question I asked in this thread, I wrote a python script designed to compute an OD cost matrix given a road network and origins/destinations locations. I am completely new to python, so ...
2
votes
1answer
44 views

Flagging when point feature(s) covered by tables (made as graphics) using ArcPy?

I've set up data driven pages to create a series of maps, but I'm running into a problem which seems like it would be quite common! I've made some tables (as graphics) using ArcPy and the technique ...
2
votes
1answer
98 views

Merge from arcpy.ListTables() producing duplicate rows?

I was trying to manually merge file geodatabase tables and was getting Null values for the output file rows and decided to write a python script to merge the files. Here's my script: import arcpy ...
0
votes
1answer
28 views

Select Layer by Attribute: selection using loops

I'm quite new with python and i'm currently stuck trying to make a loop... I have a shape file of a grid with several fields of different species (more than 150). The values of each record are 0 or 1 ...
3
votes
2answers
78 views

ArcPy Append Ignores Domains

I've been working with the append tool inside arcpy and discovered that, even though I have domains constraining the values of some of my columns, I never receive an error when the domains are ...
1
vote
0answers
63 views

Convert Arcpy results to feature class in ArcMap 10.1

I am using ArcGIS 10.1 and am a newbie in Python. Currently we are executing stored procedure (from sql server) through ArcPy in ArcMap. I want to create feature class from executing following python ...
1
vote
1answer
220 views

How to Properly Loop Through a List With a Cursor?

My team is working on a python script that does various updating tasks to our streets file. A part we are getting stuck on is trying to update a field. Currently we have a field FEDROUTE that is ...
1
vote
1answer
46 views

Merging multiple tables to shape using for loop

I have to join multiple tables to a shapefile using a common field. I want to script this in python (i am using ArcGIS 10.1). Below is the script i am using. My question is As folks might notice, I ...
1
vote
1answer
37 views

Running a python script that will find fields that are not attributed

I have about 30 geodatabases with about 15 feature classes in each database. Is there a way to have a script check the attribute tables to see if they're not attributed? If it could then select the ...
3
votes
1answer
61 views

Python MemoryError when running ArcGIS Python Toolbox tool

I have a Python Toolbox (.pyt) containing a single tool. Part of that tool is the following function, which creates a dictionary from an attribute table, where the keys are the rows' OBJECTIDs and the ...
8
votes
2answers
241 views

ArcGIS 10: Create an event linear layer from a point layer based on directionality

I have a point layer that reflects the speed limits and a line layer of the roads. The location of the speed sign indicates in which direction the speed limit applies. How can I make linear event ...
1
vote
0answers
77 views

Using arcpy.CopyFeatures_management results in a 000210 using a database connection that does not contain saved credentials

Currently have a problem running CopyFeatures_management in ESRI's ArcGIS 10.1 The following shows two Enterprise Geodatabase connection files. One includes the username and password and the other ...
4
votes
1answer
74 views

Most efficient method to join multiple fields in ArcGIS

I have as set of shapefiles with approximately 300000 polygons each, as well as corresponding point shapefiles and tables with approximately the same number of row (equal or less rows than the ...
0
votes
1answer
122 views

Waiting for a python script tool to complete while using pythonaddin button

I have created a pythonaddin toolbar, with a button that executes a python script tool. This tool is in an ArcToolbox which has been stored in the Install folder of the addin. It executes and runs ...
1
vote
1answer
39 views

ArcPy in_memory\ vanishing from ToC

ArcGIS 10.1 - attempting to add a derived raster layer to the ToC. This works in 10.2. In 10.1 I get a screen flash and nothing added. rasterized = r'in_memory\rasterized' ...
3
votes
1answer
102 views

Python script (ArcPy) crashing one machine, but works on others?

I have been woking on a script that will select parcels that are within a particular ArcGIS 10.1 data driven page, create a list out of those parcels, and then populate a text element within my MXD ...
0
votes
1answer
48 views

Determine distance between two lines at multiple locations

We have a number of features that look something like this: I need to measure the distance between the edges of a track (two lines) for all the tracks, and flag locations where the track width ...
2
votes
1answer
83 views

ArcPy Clip Data Frame To Geometry

I have made an ArcPy add-in that assists a user by adding layers from a nominated fGDB to their map based on a nominated extent. I wish to add a button that changes the data frame properties to clip ...
1
vote
1answer
69 views

Backup several SDE database connections

This question stems from my previous question on how to list databases based on SDE. Now I want to copy them and have it written as a function so I can list out each database connection below it so ...
2
votes
2answers
110 views

ListFeature classes in SDE

I have this code: def backSDE(ActiveSDE): arcpy.env.overwriteOutput = True arcpy.env.workspace = ActiveSDE fcs = arcpy.ListFeatureClasses() print fcs #Databases ActiveSDE = ...
0
votes
1answer
44 views

Same field names as given in text file (in a script) [duplicate]

I have a raster (ras) and a text file (T, DA, etc). When I join both then field names are like following: ras.vat:T ras.vat:DA I have to access these fields using SearchCursor for further ...
0
votes
2answers
55 views

Naming your Output feature class?

I am working in a work space in python on ArcGIS 10.1 on a remote desktop. Here is my code import arcpy from arcpy import env env.workspace = "E:\Example" PST = arcpy.ListFeatureClasses ("", ...
0
votes
1answer
38 views

Adding Rules to Topology with Arcpy: getting ERROR 000714

I want to make a very basic python script, however I keep running into error 000714 (general/unknown script error). The topology is created, the features are added to it, however the rule is not. ...
0
votes
0answers
41 views

Importing hours and minutes into a date field, next to the date

I'm trying to clean up some data and make sure dates go into the date field. DateShot is my newly created date field and Date_Shot is my text field I want to convert. It will just return the date ...
2
votes
2answers
80 views

Performing an Arcpy code using Python on all shapefiles in a folder or geodatabase?

I have a geodatabase with many polyline feature classes all with different names. I would like to write a code in python ArcGIS 10.1 to use a geoprossing tool on all classes in the gdb. How would this ...
2
votes
1answer
53 views

How to use the List field function for a toolbox script?

i´m trying to write a simple script for a toolbox, similar to the Addfield_datamanagement toolbox. The script adds a new field to a table of a feature class or a shapefile with attribute tables. So ...
-1
votes
2answers
67 views

How to use raw_input() with while-loop? [closed]

my task is to execute multiple buffers with the list-loop! import arcpy arcpy.env.overwriteOutput = 1 arcpy.env.workspace="C:\\salzburg.gdb" sbgRivers="sbg_rivers" buff_name=raw_input("Please ...
-2
votes
3answers
122 views

Use VB to calculate an area of a shape

I'm using Arcmap 10.1, running python 2.7 on a Windows 8.1 machine. I have a script that uses the arcpy.CalculateField_management function to calculate the area of a shape, however, for some reason ...
1
vote
0answers
60 views

Alternatives for ArcGIS Data Reviewer? [closed]

What are some QA/QC tools that act similar to the Data Reviewer to point out and save mistakes? I want to know all alternatives, but mostly would want to run them in 10.1 and or using arcpy. I want ...