accessing datatable of shape

Topics: Data Access
May 29, 2007 at 3:17 PM
how can i access the dbase datatabel of a shape file ? is there any method ? or should i make the method ?

im sorry i just get to know this project, and actually im not familiar with c# ( i used mostly )
so i still try to understand this project

i wish i could join this community
Jun 19, 2007 at 8:57 AM
You can do this by creating a new ShapeFile data source and query the entire extents, like so:

ShapeFile shapes = new ShapeFile(@"myshapefile.shp");
FeatureDataSet featureData = new FeatureDataSet();
shapes.ExecuteIntersectionQuery(shapes.Envelope, featureData);
// featureData now has all of your DBF data
Mar 22, 2011 at 5:21 PM


I´m triyng to use the code above, but it´s not working. Is there another way to do this ?

I would like to know if there are anyway to insert into SQL Server 2008 all the geometries from shapefile.