Frank, I haven't worked with MrSIDIIOImageMetadata, but I have done the following for GeoTIFFs, which might work in your situation:
1. Get the upper left coordinate from the image metadata 2. Get the pixel width and height in map units. 3. Get the image width and height. 4. Assume pixel width and height are constant across the image, and calculate the lower right coordinates using: Rightmost position = leftmost position + pixel width * image width Bottom position = top position - pixel height * image height Regards....... Larry On Tue, Aug 17, 2010 at 1:04 PM, Frank Conover <[email protected]> wrote: > Hi, > I am displaying MrSid files using the Image IO libraries in GeoTools in my > application. I am using the classes MrSIDImageReader and > MrSIDIIOImageMetadata but I can not find out how to get the > lower right coordinates. I have the origin from getProjection() - > there is probably a better way to get to that as well > > Can someone point me in the right direction. I'm trying not to use the > GeoTools libraries and hope to switch to just the ImageIO libraries. > > Thanks, > > Frank > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
