/** * Returns a name for a transformation between two CRS. */ private static Map<String,?> defaultName(CoordinateReferenceSystem source, CoordinateReferenceSystem target) { return properties(new CRSPair(source, target).toString()); }
/** * Sets the geographic component of the area of interest, or {@code null} if none. * This convenience method set the bounding box into the spatio-temporal {@link Extent}. * * <p>The reverse operation can be done with <code>{@linkplain Extents#getGeographicBoundingBox(Extent) * Extents.getGeographicBoundingBox}({@linkplain #getAreaOfInterest()})</code>.</p> * * @param area the geographic area of interest, or {@code null} if none. */ public void setAreaOfInterest(final GeographicBoundingBox area) { areaOfInterest = setGeographicBoundingBox(areaOfInterest, area); }
/** * Returns the target CRS, which must be projected or {@code null}. */ @Override public final ProjectedCRS getTargetCRS() { return (ProjectedCRS) super.getTargetCRS(); } }
@Override protected void initialize(final int factoryTypes) { if ((factoryTypes & OPERATION) != 0) { opFactory = new DefaultCoordinateOperationFactory(); } } };
/** * Returns the source CRS, which must be geographic or {@code null}. */ @Override public final GeographicCRS getSourceCRS() { return (GeographicCRS) super.getSourceCRS(); }
/** * Invoked when the builder needs a CRS or CS factory. */ @Override public void initialize(final int factoryTypes) { if ((factoryTypes & CRS) != 0) crsFactory = factorySIS.getCRSFactory(); if ((factoryTypes & CS) != 0) csFactory = factorySIS.getCSFactory(); } }
protected Object readResolve() throws ObjectStreamException { return org.apache.sis.referencing.operation.DefaultOperationMethod.castOrCopy(this); } }
/** * Creates a new test case. * * @throws FactoryException if an error occurred while initializing the finder to test. */ public CoordinateOperationFinderTest() throws FactoryException { finder = new CoordinateOperationFinder(null, factory, null); }
/** * Returns the operation type of the given method. */ private static Class<?> getOperationType(final DefaultOperationMethod method) { Class<?> type = method.getOperationType(); if (type == SingleOperation.class) { if (method instanceof Affine) { // EPSG:9624 - Affine parametric transformation type = Transformation.class; } } return type; }
/** * Invoked by JAXB after unmarshalling. */ void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { computeTransientFields(); } }
/** * Returns the interpolation CRS of the given coordinate operation, or {@code null} if none. */ static CoordinateReferenceSystem getInterpolationCRS(final CoordinateOperation operation) { return (operation instanceof AbstractCoordinateOperation) ? ((AbstractCoordinateOperation) operation).getInterpolationCRS() : null; }
/** * Returns a name for a transformation between two CRS. */ private static Map<String,?> defaultName(CoordinateReferenceSystem source, CoordinateReferenceSystem target) { return properties(new CRSPair(source, target).toString()); }
/** * Returns the target CRS, which must be projected or {@code null}. */ @Override public final ProjectedCRS getTargetCRS() { return (ProjectedCRS) super.getTargetCRS(); } }
/** * Returns the source CRS, which must be geographic or {@code null}. */ @Override public final GeographicCRS getSourceCRS() { return (GeographicCRS) super.getSourceCRS(); }
/** * Invoked when the builder needs a CRS or CS factory. */ @Override public void initialize(final int factoryTypes) { if ((factoryTypes & CRS) != 0) crsFactory = factorySIS.getCRSFactory(); if ((factoryTypes & CS) != 0) csFactory = factorySIS.getCSFactory(); } }
/** * Sets the geographic component of the area of interest, or {@code null} if none. * This convenience method set the bounding box into the spatio-temporal {@link Extent}. * * <p>The reverse operation can be done with <code>{@linkplain Extents#getGeographicBoundingBox(Extent) * Extents.getGeographicBoundingBox}({@linkplain #getAreaOfInterest()})</code>.</p> * * @param area the geographic area of interest, or {@code null} if none. */ public void setAreaOfInterest(final GeographicBoundingBox area) { areaOfInterest = setGeographicBoundingBox(areaOfInterest, area); }
/** * Invoked by JAXB after unmarshalling. */ void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { computeTransientFields(); } }
/** * Returns the interpolation CRS of the given coordinate operation, or {@code null} if none. */ static CoordinateReferenceSystem getInterpolationCRS(final CoordinateOperation operation) { return (operation instanceof AbstractCoordinateOperation) ? ((AbstractCoordinateOperation) operation).getInterpolationCRS() : null; }