public final class AreaOfInterest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AreaOfInterest.AoiDisplay
Represents the ways that the area of interest (aoi) can be rendered on the map.
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
area
A Geojson geometry (can be string or GeoJson) that indicates the area of interest.
|
AreaOfInterest.AoiDisplay |
display
The way that the Area of Interest will be represented on the map.
|
java.lang.Boolean |
renderAsSvg
If true the Area of Interest will be rendered as SVG (if display == RENDER).
|
java.lang.String |
style
A string representing the style.
|
| Constructor and Description |
|---|
AreaOfInterest() |
| Modifier and Type | Method and Description |
|---|---|
org.geotools.data.simple.SimpleFeatureCollection |
areaToFeatureCollection(MapAttribute.MapAttributeValues mapAttributes)
Return the area polygon as the only feature in the feature collection.
|
AreaOfInterest |
copy()
Make a copy of this Area of Interest.
|
org.locationtech.jts.geom.Geometry |
getArea()
Get the area polygon.
|
void |
postConstruct()
Tests that the area is valid geojson, the style ref is valid or null and the display is non-null.
|
void |
setPolygon(org.locationtech.jts.geom.Geometry polygon) |
public java.lang.String area
The geojson must be a polygon representing the area of interest.
public AreaOfInterest.AoiDisplay display
public java.lang.String style
StyleParserPlugins are used
to load the style. Because of this the styleRef can be JSON, SLD, URL, file path, etc...public java.lang.Boolean renderAsSvg
Configuration.defaultStyle).public void postConstruct()
public org.locationtech.jts.geom.Geometry getArea()
public org.geotools.data.simple.SimpleFeatureCollection areaToFeatureCollection(@Nonnull
MapAttribute.MapAttributeValues mapAttributes)
mapAttributes - the attributes that this aoi is part of.public void setPolygon(org.locationtech.jts.geom.Geometry polygon)
public AreaOfInterest copy()