Package mil.nga.sf.geojson
Class GeometryCollection
- java.lang.Object
-
- mil.nga.sf.geojson.GeoJsonObject
-
- mil.nga.sf.geojson.Geometry
-
- mil.nga.sf.geojson.GeometryCollection
-
- All Implemented Interfaces:
Serializable
public class GeometryCollection extends Geometry
Geometry Collection- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeometryCollection()ConstructorGeometryCollection(List<Geometry> geometries)ConstructorGeometryCollection(GeometryCollection<Geometry> geometryCollection)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<Geometry>getGeometries()Returns geometries as a GeoJSON Geometry listGeometrygetGeometry()Get the simple geometryGeometryCollection<Geometry>getGeometryCollection()Get the simple features geometry collectionGeometryTypegetGeometryType()Get the geometry typeinthashCode()voidsetGeometries(List<Geometry> geometries)Sets the geometries from a GeoJSON Geometry listvoidsetGeometryCollection(GeometryCollection<Geometry> geometryCollection)Set the simple features geometry collection-
Methods inherited from class mil.nga.sf.geojson.Geometry
getSimpleGeometry, getType
-
Methods inherited from class mil.nga.sf.geojson.GeoJsonObject
getBbox, getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setBbox, setForeignMember
-
-
-
-
Constructor Detail
-
GeometryCollection
public GeometryCollection()
Constructor
-
GeometryCollection
public GeometryCollection(List<Geometry> geometries)
Constructor- Parameters:
geometries- list of geometries
-
GeometryCollection
public GeometryCollection(GeometryCollection<Geometry> geometryCollection)
Constructor- Parameters:
geometryCollection- simple geometry collection
-
-
Method Detail
-
getGeometryType
public GeometryType getGeometryType()
Get the geometry type- Specified by:
getGeometryTypein classGeometry- Returns:
- geometry type
-
getGeometry
public Geometry getGeometry()
Get the simple geometry- Specified by:
getGeometryin classGeometry- Returns:
- simple geometry
-
getGeometries
public List<Geometry> getGeometries()
Returns geometries as a GeoJSON Geometry list- Returns:
- the geometries
-
setGeometries
public void setGeometries(List<Geometry> geometries)
Sets the geometries from a GeoJSON Geometry list- Parameters:
geometries- list of geometries- Since:
- 3.0.0
-
getGeometryCollection
public GeometryCollection<Geometry> getGeometryCollection()
Get the simple features geometry collection- Returns:
- geometry collection
- Since:
- 3.0.0
-
setGeometryCollection
public void setGeometryCollection(GeometryCollection<Geometry> geometryCollection)
Set the simple features geometry collection- Parameters:
geometryCollection- geometry collection- Since:
- 3.0.0
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGeoJsonObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classGeoJsonObject
-
-