Class PGgeometry

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    @NonNullByDefault
    public class PGgeometry
    extends org.postgresql.util.PGobject
    Basic geometry class.
    Author:
    Sebastian Baumhekel
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.postgresql.util.PGobject

        type, value
    • Constructor Summary

      Constructors 
      Constructor Description
      PGgeometry()
      Constructs an instance.
      PGgeometry​(Geometry geom)
      Constructs an instance.
      PGgeometry​(java.lang.String value)
      Constructs an instance.
    • Constructor Detail

      • PGgeometry

        public PGgeometry()
        Constructs an instance.
      • PGgeometry

        public PGgeometry​(Geometry geom)
        Constructs an instance.
        Parameters:
        geom - Geometry
      • PGgeometry

        public PGgeometry​(java.lang.String value)
                   throws java.sql.SQLException
        Constructs an instance.
        Parameters:
        value - geometry
        Throws:
        java.sql.SQLException
    • Method Detail

      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class org.postgresql.util.PGobject
      • getGeoType

        public int getGeoType()
        Gets the OGIS geometry type.
        Returns:
        geometry type
      • getValue

        public java.lang.String getValue()
        Overrides:
        getValue in class org.postgresql.util.PGobject
      • setGeometry

        public void setGeometry​(Geometry newgeom)
        Sets the underlying Geometry.
        Parameters:
        newgeom - Geometry
      • setValue

        public void setValue​(@Nonnull
                             java.lang.String value)
                      throws java.sql.SQLException
        Overrides:
        setValue in class org.postgresql.util.PGobject
        Throws:
        java.sql.SQLException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.postgresql.util.PGobject