agray1

Getting raster not-null into a polygon geometry

Discussion created by agray1 on Apr 11, 2011
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.

Outcomes