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.

I'm trying to figure out which parameter data type is used in, for example, the Integrate geoprocessing tool.

It looks like this:

enter image description here

I'd like to use it in a geoprocessing tool I'm making, but can't figure out which data type it is.

Thanks for any help!

share|improve this question
    
It's a pair like "FeatureClass,rank;FeatureClass2,rank2" the best way to tell is put it into a model with some sample values then export to a python script that way you can tell if it's spaces, commas, python list or semi colons.. parameter pairs aren't 100% consistent. –  Michael Miles-Stimson Jul 31 at 0:54
    
I know it's a pair, but can I get something that looks like that in a tool I create? I don't know if there is a data type in the parameter list I can use to get that same box in my tool. –  ian Jul 31 at 0:55
1  
Now that is a good question. I've never tried. –  Michael Miles-Stimson Jul 31 at 0:56
    
What about GPValueTable, there's an example here resources.arcgis.com/en/help/main/10.1/index.html#/… showing what you're after. Yes, it's a long list and some of the values aren't very descriptive. Mostly I use the same dozen types. –  Michael Miles-Stimson Jul 31 at 1:01
    
Interesting, that is definitely it. Thanks! Apparently, that data type can only be used in a Python toolbox, so I guess this will be my first run with that. If you'll add the answer I'll accept it. –  ian Jul 31 at 1:10

1 Answer 1

up vote 3 down vote accepted

In the looong list of types there is GPValueTable which has an example here:

enter image description here

def getParameterInfo(self):
    param0 = arcpy.Parameter(
        displayName='Input Features',
        name='in_features',
        datatype='GPValueTable',
        parameterType='Required',
        direction='Input')

    param0.columns = [['Feature Layer', 'Features'], ['Long', 'Ranks']]
share|improve this answer
    
Right under my nose, thanks again. –  ian Jul 31 at 1:20

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.