1
vote
0answers
109 views

Publishing esri geoprocessing service - upload custom python modules?

I have an esri geoprocessing service which causes problems when publishing to arcgis server. The python scripts behind the service are structured as a custom python module, in a folder with an ...
1
vote
2answers
78 views

How to read arc/info e00 vector files (no binaries) with Python?

I can easily read e00 files with QGIS and it seems as if in older versions of ogr there was driver support for the arc/info e00 file format. Nowadays that seems to be deprecated, as running ogrinfo ...
5
votes
1answer
512 views

Work-around for slow processing times in ArcGIS 9.3 with Spatial Analyst functions

I am batch processing a large amount of distance functions (~50,000) using ArcGIS 9.3. In this version, using spatial analyst functions, it seems to be the case that users cannot parallelize processes ...
2
votes
1answer
205 views

Difficulty converting standalone script to ArcGIS tool

As my title says, I am currently trying to make my (working) standalone script into an ArcGIS tool so I'm not the only person in my office that can use it. It essentially selects all the data within ...
5
votes
2answers
2k views

How do I install ArcGIS 10.1 and use my current Python 2.7.2 install?

I just did a clean OS install and installed ActivePython 2.7.2 I want to use this Python install for use with ArcGIS 10.1 I just installed ArcGIS 10.1 and it did a new Python install. What do I ...
8
votes
3answers
367 views

Is there a way to tell the geodatabase version using Python?

I want to find out if either a file or personal geodatabase is 9.3, 10.0, 10.1, etc Is there a way to do this using Python?
1
vote
1answer
969 views

Python/Arc10- Loop through multiple feature datasets and Intersect Files

I am getting an error with a python script I have created. I have 1 geodatabase with 3 feature datasets. What I would like to do, is loop through 1 feature dataset (NB) to get a list of feature ...
2
votes
2answers
326 views

CopyRows_Management with Python (ArcGIS 10.1)

I get the following error when running a CopyRows_Management with Python (ArcGIS 10.1): ERROR 000732: Input Rows: Dataset \MyConnection.odc\MyTable does not exist or is not supported Here is the ...
1
vote
1answer
148 views

Is there a bug when creating a relationship class with Python using a GlobalID?

I'm trying to create a relationship class with Python using a GlobalID. When I use Python it gives me the error: Failed to execute. Parameters are not valid. ERROR 000800: The value is not a ...
1
vote
1answer
336 views

Can I use arcpy.Exists for domains?

A script I made creates domains within a selected geodatabase. I need it to not create the domains if they already exist because if they do, it gives an error saying invalid domain name. Is there ...
1
vote
1answer
155 views

Why can't I add GlobalIDs to the table and feature classes I created?

I'm creating a script to which make a blank geodatabase with a required dataset, feature classes, tables, subtypes, relationships. I've got everything to work expect for the damn GlobalIDs! I have ...
3
votes
1answer
107 views

Is there any way to speed up the script I wrote?

I have a pretty simple script which gets 2 parameters from the user: 1)Geodatabase location 2)Spatial reference It then creates a dataset with 6 feature classes. It also adds a large amount of ...
2
votes
3answers
1k views

How to measure minimum distance between objects in two layers using arcpy?

I am working on an alien species analysis looking at the spread of a species from the mainland to islands in an archipelago. I am doing the analysis using arcpy and I have succeeded in isolating risk ...
0
votes
1answer
206 views

Python adding grouplayer to muliple maps

I have the following code which is supposed to add a one group layer to each of the maps. In this case the group layer is always the same. Desired output: Map1 = 1 group layer added Map2 = 1 group ...
10
votes
1answer
751 views

How to copy geodatabase on ftp site to local geodatabase using Python?

There is a geodatabase sitting on an ftp site that I would like to download with a Python script. Right now I'm thinking one way to do this is to copy the ftp geodatabase to a geodatabase on my ...
4
votes
1answer
333 views

ogr2ogr when importing from fgdb and use in python

I want import data from my GDB to PostGIS. It works fine on some datasets (all records -data- is imported or nothing is imported) from a gdb but just doesn't import others. I can't find any ...
1
vote
3answers
856 views

How can I edit a file geodatabase without using tools from Esri?

I am looking for a tool (Python library etc.) that would allow me to edit a file geodatabase without ESRI software? It is possible?
2
votes
1answer
108 views

Generate a global view Image of where a Lat-Long location is

I would like to automatically generate an image which highlights a location from a global view. Here is an example of what I would like to achieve: I am debating using python utilities such as ...
7
votes
1answer
947 views

How can I auto-increment output file-names in Toolbox ESRI ArcMap 10

I have a simple tool which outputs a file. I would like the filename to be a number which increments every time the tool is run. How would I go about implementing this using the toolbox in ESRI ...
1
vote
3answers
2k views

Error when creating insert cursor in arcpy

I've written several scripts that copy data from MS Access db into a new, empty ESRI Geodatabase. I've pretty much copied the code and changed it for each table -- the first two scripts have worked ...
1
vote
1answer
379 views

Defining multiple projections inside a file gdb [error 000289 failed to alter spatial reference]

I am importing multiple shapefiles into a filegdb in ArcGIS 10, and using the following code to define the projection of the feature once imported, to the .prj of the original .shp file. Here is my ...
1
vote
1answer
255 views

Arcpy ChangePrivileges_management not working

I was trying to revoke access for a user using Python script, but it does not seem to work. I mean the script runs successfully without any error, but does not what it's intended to... Here're the ...
8
votes
2answers
2k views

Convert an ESRI File GDB Table to Access 2007 ACCDB table programmatically

Does anyone know of a method to convert an ESRI File Geodatabase Table into Access 2007 Table programmatically. I have been trying using the PYODBC library and a series of insert statements but am ...
1
vote
1answer
2k views

Using the arcpy.UpdateCursor to delete rows doesn't delete based on counter

I am trying to delete rows from a shapefile using arcpy.UpdateCursor. The first thing I did was get a unique list of values from the key field "PolyGUID", then I iterate that list doing a ...
2
votes
2answers
2k views

How to I find the nearest line to a point?

I am new to building custom ArcObjects, and am looking for a custom python script for arcgis version 10 that will loop through a point shapefile to find the nearest line segment of a line shapefile ...
6
votes
2answers
554 views

Using Python, Batch Project output won't drop in a feature dataset (ArcGIS 9.3 or 10)

When attempting to batch project in ArcGIS (using either arcpy or arcgisscripting), I cannot get my geoprocessing results to drop into the feature dataset that I specify. The results instead are ...
3
votes
2answers
587 views

Arcpy: print to PDF with Vector shapefiles, text etc

I have a small python script which exports a set of data driven pages to PDF. This works fine, including appending each page to an 'all' pdf. My issue is that it creates rasters of each layer in the ...
3
votes
1answer
150 views

Using ESRI Python's Geoprocessor Via mod_python

I am working on a number of geoprocessing services to be accessed solely by web clients. The traditional method of encapsulating this type of stuff in toolboxes and then publishing the toolbox just ...
4
votes
3answers
669 views

Converting ESRI Web Client JSON to Standard Feature Class With Python Geoprocessor

Is there a function exposed by ESRI's python geoprocessor that converts the JSON format used in the various web clients to a valid feature class. Clearly, the function exists because something is ...
2
votes
1answer
308 views

Enumeration Problem with Eclipse and ArcGis 9.3

i'm recently using Python for my Processing work that I do with ArcGis 9.3. I figured out, that using Eclipse (with PyDev) could be helpfull for debugging purpose. The geoprocessor is starting as ...
0
votes
0answers
480 views

Change from data --> layout view using arcpy? (ArcMap 10)

The opposite, from layout to data, was asked and answered, but I can't figure out how to switch to the layout view from data view using arcpy. Can it be done? Thanks.
4
votes
2answers
1k views

Programmatically alter AliasName for fields defined in layer file (not underlying source)

Is there a way to alter the AliasName on a layer file only, and not the underlying shapefile or feature class? I have a few hundred layers that define joins between hundreds of tables with census data ...
3
votes
1answer
1k views

calculate value using maximum value from different feature class

I'm trying to get the maximum numeric value from one feature class and use that value in an expression to calculate values of a different feature class. fc2.bldg_id = max(fc1.bldg_id)+1 Can this ...
5
votes
5answers
1k views

What Avenue scripts/extensions do you still keep ArcView 3.x around for?

Alternatively, if you've completely moved on, which do you miss the most? Thanks and signed,     Not entirely idly curious. (As a side project, I'm looking into the effort ...
8
votes
5answers
1k views

Will there be a Python API for ArcGIS Server?

It seems like an obvious next step given the big push towards Python in ArcGIS Desktop at 10.0. Are there any limitations of Python compared to javascript, flex, etc that would prevent ESRI from ...
0
votes
0answers
376 views

IronPython + ArcObjects

Is it possible to access ArcObjects with IronPython?