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

Little SQL query help please

I always seem to get hung up on these simple strings. Here again I don’t quite get the syntax for use in SelectLayerByAttribute_management If I use the following with a field named “Name” the query...

View Article


script with the IF statements

Hello. I am a researcher ISPRA (Institute of the Ministry of Environment has several hundred licenses for ArcGIS) and I need urgent help to create a procedure in VBA or Python. The problem is as...

View Article


GetCount returns 0 for features with records

Has anyone experienced this before? First for me. I have three fcs in a gdb, all of which return '0' from arcpy.GetCount when run from the command line (PyScripter). All other fcs from other locations...

View Article

Code review please - script never ends

Not sure how else to say it, but after running the code below, the processing window just flashes continually and the script doesn't ever appear to end. I have to kill ArcMap process to get out of the...

View Article

few questions on bearings?

Does anyone know code (or tools) for getting bearings. slopes and change in direction between straight lines. all as separate tools. so bearing as one tool, slope of a line as another and change in...

View Article


Data driven pages: rotate two data frames

Hi I have a map with two data frames, DFA and DFB. I have used data driven pages with DFA to provide location, scale, and rotation for the data frame. With DFB I have used the data frame properties...

View Article

Efficient method to go from a table view or feature layer to a Pandas DataFrame

I am just starting to use Pandas. I have exported a few geodatabase tables to csv files to load into Pandas DataFrames. I know there has to be a more direct or efficient way to load data from a...

View Article

How to change path of any feature class from one GDB to other GDB using Python

please anybody can help me to change the data source or path of any feature class from one Geo Database to other another Geo database using Python 2.6 Thanx

View Article


feature class to point tool query? creating own

I have to creat a feature class to point tool and trying to create a drop down which only allows the user to choose one, they will be BOTH_ENDS, START, END I'm going through the process on ArcGIS 10.0...

View Article


What is needed to run a Python script as a scheduled task on my ArcSDE server?

What is needed to run a Python script as a scheduled task on a server that currently only has ArcSDE 10 and Python 2.6 installed on it? Since the ArcSDE command "sdelocator" is no longer available...

View Article

extract a variable in netCDF file

Hi, Anyone have a script to extract a variable in NetCDF file? I hope you can help me. thanks Gualberto

View Article

Z Value issue

I'm trying to get the Z value and basing it on points. I've managed to get it working when I have done feature vertices to point and I get a Z value when I select both ends, but can't seem to get a z...

View Article

Using the Data Interoperability tool, Quick Export, from Python

Hi, I'm writing a Python script to work with ArcGIS 9.3.1 and when I try to use the "Quick Export" data interoperability tool in Python, I can only get it to export to the file types that don't require...

View Article


How to pass mxd as argument

I have a simple script that is doing some parsing of the mxd that I pass it. The script works just fine if I hard code the name of the mxd into the script, however I would like to pass the full path of...

View Article

how to calculate latitude and longitude of points using python

System ArcGIS 9.3 Python 2.5 Hello, I have about 100 point shapefiles in a folder. (projection WGS 1984) I would like to get the point latitudes and longitudes. I used to use XTool Pro but it did not...

View Article


Image may be NSFW.
Clik here to view.

Add a row only to empty attribute tables

System ArcGIS 9.3 Python 2.6 Hello Question 1 I have about 100 point shapefiles in a folder. (Let’s call them type A shapefile) All of them have no rows in attribute tables. (as attach...

View Article

add row and input value under "CXXXX"

System ArcGIS 9.3 python 2.6 Hello I am trying to add a row to about 100 point shapefiles in a folder. When adding a row, I also want to key in a string S under the field "CXXXX." Different shapefiles...

View Article


delete rows for tables with over one row

System ArcGIS 9.3 python 2.6 Hello I have two kinds of point shapefiles in a folder. Type A has only one row in the attribute table. Type B has two rows. Please kindly advise if there is any method...

View Article

Working with Numpy Arrays

I have a numpy array like so: Code: import numpy as np np.array([('1', [[0.0, 0.0], [1.0, 0.0], [0.30901699437494745, 0.95105651629515353], [-0.80901699437494734, 0.58778525229247325],...

View Article

few questions on bearings?

Does anyone know code (or tools) for getting bearings. slopes and change in direction between straight lines. all as separate tools. so bearing as one tool, slope of a line as another and change in...

View Article
Browsing all 2485 articles
Browse latest View live