/** Creates an object for the specified code. */ protected IdentifiedObject createObject(final String code) throws FactoryException { if (projections != null) { final String crs = (String) projections.get(code); if (crs != null) { return ((CRSAuthorityFactory) factory) .createProjectedCRS(crs) .getConversionFromBase(); } } return ((CoordinateOperationAuthorityFactory) factory).createCoordinateOperation(code); } }
/** * Creates an operation from a single operation code. * * <p>This method searches in the {@linkplain #FILENAME properties file} for operations. * * <p>If not found there, it will create operations from a fallback factory (see {@link * #getFallbackAuthorityFactory}). * * @param code Coded value for operation. * @return The operation from {@code sourceCRS} to {@code targetCRS}. * @throws NoSuchAuthorityCodeException if a specified code was not found. * @throws FactoryException if the object creation failed for some other reason. */ public CoordinateOperation createCoordinateOperation(String code) throws NoSuchAuthorityCodeException, FactoryException { CoordinateOperation coordop = super.createCoordinateOperation(code); if (coordop == null) { CoordinateOperationAuthorityFactory fallback = getFallbackAuthorityFactory(); if (fallback != null) { coordop = fallback.createCoordinateOperation(code); } } return coordop; }
/** * Creates an operation from a single operation code. * * @throws FactoryException if the object creation failed. */ @Override public CoordinateOperation createCoordinateOperation(final String code) throws FactoryException { return replace( getCoordinateOperationAuthorityFactory(code) .createCoordinateOperation(toBackingFactoryCode(code))); }
public CoordinateOperation createCoordinateOperation(String code) throws FactoryException { final String key = toKey(code); CoordinateOperation operation = (CoordinateOperation) cache.get(key); if (operation == null) { try { cache.writeLock(key); operation = (CoordinateOperation) cache.peek(key); if (operation == null) { operation = operationAuthority.createCoordinateOperation(code); cache.put(key, operation); } } finally { cache.writeUnLock(key); } } return operation; }
@Override CoordinateOperation createFromAPI(AuthorityFactory factory, String code) throws FactoryException { return opFactory(factory).createCoordinateOperation(code); } };
@Override CoordinateOperation createFromAPI(AuthorityFactory factory, String code) throws FactoryException { return opFactory(factory).createCoordinateOperation(code); } };
/** * Creates the actual coordinate operation. * * @return the coordinate operation. * @throws FactoryException if the factory failed to create the coordinate operation. */ public CoordinateOperation create() throws FactoryException { return factory.createCoordinateOperation(getIdentifiers().iterator().next().getCode()); } }
/** * Creates the actual coordinate operation. * * @return the coordinate operation. * @throws FactoryException if the factory failed to create the coordinate operation. */ public CoordinateOperation create() throws FactoryException { return factory.createCoordinateOperation(getIdentifiers().iterator().next().getCode()); } }
return ((CoordinateOperationAuthorityFactory) factory).createCoordinateOperation(code);
return ((CoordinateOperationAuthorityFactory) factory).createCoordinateOperation(code);
final CoordinateOperation operation; try { operation = copAuthorityFactory.createCoordinateOperation(codeAsString); } catch (NoSuchIdentifierException e) {
final CoordinateOperation operation; try { operation = copAuthorityFactory.createCoordinateOperation(codeAsString); } catch (NoSuchIdentifierException e) {
final CoordinateOperation operation; try { operation = copAuthorityFactory.createCoordinateOperation(codeAsString); } catch (NoSuchIdentifierException e) {
getCoordinateOperationAuthorityFactory().createCoordinateOperation(String.valueOf(epsg)); verify(projection, angularUnit, linearUnit); return projection;