return transformed;
}
GeneralEnvelope generalEnvelope = toGeneralEnvelope(envelope);
MapProjection sourceProjection = CRS.getMapProjection(sourceCRS);
if (sourceProjection instanceof PolarStereographic) {
PolarStereographic ps = (PolarStereographic) sourceProjection;
ParameterValue<?> fe = ps.getParameterValues().parameter(
MapProjection.AbstractProvider.FALSE_EASTING.getName().getCode());
double originX = fe.doubleValue();
ParameterValue<?> fn = ps.getParameterValues().parameter(
MapProjection.AbstractProvider.FALSE_NORTHING.getName().getCode());
double originY = fn.doubleValue();
DirectPosition2D origin = new DirectPosition2D(originX, originY);
if (generalEnvelope.contains(origin)) {
if (targetCRS instanceof GeographicCRS) {