Class EdgeRing

    • Method Detail

      • isIsolated

        public boolean isIsolated()
      • isHole

        public boolean isHole()
      • getCoordinate

        public Coordinate getCoordinate​(int i)
      • getLinearRing

        public LinearRing getLinearRing()
      • getLabel

        public Label getLabel()
      • isShell

        public boolean isShell()
      • setShell

        public void setShell​(EdgeRing shell)
      • addHole

        public void addHole​(EdgeRing ring)
      • computeRing

        public void computeRing()
        Compute a LinearRing from the point list previously collected. Test if the ring is a hole (i.e. if it is CCW) and set the hole flag accordingly.
      • getEdges

        public java.util.List getEdges()
        Returns the list of DirectedEdges that make up this EdgeRing
        Returns:
        List of DirectedEdges
      • getMaxNodeDegree

        public int getMaxNodeDegree()
      • setInResult

        public void setInResult()
      • containsPoint

        public boolean containsPoint​(Coordinate p)
        This method will cause the ring to be computed. It will also check any holes, if they have been assigned.
        Parameters:
        p - point
        Returns:
        true of ring contains point