I have a question about the Raster object though. It has a Data field that I'm not sure if it loads the raster to the memory or just keeps a reference to the values.
I would prefer to keep just the reference and then tried to redefine the raster type to have a gdaldataset field that keeps the handle to the dataset. This way, I could write other functions to fetch data and keep just the data I need in memory.
However, as this reference is returned by a C function, I wonder what happens to it when I delete or replace the value of the raster object created. Is the reference destroyed automatically? I tried to use the finalize function but it didnt work.
Also, is there a way to write a function that mimics matrix indexing, like making raster[i,j] invoke a GDAL function to fetch the values at i,j?
Also, two suggestion to the owners:
a) a constructor to Raster(filename) instead of the openraster function (if this is possible)
b) what about naming the package "JDAL.jl"?