Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Merge multiple RasterDataset

$
0
0
Hello

I can get Linear Line of Sight from a single DTED file; which had beed opened by:
Code:

IWorkspaceFactory wsf = new RasterWorkspaceFactoryClass();
IRasterWorkspace rasterWS = (IRasterWorkspace)wsf.OpenFromFile(foldername, 0);
IRasterDataset rasterDS = rasterWS.OpenRasterDataset("n42.dt0"); //DTED Level 0 file

Single DTED file means that both observer and target are in the DTED file's area.

Well, the problem occurs when I load more than one DTED files and want to use these functions:
Code:

IRaster raster = rasterDS.CreateDefaultRaster();
RasterSurfaceClass rsc = new RasterSurfaceClass();
rsc.PutRaster(raster);
rsc.GetElevation(point);
rsc.GetLineOfSight(blah, blah, blah);

If observer is in a DTED file and target is in another DTED file, GetLineOfSight function fails obviously.
How can I merge two RasterDataset to give rsc.PutRaster() function one single raster?
Or
How can I put more than one raster in RasterSurfaceClass?

Thank you
Sincerely

Viewing all articles
Browse latest Browse all 1374

Trending Articles