IFeature to IFeatureLayer

Mar 27, 2012 at 1:16 PM


I want to convert a IFeature to IFeatureLayer.

Is there any way to do this conversion....so that I can add my IFeature to a IFeatureLayer.

thank u.

Mar 27, 2012 at 6:51 PM

I'm going to guess that there is no conversion here. You probably need to add features to a collection property on an instance of a feature layer. For example, adding a polygon to a PolygonLayer.

Mar 28, 2012 at 5:54 AM

thanks for reply....

But it doesn't  worked. actually I want to select a line from map and its label will be displayed on it.when i Used addLabel() on layer it dislay label on each line.

so tried to get selection from layer and convert it into ifeature. 

Now I want pass this selected feature to addlabel, so I have to convert it into IfeatureLayer.

even I tried to do it with CreateLayerFromSelectedFeatures()....

plz do help me to solve this issue...

Dec 2, 2012 at 8:43 AM

Did you find a solution on that?

thank you