URL locateGrid(String grid) { for (GridShiftLocator locator : ReferencingFactoryFinder.getGridShiftLocators(null)) { URL result = locator.locateGrid(grid); if (result != null) { return result; } } return null; }
protected URL locateGrid(URI uri) throws FactoryException { String grid = uri.toString(); for (GridShiftLocator locator : ReferencingFactoryFinder.getGridShiftLocators(null)) { URL result = locator.locateGrid(grid); if (result != null) { return result; } } throw new FactoryException("Could not locate grid file " + grid); }