Package org.postgis

Class PGgeometry

    • Method Detail

      • setValue

        public void setValue​(String value)
                      throws SQLException
        Overrides:
        setValue in class org.postgresql.util.PGobject
        Throws:
        SQLException
      • geomFromString

        public static Geometry geomFromString​(String value,
                                              BinaryParser bp)
                                       throws SQLException
        Maybe we could add more error checking here?
        Parameters:
        value - String representing the geometry
        bp - BinaryParser to use whe parsing
        Returns:
        Geometry object parsed from the specified string value
        Throws:
        SQLException - when a SQLException occurs
      • getGeometry

        public Geometry getGeometry()
      • setGeometry

        public void setGeometry​(Geometry newgeom)
      • getGeoType

        public int getGeoType()
      • toString

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

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

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

        public static String[] splitSRID​(String whole)
                                  throws SQLException
        Splits a String at the first occurrence of border character. Poor man's String.split() replacement, as String.split() was invented at jdk1.4, and the Debian PostGIS Maintainer had problems building the woody backport of his package using DFSG-free compilers. In all the cases we used split() in the org.postgis package, we only needed to split at the first occurence, and thus this code could even be faster.
        Parameters:
        whole - the String to be split
        Returns:
        String array containing the split elements
        Throws:
        SQLException - when a SQLException occurrs