com.ibm.geolib.geom

Interface Polygon

  • All Superinterfaces:
    java.lang.Cloneable, Geometry, Spatial, Surface


    public interface Polygon
    extends Surface
    Interface of a polygon that has exterior boundary and optional interior boundaries (holes)
    • Method Detail

      • addInteriorBoundary

        void addInteriorBoundary(LinearRing interiorBoundary)
        Add interior boundary (hole) to this polygon
        Parameters:
        interiorBoundary -
      • setInteriorBoundaries

        void setInteriorBoundaries(java.util.Collection<LinearRing> interiorBoundaries)
        set interior boundaries (holes) for this polygon
        Parameters:
        interiorBoundaries -
      • setExteriorBoundary

        void setExteriorBoundary(LinearRing exteriorBoundary)
        Set the exterior boundary of this polygon
        Parameters:
        exteriorBoundary -
      • setBoundaries

        void setBoundaries(LinearRing exteriorBoundary,
                         java.util.Collection<LinearRing> interiorBoundaries)
        Set interior and exterior boundaries
        Parameters:
        exteriorBoundary -
        interiorBoundaries - (holes) of this polygon
      • getExteriorBoundary

        LinearRing getExteriorBoundary()
        Returns:
        the exterior boundary of this polygon
      • getInteriorBoundaries

        java.util.Collection<LinearRing> getInteriorBoundaries()
        Returns:
        the interior boundaries (holes) of this polygon
      • setSimplicityMode

        void setSimplicityMode(boolean doAllowNonSimplicity)
      • getSimplicityMode

        boolean getSimplicityMode()

© Copyright IBM 2017