/** * Creates an ellipsoidal coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public EllipsoidalCS createEllipsoidalCS(final String code) throws FactoryException { return (EllipsoidalCS) replace( getCSAuthorityFactory(code) .createEllipsoidalCS(toBackingFactoryCode(code))); }
/** * Returns an {@linkplain Unit unit} from a code. * * @throws FactoryException if the object creation failed. */ @Override public Unit<?> createUnit(final String code) throws FactoryException { return replace(getCSAuthorityFactory(code).createUnit(toBackingFactoryCode(code))); }
/** * Creates a cartesian coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public CartesianCS createCartesianCS(final String code) throws FactoryException { return (CartesianCS) replace(getCSAuthorityFactory(code).createCartesianCS(toBackingFactoryCode(code))); }
/** * Returns an arbitrary {@linkplain CoordinateSystem coordinate system} from a code. * * @throws FactoryException if the object creation failed. */ @Override public CoordinateSystem createCoordinateSystem(final String code) throws FactoryException { return replace( getCSAuthorityFactory(code).createCoordinateSystem(toBackingFactoryCode(code))); }
/** * Creates a spherical coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public SphericalCS createSphericalCS(final String code) throws FactoryException { return (SphericalCS) replace(getCSAuthorityFactory(code).createSphericalCS(toBackingFactoryCode(code))); }
/** * Creates a temporal coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public TimeCS createTimeCS(final String code) throws FactoryException { return (TimeCS) replace(getCSAuthorityFactory(code).createTimeCS(toBackingFactoryCode(code))); }
/** * Creates a vertical coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public VerticalCS createVerticalCS(final String code) throws FactoryException { return (VerticalCS) replace(getCSAuthorityFactory(code).createVerticalCS(toBackingFactoryCode(code))); }
/** * Returns a {@linkplain CoordinateSystemAxis coordinate system axis} from a code. * * @throws FactoryException if the object creation failed. */ @Override public CoordinateSystemAxis createCoordinateSystemAxis(final String code) throws FactoryException { return replace( getCSAuthorityFactory(code).createCoordinateSystemAxis(toBackingFactoryCode(code))); }
/** * Creates a polar coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public PolarCS createPolarCS(final String code) throws FactoryException { return (PolarCS) replace(getCSAuthorityFactory(code).createPolarCS(toBackingFactoryCode(code))); }
/** * Creates a cylindrical coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public CylindricalCS createCylindricalCS(final String code) throws FactoryException { return (CylindricalCS) replace( getCSAuthorityFactory(code) .createCylindricalCS(toBackingFactoryCode(code))); }
public CoordinateSystem createCoordinateSystem(String code) throws FactoryException { final String key = toKey(code); CoordinateSystem cs = (CoordinateSystem) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (CoordinateSystem) cache.peek(key); if (cs == null) { cs = csAuthority.createCoordinateSystem(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public SphericalCS createSphericalCS(String code) throws FactoryException { final String key = toKey(code); SphericalCS cs = (SphericalCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (SphericalCS) cache.peek(key); if (cs == null) { cs = csAuthority.createSphericalCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public TimeCS createTimeCS(String code) throws FactoryException { final String key = toKey(code); TimeCS cs = (TimeCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (TimeCS) cache.peek(key); if (cs == null) { cs = csAuthority.createTimeCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public VerticalCS createVerticalCS(String code) throws FactoryException { final String key = toKey(code); VerticalCS cs = (VerticalCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (VerticalCS) cache.peek(key); if (cs == null) { cs = csAuthority.createVerticalCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException { final String key = toKey(code); CoordinateSystemAxis axis = (CoordinateSystemAxis) cache.get(key); if (axis == null) { try { cache.writeLock(key); axis = (CoordinateSystemAxis) cache.peek(key); if (axis == null) { axis = csAuthority.createCoordinateSystemAxis(code); cache.put(key, axis); } } finally { cache.writeUnLock(key); } } return axis; }
public PolarCS createPolarCS(String code) throws FactoryException { final String key = toKey(code); PolarCS cs = (PolarCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (PolarCS) cache.peek(key); if (cs == null) { cs = csAuthority.createPolarCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public CylindricalCS createCylindricalCS(String code) throws FactoryException { final String key = toKey(code); CylindricalCS cs = (CylindricalCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (CylindricalCS) cache.peek(key); if (cs == null) { cs = csAuthority.createCylindricalCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public Unit<?> createUnit(String code) throws FactoryException { final String key = toKey(code); Unit<?> unit = (Unit) cache.get(key); if (unit == null) { try { cache.writeLock(key); unit = (Unit) cache.peek(key); if (unit == null) { unit = csAuthority.createUnit(code); cache.put(key, unit); } } finally { cache.writeUnLock(key); } } return unit; }
public EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException { final String key = toKey(code); EllipsoidalCS cs = (EllipsoidalCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (EllipsoidalCS) cache.peek(key); if (cs == null) { cs = csAuthority.createEllipsoidalCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }
public CartesianCS createCartesianCS(String code) throws FactoryException { final String key = toKey(code); CartesianCS cs = (CartesianCS) cache.get(key); if (cs == null) { try { cache.writeLock(key); cs = (CartesianCS) cache.peek(key); if (cs == null) { cs = csAuthority.createCartesianCS(code); cache.put(key, cs); } } finally { cache.writeUnLock(key); } } return cs; }