My raster datasets is in another server, which can be accessed through URL, for example, http://servername.com/raster/test.tif
My question is how to use ArcObjects .Net to read this raster dataset? I tried the same way like opening a dataset in the local ocmputer (as shown below), but it did not work.....
IWorkspaceFactory2 workspaceFactory = new RasterWorkspaceFactory() as IWorkspaceFactory2;
IRasterWorkspace lRasterWorkspace = workspaceFactory.OpenFromFile(url, 0) as IRasterWorkspace;
inRasterWS = (IWorkspace)lRasterWorkspace;
_rasterDataset = (inRasterWS as IRasterWorkspace).OpenRasterDataset(datasetName);
Does someone know how to read datasets located on a remote server using ArcObjects?