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

Yes of course, in fact i think i will do what you suggest.

So the choice now is to create a custom identifier as you said for the Int64 rasterdatatype or to leave it as it is now with no Int64 option, but future developers should know about that "limitation". What do you think?

Anyway thank you for you patience

Oscar


Viewing all articles
Browse latest Browse all 3973

Trending Articles



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