I was trying to convert a vectorToRaster where the vector value is int64 (the type I keep in converting it to raster).
In Data.BinaryRasterProvider.cs I had to add the following in the create method
```
if (dataType == typeof(Int64))
{
BgdRaster<Int64> r = new BgdRaster<Int64>(name, ySize, xSize);
return r;
}
```
I guess something should be also added to the Open method since it does not deal with Int64. I don't know the number to assign to the type Int64
Thanks
Oscar
Comments: ** Comment from web user: Oscarafone77 **
The point is, what is written to the bgd file? the "7" identifier or a string saying Int64?
Because if the BGD format is used outside Dotspatial the data type should be something that is understood by other GIS.
I don't know, maybe it would be better to force conversion to Int32 in the VectorToRaster method? (I don't think a raster really needs to be Int64). My problem come from the creation of a shapefile with an attribute field that is typed Int64 and I tried to convert it to raster, but I don't really need the raster to preserve the Int64 datatype.
However, on top of RasterDataType.cs the following lines are reported
// The Original Code is from MapWindow.dll version 6.0
//
// The Initial Developer of this Original Code is Ted Dunsford. Created 2/23/2008 8:21:20 AM
//
Maybe Ted is still around so we may ask him where those codes come from. What do you think?
Thanks
Oscar