public static void add(Object tag, Geometry geom, String msg) { if (!Debug.isDebugging()) return; FeatureDataset fd = getDebugFeatureDataset(tag); Feature feature = new BasicFeature(fd.getFeatureSchema()); feature.setGeometry(geom); feature.setAttribute(MESG_ATTR_NAME, msg); fd.add(feature); }
public static void addLineSegment(Object tag, Coordinate p0, Coordinate p1, String msg) { if (!Debug.isDebugging()) return; FeatureDataset fd = getDebugFeatureDataset(tag); fd.add(createLineSegmentFeature(fd.getFeatureSchema(), p0, p1, msg)); }