@Test public void extentTwoPoints() throws SQLException { extent.add(createPoint(3, 5)); extent.add(createPoint(5, 3)); Object result = extent.getResult(); assertThat(result, is(not(nullValue()))); Geometry envelope = GeoDB.gFromWKB((byte[]) result); assertThat(envelope.getArea(), is(4.0)); assertTrue(envelope.contains(createPoint(4, 4))); assertTrue(envelope.contains(createPoint(4.99999, 4.9999))); assertFalse(envelope.contains(createPoint(5.00001, 5.00001))); }
@Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry.getEnvelope()); } } }
Extent extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry.getEnvelope()); } } } }
Extent extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry.getEnvelope()); } } }  }
Extent extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry.getEnvelope()); } } }  void init(Connection arg0); }
Extent extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry.getEnvelope()); } } }  void init(Connection arg0);  }