示例#1
0
 /**
  * Checks whether the geometry buffer is valid, and returns an error message if not.
  *
  * @param g
  * @param distance
  * @param result
  * @return an appropriate error message or null if the buffer is valid
  */
 public static String isValidMsg(Geometry g, double distance, Geometry result) {
   BufferResultValidator validator = new BufferResultValidator(g, distance, result);
   if (!validator.isValid()) return validator.getErrorMessage();
   return null;
 }
示例#2
0
 public static boolean isValid(Geometry g, double distance, Geometry result) {
   BufferResultValidator validator = new BufferResultValidator(g, distance, result);
   if (validator.isValid()) return true;
   return false;
 }