CoordinateReferenceSystem hcrs = CRS.getHorizontalCRS(crs);
BBOX bbox = ff.bbox("the_geom", -180, -90, 180, 90, null);
DefaultCRSFilterVisitor visitor = new DefaultCRSFilterVisitor(ff, crs);
BBOX filtered = (BBOX) bbox.accept(visitor, null);
Literal box = (Literal) filtered.getExpression2();
Geometry g = (Geometry) box.evaluate(null);
assertEquals(hcrs, g.getUserData());
}
@Test
public void force3DCRS3DEnvelope() throws Exception {