Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I developed one tool in arcgis using python code, in the process i used Describe(feature class) function to know the coordinate system of input feature class. I got success while compiling code, But i couldn't get how to set parameters for this function in tool(arcgis 10.0) designing.

I tried parameters as follow

Display  name:input feature class
Data type : coordinate system.
Type   : optional
Direction : input.

My problem is while i'm selecting input feature class, i didn't get coordinate system of that feature class.

Please Suggest..

share|improve this question
up vote 2 down vote accepted

Well you could use code validation to populate the parameter with the coordinate system of the feature class, using something like the following:

def updateParameters(self):
    fc =  self.params[0].value #Change 0 to refer to parameter number of feature class
    if fc: #Check if value was specified
        #Change 1 to refer to parameter number of coordinate system
        self.params[1].value = arcpy.Describe(fc)

Or the easiest way would be to just perform all of this in your actual code, and not worry about populating another parameter.

share|improve this answer

Your Answer


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.