Package org.postgis

Class PointComposedGeom

    • Constructor Detail

      • PointComposedGeom

        protected PointComposedGeom​(int type)
      • PointComposedGeom

        protected PointComposedGeom​(int type,
                                    Point[] points)
    • Method Detail

      • 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 pointcount)
        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:
        pointcount - number of elements in the array
        Returns:
        Geometry array corresponding to the sub-geometry
      • innerWKT

        protected void innerWKT​(StringBuffer sb)
        Description copied from class: Geometry
        Render the "inner" part of the WKT (inside the brackets) into the StringBuffer.
        Overrides:
        innerWKT in class ComposedGeom
        Parameters:
        sb - StringBuffer to render into
      • numPoints

        public int numPoints()
        optimized version
        Overrides:
        numPoints in class ComposedGeom
        Returns:
        number of points in the geometry
      • getPoint

        public Point getPoint​(int idx)
        optimized version
        Overrides:
        getPoint in class ComposedGeom
        Parameters:
        idx - the index of the point, from 0 to numPoints()-1;
        Returns:
        nth point in the geometry
      • getPoints

        public Point[] getPoints()
        Get the underlying Point array
        Returns:
        an array of Points within this geometry