private boolean checkJTSFootprint(String footprint){
  try {
    JtsSpatialContextFactory factory=new JtsSpatialContextFactory();
    JtsSpatialContext ctx=factory.newSpatialContext();
    JtsWKTReaderShapeParser parser=new JtsWKTReaderShapeParser(ctx,factory);
    parser.parse(footprint);
    return true;
  }
 catch (  Exception e) {
    LOGGER.error("JTS Footprint error : " + e.getMessage());
    return false;
  }
}

private boolean checkJTSFootprint ( String footprint ) { try { JtsSpatialContextFactory factory = new JtsSpatialContextFactory ( ) ; JtsSpatialContext ctx = factory . newSpatialContext ( ) ; JtsWKTReaderShapeParser parser = new JtsWKTReaderShapeParser ( ctx , factory ) ; parser . parse ( footprint ) ; return true ; } catch ( Exception e ) { LOGGER . error ( "JTS Footprint error : " + e . getMessage ( ) ) ; return false ; } }
check jts footprint validity
