Loading files from Memory? (esri shape file(set) in this instance)

Mar 8, 2013 at 12:06 AM
I think opening from a stream aside from initiating a stream from a path would be a fundamental feature for a framework such as this. So if I've missed over it, please push me in the right direction.

I'm trying to work with shape files that are in a archive file, And I don't want to have to save the actual files to disk.

I'm using dotnetzip to extract the files into memory, and I'd like to consume them with dotspatial.

But from what I can see going through the dot-spatial source code, there's currently no way to consume a file from a stream, as it always wants a physical path. in all the constructors, and method's

Does anyone know an elegant way to work around this? Without having to write the file's to disk?

My first thought is to have my app mount a ramdisk, and just work with it, but I haven't been able to find a nice .net implementation for this.

Next to ravaging through the dotspatial shapefile class, modifying the constructors, and methods, to take stream's as well, Which is a unacceptably large task with my time-frame for this project. I don't know what else to do.

Any help would be much appreciated.