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

New and need some major help!!!!!

I have a field (string 150), called RFID. It has a text coded number for RFID tags. I need to chop off the first part of the number, and leave only 8 identifying number at the back. is there a way of...

View Article


Python Code to retrieve data.

Hopefully someone could help me. Watch the video below it explains my problem and you can actually see what i am talking about. I write the problem. I have two attribute tables and they have a field in...

View Article


export .dbf to .csv?

Can someone help a python newbie with code to export .dbf to .csv? arcpy.TableToTable_conversion seems to only work with .dbf and geodatabase. arcpy.CopyRows_management doesn't allow for .csv I'm not...

View Article

Disconnect database connections

Hello All, We have an issue with users leaving their PCs on over night (or longer) with connections to our enterprise database. Unfortunately, this has become quite the issue lately with us running out...

View Article

Image may be NSFW.
Clik here to view.

Subset Selection in Python Add-in tool

Can anybody tell me why the second combo box (subset selection) does not become enabled in python add-in? Here is a picture and code... Attachment 21258 Code: import arcpy import pythonaddins #Clear...

View Article


Issue Returning Unicode in Python Function

Hey everyone, I'm trying to encode some unicode in a label expression using the python parser and defining a function. I'm geting a weird unicode value being returned and I can't figure out why. In the...

View Article

Import functions in python Add-In logic script

I am running into an error. I have a set of functions which I want to import in the python Add-In script at the time of execution, but when I built Add-In with "import stats" line then tools are...

View Article

Image may be NSFW.
Clik here to view.

Select data from a NA Route Layer

Hi, I've created a NA gp model using Model Builder. Now I'm trying to translate the model into python in order to make some optimisations. The current model takes about 6 seconds to be executed. 1. Am...

View Article


Image may be NSFW.
Clik here to view.

python script for using values from one table to add to another

Hi there, I have got question about how to write a script to grab information from one attribute table and add them to another one. to be more specific,, there are two layers, a point layer with start...

View Article


Finding an address using Python

I'm getting back into Python coding and couldn't find any examples of this. I basically want to write a script that displays an input box where the user will type in an address. I want the address to...

View Article

Select by Rectangle codes problem

Hi experts I tried to create a function for my Tkinter button 1 by which to be able to Select Features from a layer of my current map. Something is missing in my codes. They don't work. What do I need...

View Article

Editing Example Python Scripts for Beginners

Hi, I'm a student, I haven't used Python before but am currently working through getting myself up to date on it, I came across a sample python script on the Arc10 Help website that I would like to...

View Article

Refresh .pyt files

I am running a .pyt file. I edit it, and then when I re-run the script in ARC: It acts as if I have not modified the source code and runs the same errors. It even works if I delete the source code. How...

View Article


Image may be NSFW.
Clik here to view.

ArcGIS10.1:Using Access accdb table to do MakeXYEventLayer-Error732. Why?

Hi all, In my Access 2007, I created the following accdb file "APG10pointsMMRP.accdb" in my C:\Temp folder: file_id Pt_ID X Y Z sample_id Boring 5 BH1 -76.301725 39.392986 0.1 1 DH-3 6 BH-2 -76.300981...

View Article

How to display an imagery in a python GUI?

HI all, I wanted to use python to develop a GUI which is able to display an aerial photo (tiff) or an imagery service and read coordinates from the spatial data. Can anybody tell me where I should get...

View Article


finding the centroid between two points

Hi, I have a very large data set. Each row has a lat/long for a start point, and a lat/long for an end point. I am looking for the easiest way to locate the centroid between these two points and...

View Article

finding the centroid between two points

Hi, I have a very large data set that contains two sets of Lat/long. One set of lat/long is for the start point and the other for the end point of a particular event. What I need to do is find the...

View Article


Bug with "Database Connection" in Python using 10.1

I just installed 10.1 on my PC. Now when I run my Python script it no longer recognizes any connection coded like "Database Connection\Connection to ...". These connections work in ArcMap and...

View Article

Geodatabase as workspace in Python

I want to create a geodatabase as workspace using python. It woks if the Geodatabase is called data.gdb. But if I change the name of the geodatabase, the FC are stored as shapefile in the external...

View Article

Python 3.2 is already installed on my computer but ArcGIS wants version 2.7

Hey there, while trying to use the "Raster Calculator", I got the error message that Python 2.7 is not installed. That is right, as while installing ArcGIS I decided not to install PYthon 2.7 as I...

View Article
Browsing all 2485 articles
Browse latest View live