public class GeospatialStatistics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GeospatialStatistics.Builder
Builder to create a GeospatialStatistics.
|
| Constructor and Description |
|---|
GeospatialStatistics()
Constructs a GeospatialStatistics object with the specified CRS.
|
GeospatialStatistics(BoundingBox boundingBox,
GeospatialTypes geospatialTypes)
Constructs a GeospatialStatistics object with the specified CRS, bounding box, and geospatial types.
|
GeospatialStatistics(String crs)
Constructs a GeospatialStatistics object with the specified CRS.
|
| Modifier and Type | Method and Description |
|---|---|
GeospatialStatistics |
copy() |
BoundingBox |
getBoundingBox()
Returns the bounding box.
|
GeospatialTypes |
getGeospatialTypes()
Returns the geometry types.
|
boolean |
isValid() |
void |
merge(GeospatialStatistics other) |
static GeospatialStatistics.Builder |
newBuilder(PrimitiveType type)
Create a new GeospatialStatistics builder with the specified CRS.
|
static GeospatialStatistics.Builder |
noopBuilder()
Creates a builder that doesn't collect any statistics.
|
String |
toString() |
public GeospatialStatistics(BoundingBox boundingBox, GeospatialTypes geospatialTypes)
boundingBox - the bounding box for the geospatial data, or null if not applicable, note that
- The bounding box (bbox) is omitted only if there are no X or Y values.
- The Z and/or M statistics are omitted only if there are no Z and/or M values, respectively.geospatialTypes - the geospatial typespublic GeospatialStatistics()
public GeospatialStatistics(String crs)
crs - the coordinate reference systempublic static GeospatialStatistics.Builder newBuilder(PrimitiveType type)
type - the primitive typepublic BoundingBox getBoundingBox()
public GeospatialTypes getGeospatialTypes()
public boolean isValid()
public void merge(GeospatialStatistics other)
public GeospatialStatistics copy()
public static GeospatialStatistics.Builder noopBuilder()
Copyright © 2024 The Apache Software Foundation. All rights reserved.