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 saveFeatures(Object tag, String filename) { if (!Debug.isDebugging()) return; try { // saveShapefile(getDebugFeatureDataset(tag), filename); saveJMLfile(getDebugFeatureDataset(tag), filename); } catch (Exception ex) { ex.printStackTrace(); } }
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)); }