AnsweredAssumed Answered

Get parameter as text

Question asked by sadrap2004@gmail.com on Sep 14, 2016
Latest reply on Sep 26, 2016 by sadrap2004@gmail.com

I have 5 parameters in my arcpy script, imported into a toolbox.

 

    inputFC = arcpy.GetParameterAsText(0)

    outputFC = arcpy.GetParameterAsText(1)

    heightfield = arcpy.GetParameterAsText(2) #Must be in the same units as the coordinate system!

    azimuth = math.radians(float(arcpy.GetParameterAsText(3))) #Must be in degrees

    altitude = math.radians(float(arcpy.GetParameterAsText(4))) #Must be in degrees

 

I have building footprints, including height in the attribute, and I want to compute the shadow of the building in 2D.

 

Could anyone tell me which 'Data type' and parameter properties I should define before running the script? Thanks

 

Outcomes