Reputation: 502
I am finding a strange occurrence when using the Dotspatial (1.9) libraries.
When I load a shapefile into ArcMap and look at the data type of a shapefile, I am seeing it as a double type:
When I load this same shapefile using the Dotspatial library:
OpenFileDialog od = new OpenFileDialog();
od.Filter = "Shapefiles (*.shp)|*.shp";
if (od.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
IFeatureSet feature_ = FeatureSet.Open(od.FileName);
MessageBox.Show(feature_.DataTable.Columns["Northing"].DataType.ToString());
}
The result is only a Single:
This is causing some major truncating of the data when using the Save() in the dotspatial library. Does anyone know why this is happening or if there is a workaround?
Upvotes: 0
Views: 81