Package org.postgis

Class MultiLineString

    • Method Detail

      • hashCode

        public int hashCode()
        Description copied from class: Geometry
        java.lang.Object hashCode implementation
        Overrides:
        hashCode in class ComposedGeom
      • createSubGeomInstance

        protected Geometry createSubGeomInstance​(String token,
                                                 boolean haveM)
                                          throws SQLException
        Description copied from class: ComposedGeom
        Return the appropriate instance of the sub-geometry - this encapsulates subclass specific constructor calls
        Specified by:
        createSubGeomInstance in class ComposedGeom
        Parameters:
        token - The token containing the value for the sub-geometry
        haveM - flag to indicate the existence of a measure
        Returns:
        the new sub-geometry
        Throws:
        SQLException - if a SQLException is thrown
      • createSubGeomArray

        protected Geometry[] createSubGeomArray​(int nlines)
        Description copied from class: ComposedGeom
        Return the appropriate instance of the sub-geometry array - this encapsulates subclass specific array instantiation
        Specified by:
        createSubGeomArray in class ComposedGeom
        Parameters:
        nlines - number of elements in the array
        Returns:
        Geometry array corresponding to the sub-geometry
      • numLines

        public int numLines()
      • getLine

        public LineString getLine​(int idx)
      • length

        public double length()