public static boolean checkJTSFootprint(String footprint){
  try {
    WKTReader wkt=new WKTReader();
    Geometry geom=wkt.read(footprint);
    IsValidOp vaildOp=new IsValidOp(geom);
    TopologyValidationError err=vaildOp.getValidationError();
    if (err != null) {
      throw new IllegalParameterException(err.getMessage());
    }
    return true;
  }
 catch (  Exception e) {
    logger.error("JTS Footprint error : " + e.getMessage());
    return false;
  }
}

public static boolean checkJTSFootprint ( String footprint ) { try { WKTReader wkt = new WKTReader ( ) ; Geometry geom = wkt . read ( footprint ) ; IsValidOp vaildOp = new IsValidOp ( geom ) ; TopologyValidationError err = vaildOp . getValidationError ( ) ; if ( err != null ) { throw new IllegalParameterException ( err . getMessage ( ) ) ; } return true ; } catch ( Exception e ) { logger . error ( "JTS Footprint error : " + e . getMessage ( ) ) ; return false ; } }
check jts footprint validity
