Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Commented Unassigned: Create Int64 raster not recognized [25545]

$
0
0
Hi all

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: mogikanin **

This is a not VectorToRaster() responsibility. You can change type of that column before passing it into VectorToRaster().


Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>