Quantcast
Channel: Forums - Python
Browsing all 2485 articles
Browse latest View live
↧

One to Many Relate - Make Query Table

I just cannot wrap my head around using the Make Query Table help section work with a python script to relate a set of points to multiple table records. I have a set of points with an ID field and a...

View Article


viewshed ArcMap crashes when adding layer

I'm having a fitful time trying to add the resulting raster to my map doc. The Viewshed always writes an 'autonamed' raster file to my scratch db, i don;t seem to be able to control the name of the...

View Article


Make XY Event Layer not taking .CSV info

I have a project going that requires an input XY to be mapped as a point before buffered. The XY point is in a .csv file and using the Make XY Event Layer results in an empty data set no matter what I...

View Article

Standalone Python script to Read MDB on a Server?

I've got a python script that reads a table in Access and does a Make XY Event Theme, copies data and creates an SDE layer. I'm trying to get it to run in the SQL Server Jobs agent on a schedule. The...

View Article

Add-In: Date Parameter?

So, I am a ArcObjects/COM developer (C#/VB/.NET) struggling to accept the restrictions that are being placed on my new role as a Python Add-In developer!!! As you can probably guess at this point, my...

View Article


Read MXD path

Hy Guys, I'm new in python and I would like to know if there is a way to read the MXD path (e.g C:\temp\arquivo.mxd) ? I have to create a MXD, then open it and add some layers, I tried this: Code:...

View Article

Finding incorrect entries in a specific field (throwing an error!)

Hi all, I am currently writing a script that is looping through all geodatabases under a specific folder. It will find a field called INSTLN_ID, and compare all entries against a list of acceptable...

View Article

get the data type of a field in specific

Hello I need to get the data type of a specific field, example field "NAME", not all fields of the Feature Class as does ListFields or Describe. Thanks:confused:

View Article


arcpy.mapping SelectLayerByLocation_management

Okay, where is the example to select feature by an extent? The select with a point geometry was easily found, but come'on --- the select by rectangle tool is already a default tool! I'd think there'd...

View Article


arcpy.da.UpdateCursor using geometry

I am having a difficult time understanding geometry as a concept accessed by the da module. For example, I created a new feature class using the clip geoprocessing tool. I want to update the "HECTARES"...

View Article

Image may be NSFW.
Clik here to view.

Dissolve not dissolving. Syntax help please

I do not understand why this simple script won't work. I can get it to dissolve in model builder but not from a script that I run from inside the map document. My output results are 4 polygons, just...

View Article

MakeRasterLayer, doesn't

From my previous post having trouble writing a raster from a viewshed. I have the viewshed raster writing correctly to my scratch DB, however as much as i try I can't get MakeRasterLayer_management to...

View Article

listfeatureclasses bugged?

I'm really stumped... simple code here....not working.... import arcpy arcpy.env.workspace = "C:/Users/Ryan/Routes.gdb" shplist = arcpy.ListFeatureClasses() print shplist my Routes.gdb has ~9,000...

View Article


Python error causing Spatial Analyst Failure

Hi Folks I'm getting a problem with both the Spatial Statistics and Spatial Analysis Toolboxes/Tools. Every time I run a tool, I get the following error: Running script CollectEvents... <type...

View Article

use of python call arguments to join with existing layer

Hi, Currently I am passing in, as call arguments, two sets of data Parcel_ID & Parcel_Owner. I want to treat the two sets as two columns and perform a JOIN using the first column. I thought about...

View Article


EsriTimeDelta = a string as GetParameterAsText Please Help, I need this...

I'm trying to set units to a string and then as a parameter. The EsriTimeDelta syntax is EsriTimeDelta (interval, units) When I run the code below in a script tool I keep getting an error message for...

View Article

Yet another bonehead Python question

Couldn't find this by searching the Forums...how does one specify a Feature Dataset when setting an environment in arcpy? As in: env.workspace = r"C:\Projects\VNC.gdb\Feature_Dataset" Just typing...

View Article


Indentation Help

I have a simple script below which iterates through a FC and sets each ObjectID as a Definition Query. When I run the script the only output is of the last feature. I believe that my identation is...

View Article

address validator

Hi, I wish to use addresses in my model. However, i wish to have a way to validate the addresses. I would like that the model should run when a false address is input or if there is a null for address....

View Article

import arcinfo/SetProduct

Hi, I often use: Code: import arcinfo import arcpy in my Python IDE (see http://resources.arcgis.com/en/help/...0000009000000/) to save mucking about switching licenses and firing up new sessions of...

View Article
Browsing all 2485 articles
Browse latest View live