« EarthImagePlugIn | Main | Small Languages »

July 20, 2005

EarthImagePlugIn: Part 2

After playing around with the EIPI I saw they were moving around large buffers (actually int arrays) which caused lots of memory bloat and some lags in performance. I was hoping I could provide just a BufferedImage as an OMRaster, but unfortunately when the sub-image is generated on a change of projection the EIPI needs to generate an OMRaster that conforms to that projection. For example, when dealing with an Orthographic projection you need to warp the image (raster) yourself.

The current EIPI does this by iterating over every pixel of the projection, converting these to Lat/Lon points, and looking up pixel values from their cached image based on the calculated degrees per pixel and each Lat/Lon point from the projection.

I just think there has to be a better way.

Posted by Guy at July 20, 2005 5:21 AM