Hello
I can get Linear Line of Sight from a single DTED file; which had beed opened by:
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:
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
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
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);
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