// This method will create and return a function name object based upon the input name.
        public IGPName GetFunctionName(string Name)
        {
            IGPName gpName = new GPFunctionNameClass();

            switch (Name)
            {
            case ("CalculateArea"):
                return((IGPName)CreateGPFunctionNames(0));
            }
            return(null);
        }
Esempio n. 2
0
        // This method will create and return a function name object based upon the input name.
        public IGPName GetFunctionName(string Name)
        {
            IGPName gpName = new GPFunctionNameClass();

            switch (Name)
            {
            case ("VoronoiFromLines"):
                return((IGPName)CreateGPFunctionNames(0));
            }
            return(null);
        }
        // Utility Function added to create the function names.
        private IGPFunctionName CreateGPFunctionName(string sName)
        {
            GPFunctionNameClass pName = new GPFunctionNameClass();

            pName.Category = WmauFunctionFactory.wmxUtilityFunctions[sName].DisplayToolset;
            pName.Factory  = (IGPFunctionFactory)this;

            pName.Description = string.Empty;
            pName.DisplayName = WmauFunctionFactory.wmxUtilityFunctions[sName].DisplayName;
            pName.Name        = sName;

            return(pName);
        }
Esempio n. 4
0
        private IGPFunctionName makeName(string name,
                                         string description,
                                         string dispname)
        {
            IGPFunctionName nm = new GPFunctionNameClass();
            IGPName         n  = (IGPName)nm;

            n.Category    = this.Name;
            n.Name        = name;
            n.Description = description;
            n.DisplayName = dispname;
            n.Factory     = this;
            return(nm);
        }
        public IGPName GetFunctionName(string name)
        {
            IGPFunctionFactory functionFactory = new ProcessVendorDataGPFunctionFactory();
            IGPFunctionName    functionName    = new GPFunctionNameClass();

            IGPName gpName;

            switch (name)
            {
            case "ProcessMultiNetData":
                gpName             = functionName as IGPName;
                gpName.Name        = name;
                gpName.Category    = "Street Data Processing";
                gpName.Description = "This tool reads in Tele Atlas® MultiNet® data and Tele Atlas Speed Profiles® data (if provided) and creates a file geodatabase with a network dataset that can be analyzed with ArcGIS Network Analyst. The tool first creates the feature classes and tables needed for the network dataset, then creates and builds the network dataset.";
                gpName.DisplayName = "Process MultiNet® Street Data";
                gpName.Factory     = functionFactory;
                return(gpName);

            case "ProcessMultiNetTimeZones":
                gpName             = functionName as IGPName;
                gpName.Name        = name;
                gpName.Category    = "Street Data Processing";
                gpName.Description = "This tool reads in Tele Atlas® MultiNet® data and creates a file geodatabase with a polygon feature class of the time zones. If the Network Geometry (NW) feature class is provided, then the output file geodatabase will also contain a Streets feature class and a TimeZones table for use in creating a network dataset with time zone information by using the ProcessMultiNetData tool.";
                gpName.DisplayName = "Process MultiNet® Time Zone Data";
                gpName.Factory     = functionFactory;
                return(gpName);

            case "ProcessNavStreetsData":
                gpName             = functionName as IGPName;
                gpName.Name        = name;
                gpName.Category    = "Street Data Processing";
                gpName.Description = "This tool reads in NAVTEQ™ NAVSTREETS™ data and NAVTEQ Traffic Patterns™ data (if provided) and creates a file geodatabase with a network dataset that can be analyzed with ArcGIS Network Analyst. The tool first creates the feature classes and tables needed for the network dataset, then creates and builds the network dataset.";
                gpName.DisplayName = "Process NAVSTREETS™ Street Data";
                gpName.Factory     = functionFactory;
                return(gpName);

            case "ProcessNavStreetsTimeZones":
                gpName             = functionName as IGPName;
                gpName.Name        = name;
                gpName.Category    = "Street Data Processing";
                gpName.Description = "This tool reads in NAVTEQ™ NAVSTREETS™ data and creates a file geodatabase with a polygon feature class of the time zones. If the Streets feature class is provided, then the output file geodatabase will also contain a Streets feature class and a TimeZones table for use in creating a network dataset with time zone information by using the ProcessNavStreetsData tool.";
                gpName.DisplayName = "Process NAVSTREETS™ Time Zone Data";
                gpName.Factory     = functionFactory;
                return(gpName);
            }

            return(null);
        }
Esempio n. 6
0
        /// <summary>
        ///     Gets the name of the function.
        /// </summary>
        /// <param name="function">The function.</param>
        /// <returns></returns>
        protected virtual IGPFunctionName GetFunctionName(IGPFunction2 function)
        {
            IGPFunctionName functionName = new GPFunctionNameClass();

            functionName.MinimumProduct = esriProductCode.esriProductCodeBasic;
            functionName.HelpFile       = function.HelpFile;
            functionName.HelpContext    = function.HelpContext;

            IGPName name = (IGPName)functionName;

            name.Name        = function.Name;
            name.Description = function.DisplayName;
            name.DisplayName = function.DisplayName;
            name.Factory     = this;

            return(functionName);
        }
Esempio n. 7
0
        // Utility Function added to create the function names.
        private IGPFunctionName CreateGPFunctionNames(long index)
        {
            IGPFunctionName functionName = new GPFunctionNameClass();

            functionName.MinimumProduct = esriProductCode.esriProductCodeAdvanced;
            IGPName name;

            switch (index)
            {
            case (0):
                name             = (IGPName)functionName;
                name.Category    = "VoronoiFromLines";
                name.Description = "Create Voronoi From Lines";
                name.DisplayName = "Voronoi From Lines";
                name.Name        = "VoronoiFromLines";
                name.Factory     = (IGPFunctionFactory)this;
                break;
            }

            return(functionName);
        }
Esempio n. 8
0
        // Utility Function added to create the function names.
        private IGPFunctionName CreateGPFunctionNames(long index)
        {
            IGPFunctionName functionName = new GPFunctionNameClass();

            functionName.MinimumProduct = esriProductCode.esriProductCodeProfessional;
            IGPName name;

            switch (index)
            {
            case (0):
                name             = (IGPName)functionName;
                name.Category    = "Geoprocessing";
                name.Description = "Create Clipped Thiessen Polygons.";
                name.DisplayName = "Thiessen Polygons";
                name.Name        = "Thiessen";
                name.Factory     = (IGPFunctionFactory)this;
                break;
            }

            return(functionName);
        }
        public ESRI.ArcGIS.Geodatabase.IGPName GetFunctionName(string Name)
        {
            IGPName toolGPName = new GPFunctionNameClass() as IGPName;
            toolGPName.Factory = (IGPFunctionFactory)this;
            toolGPName.Category = m_Category;

            switch (Name)
            {
                case m_DownloadDataName:
                    toolGPName.Name = m_DownloadDataName;
                    toolGPName.DisplayName = m_DownloadDataDisplayName;
                    toolGPName.Category = m_DownloadDataCategory;
                    toolGPName.Description = m_DownloadDataDescription;
                    break;
                case m_UploadDataName:
                    toolGPName.Name = m_UploadDataName;
                    toolGPName.DisplayName = m_UploadDataDisplayName;
                    toolGPName.Category = m_UploadDataCategory;
                    toolGPName.Description = m_UploadDataDescription;
                    break;
                case m_AttributeSelectorName:
                    toolGPName.Name = m_AttributeSelectorName;
                    toolGPName.DisplayName = m_AttributeSelectorDisplayName;
                    toolGPName.Category = m_DataManagementCategory;
                    toolGPName.Description = m_AttributeSelectorDescription;
                    break;
                //case m_FeatureSymbolizerName:
                //    toolGPName.Name = m_FeatureSymbolizerName;
                //    toolGPName.DisplayName = m_FeatureSymbolizerDisplayName;
                //    toolGPName.Category = m_FeatureSymbolizerCategory;
                //    toolGPName.Description = m_FeatureSymbolizerDescription;
                //    break;
                case m_AddExtensionName:
                    toolGPName.Name = m_AddExtensionName;
                    toolGPName.DisplayName = m_AddExtensionDisplayName;
                    toolGPName.Category = m_DataManagementCategory;
                    toolGPName.Description = m_AddExtensionDescription;
                    break;
                case m_RemoveExtensionName:
                    toolGPName.Name = m_RemoveExtensionName;
                    toolGPName.DisplayName = m_RemoveExtensionDisplayName;
                    toolGPName.Category = m_RemoveExtensionCategory;
                    toolGPName.Description = m_RemoveExtensionDescription;
                    break;;
                case m_FileLoaderName:
                    toolGPName.Name = m_FileLoaderName;
                    toolGPName.DisplayName = m_FileLoaderDisplayName;
                    toolGPName.Category = m_FileLoaderCategory;
                    toolGPName.Description = m_FileLoaderDescription;
                    break;
                case m_CombineLayersName:
                    toolGPName.Name = m_CombineLayersName;
                    toolGPName.DisplayName = m_CombineLayersDisplayName;
                    toolGPName.Category = m_DataManagementCategory;
                    toolGPName.Description = m_CombineLayersDescription;
                    break;
                case m_CombineAttributesName:
                    toolGPName.Name = m_CombineAttributesName;
                    toolGPName.DisplayName = m_CombineAttributesDisplayName;
                    toolGPName.Category = m_DataManagementCategory;
                    toolGPName.Description = m_CombineAttributesDescription;
                    break;
                case m_CopyLayerExtensionName:
                    toolGPName.Name = m_CopyLayerExtensionName;
                    toolGPName.DisplayName = m_CopyLayerExtensionDisplayName;
                    toolGPName.Category = m_DataManagementCategory;
                    toolGPName.Description = m_CopyLayerExtensionDescription;
                    break;
                case m_DiffLoaderName:
                    toolGPName.Name = m_DiffLoaderName;
                    toolGPName.DisplayName = m_DiffLoaderDisplayName;
                    toolGPName.Category = m_DiffLoaderCategory;
                    toolGPName.Description = m_DiffLoaderDescription;
                    break;
                case m_Export2OSMName:
                    toolGPName.Name = m_Export2OSMName;
                    toolGPName.DisplayName = m_Export2OSMDisplayName;
                    toolGPName.Category = m_Export2OSMCategory;
                    toolGPName.Description = m_Export2OSMDescription;
                    break;
                case m_FeatureComparisonName:
                    toolGPName.Name = m_FeatureComparisonName;
                    toolGPName.DisplayName = m_FeatureComparisonDisplayName;
                    toolGPName.Category = m_FeatureComparisonCategory;
                    toolGPName.Description = m_FeatureComparisonDescription;
                    break;
                case m_CreateNetworkDatasetName:
                    toolGPName.Name = m_CreateNetworkDatasetName;
                    toolGPName.DisplayName = m_CreateNetworkDatasetDisplayName;
                    toolGPName.Category = m_CreateNetworkDatasetCategory;
                    toolGPName.Description = m_CreateNetworkDatasetDescription;
                    break;
                case m_MultiLoaderName:
                    toolGPName.Name = m_MultiLoaderName;
                    toolGPName.DisplayName = m_MultiLoaderDisplayName;
                    toolGPName.Category = m_MultiLoaderCategory;
                    toolGPName.Description = m_MultiLoaderDescription;
                    break;
                case m_NodeLoaderName:
                    toolGPName.Name = m_NodeLoaderName;
                    toolGPName.DisplayName = m_NodeLoaderDisplayName;
                    toolGPName.Category = m_NodeLoaderCategory;
                    toolGPName.Description = m_NodeLoaderDescription;
                    break;
                case m_WayLoaderName:
                    toolGPName.Name = m_WayLoaderName;
                    toolGPName.DisplayName = m_WayLoaderDisplayName;
                    toolGPName.Category = m_WayLoaderCategory;
                    toolGPName.Description = m_WayLoaderDescription;
                    break;
                case m_RelationLoaderName:
                    toolGPName.Name = m_RelationLoaderName;
                    toolGPName.DisplayName = m_RelationLoaderDisplayName;
                    toolGPName.Category = m_RelationLoaderCategory;
                    toolGPName.Description = m_RelationLoaderDescription;
                    break;
                default:
                    return null;
            }

            return toolGPName;
        }
        public IGPName GetFunctionName(string name)
        {
            IGPFunctionFactory functionFactory = new ProcessVendorDataGPFunctionFactory();
            IGPFunctionName functionName = new GPFunctionNameClass();

            IGPName gpName;

            switch (name)
            {
                case "ProcessMultiNetData":
                    gpName = functionName as IGPName;
                    gpName.Name = name;
                    gpName.Category = "Street Data Processing";
                    gpName.Description = "This tool reads in Tele Atlas® MultiNet® data and Tele Atlas Speed Profiles® data (if provided) and creates a file geodatabase with a network dataset that can be analyzed with ArcGIS Network Analyst. The tool first creates the feature classes and tables needed for the network dataset, then creates and builds the network dataset.";
                    gpName.DisplayName = "Process MultiNet® Street Data";
                    gpName.Factory = functionFactory;
                    return gpName;
                case "ProcessMultiNetTimeZones":
                    gpName = functionName as IGPName;
                    gpName.Name = name;
                    gpName.Category = "Street Data Processing";
                    gpName.Description = "This tool reads in Tele Atlas® MultiNet® data and creates a file geodatabase with a polygon feature class of the time zones. If the Network Geometry (NW) feature class is provided, then the output file geodatabase will also contain a Streets feature class and a TimeZones table for use in creating a network dataset with time zone information by using the ProcessMultiNetData tool.";
                    gpName.DisplayName = "Process MultiNet® Time Zone Data";
                    gpName.Factory = functionFactory;
                    return gpName;
                case "ProcessNavStreetsData":
                    gpName = functionName as IGPName;
                    gpName.Name = name;
                    gpName.Category = "Street Data Processing";
                    gpName.Description = "This tool reads in NAVTEQ™ NAVSTREETS™ data and NAVTEQ Traffic Patterns™ data (if provided) and creates a file geodatabase with a network dataset that can be analyzed with ArcGIS Network Analyst. The tool first creates the feature classes and tables needed for the network dataset, then creates and builds the network dataset.";
                    gpName.DisplayName = "Process NAVSTREETS™ Street Data";
                    gpName.Factory = functionFactory;
                    return gpName;
                case "ProcessNavStreetsTimeZones":
                    gpName = functionName as IGPName;
                    gpName.Name = name;
                    gpName.Category = "Street Data Processing";
                    gpName.Description = "This tool reads in NAVTEQ™ NAVSTREETS™ data and creates a file geodatabase with a polygon feature class of the time zones. If the Streets feature class is provided, then the output file geodatabase will also contain a Streets feature class and a TimeZones table for use in creating a network dataset with time zone information by using the ProcessNavStreetsData tool.";
                    gpName.DisplayName = "Process NAVSTREETS™ Time Zone Data";
                    gpName.Factory = functionFactory;
                    return gpName;
            }

            return null;
        }
        // This method will create and return a function name object based upon the input name.
        public IGPName GetFunctionName(string Name)
        {
            IGPName gpName = new GPFunctionNameClass();

            switch (Name)
            {
                case ("CalculateArea"):
                    return (IGPName)CreateGPFunctionNames(0);
                   
            }
            return null;
        }
        // Utility Function added to create the function names.
        private IGPFunctionName CreateGPFunctionNames(long index)
        {
            IGPFunctionName functionName = new GPFunctionNameClass();
            functionName.MinimumProduct = esriProductCode.esriProductCodeAdvanced;
            IGPName name;

            switch (index)
            {
                case (0):
                    name = (IGPName)functionName;
                    name.Category = "AreaCalculation";
                    name.Description = "Calculate Area for FeatureClass";
                    name.DisplayName = "Calculate Area";
                    name.Name = "CalculateArea";                
                    name.Factory = (IGPFunctionFactory)this;
                    break;
            }

            return functionName;
        }
        public ESRI.ArcGIS.Geodatabase.IGPName GetFunctionName(string Name)
        {
            IGPName toolGPName = new GPFunctionNameClass() as IGPName;

            toolGPName.Factory  = (IGPFunctionFactory)this;
            toolGPName.Category = m_Category;

            switch (Name)
            {
            case m_DownloadDataName:
                toolGPName.Name        = m_DownloadDataName;
                toolGPName.DisplayName = m_DownloadDataDisplayName;
                toolGPName.Category    = m_DownloadDataCategory;
                toolGPName.Description = m_DownloadDataDescription;
                break;

            case m_UploadDataName:
                toolGPName.Name        = m_UploadDataName;
                toolGPName.DisplayName = m_UploadDataDisplayName;
                toolGPName.Category    = m_UploadDataCategory;
                toolGPName.Description = m_UploadDataDescription;
                break;

            case m_AttributeSelectorName:
                toolGPName.Name        = m_AttributeSelectorName;
                toolGPName.DisplayName = m_AttributeSelectorDisplayName;
                toolGPName.Category    = m_DataManagementCategory;
                toolGPName.Description = m_AttributeSelectorDescription;
                break;

            //case m_FeatureSymbolizerName:
            //    toolGPName.Name = m_FeatureSymbolizerName;
            //    toolGPName.DisplayName = m_FeatureSymbolizerDisplayName;
            //    toolGPName.Category = m_FeatureSymbolizerCategory;
            //    toolGPName.Description = m_FeatureSymbolizerDescription;
            //    break;
            case m_AddExtensionName:
                toolGPName.Name        = m_AddExtensionName;
                toolGPName.DisplayName = m_AddExtensionDisplayName;
                toolGPName.Category    = m_DataManagementCategory;
                toolGPName.Description = m_AddExtensionDescription;
                break;

            case m_RemoveExtensionName:
                toolGPName.Name        = m_RemoveExtensionName;
                toolGPName.DisplayName = m_RemoveExtensionDisplayName;
                toolGPName.Category    = m_RemoveExtensionCategory;
                toolGPName.Description = m_RemoveExtensionDescription;
                break;;

            case m_FileLoaderName:
                toolGPName.Name        = m_FileLoaderName;
                toolGPName.DisplayName = m_FileLoaderDisplayName;
                toolGPName.Category    = m_FileLoaderCategory;
                toolGPName.Description = m_FileLoaderDescription;
                break;

            case m_CombineLayersName:
                toolGPName.Name        = m_CombineLayersName;
                toolGPName.DisplayName = m_CombineLayersDisplayName;
                toolGPName.Category    = m_DataManagementCategory;
                toolGPName.Description = m_CombineLayersDescription;
                break;

            case m_CombineAttributesName:
                toolGPName.Name        = m_CombineAttributesName;
                toolGPName.DisplayName = m_CombineAttributesDisplayName;
                toolGPName.Category    = m_DataManagementCategory;
                toolGPName.Description = m_CombineAttributesDescription;
                break;

            case m_CopyLayerExtensionName:
                toolGPName.Name        = m_CopyLayerExtensionName;
                toolGPName.DisplayName = m_CopyLayerExtensionDisplayName;
                toolGPName.Category    = m_DataManagementCategory;
                toolGPName.Description = m_CopyLayerExtensionDescription;
                break;

            case m_DiffLoaderName:
                toolGPName.Name        = m_DiffLoaderName;
                toolGPName.DisplayName = m_DiffLoaderDisplayName;
                toolGPName.Category    = m_DiffLoaderCategory;
                toolGPName.Description = m_DiffLoaderDescription;
                break;

            case m_Export2OSMName:
                toolGPName.Name        = m_Export2OSMName;
                toolGPName.DisplayName = m_Export2OSMDisplayName;
                toolGPName.Category    = m_Export2OSMCategory;
                toolGPName.Description = m_Export2OSMDescription;
                break;

            case m_FeatureComparisonName:
                toolGPName.Name        = m_FeatureComparisonName;
                toolGPName.DisplayName = m_FeatureComparisonDisplayName;
                toolGPName.Category    = m_FeatureComparisonCategory;
                toolGPName.Description = m_FeatureComparisonDescription;
                break;

            case m_CreateNetworkDatasetName:
                toolGPName.Name        = m_CreateNetworkDatasetName;
                toolGPName.DisplayName = m_CreateNetworkDatasetDisplayName;
                toolGPName.Category    = m_CreateNetworkDatasetCategory;
                toolGPName.Description = m_CreateNetworkDatasetDescription;
                break;

            case m_MultiLoaderName:
                toolGPName.Name        = m_MultiLoaderName;
                toolGPName.DisplayName = m_MultiLoaderDisplayName;
                toolGPName.Category    = m_MultiLoaderCategory;
                toolGPName.Description = m_MultiLoaderDescription;
                break;

            case m_NodeLoaderName:
                toolGPName.Name        = m_NodeLoaderName;
                toolGPName.DisplayName = m_NodeLoaderDisplayName;
                toolGPName.Category    = m_NodeLoaderCategory;
                toolGPName.Description = m_NodeLoaderDescription;
                break;

            case m_WayLoaderName:
                toolGPName.Name        = m_WayLoaderName;
                toolGPName.DisplayName = m_WayLoaderDisplayName;
                toolGPName.Category    = m_WayLoaderCategory;
                toolGPName.Description = m_WayLoaderDescription;
                break;

            case m_RelationLoaderName:
                toolGPName.Name        = m_RelationLoaderName;
                toolGPName.DisplayName = m_RelationLoaderDisplayName;
                toolGPName.Category    = m_RelationLoaderCategory;
                toolGPName.Description = m_RelationLoaderDescription;
                break;

            default:
                return(null);
            }

            return(toolGPName);
        }
Esempio n. 14
0
        // This method will create and return a function name object based upon the input name.
        public IGPName GetFunctionName(string Name)
        {
            IGPName gpName = new GPFunctionNameClass();

            switch (Name)
            {
                case ("VoronoiFromLines"):
                    return (IGPName)CreateGPFunctionNames(0);

            }
            return null;
        }