Package mil.nga.sf
Class MultiSurface<T extends Surface>
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.GeometryCollection<T>
-
- mil.nga.sf.MultiSurface<T>
-
- 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 Summary
Constructors Modifier Constructor Description protected
MultiSurface(GeometryType type, boolean hasZ, boolean hasM)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSurface(T surface)
Add a surfacevoid
addSurfaces(List<T> surfaces)
Add surfacesT
getSurface(int n)
Returns the Nth surfaceList<T>
getSurfaces()
Get the surfacesint
numSurfaces()
Get the number of surfacesvoid
setSurfaces(List<T> surfaces)
Set the surfaces-
Methods inherited from class mil.nga.sf.GeometryCollection
addGeometries, addGeometry, copy, equals, getAsGeometryCollection, getAsMultiCurve, getAsMultiLineString, getAsMultiPoint, getAsMultiPolygon, getAsMultiSurface, getCollectionType, getGeometries, getGeometry, hashCode, isEmpty, isMultiCurve, isMultiLineString, isMultiPoint, isMultiPolygon, isMultiSurface, isSimple, numGeometries, setGeometries
-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
MultiSurface
protected MultiSurface(GeometryType type, boolean hasZ, boolean hasM)
Constructor- Parameters:
type
- geometry typehasZ
- has zhasM
- has m
-
-
Method Detail
-
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
-
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
-
-