C# Class ArcMapAddinDistanceAndDirection.Models.FeatureClassUtils

Show file Open project: Esri/distance-direction-addin-dotnet

Public Methods

Method Description
CreateFCOutput ( string outputPath, SaveAsType saveAsType, List graphicsList, ISpatialReference ipSpatialRef ) : IFeatureClass

Creates the output featureclass, either fgdb featureclass or a shapefile

DeleteShapeFile ( string shapeFilePath ) : void
PromptUserWithGxDialog ( int iParentWindow ) : string

Prompts the user to save features Use "this.Handle.ToInt32()" as the parentWindow id

Private Methods

Method Description
CreatePolylineFeatureClass ( IFeatureWorkspace featWorkspace, string name ) : IFeatureClass

Create the polyline feature class

DeleteFeatureClass ( IFeatureWorkspace fWorkspace, string fcName ) : void

Delete a featureclass

DoesFeatureClassExist ( string gdbPath, string fcName ) : bool

Determines if selected feature class already exists

ExportToShapefile ( string fileNamePath, List graphicsList, ISpatialReference ipSpatialRef ) : IFeatureClass

Export graphics to a shapefile

GetAllDatasetNames ( string gdbFilePath ) : List

Retrieves all datasets names from filegdb

Method Details

CreateFCOutput() public method

Creates the output featureclass, either fgdb featureclass or a shapefile
public CreateFCOutput ( string outputPath, SaveAsType saveAsType, List graphicsList, ISpatialReference ipSpatialRef ) : IFeatureClass
outputPath string location of featureclass
saveAsType SaveAsType Type of output selected, either fgdb featureclass or shapefile
graphicsList List List of graphics for selected tab
ipSpatialRef ISpatialReference Spatial Reference being used
return IFeatureClass

DeleteShapeFile() public method

public DeleteShapeFile ( string shapeFilePath ) : void
shapeFilePath string
return void

PromptUserWithGxDialog() public method

Prompts the user to save features Use "this.Handle.ToInt32()" as the parentWindow id
public PromptUserWithGxDialog ( int iParentWindow ) : string
iParentWindow int The window handle of the parent window
return string