Klasse PGboxbase

java.lang.Object
org.postgresql.util.PGobject
io.github.sebasbaumh.postgis.PGboxbase
Alle implementierten Schnittstellen:
Serializable, Cloneable
Bekannte direkte Unterklassen:
PGbox2d, PGbox3d

@NonNullByDefault({PARAMETER,RETURN_TYPE}) public abstract class PGboxbase extends org.postgresql.util.PGobject
Base class for bounding boxes.
Autor:
Sebastian Baumhekel
Siehe auch:
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected Point
    The lower left bottom corner of the box.
    protected Point
    The upper right top corner of the box.

    Von Klasse geerbte Felder org.postgresql.util.PGobject

    type, value
  • Konstruktorübersicht

    Konstruktoren
    Modifizierer
    Konstruktor
    Beschreibung
    protected
    Constructs an instance.
    protected
    PGboxbase(String type, Point llb, Point urt)
    Constructs an instance.
    protected
    PGboxbase(String type, String value)
    Constructs an instance.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
     
    Returns the lower left bottom corner of the box as a Point object
    protected abstract String
    The Prefix we have in WKT rep.
    int
    The OGIS geometry type number of this geometry.
    Returns the upper right top corner of the box as a Point object
     
    int
     
    abstract boolean
    Checks if this box is 3d.
    boolean
    Ist this box empty, so does it contain no coordinates?
    void
    setSrid(int srid)
    Recursively sets the srid on this geometry and all contained subgeometries
    void
     
    Unlike geometries, toString() does _not_ contain the srid, as server-side PostGIS cannot parse this.

    Von Klasse geerbte Methoden org.postgresql.util.PGobject

    clone, equals, getType, isNull, setType

    Von Klasse geerbte Methoden java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Felddetails

    • llb

      protected Point llb
      The lower left bottom corner of the box.
    • urt

      protected Point urt
      The upper right top corner of the box.
  • Konstruktordetails

    • PGboxbase

      protected PGboxbase(String type)
      Constructs an instance.
      Parameter:
      type - type of this PGobject
    • PGboxbase

      protected PGboxbase(String type, Point llb, Point urt)
      Constructs an instance.
      Parameter:
      type - type of this PGobject
      llb - lower left Point
      urt - upper right Point
    • PGboxbase

      protected PGboxbase(String type, String value) throws SQLException
      Constructs an instance.
      Parameter:
      type - type of this PGobject
      value - WKT
      Löst aus:
      SQLException
  • Methodendetails

    • equals

      public boolean equals(@Nullable Object obj)
      Setzt außer Kraft:
      equals in Klasse org.postgresql.util.PGobject
    • getLLB

      public Point getLLB()
      Returns the lower left bottom corner of the box as a Point object
      Gibt zurück:
      lower left bottom corner of this box
    • getPrefix

      protected abstract String getPrefix()
      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.
      Gibt zurück:
      the prefix, as a string
    • getSrid

      public int getSrid()
      The OGIS geometry type number of this geometry.
      Gibt zurück:
      the SRID of this geometry
    • getURT

      public Point getURT()
      Returns the upper right top corner of the box as a Point object
      Gibt zurück:
      upper right top corner of this box
    • getValue

      @Nonnull public String getValue()
      Setzt außer Kraft:
      getValue in Klasse org.postgresql.util.PGobject
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse org.postgresql.util.PGobject
    • is3d

      public abstract boolean is3d()
      Checks if this box is 3d.
      Gibt zurück:
      true on success, else false
    • isEmpty

      public boolean isEmpty()
      Ist this box empty, so does it contain no coordinates?
      Gibt zurück:
      true on success, else false
    • setSrid

      public void setSrid(int srid)
      Recursively sets the srid on this geometry and all contained subgeometries
      Parameter:
      srid - the SRID for this geometry
    • setValue

      public void setValue(@Nonnull String value) throws SQLException
      Setzt außer Kraft:
      setValue in Klasse org.postgresql.util.PGobject
      Löst aus:
      SQLException
    • toString

      public String toString()
      Unlike geometries, toString() does _not_ contain the srid, as server-side PostGIS cannot parse this.
      Setzt außer Kraft:
      toString in Klasse org.postgresql.util.PGobject
      Gibt zurück:
      String representation of this box