Issue Type: Bug Bug
Affects Versions: 10-RC2, 10-RC1
Assignee: Simone Giannecchini
Components: coverage
Created: 09/Sep/13 4:32 PM
Description:

I am reading SRMT+ data using the GTopo30Reader. The 9.5 version works great, but 10-RC2 gives incorrect values for coordinates in the middle of the grid. This looks like a problem with how tiles are set up in the underlying GridCoverage, but I'm not sure what initialization parameters are set wrong, and whether this is a problem with how the GTopo30Reader sets up the GridCoverage2D or whether the error spans all GridCoverage2D instances.

Specific steps to reproduce:

I am loading the SMTP+ elevation data from ftp://topex.ucsd.edu/pub/srtm30_plus/srtm30/erm/w140n40.Bathymetry.srtm.dem (with associated ers,hdr,prj, and stx files) with the code

GTopo30Reader reader = new GTopo30Reader( demFile );
GridCoverage2D coverage = reader.read(null);

This is a large 4800x6000 cell dataset. The returned coverage is broken up into 480x500 pixel tiles internally (see GridCoverage2D#evaluate(final GridCoordinates2D coord, final int[] dest)

In 10-RC2 these tiles are not drawing data from their 480x500 pixel subset of the file, but rather from a 4800x50 pixel subset. Thus, only the first and last 480 pixels return the correct elevation.

For this specific file, the following test passes in 9.5 and fails in 10-RC*

pos = new GridCoordinates2D(480,0);
assertEquals(-4337,coverage.evaluate(pos,(int[])null)[0]);

I'll be happy to provide the auxiliary files I'm working with if they're needed to reproduce the bug.

Environment: OS 10.8, Java 1.6/1.7
Project: GeoTools
Priority: Major Major
Reporter: Spencer Bliven
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to