@Test public void testEncodeBBOXFilterAsEnvelopeEnabled() throws FilterToSQLException { filterToSql.setEncodeBBOXFilterAsEnvelope(true); filterToSql.setFeatureType(testSchema); Intersects filter = ff.intersects( ff.property("testGeometry"), ff.literal( gf.createPolygon( gf.createLinearRing( new Coordinate[] { new Coordinate(0, 0), new Coordinate(0, 2), new Coordinate(2, 2), new Coordinate(2, 0), new Coordinate(0, 0) })))); filterToSql.encode(filter); assertTrue(writer.toString().toLowerCase().contains("st_envelope")); }
public void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope) { helper.encodeBBOXFilterAsEnvelope = encodeBBOXFilterAsEnvelope; }
PostgisFilterToSQL extends FilterToSQL { public void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope) { helper.encodeBBOXFilterAsEnvelope = encodeBBOXFilterAsEnvelope; } }
PostgisFilterToSQL extends FilterToSQL { public void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope) { helper.encodeBBOXFilterAsEnvelope = encodeBBOXFilterAsEnvelope; } PostgisFilterToSQL(PostGISDialect dialect); }
PostgisFilterToSQL extends FilterToSQL { public void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope) { helper.encodeBBOXFilterAsEnvelope = encodeBBOXFilterAsEnvelope; } PostgisFilterToSQL(PostGISDialect dialect); boolean isLooseBBOXEnabled(); void setLooseBBOXEnabled(boolean looseBBOXEnabled); boolean isEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope); void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope); @Override Object visit(Function function, Object extraData); @Override Object visit(Literal literal, Object extraData); void setFunctionEncodingEnabled(boolean functionEncodingEnabled); @Override double getDistanceInMeters(DistanceBufferOperator operator); @Override double getDistanceInNativeUnits(DistanceBufferOperator operator); Object visit(PropertyIsBetween filter, Object extraData); Object visit(PropertyIsEqualTo filter, Object extraData); }
PostgisFilterToSQL extends FilterToSQL { public void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope) { helper.encodeBBOXFilterAsEnvelope = encodeBBOXFilterAsEnvelope; } PostgisFilterToSQL(PostGISDialect dialect); boolean isLooseBBOXEnabled(); void setLooseBBOXEnabled(boolean looseBBOXEnabled); boolean isEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope); void setEncodeBBOXFilterAsEnvelope(boolean encodeBBOXFilterAsEnvelope); @Override Object visit(Function function, Object extraData); @Override Object visit(Literal literal, Object extraData); void setFunctionEncodingEnabled(boolean functionEncodingEnabled); @Override double getDistanceInMeters(DistanceBufferOperator operator); @Override double getDistanceInNativeUnits(DistanceBufferOperator operator); Object visit(PropertyIsBetween filter, Object extraData); Object visit(PropertyIsEqualTo filter, Object extraData);  }