Go to the documentation of this file.
19package org.sleuthkit.autopsy.geolocation.datamodel;
21import java.util.ArrayList;
22import java.util.Collections;
25import org.openide.util.NbBundle.Messages;
26import org.sleuthkit.datamodel.BlackboardArtifact;
27import org.sleuthkit.datamodel.BlackboardAttribute;
28import org.sleuthkit.datamodel.blackboardutils.attributes.BlackboardJsonAttrUtil;
29import org.sleuthkit.datamodel.blackboardutils.attributes.BlackboardJsonAttrUtil.InvalidJsonException;
30import org.sleuthkit.datamodel.blackboardutils.attributes.GeoAreaPoints;
35public final class Area extends GeoPath {
70 private static String
getAreaName(Map<BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute> attributeMap) {
71 BlackboardAttribute attribute = attributeMap.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME);
73 return attribute !=
null ? attribute.getValueString() :
"";
86 "GEOArea_point_label_header=Area outline point for area: {0}"
89 for (GeoAreaPoints.AreaPoint point : points) {
90 addToPath(
new AreaWaypoint(
artifact, Bundle.GEOArea_point_label_header(
getLabel()), point));
105 BlackboardAttribute attribute = attributeMap.get(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_GEO_AREAPOINTS);
106 if (attribute ==
null) {
111 return BlackboardJsonAttrUtil.fromAttribute(attribute, GeoAreaPoints.class);
112 }
catch (InvalidJsonException ex) {
120 final class AreaWaypoint
extends Waypoint {
139 point.getLongitude(),
145 propertyList = createPropertyList(point);
156 return Collections.unmodifiableList(propertyList);
166 private List<Waypoint.Property> createPropertyList(GeoAreaPoints.AreaPoint point) {
167 List<Waypoint.Property> list =
new ArrayList<>();
static String getAreaName(Map< BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute > attributeMap)
void buildPath(GeoAreaPoints points, BlackboardArtifact artifact)
GeoAreaPoints getPointsList(Map< BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute > attributeMap)
Area(BlackboardArtifact artifact, Map< BlackboardAttribute.ATTRIBUTE_TYPE, BlackboardAttribute > attributeMap)
Area(BlackboardArtifact artifact)
final BlackboardArtifact artifact
final BlackboardArtifact artifact
List< Waypoint.Property > getOtherProperties()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.