Hi,

I am doing some work reading coordinates from geotiffs. I want to
determine the bounding box of the entire image so I thought I would
use getOriginalEnvelope() (returns a GeneralEnvelope) but when I did
that I came up with different corners than I expected.

My question is: Is the GeneralEnvelope being returned truly the same
as a bounding box for the image?

This is the code I used to dump some of the coordinates:

final GeoTiffReader reader = new GeoTiffReader(new File(geotiff));
                
System.out.println(reader.getOriginalEnvelope().getUpperCorner());
System.out.println(reader.getOriginalEnvelope().getLowerCorner());
for (TiePoint pt : reader.getMetadata().getModelTiePoints()) {
for (double val : pt.getData()) {
                                System.out.print(val+" ");
                        }
                }

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to