/** * Returns a name for a transformation between two CRS. */ private static Map<String,?> defaultName(CoordinateReferenceSystem source, CoordinateReferenceSystem target) { return properties(new CRSPair(source, target).toString()); }
/** * Returns a name for a transformation between two CRS. */ private static Map<String,?> defaultName(CoordinateReferenceSystem source, CoordinateReferenceSystem target) { return properties(new CRSPair(source, target).toString()); }
String message = Resources.format(Resources.Keys.CanNotInstantiateGeodeticObject_1, new CRSPair(sourceCRS, targetCRS)); String details = e.getLocalizedMessage(); if (details != null) {
String message = Resources.format(Resources.Keys.CanNotInstantiateGeodeticObject_1, new CRSPair(sourceCRS, targetCRS)); String details = e.getLocalizedMessage(); if (details != null) {
CoordinateOperation op; if (context == null) { final CRSPair key = new CRSPair(sourceCRS, targetCRS); op = cache.peek(key); if (op != null) {
CoordinateOperation op; if (context == null) { final CRSPair key = new CRSPair(sourceCRS, targetCRS); op = cache.peek(key); if (op != null) {
targetCRS.getCoordinateSystem()))); } catch (IllegalArgumentException | IncommensurableException e) { throw new FactoryException(Resources.format(Resources.Keys.CanNotInstantiateGeodeticObject_1, new CRSPair(sourceCRS, targetCRS)), e); final CRSPair key = new CRSPair(sourceCRS, targetCRS); if (useCache && stopAtFirst && !previousSearches.isEmpty()) { final CoordinateOperation op = factorySIS.cache.peek(key);
CoordinateSystems.swapAndScaleAxes(sourceCRS.getCoordinateSystem(), targetCRS.getCoordinateSystem())); } catch (IllegalArgumentException | IncommensurableException e) { throw new FactoryException(Resources.format(Resources.Keys.CanNotInstantiateGeodeticObject_1, new CRSPair(sourceCRS, targetCRS)), e); final CRSPair key = new CRSPair(sourceCRS, targetCRS); if (useCache && !previousSearches.isEmpty()) { final CoordinateOperation op = factorySIS.cache.peek(key);