Ejemplo n.º 1
0
 public ESRI.ArcGIS.Geoprocessing.IGPFunction GetFunction(string Name)
 {
     switch (Name)
     {
         case m_DownloadDataName:
             IGPFunction osmGPDownloadFunction = new OSMGPDownload() as IGPFunction;
             return osmGPDownloadFunction;
         case m_UploadDataName:
             IGPFunction osmGPUploadFunction = new OSMGPUpload() as IGPFunction;
             return osmGPUploadFunction;
         case m_AttributeSelectorName:
             IGPFunction osmGPAttributeSelector = new OSMGPAttributeSelector() as IGPFunction;
             return osmGPAttributeSelector;
         case m_FeatureSymbolizerName:
             IGPFunction osmGPSymbolizer = new OSMGPSymbolizer() as IGPFunction;
             return osmGPSymbolizer;
         case m_AddExtensionName:
             IGPFunction osmGPAddExtension = new OSMGPAddExtension() as IGPFunction;
             return osmGPAddExtension;
         case m_RemoveExtensionName:
             IGPFunction osmGPRemoveExtension = new OSMGPRemoveExtension() as IGPFunction;
             return osmGPRemoveExtension;
         case m_FileLoaderName:
             IGPFunction osmGPFileLoader = new OSMGPFileLoader() as IGPFunction;
             return osmGPFileLoader;
         case m_CombineLayersName:
             IGPFunction combineLayers = new GPCombineLayers() as IGPFunction;
             return combineLayers;
         case m_CombineAttributesName:
             IGPFunction osmGPCombineAttributes = new OSMGPCombineAttributes() as IGPFunction;
             return osmGPCombineAttributes;
         case m_CopyLayerExtensionName:
             IGPFunction gpCopyLayerExtensions = new GPCopyLayerExtensions() as IGPFunction;
             return gpCopyLayerExtensions;
         case m_DiffLoaderName:
             IGPFunction osmGPDiffLoader = new OSMGPDiffLoader() as IGPFunction;
             return osmGPDiffLoader;
         case m_Export2OSMName:
             IGPFunction osmGPExport2OSM = new OSMGPExport2OSM() as IGPFunction;
             return osmGPExport2OSM;
         case m_FeatureComparisonName:
             IGPFunction osmGPFeatureComparison = new OSMGPFeatureComparison() as IGPFunction;
             return osmGPFeatureComparison;
         case m_CreateNetworkDatasetName:
             IGPFunction osmGPCreateNetworkDataset = new OSMGPCreateNetworkDataset() as IGPFunction;
             return osmGPCreateNetworkDataset;
         case m_MultiLoaderName:
             IGPFunction osmGPMultiLoader = new OSMGPMultiLoader() as IGPFunction;
             return osmGPMultiLoader;
         case m_NodeLoaderName:
             IGPFunction osmGPNodeLoader = new OSMGPNodeLoader() as IGPFunction;
             return osmGPNodeLoader;
         case m_WayLoaderName:
             IGPFunction osmGPWayLoader = new OSMGPWayLoader() as IGPFunction;
             return osmGPWayLoader;
         case m_RelationLoaderName:
             IGPFunction osmGPRelationLoader = new OSMGPRelationLoader() as IGPFunction;
             return osmGPRelationLoader;
         default:
             return null;
     }
 }
        public ESRI.ArcGIS.Geoprocessing.IGPFunction GetFunction(string Name)
        {
            switch (Name)
            {
            case m_DownloadDataName:
                IGPFunction osmGPDownloadFunction = new OSMGPDownload() as IGPFunction;
                return(osmGPDownloadFunction);

            case m_UploadDataName:
                IGPFunction osmGPUploadFunction = new OSMGPUpload() as IGPFunction;
                return(osmGPUploadFunction);

            case m_AttributeSelectorName:
                IGPFunction osmGPAttributeSelector = new OSMGPAttributeSelector() as IGPFunction;
                return(osmGPAttributeSelector);

            case m_FeatureSymbolizerName:
                IGPFunction osmGPSymbolizer = new OSMGPSymbolizer() as IGPFunction;
                return(osmGPSymbolizer);

            case m_AddExtensionName:
                IGPFunction osmGPAddExtension = new OSMGPAddExtension() as IGPFunction;
                return(osmGPAddExtension);

            case m_RemoveExtensionName:
                IGPFunction osmGPRemoveExtension = new OSMGPRemoveExtension() as IGPFunction;
                return(osmGPRemoveExtension);

            case m_FileLoaderName:
                IGPFunction osmGPFileLoader = new OSMGPFileLoader() as IGPFunction;
                return(osmGPFileLoader);

            case m_CombineLayersName:
                IGPFunction combineLayers = new GPCombineLayers() as IGPFunction;
                return(combineLayers);

            case m_CombineAttributesName:
                IGPFunction osmGPCombineAttributes = new OSMGPCombineAttributes() as IGPFunction;
                return(osmGPCombineAttributes);

            case m_CopyLayerExtensionName:
                IGPFunction gpCopyLayerExtensions = new GPCopyLayerExtensions() as IGPFunction;
                return(gpCopyLayerExtensions);

            case m_DiffLoaderName:
                IGPFunction osmGPDiffLoader = new OSMGPDiffLoader() as IGPFunction;
                return(osmGPDiffLoader);

            case m_Export2OSMName:
                IGPFunction osmGPExport2OSM = new OSMGPExport2OSM() as IGPFunction;
                return(osmGPExport2OSM);

            case m_FeatureComparisonName:
                IGPFunction osmGPFeatureComparison = new OSMGPFeatureComparison() as IGPFunction;
                return(osmGPFeatureComparison);

            case m_CreateNetworkDatasetName:
                IGPFunction osmGPCreateNetworkDataset = new OSMGPCreateNetworkDataset() as IGPFunction;
                return(osmGPCreateNetworkDataset);

            case m_MultiLoaderName:
                IGPFunction osmGPMultiLoader = new OSMGPMultiLoader() as IGPFunction;
                return(osmGPMultiLoader);

            case m_NodeLoaderName:
                IGPFunction osmGPNodeLoader = new OSMGPNodeLoader() as IGPFunction;
                return(osmGPNodeLoader);

            case m_WayLoaderName:
                IGPFunction osmGPWayLoader = new OSMGPWayLoader() as IGPFunction;
                return(osmGPWayLoader);

            case m_RelationLoaderName:
                IGPFunction osmGPRelationLoader = new OSMGPRelationLoader() as IGPFunction;
                return(osmGPRelationLoader);

            default:
                return(null);
            }
        }