Search in sources :

Example 1 with DefaultSpatialTemporalExtent

use of org.apache.sis.metadata.iso.extent.DefaultSpatialTemporalExtent in project sis by apache.

the class ServicesForMetadataTest method testSetSpatialTemporalBounds.

/**
 * Tests (indirectly) {@link ServicesForMetadata#setBounds(Envelope, DefaultSpatialTemporalExtent)}.
 *
 * @throws TransformException should never happen.
 */
@Test
@DependsOnMethod({ "testSetGeographicBoundsFrom4D", "testSetVerticalBoundsFromGeoid" })
public void testSetSpatialTemporalBounds() throws TransformException {
    final DefaultSpatialTemporalExtent extent = new DefaultSpatialTemporalExtent();
    extent.setBounds(createEnvelope(HardCodedCRS.GEOID_3D));
    verifySpatialExtent((GeographicBoundingBox) getSingleton(extent.getSpatialExtent()));
    verifyVerticalExtent(CommonCRS.Vertical.MEAN_SEA_LEVEL, extent.getVerticalExtent());
}
Also used : DefaultSpatialTemporalExtent(org.apache.sis.metadata.iso.extent.DefaultSpatialTemporalExtent) Test(org.junit.Test) DependsOnMethod(org.apache.sis.test.DependsOnMethod)

Aggregations

DefaultSpatialTemporalExtent (org.apache.sis.metadata.iso.extent.DefaultSpatialTemporalExtent)1 DependsOnMethod (org.apache.sis.test.DependsOnMethod)1 Test (org.junit.Test)1