Class PGgeometry

  • All Implemented Interfaces:
    Serializable, Cloneable

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

      • PGgeometry

        public PGgeometry()
        Constructs an instance.
      • PGgeometry

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

      • clone

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

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

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

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

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