ESRI.ArcGIS.DataManagementTools
DefineProjection Constructor(Object,Object)
See Also  Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright @ ESRI | Careers
ESRI.ArcGIS.DataManagementTools Namespace > DefineProjection Class > DefineProjection Constructor : DefineProjection Constructor(Object,Object)




in_dataset
Dataset or feature class whose projection is to be defined. (In, Required)
coor_system
Valid values are a file with a .prj extension (.prj files shipped with ArcGIS are available at the ArcGIS installation directory in the Coordinate System folder) or a string representation of a coordinate system. This string representation can be generated by adding a coordinate system variable to ModelBuilder, setting the variable's value as desired, then exporting the model to a Python script. The string can then be copied from the Python script. (In, Required)
Constructor that takes all required parameters for geoprocessor execution.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal in_dataset As Object, _
   ByVal coor_system As Object _
)
Visual Basic (Usage)Copy Code
Dim in_dataset As Object
Dim coor_system As Object
 
Dim instance As DefineProjection(in_dataset, coor_system)
C# 
public DefineProjection( 
   object in_dataset,
   object coor_system
)

Parameters

in_dataset
Dataset or feature class whose projection is to be defined. (In, Required)
coor_system
Valid values are a file with a .prj extension (.prj files shipped with ArcGIS are available at the ArcGIS installation directory in the Coordinate System folder) or a string representation of a coordinate system. This string representation can be generated by adding a coordinate system variable to ModelBuilder, setting the variable's value as desired, then exporting the model to a Python script. The string can then be copied from the Python script. (In, Required)

See Also

© 2010 All Rights Reserved.