Package mil.nga.sf

Class MultiSurface<T extends Surface>

  • Type Parameters:
    T - surface type
    All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    MultiPolygon

    public abstract class MultiSurface<T extends Surface>
    extends GeometryCollection<T>
    A restricted form of GeometryCollection where each Geometry in the collection must be of type Surface.
    Author:
    osbornb
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiSurface

        protected MultiSurface​(GeometryType type,
                               boolean hasZ,
                               boolean hasM)
        Constructor
        Parameters:
        type - geometry type
        hasZ - has z
        hasM - has m
    • Method Detail

      • getSurfaces

        public List<T> getSurfaces()
        Get the surfaces
        Returns:
        surfaces
      • setSurfaces

        public void setSurfaces​(List<T> surfaces)
        Set the surfaces
        Parameters:
        surfaces - surfaces
      • addSurface

        public void addSurface​(T surface)
        Add a surface
        Parameters:
        surface - surface
      • addSurfaces

        public void addSurfaces​(List<T> surfaces)
        Add surfaces
        Parameters:
        surfaces - surfaces
      • numSurfaces

        public int numSurfaces()
        Get the number of surfaces
        Returns:
        number of surfaces
      • getSurface

        public T getSurface​(int n)
        Returns the Nth surface
        Parameters:
        n - nth line surface to return
        Returns:
        surface