Class BoundsAccumulator

java.lang.Object
ch.so.agi.gretl.internal.shapefile.core.BoundsAccumulator

public final class BoundsAccumulator extends Object
Accumulates the overall bounding box of a Shapefile dataset while records are written sequentially.

NULL shapes (passed as a null Bounds) do not contribute to the box. An empty dataset yields a (0, 0, 0, 0) box, which is the conventional placeholder used by the Shapefile header for datasets without geometry.

  • Constructor Details

    • BoundsAccumulator

      public BoundsAccumulator()
  • Method Details

    • expand

      public void expand(Bounds bounds)
    • isEmpty

      public boolean isEmpty()
    • toBounds

      public Bounds toBounds()