SearchEnvelope { public Envelope getMainEnvelope() { return mainEnvelope; } protected  SearchEnvelope(Envelope envelope, SRSInfo srsInfo); Envelope getMainEnvelope(); Envelope getWrapEnvelope(); String getSrsURI(); SRSInfo getCrsInfo(); HashSet<Resource> check(SpatialIndex spatialIndex); boolean check(Envelope envelope); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static SearchEnvelope build(GeometryWrapper geometryWrapper, SRSInfo srsInfo, double radius, String unitsURI); static SearchEnvelope build(GeometryWrapper geometryWrapper, SRSInfo srsInfo); static SearchEnvelope build(GeometryWrapper geometryWrapper, SRSInfo srsInfo, CardinalDirection direction);  }
@Test public void testGetMainEnvelope() { SearchEnvelope instance = new SearchEnvelope(new Envelope(0, 10, 0, 10), SpatialIndexTestData.WGS_84_SRS_INFO); Envelope expResult = new Envelope(0, 10, 0, 10); Envelope result = instance.getMainEnvelope(); assertEquals(expResult, result); }
@Test public void testGetMainEnvelope2() { SearchEnvelope instance = new SearchEnvelope(new Envelope(40, 220, 0, 10), SpatialIndexTestData.WGS_84_SRS_INFO); Envelope expResult = new Envelope(40, 180, 0, 10); Envelope result = instance.getMainEnvelope(); assertEquals(expResult, result); }
@Test public void testGetMainEnvelope3() { SearchEnvelope instance = new SearchEnvelope(new Envelope(-220, -40, 0, 10), SpatialIndexTestData.WGS_84_SRS_INFO); Envelope expResult = new Envelope(-180, -40, 0, 10); Envelope result = instance.getMainEnvelope(); assertEquals(expResult, result); }
@Test public void testGetMainEnvelope_OSGB() { SearchEnvelope instance = new SearchEnvelope(new Envelope(-220, -40, 0, 10), SpatialIndexTestData.OSGB_SRS_INFO); Envelope expResult = new Envelope(-220, -40, 0, 10); Envelope result = instance.getMainEnvelope(); assertEquals(expResult, result); }