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

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


delete rows with FID=1

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. (FID=0) Type B has two rows.(FID=0 and 1) Please kindly advise...

View Article

Create a file

How to create a file using Python?

View Article


Image may be NSFW.
Clik here to view.

Error with arcpy.mapping.ListLayers - Please Help

Hello, everyone. I have a layer file that points at a FeatureClass. This FeatureClass periodically receives new data. I need to update the layer file so that it recognizes the new data. I'm trying to...

View Article

How get the data matrix in the order of "FID" from the fields of shpfile

I am scripting with python and ArcGIS 10.1. I want to get fied data from the shpfile, what I did are as follows: ssdo = SSDO.SSDataObject(inputFC, templateFC=OutputFC) masterField =...

View Article


Editing relationship class tables in versioned SDE

I am looking for any hints or cautions on creating a python based script to add entries and populate attributes in a 1:n table for a selected set of road features.

View Article

change mxd reference from ArcGISonline Basemap Imagery to newly acquired imagery

How do I capture the source for the ArcGIS online Bing Imagery currently referenced in a series of mxds so as to change them to a newly acquired image source? I thought that maybe this data is cached...

View Article

the .description of the featureclass itself

Why when I add a layer programmatically does the featureclass description visible in ArcCatalog disappear? Code: #Is the .description of the featureclass itself available rather than from the layer...

View Article
Browsing all 2485 articles
Browse latest View live