Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When adding a python script to a toolbox in Arcgis one of the steps is to set parameters and specify what Data Type each requires. The list is long, perhaps a hundred, and many are not immediately understandable. For example I just tried to require data type "Database Connections", but when I run the tool and select "Database Connections\Connection to foobar.sde" I'm told the item is invalid. Aww nuts.

Now I could just ask "what is the "Database Connection" data type?" here on GIS.se and get on with my work, but then tomorrow I'll have to do it again for Disk Connection and Decimate. (might do wonders for my reputation level though...) So lets just get 'em all in one go, I hope:

Where do I find the definitions of all the Data Types available for tool parameters?

enter image description here

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Here you go: http://help.arcgis.com/en/arcgisdesktop/10.0/help/002t/pdf/Geoprocessing_data_types.pdf

From: Data types for geoprocessing tool parameters

To answer your specific question, I belive you would want to use a Workspace parameter which will let you specify an SDE connection file, then use filters to limit the workspace type (see screenshots in comment below).

share|improve this answer
    
Is this one way you could update sde with a gp service. I couldn't figure out how to do that so I just wrote to a shapefile. Check gis.stackexchange.com/questions/22516/… –  Justin Apr 18 '12 at 21:12
    
No idea about GP services, sorry. –  blah238 Apr 18 '12 at 23:18
    
thanks! Dunno how I missed that, since I did see that page in my searches; had my no-pdf's blinkers on I suppose. And for nitpicking clarity: the answer to my problem is use Workspace parameter (but that doesn't restrict to sde workspaces, which was the initial goal), and the answer to the specific question is "The Database Connections worktype is The database connection folder in ArcCatalog." –  matt wilkie Apr 19 '12 at 16:23
1  
You can specify a filter for Workspaces: Step 1, Step 2 –  blah238 Apr 19 '12 at 17:07
1  
I converted the pdf to .xlsx and html for easier searching and viewing, stored at minus.com/m_arcgis_gp_datatypes/1l for the moment. –  matt wilkie Apr 19 '12 at 17:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.