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());
}
Aggregations