T James
T James

Reputation: 502

Dotspatial inconsistent type conversions

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:

enter image description here

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:

enter image description here

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

Answers (1)

T James
T James

Reputation: 502

It looks like this problem was recently fixed in version 2.0.

Upvotes: 0

Related Questions