Hi,
Thanks for your help with GeoTiffReader and InputStream. I use the file
approach right now and I'll try to do an in memory version later. At the
moment I have the following isse:
I create a GeoTiffReader
GeoTiffReader reader = new GeoTiffReader(input);
GeneralEnvelope envelope = reader.getOriginalEnvelope();
I maintain a set of envelopes to find the correct reader instance for a user
coordinate:
DirectPosition dp = new DirectPosition2D(crs, x, y);
if(envelope.contains(db)) { ...}
When I evaluate it later:
coverage.evaluate(dp, values);
It (sometimes?) fails for the Boundaries: My Tiff files are 1°x1° cells and
the exception always contains an integer latitude:
org.opengis.coverage.PointOutsideCoverageException: Coordinate (13.457, 51)
is outside coverage.
Q: Is it correct that GeoTiffReader#getOriginalEnvelope()#contains() is not
suitable for checking if #evaluate() will return a proper value? Is there an
alternative?
Cheers,
Jan
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users