/** * Creates an ellipsoidal coordinate system from a code. * * @throws FactoryException if the object creation failed for all factories. */ @Override public EllipsoidalCS createEllipsoidalCS(final String code) throws FactoryException { try { return super.createEllipsoidalCS(code); } catch (FactoryException exception) { notifyFailure("createEllipsoidalCS", exception); try { return fallback.createEllipsoidalCS(code); } catch (NoSuchAuthorityCodeException ignore) { throw exception; } } }
/** Returns an ellipsoidal coordinate system from a code. */ @Override public synchronized EllipsoidalCS createEllipsoidalCS(final String code) throws FactoryException { final EllipsoidalCS cs; final String key = trimAuthority(code); final Object cached = objectCache.get(key); if (cached instanceof EllipsoidalCS) { cs = (EllipsoidalCS) cached; } else { cs = getBackingStore().createEllipsoidalCS(code); } objectCache.put(key, cs); return cs; }
/** * Returns an ellipsoidal coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized EllipsoidalCS createEllipsoidalCS(final String code) throws FactoryException { final EllipsoidalCS cs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof EllipsoidalCS) { cs = (EllipsoidalCS) cached; } else { cs = getBackingStore().createEllipsoidalCS(code); } put(key, cs); return cs; }
final String csCode = getString(result, 7, code); final String dmCode = result.getString(8); final EllipsoidalCS cs = buffered.createEllipsoidalCS(csCode); final GeodeticDatum datum; if (dmCode != null) {