'Check out Spatal Analyst extension Dim ao As IAoInitialize Set ao = New AoInitialize ao.CheckOutExtension (esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst) 'Add Spatial Analyst Toolbox Dim gp As IGeoProcessor Set gp = New GeoProcessor gp.AddToolbox "C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Spatial Analyst Tools.tbx" 'Define input parameters for the Extract by Mask tool Dim parameters As IVariantArray Set parameters = New VarArray parameters.Add ("C:\LACONISS\LandSpaCES\valuationmapr") parameters.Add ("C:\LACONISS\LandSpaCES\Parcel165") parameters.Add ("C:\LACONISS\LandSpaCES\ParcelR165") 'Run the Extract by Mask GP tool gp.Execute "ExtractByMask", parameters, Nothing
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.