private boolean checkGMLFootprint(String footprint){
  try {
    Configuration configuration=new GMLConfiguration();
    Parser parser=new Parser(configuration);
    parser.parse(new InputSource(new StringReader(footprint)));
    return true;
  }
 catch (  Exception e) {
    LOGGER.error("Error in extracted footprint: " + e.getMessage());
    return false;
  }
}

private boolean checkGMLFootprint ( String footprint ) { try { Configuration configuration = new GMLConfiguration ( ) ; Parser parser = new Parser ( configuration ) ; parser . parse ( new InputSource ( new StringReader ( footprint ) ) ) ; return true ; } catch ( Exception e ) { LOGGER . error ( "Error in extracted footprint: " + e . getMessage ( ) ) ; return false ; } }
check gml footprint validity
