Class PGbox3d

java.lang.Object
org.postgresql.util.PGobject
io.github.sebasbaumh.postgis.PGboxbase
io.github.sebasbaumh.postgis.PGbox3d
All Implemented Interfaces:
Serializable, Cloneable

public class PGbox3d extends PGboxbase
BOX3D representing the maximum extents of the geometry.
Author:
Sebastian Baumhekel
See Also:
  • Constructor Details

    • PGbox3d

      public PGbox3d()
      Constructs an instance.
    • PGbox3d

      public PGbox3d(Point llb, Point urt)
      Constructs an instance.
      Parameters:
      llb - lower-left point
      urt - upper-right point
    • PGbox3d

      public PGbox3d(String value) throws SQLException
      Constructs an instance.
      Parameters:
      value - WKT
      Throws:
      SQLException
  • Method Details

    • clone

      public PGbox3d clone()
      Overrides:
      clone in class org.postgresql.util.PGobject
    • getPrefix

      public String getPrefix()
      Description copied from class: PGboxbase
      The Prefix we have in WKT rep. I use an abstract method here so we do not need to replicate the String object in every instance.
      Specified by:
      getPrefix in class PGboxbase
      Returns:
      the prefix, as a string
    • is3d

      public boolean is3d()
      Description copied from class: PGboxbase
      Checks if this box is 3d.
      Specified by:
      is3d in class PGboxbase
      Returns:
      true on success, else false
    • to2d

      public PGbox2d to2d()
      Gets this Point as a 2d object.
      Returns:
      Point