19 package org.sleuthkit.datamodel.blackboardutils.attributes;
21 import com.google.gson.annotations.SerializedName;
22 import java.util.ArrayList;
23 import java.util.Iterator;
24 import java.util.List;
36 public class GeoAreaPoints implements Iterable<GeoAreaPoints.AreaPoint> {
38 private final List<AreaPoint> points;
44 points =
new ArrayList<>();
53 if (areaPoint == null) {
54 throw new IllegalArgumentException(
"addPoint was passed a null waypoint");
57 points.add(areaPoint);
66 return points.isEmpty();
71 return points.iterator();
81 @SerializedName(
"TSK_GEO_LATITUDE")
82 private final Double latitude;
83 @SerializedName(
"TSK_GEO_LONGITUDE")
84 private final Double longitude;
92 public AreaPoint(Double latitude, Double longitude) {
93 if (latitude == null) {
94 throw new IllegalArgumentException(
"Constructor was passed null latitude");
97 if (longitude == null) {
98 throw new IllegalArgumentException(
"Constructor was passed null longitude");
101 this.latitude = latitude;
102 this.longitude = longitude;
void addPoint(AreaPoint areaPoint)
AreaPoint(Double latitude, Double longitude)
Iterator< AreaPoint > iterator()