This project is read-only.

Sample code that demonstrates how to get the value of a single cell in an attribute table.

using DotSpatial.Data;

 private void btnBuffer_Click(object sender, EventArgs e)
        {
            IFeatureSet fs = FeatureSet.Open(@"C:\[Your File Path\Municipalities.shp");
            fs.FillAttributes();          
            DataTable dt = fs.DataTable;
            for (int row = 0; row < dt.Rows.Count; row++)
            {
                object val = dtOriginal.Rows[row]["NAME"];
            }
        }

Last edited May 20, 2015 at 5:29 PM by mbayles, version 4