Changeset 33924 for other-projects
- Timestamp:
- 2020-02-14T19:22:40+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/src/org/greenstone/atea/SummaryTool.java
r33919 r33924 5 5 6 6 import org.apache.log4j.Logger; 7 8 import org.greenstone.util.SafeProcess; 7 9 8 10 /** … … 430 432 System.err.println("Total count for query: " + mapData.getTotalCount()); 431 433 434 // Running the command: 435 // python -mjson.tool file.json 436 // to confirm if the JSON in the provided json file parses/is valid JSON. 437 438 String[] cmdArgs = {"python", "-mjson.tool", geoJsonFilename}; 439 SafeProcess p = new SafeProcess(cmdArgs); 440 int retVal = p.runProcess(); 441 logger.info("Json Validation tool returned with value: " + retVal); 442 logger.info(" std out: " + p.getStdOutput()); 443 logger.info(" std err: " + p.getStdError()); 444 445 432 446 /*boolean uriEncoded = true; 433 447 String mapDataEncodedStr = mapData.getFeaturesGeoJsonString(uriEncoded);
Note:
See TracChangeset
for help on using the changeset viewer.