Package org.codice.ddf.opensearch.source
Class BoundingBoxUtils
java.lang.Object
org.codice.ddf.opensearch.source.BoundingBoxUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic BoundingBoxcreateBoundingBox(PointRadius pointRadius) Takes in aPointRadiussearch and converts it to a (rough approximation) bounding box using Vincenty's formula (direct) and the WGS-84 approximation of the Earth.static BoundingBoxcreateBoundingBox(org.locationtech.jts.geom.Polygon polygon) Takes in aPolygonand converts it to a (rough approximation)BoundingBox.getBoundingBoxCoordinatesList(BoundingBox boundingBox) Takes in aBoundingBoxand extracts the coordinates in a counter clockwise matter with first and last coordinate being the same point
-
Method Details
-
createBoundingBox
Takes in aPointRadiussearch and converts it to a (rough approximation) bounding box using Vincenty's formula (direct) and the WGS-84 approximation of the Earth. -
createBoundingBox
Takes in aPolygonand converts it to a (rough approximation)BoundingBox.Note: Searches being performed where the polygon goes through the antimeridian will return an incorrect bounding box. TODO DDF-3742
-
getBoundingBoxCoordinatesList
Takes in aBoundingBoxand extracts the coordinates in a counter clockwise matter with first and last coordinate being the same point- Parameters:
boundingBox-- Returns:
-