Package mil.nga.oapi.features.json
Class Spatial
- java.lang.Object
-
- mil.nga.oapi.features.json.FeaturesObject
-
- mil.nga.oapi.features.json.Spatial
-
- All Implemented Interfaces:
Serializable
public class Spatial extends FeaturesObject
The spatial extent of the features in the collection.- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Spatial()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBbox(List<Double> bbox)Add a bounding boxintbboxCount()Get the bounding box collection countList<Double>firstBbox()Get the first bounding boxList<List<Double>>getBbox()Get the bounding box collectionList<Double>getBbox(int index)Get the bounding box at the indexStringgetCrs()Get the coordinate reference systemvoidsetBbox(List<List<Double>> bbox)Set the bounding box collectionvoidsetCrs(String crs)Set the coordinate reference system-
Methods inherited from class mil.nga.oapi.features.json.FeaturesObject
getForeignMember, getForeignMembers, hasForeignMember, hasForeignMembers, setForeignMember
-
-
-
-
Method Detail
-
getBbox
public List<List<Double>> getBbox()
Get the bounding box collection- Returns:
- bounding box collection
- Since:
- 3.0.0
-
setBbox
public void setBbox(List<List<Double>> bbox)
Set the bounding box collection- Parameters:
bbox- bounding box collection- Since:
- 3.0.0
-
bboxCount
public int bboxCount()
Get the bounding box collection count- Returns:
- count
- Since:
- 3.0.0
-
firstBbox
public List<Double> firstBbox()
Get the first bounding box- Returns:
- bounding box
- Since:
- 3.0.0
-
getBbox
public List<Double> getBbox(int index)
Get the bounding box at the index- Parameters:
index- 0 based index- Returns:
- bounding box
- Since:
- 3.0.0
-
addBbox
public void addBbox(List<Double> bbox)
Add a bounding box- Parameters:
bbox- single bounding box- Since:
- 3.0.0
-
getCrs
public String getCrs()
Get the coordinate reference system- Returns:
- coordinate reference system
-
setCrs
public void setCrs(String crs)
Set the coordinate reference system- Parameters:
crs- coordinate reference system
-
-