Getting raster not-null into a polygon geometry

673
0
04-11-2011 11:43 AM
AlexanderGray
Occasional Contributor III
Hi,
I am trying to extract the portion of a raster image that is not null into a polygon geometry in ArcObjects.  The reason is I need the outline of the image without all the null values around the edges. 
I have something that works so far but it is very slow.
I use the ILogicalOp.IsNull, save the output to disk, then use the IRasterConverterHelper.ToShapfile and select the gridcode=0 polygon.
It works ok it is just very slow and creates intermediate data on disk that I don't care for and that I need to clean up.

does anyone know if you can extract the polygon directly from the raster?
Thamks.
0 Kudos
0 Replies