POST
|
Thanks Nahed! I saw that solution on the website. But May be it is not the end result. My code is as following. public IRaster RasterClip (IRasterLayer pRasterLayer, IEnvelope pExtent) { IRaster pRaster = pRasterLayer.Raster; IRasterProps pProps = pRaster as IRasterProps; object cellSizeProvider = pProps.MeanCellSize().X; IGeoDataset pInputDataset = pRaster as IGeoDataset; IGeoDataset pOutputDataset = pTransformionOp.Clip(pInputDataset, pExtent); IRaster clipRaster; clipRaster = pOutputDataset as IRaster; }
... View more
03-30-2015
01:05 PM
|
0
|
0
|
611
|
POST
|
I used ITransformationOp.Clip method, it's ok for the first 2 times, but the "ERROR 010092: Invalid output extent." began to occur from the 3rd time. So strange problems! Why? Thanks!
... View more
03-29-2015
07:27 AM
|
0
|
2
|
5013
|
POST
|
Thanks for your reply! I uninstalled ArcGIS Desktop and ArcObjects SDK for Microsoft .NET Framework, and reinstall them according the order, ArcGIS Desktop first and then ArcObjects SDK for Microsoft .NET Framework. But the problem is still there.
... View more
03-28-2015
11:02 AM
|
0
|
2
|
1308
|
POST
|
I wrote programs using ArcGIS Engine 10.2 and Visual Studio 2010. When one of the last 5 templates (Class Library (Engine), Console Application (Engine), GlobeControl Application, MapControl Application, Windows Application (Engine)) was selected in new a Extending ArcObjects project, the alert prompt will be occur (see attached). I uninstalled the ArcGIS and SDK, then reinstalled them, but the problem doesn't go away. I need your help. Thanks a lot!
... View more
03-28-2015
08:45 AM
|
0
|
4
|
5722
|
POST
|
My program worked well several days ago. Today in the same running environment, however, errors were suddenly threw while processing the line "IGeoDataset pOutputDataset = pExtractionOp.Rectangle(pInputDataset, pExtent, true);". The errors are as follows: ERROR 010160: Unable to open raster. ERROR 010218: Could not reference the raster dataset. Does anybody has any idea? Thanks, Lee
... View more
03-23-2015
08:33 PM
|
0
|
0
|
2382
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|