Issue Type: Bug Bug
Assignee: Simone Giannecchini
Components: coverage, unsupported
Created: 04/Dec/13 2:06 AM
Description:

When doing a read without any parameters using NetCDFReader, the reader still applies an affine transformation, while it should just return the data untouched.
A side effect of this transformation is an exception when the yScale of said transformation is negative, which occurs in a lot of gridToWorld transforms.

I traced back part of the problem to this todo:

// TODO: Check for center/corner anchor point
            request.setDomainSubset(requestedRasterArea, ReferencedEnvelope.reference(requestedBoundingBox));

and in setDomainSubset:

final GridToEnvelopeMapper mapper = new GridToEnvelopeMapper(
                new GridEnvelope2D(rasterArea), new ReferencedEnvelope(worldArea));
        mapper.setPixelAnchor(PixelInCell.CELL_CORNER);
        this.gridToWorldTransform = (MathTransform2D) mapper.createTransform();

So this code assumes that netcdf uses cell corners, while other parts seem to use cell centers to map pixels to coordinates.

Project: GeoTools
Priority: Major Major
Reporter: Jeroen Dries
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
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to