java.lang.Object
org.apache.sedona.core.formatMapper.shapefileParser.boundary.BoundBox
All Implemented Interfaces:
Serializable

public class BoundBox extends Object implements Serializable
Created by zongsizhang on 7/6/17.
See Also:
  • Constructor Details

    • BoundBox

      public BoundBox(double[] bounds)
      construct bounds with an array
      Parameters:
      bounds -
    • BoundBox

      public BoundBox(BoundBox otherbox)
      construct by copy other boundbox
      Parameters:
      otherbox -
    • BoundBox

      public BoundBox()
      construct an initial boundBox with all value 0
  • Method Details

    • mergeBoundBox

      public static BoundBox mergeBoundBox(BoundBox box1, BoundBox box2)
      calculate the union of two bound box
      Parameters:
      box1 -
      box2 -
      Returns:
    • set

      public void set(int i, double value)
      set tuple at i with value
      Parameters:
      i -
      value -
    • copyBounds

      public double[] copyBounds()
      return a copy of bounds
      Returns:
    • toString

      public String toString()
      convert bounds array to string
      Overrides:
      toString in class Object
      Returns:
    • getXMin

      public double getXMin()
      get min X
    • setXMin

      public void setXMin(double value)
      set min X
    • getXMax

      public double getXMax()
      get max X
    • setXMax

      public void setXMax(double value)
      set max X
    • getYMin

      public double getYMin()
      get min Y
    • setYMin

      public void setYMin(double value)
      set min Y
    • getYMax

      public double getYMax()
      get max Y
    • setYMax

      public void setYMax(double value)
      set max Y
    • getZMin

      public double getZMin()
      get min Z
    • setZMin

      public void setZMin(double value)
      set min Z
    • getZMax

      public double getZMax()
      get max Z
    • setZMax

      public void setZMax(double value)
      set max Z
    • getMMin

      public double getMMin()
      get min M
    • setMMin

      public void setMMin(double value)
      set min M
    • getMMax

      public double getMMax()
      get max M
    • setMMax

      public void setMMax(double value)
      set max M