Issue Type: Bug Bug
Affects Versions: 8.3
Assignee: Andrea Aime
Components: referencing
Created: 15/Nov/12 12:23 PM
Description:

The NADCONTransform constructor takes two URIs which point to the location of grid shift files. In a deployed Java application, these URIs are generally obtained via something like:

URL lonFile = getClass().getResource( "conus.los" );
URL latFile = getClass().getResource( "conus.las" );

NADCONTransform transform = new NADCONTransform( latFile.toURI(), lonFile.toURI() );

However, the ClasspathGridShiftLocator essentially locates files by using the ClassLoader and looking for the file inside the classpath. The URI works out to be an absolute path prefixed with file:, so this is never found in the classpath.

In fact, it is impossible to craft an URI that is usable by the ClasspathGridShiftLocator, thus rendering NADCONTransform unusable in this fashion.

Additionally, NADCONTransform contains lots of legacy code and comments about preferences that are confusing as they are no longer referenced outside the test case that is present inside the file.

Environment: Not applicable
Project: GeoTools
Priority: Critical Critical
Reporter: Lucas Madar
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
------------------------------------------------------------------------------
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-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to