/** * Returns an image datum from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized ImageDatum createImageDatum(final String code) throws FactoryException { final ImageDatum datum; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof ImageDatum) { datum = (ImageDatum) cached; } else { datum = getBackingStore().createImageDatum(code); } put(key, datum); return datum; }
/** * Returns a temporal coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized TimeCS createTimeCS(final String code) throws FactoryException { final TimeCS cs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof TimeCS) { cs = (TimeCS) cached; } else { cs = getBackingStore().createTimeCS(code); } put(key, cs); return cs; }
/** * Returns a 3D coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized CompoundCRS createCompoundCRS(final String code) throws FactoryException { final CompoundCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof CompoundCRS) { crs = (CompoundCRS) cached; } else { crs = getBackingStore().createCompoundCRS(code); } put(key, crs); return crs; }
/** * Returns an arbitrary object from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized IdentifiedObject createObject(final String code) throws FactoryException { final IdentifiedObject object; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof IdentifiedObject) { object = (IdentifiedObject) cached; } else { object = getBackingStore().createObject(code); } put(key, object); return object; }
/** * Returns an extent (usually an area of validity) from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized Extent createExtent(final String code) throws FactoryException { final Extent extent; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof Extent) { extent = (Extent) cached; } else { extent = getBackingStore().createExtent(code); } put(key, extent); return extent; }
/** * Returns a derived coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized DerivedCRS createDerivedCRS(final String code) throws FactoryException { final DerivedCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof DerivedCRS) { crs = (DerivedCRS) cached; } else { crs = getBackingStore().createDerivedCRS(code); } put(key, crs); return crs; }
/** * Returns an engineering coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized EngineeringCRS createEngineeringCRS(final String code) throws FactoryException { final EngineeringCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof EngineeringCRS) { crs = (EngineeringCRS) cached; } else { crs = getBackingStore().createEngineeringCRS(code); } put(key, crs); return crs; }
/** * Returns a prime meridian from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized PrimeMeridian createPrimeMeridian(final String code) throws FactoryException { final PrimeMeridian meridian; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof PrimeMeridian) { meridian = (PrimeMeridian) cached; } else { meridian = getBackingStore().createPrimeMeridian(code); } put(key, meridian); return meridian; }
/** * Returns a coordinate system axis from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized CoordinateSystemAxis createCoordinateSystemAxis(final String code) throws FactoryException { final CoordinateSystemAxis axis; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof CoordinateSystemAxis) { axis = (CoordinateSystemAxis) cached; } else { axis = getBackingStore().createCoordinateSystemAxis(code); } put(key, axis); return axis; }
/** * 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; }
/** * Returns a vertical coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized VerticalCS createVerticalCS(final String code) throws FactoryException { final VerticalCS cs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof VerticalCS) { cs = (VerticalCS) cached; } else { cs = getBackingStore().createVerticalCS(code); } put(key, cs); return cs; }
/** * Returns an unit from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized Unit<?> createUnit(final String code) throws FactoryException { final Unit<?> unit; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof Unit) { unit = (Unit) cached; } else { unit = getBackingStore().createUnit(code); } put(key, unit); return unit; }
/** * Returns an image coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized ImageCRS createImageCRS(final String code) throws FactoryException { final ImageCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof ImageCRS) { crs = (ImageCRS) cached; } else { crs = getBackingStore().createImageCRS(code); } put(key, crs); return crs; }
/** * Returns an arbitrary datum from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized Datum createDatum(final String code) throws FactoryException { final Datum datum; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof Datum) { datum = (Datum) cached; } else { datum = getBackingStore().createDatum(code); } put(key, datum); return datum; }
/** * Returns a projected coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized ProjectedCRS createProjectedCRS(final String code) throws FactoryException { final ProjectedCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof ProjectedCRS) { crs = (ProjectedCRS) cached; } else { crs = getBackingStore().createProjectedCRS(code); } put(key, crs); return crs; }
/** * Returns a vertical coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized VerticalCRS createVerticalCRS(final String code) throws FactoryException { final VerticalCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof VerticalCRS) { crs = (VerticalCRS) cached; } else { crs = getBackingStore().createVerticalCRS(code); } put(key, crs); return crs; }
/** * Returns an ellipsoid from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized Ellipsoid createEllipsoid(final String code) throws FactoryException { final Ellipsoid ellipsoid; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof Ellipsoid) { ellipsoid = (Ellipsoid) cached; } else { ellipsoid = getBackingStore().createEllipsoid(code); } put(key, ellipsoid); return ellipsoid; }
/** * Returns a polar coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized PolarCS createPolarCS(final String code) throws FactoryException { final PolarCS cs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof PolarCS) { cs = (PolarCS) cached; } else { cs = getBackingStore().createPolarCS(code); } put(key, cs); return cs; }
/** * Returns a spherical coordinate system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized SphericalCS createSphericalCS(final String code) throws FactoryException { final SphericalCS cs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof SphericalCS) { cs = (SphericalCS) cached; } else { cs = getBackingStore().createSphericalCS(code); } put(key, cs); return cs; }
/** * Returns a temporal coordinate reference system from a code. * * @throws FactoryException if the object creation failed. */ @Override public synchronized TemporalCRS createTemporalCRS(final String code) throws FactoryException { final TemporalCRS crs; final String key = trimAuthority(code); final Object cached = get(key); if (cached instanceof TemporalCRS) { crs = (TemporalCRS) cached; } else { crs = getBackingStore().createTemporalCRS(code); } put(key, crs); return crs; }