Package mil.nga.sf.extended
Class ExtendedGeometryCollection<T extends Geometry>
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.GeometryCollection<T>
-
- mil.nga.sf.extended.ExtendedGeometryCollection<T>
-
- Type Parameters:
T- geometry type
- All Implemented Interfaces:
Serializable
public class ExtendedGeometryCollection<T extends Geometry> extends GeometryCollection<T>
Extended Geometry Collection providing abstract geometry collection type support- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtendedGeometryCollection(ExtendedGeometryCollection<T> extendedGeometryCollection)Copy ConstructorExtendedGeometryCollection(GeometryCollection<T> geometryCollection)Constructor, wraps a geometry collection as extended
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geometrycopy()Copy the geometrybooleanequals(Object obj)GeometryTypegetGeometryType()Get the geometry typeinthashCode()voidupdateGeometryType()Update the extended geometry type based upon the contained geometries-
Methods inherited from class mil.nga.sf.GeometryCollection
addGeometries, addGeometry, getAsGeometryCollection, getAsMultiCurve, getAsMultiLineString, getAsMultiPoint, getAsMultiPolygon, getAsMultiSurface, getCollectionType, getGeometries, getGeometry, isEmpty, isMultiCurve, isMultiLineString, isMultiPoint, isMultiPolygon, isMultiSurface, isSimple, numGeometries, setGeometries
-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
ExtendedGeometryCollection
public ExtendedGeometryCollection(GeometryCollection<T> geometryCollection)
Constructor, wraps a geometry collection as extended- Parameters:
geometryCollection- geometry collection
-
ExtendedGeometryCollection
public ExtendedGeometryCollection(ExtendedGeometryCollection<T> extendedGeometryCollection)
Copy Constructor- Parameters:
extendedGeometryCollection- extended geometry collection to copy
-
-
Method Detail
-
updateGeometryType
public void updateGeometryType()
Update the extended geometry type based upon the contained geometries
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Overrides:
getGeometryTypein classGeometry- Returns:
- geometry type
-
copy
public Geometry copy()
Copy the geometry- Overrides:
copyin classGeometryCollection<T extends Geometry>- Returns:
- geometry copy
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGeometryCollection<T extends Geometry>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classGeometryCollection<T extends Geometry>
-
-