Conversion Raster To Polygon in File GDB. Result saved in a FeatureDataset !!

377
0
05-31-2011 01:03 AM
by Anonymous User
Not applicable
Original User: Xavier

Hi,
I have to convert a reclassed raster to a featureclass.
I thought that following piece of code would convert the raster (pGeodataset) in a featureclass stored in the File GDB  wokspace and named "toto". I expected an featureclass as  the function result 
Apparently, i'm wrong ! This code creates a feature dataset named "toto" an store in this one the featureclass named  "shape"... And the function returns null !
How can do that ? Some help would be appreciated... I'm in the fog 🙂
Regards..


IConversionOp pConversionOp = new RasterConversionOpClass();

            IFeatureClass pFeatureClass = pConversionOp.RasterDataToPolygonFeatureData(pGeoDataset, pWorkspaceOut, "toto", true) as IFeatureClass;
0 Kudos
0 Replies