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

Image may be NSFW.
Clik here to view.

Python Scripting Problem

I try to select "Annotation_Class_ID" = "Lot-No-Pid" rows from InTable and delete FeatureID, Zorder,SymbolID..... fields in the same table. for that I tried to write line 70 & 71 in script1. when I...

View Article


select by attrib then copy

dear experts, i want to select some objects from SDE FC inside a FD then copy them into FileGDB (SELECT BY ATTRIBUTE first, then the result of the select is made as input to subsequent process, which...

View Article


Dynamic Microsoft Birds Eye View in XSL Template

This isn't really a python question, but I figured this was probably the best forum to pose the question since it involved code. My End Users wanted to be able to view photos of our locations inside of...

View Article

Update Cursor not working

I have this update cursor. The code executes in LiClipse without an error at all but none of my rows update in SDE. Am I missing a step? Thanks, Jordan Code: # -*- coding: utf-8 -*- #...

View Article

I need to remove the last name of a full name in a field

I have a 'fullName' field in the table for example "ROBINSON GLENN K" I want to remove the last name or "Robinson", basically all characters up to the space. Im guessing this would be better done with...

View Article


Image may be NSFW.
Clik here to view.

Get Currently Selected Layer in ArcMap Table of Contents

I am developing a Python plugin that needs to get information about the currently selected layer in the ArcMap table of contents. I've looked through the arcpy.mapping module for an appropriate...

View Article

Setting workspace Q

I have the following script in a tool it runs great in a personal gdb, but when i trying to change the work space to SQL Server Express databases i get the error RuntimeError: cannot open workspace. I...

View Article

Help determining best approach for processing large raster dataset

I have polygon features, statewide, that I need to collect stats against a raster data. I thought the best practice would be to loop through smaller selections and process in pieces. (HUC polys). I...

View Article


Selecting PLSS data from a table of attributes

Hello, I thought I would post a question I am having to see if Python can work with what I'm trying to accomplish. I know Python at the most basic level so any help would be appreciated. I am trying to...

View Article


Identifying feature 'type' - feature class, raster or table?

Having a major brain fade here! How can I examine an object within a gdb, and determine if it is a FC, raster, or table?

View Article

Geometry object stuff

I have used this stuff before but this afternoon (because of my fading brain) I got stuck again. This page says that using point geometry objects, you can access the X,Y,Z like this:...

View Article

Python Tool Parameter Input

I'm having trouble finding help for getting fields to be input parameters from specified layers. When the script is opened I'd like the user to be able to select a layer to use and then be able to...

View Article

cursor.insert row error

I am trying to run a script as a tool but i get an error on cursor.insertRow(row) and i don't know why. Could someone help me out please? Error. Code: Traceback (most recent call last):   File...

View Article


Python: Compile, Executable, Bundled file

Hello everyone, I am new to the forum, I am using python software of which I have never used before up until recently. I am having issues with Compiling my python programme scripts into a singular...

View Article

I need help with an error message i get while running my script from an addin

I need help with an error message i get while running my script from an ArcGIS python addin I developed. The script loops through only the 1st row and then stops abruptly and gives the error message...

View Article


TableToTable and Excel 000732 Error

Having a weird problem running a TableToTable conversion using a python script. The script has worked without issue for months. This morning I continue to get a 000732 : <value>: Dataset...

View Article

Get ServiceProperties of TableView Object in Python

I am writing a python script to update SDE connections in mxds including standalone tables, but I need to find out the existing service properties so I can correctly update them. Service properties are...

View Article


Copy Row fromr spatial Join featues

I am trying to populate some fields from the spatial join features but i am not getting it to populate. The idea is to create a point feature and have that point feature populated with x,y and...

View Article

Script to populate file name field not working with update to 10.2.1

Hello everyone, I had a script that added a field and populated it with the file name. In this case the files are .DBF. The only thing that has changed is our update to 10.2.1. Here is the code that...

View Article

Scheduled publishing using python script

Looking for a way to schedule a couple of mxds to republish themselves at a certain time every day/week using python or some other way.

View Article
Browsing all 2485 articles
Browse latest View live