@Test public void testDomainOfValidity() { createMercatorProjection(); final SingleOperation operation = this.operation; final GeographicBoundingBox box = (GeographicBoundingBox) operation.getDomainOfValidity().getGeographicElements().iterator().next(); assertBetween("westBoundLongitude", -180, -152, box.getWestBoundLongitude()); assertBetween("eastBoundLongitude", -58, +180, box.getEastBoundLongitude()); assertBetween("southBoundLatitude", -90, -43, box.getSouthBoundLatitude()); assertBetween("northBoundLatitude", 43, +90, box.getNorthBoundLatitude()); }
@Override public Extent getDomainOfValidity() { final LatLonRect domain = ProjectionAdapter.factory(projection).getDefaultMapAreaLL(); if (domain != null) { return new SimpleGeographicBoundingBox( domain.getLonMin(), domain.getLonMax(), domain.getLatMin(), domain.getLatMax()); } return null; }
NetcdfProjection extends NetcdfIdentifiedObject implements org.opengis.referencing.operation.Projection, MathTransform2D { @Override public Extent getDomainOfValidity() { final LatLonRect domain = ProjectionAdapter.factory(projection).getDefaultMapAreaLL(); if (domain != null) { return new SimpleGeographicBoundingBox( domain.getLonMin(), domain.getLonMax(), domain.getLatMin(), domain.getLatMax()); } return null; } }
NetcdfProjection extends NetcdfIdentifiedObject implements org.opengis.referencing.operation.Projection, MathTransform2D { @Override public Extent getDomainOfValidity() { final LatLonRect domain = ProjectionAdapter.factory(projection).getDefaultMapAreaLL(); if (domain != null) { return new SimpleGeographicBoundingBox( domain.getLonMin(), domain.getLonMax(), domain.getLatMin(), domain.getLatMax()); } return null; } NetcdfProjection(final Projection projection,
            final GeographicCRS sourceCRS,
            final ProjectedCRS targetCRS);   NetcdfProjection(final Projection projection,
                     final ProjectionProvider<?> provider,
                     final GeographicCRS sourceCRS,
                     final ProjectedCRS targetCRS); private  NetcdfProjection(final NetcdfProjection other); }
NetcdfProjection extends NetcdfIdentifiedObject implements org.opengis.referencing.operation.Projection, MathTransform2D { @Override public Extent getDomainOfValidity() { final LatLonRect domain = ProjectionAdapter.factory(projection).getDefaultMapAreaLL(); if (domain != null) { return new SimpleGeographicBoundingBox( domain.getLonMin(), domain.getLonMax(), domain.getLatMin(), domain.getLatMax()); } return null; } NetcdfProjection(final Projection projection,
            final GeographicCRS sourceCRS,
            final ProjectedCRS targetCRS);   NetcdfProjection(final Projection projection,
                     final ProjectionProvider<?> provider,
                     final GeographicCRS sourceCRS,
                     final ProjectedCRS targetCRS); private  NetcdfProjection(final NetcdfProjection other); @Override Projection delegate(); @Override String getCode(); @Override boolean isIdentity(); @Override GeographicCRS getSourceCRS(); @Override ProjectedCRS getTargetCRS(); @Override int getSourceDimensions(); @Override int getTargetDimensions(); @Override MathTransform2D getMathTransform(); @Override DirectPosition transform(final DirectPosition ptSrc, DirectPosition ptDst); @Override Point2D transform(final Point2D ptSrc, final Point2D ptDst); @Override void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts); @Override void transform(float[] srcPts, int srcOff, final float[] dstPts, int dstOff, int numPts); @Override void transform(final float[] srcPts, int srcOff, final double[] dstPts, int dstOff, int numPts); @Override void transform(final double[] srcPts, int srcOff, final float[] dstPts, int dstOff, int numPts); @Override Shape createTransformedShape(final Shape shape); @Override Matrix derivative(final DirectPosition point); @Override Matrix derivative(final Point2D point); @Override synchronized MathTransform2D inverse(); @Override Extent getDomainOfValidity(); @Override OperationMethod getMethod(); @Override ParameterValueGroup getParameterValues(); @Override boolean equals(final Object object); }
NetcdfProjection extends NetcdfIdentifiedObject implements org.opengis.referencing.operation.Projection, MathTransform2D { @Override public Extent getDomainOfValidity() { final LatLonRect domain = ProjectionAdapter.factory(projection).getDefaultMapAreaLL(); if (domain != null) { return new SimpleGeographicBoundingBox( domain.getLonMin(), domain.getLonMax(), domain.getLatMin(), domain.getLatMax()); } return null; } NetcdfProjection(final Projection projection,
            final GeographicCRS sourceCRS,
            final ProjectedCRS targetCRS);   NetcdfProjection(final Projection projection,
                     final ProjectionProvider<?> provider,
                     final GeographicCRS sourceCRS,
                     final ProjectedCRS targetCRS); private  NetcdfProjection(final NetcdfProjection other); @Override Projection delegate(); @Override String getCode(); @Override boolean isIdentity(); @Override GeographicCRS getSourceCRS(); @Override ProjectedCRS getTargetCRS(); @Override int getSourceDimensions(); @Override int getTargetDimensions(); @Override MathTransform2D getMathTransform(); @Override DirectPosition transform(final DirectPosition ptSrc, DirectPosition ptDst); @Override Point2D transform(final Point2D ptSrc, final Point2D ptDst); @Override void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts); @Override void transform(float[] srcPts, int srcOff, final float[] dstPts, int dstOff, int numPts); @Override void transform(final float[] srcPts, int srcOff, final double[] dstPts, int dstOff, int numPts); @Override void transform(final double[] srcPts, int srcOff, final float[] dstPts, int dstOff, int numPts); @Override Shape createTransformedShape(final Shape shape); @Override Matrix derivative(final DirectPosition point); @Override Matrix derivative(final Point2D point); @Override synchronized MathTransform2D inverse(); @Override Extent getDomainOfValidity(); @Override OperationMethod getMethod(); @Override ParameterValueGroup getParameterValues(); @Override boolean equals(final Object object);  }