7

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

11

See 'Geoprocessing_data_types.pdf' in 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).

  • 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
  • I converted the pdf to html table and a few other possibly useful formats, see github.com/maphew/arcplus/tree/master/docs – matt wilkie Mar 8 '17 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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