Issue Type: Bug Bug
Affects Versions: 8.7
Assignee: Andrea Aime
Attachments: NTv2_in_jar.patch
Components: referencing
Created: 16/Mar/13 5:22 PM
Description:

NTv2 grids cannot be read when packed into a jar file. It seems a problem with jgridshift library. Stack trace:


java.lang.IllegalStateException: SubGrid ��4��X has inconsistent grid dimesions
at au.com.objectix.jgridshift.SubGrid.<init>(SubGrid.java:109)
at au.com.objectix.jgridshift.GridShiftFile.loadGridShiftFile(GridShiftFile.java:154)
at org.geotools.referencing.factory.gridshift.NTv2GridShiftFactory.isNTv2GridFileValid(NTv2GridShiftFactory.java:160)

Using a BufferedInputStream on grid load solves the issue. So there goes the patch.

Project: GeoTools
Priority: Minor Minor
Reporter: Oscar Fonts
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
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to