Class GeoJson.Builder
- java.lang.Object
-
- gov.usgs.earthquake.nshmp.geo.json.GeoJson.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoJson.Builder
add(Feature feature)
Add a feature.GeoJson.Builder
bbox(double[] bbox)
Set the optionalbbox
(bounding box) field of this feature collection.FeatureCollection
build()
Returns theFeatureCollection
-
-
-
Method Detail
-
add
public GeoJson.Builder add(Feature feature)
Add a feature. Use static factory methods inFeature
to create new features.- Parameters:
feature
- to add- Returns:
- this builder
- See Also:
Feature
-
bbox
public GeoJson.Builder bbox(double[] bbox)
Set the optionalbbox
(bounding box) field of this feature collection. See the GeoJSON specification for details on bounding boxes.- Parameters:
bbox
- to set- Returns:
- this builder
-
build
public FeatureCollection build()
Returns theFeatureCollection
-
-