Please Help Me....

Topics: SharpMap Project, SharpMap v0.9 / v1.x
Jul 23, 2008 at 7:46 AM
Edited Jul 23, 2008 at 7:49 AM
SharpMap.Data.Providers.ShapeFile ShapeFile1 = new SharpMap.Data.Providers.ShapeFile("C:\\Country.shp") ;
SharpMap.Data.FeatureDataRow FeatureDataRow1 ;
string strPolygon;
ShapeFile1.Open();

SharpMap.Geometries.Point Pnt = new SharpMap.Geometries.Point(53.4,39.2);

 for (int i = 0; i < ShapeFile1.GetFeatureCount(); i++)
 {
     FeatureDataRow1 = ShapeFile1.GetFeature((uint)i);
     if (Pnt.With(FeatureDataRow1.Geometry))
       {
         strPolygon = ShapeFile1.GetFeature((uint)i).Field<string>(3);
       }
  }


Pnt Is In One Of The FeatureDataRow1 . But "With()" Function Can Not Found This.I Work With Version1.1 of SharpMap.
Coordinator
Jul 23, 2008 at 8:14 AM
Hi saminsalemi, my guess is that it should be Pnt.Within(FeatureDataRow1.Geometry) hth jd