@Test public void extentOnePoint() throws SQLException { union.add(createPoint(3, 5)); Object result = union.getResult(); assertThat(result, is(not(nullValue()))); Geometry envelope = GeoDB.gFromWKB((byte[]) result); assertThat(envelope.getArea(), is(0.0)); assertThat(envelope, is(instanceOf(Point.class))); assertThat((Point)envelope, is(equalTo(createPoint(3, 5)))); }
@Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry); } } }
Union extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry); } } } }
Union extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry); } } }  }
Union extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry); } } }  void init(Connection arg0); }
Union extends GeoAggregateFunction { @Override protected void add(Geometry geometry) { if (result == null) { result = geometry; } else { if (geometry != null) { result = result.union(geometry); } } }  void init(Connection arg0);  }