Cast IFeature into Point

Jun 8, 2012 at 7:09 PM
Edited Jun 8, 2012 at 7:09 PM

Hi

I want to loop through a FeatureSet.Features and cast each element(IFeature) into point feature, but i don't know how :(

This code made an casting error:

 

var point = (DotSpatial.Topology.Point) fs.Features[0];

 

So, what is the right way to do this?

Thanks.