linestring
}
, null, crs);
IGeoResource resource = MapTests.createGeoResource(features, false );
Map map = MapTests.createNonDynamicMapAndRenderer(resource, new Dimension(1024,1024));
map.getViewportModelInternal().setCRS(DefaultGeographicCRS.WGS84);
createContext(map);
map.getViewportModelInternal().setBounds(-150,-120,45,65);
Envelope result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope( minx,maxx,miny,maxy,crs ), new NullProgressMonitor(), context);
compareEnvelopes( new Envelope( minx,maxx,miny,maxy ), result);
result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope( minx,maxx,miny,maxy-5, crs), new NullProgressMonitor(), context);
compareEnvelopes( new Envelope( minx,maxx,miny,maxy-5 ), result);
result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope( minx,maxx,miny-20,maxy+20, crs ), new NullProgressMonitor(), context);
compareEnvelopes( new Envelope( minx,maxx,50,60 ), result);
map.getViewportModelInternal().setBounds(minx-5,minx+5,miny-5,miny+5);
result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope( minx,maxx,miny,maxy,crs ), new NullProgressMonitor(), context);
compareEnvelopes( new Envelope( minx,minx+5,miny,miny+5 ), result);
map.getViewportModelInternal().setBounds(minx+2,minx+4,miny+2,miny+4);
result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope( minx,maxx,miny,maxy,crs ), new NullProgressMonitor(), context);
compareEnvelopes( new Envelope( minx+2,minx+4,miny+2,miny+4 ), result);
result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope( 0,20,0,20,crs ), new NullProgressMonitor(), context);