Spatial Analyst KernelDensity

03-22-2017 08:41 PM
New Contributor III

badly needed anyone's help...

I'm doing this project in VS2013 with 10.3 license using Kernel Density...

But getting this errors in this line pDensityOp.KernelDensity(pInputDataset, 200, 5)

I did research and read what causes ERROR 010429 but I have enough disk space (29gb) and I can do Kernel Density manually in ArcDesktop which means that my SHP is not corrupted...

Dim pMap As IMap = Form1.AxMapControl1.ActiveView.FocusMap

Dim pDensityOp As IDensityOp = New RasterDensityOp

'Create Raster Analysis Environment and set output cell size
Dim pEnv As IRasterAnalysisEnvironment = pDensityOp
pEnv.SetCellSize(esriRasterEnvSettingEnum.esriRasterEnvValue, 50)

Dim pWorkspaceFactory As IWorkspaceFactory = New ESRI.ArcGIS.DataSourcesFile.ShapefileWorkspaceFactory
Dim pWorkSpace As IFeatureWorkspace = pWorkspaceFactory.OpenFromFile(shpKernelDensityPath, 0)
Dim pFeatureClass As IFeatureClass = pWorkSpace.OpenFeatureClass(shpKernelDensityName)

Dim pInputDataset As IGeoDataset = pFeatureClass
Dim pOutputDataset As IGeoDataset = pDensityOp.KernelDensity(pInputDataset, 200, 5)

I'm not entirely sure of what I'm doing is correct or not...

Just relying on samples and google...

Hope someone can help me with this...


0 Kudos
0 Replies