Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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();
   }
 }
Ejemplo n.º 3
0
 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));
 }