/** * Creates a cartesian coordinate system from a code. * * @throws FactoryException if the object creation failed for all factories. */ @Override public CartesianCS createCartesianCS(final String code) throws FactoryException { try { return super.createCartesianCS(code); } catch (FactoryException exception) { notifyFailure("createCartesianCS", exception); try { return fallback.createCartesianCS(code); } catch (NoSuchAuthorityCodeException ignore) { throw exception; } } }
/** Returns a cartesian coordinate system from a code. */ @Override public synchronized CartesianCS createCartesianCS(final String code) throws FactoryException { final CartesianCS cs; final String key = trimAuthority(code); final Object cached = objectCache.get(key); if (cached instanceof CartesianCS) { cs = (CartesianCS) cached; } else { cs = getBackingStore().createCartesianCS(code); } objectCache.put(key, cs); return cs; }
/** * Returns a cartesian coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized CartesianCS createCartesianCS(final String code) throws FactoryException { final CartesianCS cs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof CartesianCS) { cs = (CartesianCS) cached; } else { cs = getBackingStore().createCartesianCS(code); } put(key, cs); return cs; }
final CartesianCS cs = buffered.createCartesianCS(csCode); final GeographicCRS baseCRS = buffered.createGeographicCRS(geoCode); final CoordinateOperation op = buffered.createCoordinateOperation(opCode);