- Timestamp:
- 2020-02-26T19:57:05+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/maori-lang-detection/src/org/greenstone/atea/SummaryTool.java
r33940 r33978 356 356 */ 357 357 public static void main(String args[]) { 358 SafeProcess.DEBUG = 1; 359 358 int oldDebugMode = SafeProcess.DEBUG; 359 SafeProcess.DEBUG = 0; 360 360 361 if(args.length >= 2) { 361 362 printUsage(); … … 417 418 // that GEOJSON_MAP_TOOL_URL takes as input to produce a map. 418 419 420 ///CountryCodeCountsMapData.openFirefox(); 421 419 422 for(int i = 1; i < tableFileNames.length; i++) { // empty element at 0 420 423 String tablefilename = tableFileNames[i] + ".json"; // filenames have no suffix … … 453 456 // to confirm if the JSON in the provided json file parses/is valid JSON. 454 457 458 /* 455 459 String[] cmdArgs = {"python", "-mjson.tool", geoJsonFilename}; 456 460 SafeProcess p = new SafeProcess(cmdArgs); … … 465 469 continue; 466 470 } 467 471 */ 468 472 469 473 /*boolean uriEncoded = true; … … 472 476 */ 473 477 474 logger.info("Data URL string: " + mapData.getAsMapURL());478 //logger.info("Data URL string: " + mapData.getAsMapURL()); 475 479 logger.info(""); 476 mapData.geoJsonMapScreenshot(outFolder, tablefilename); 480 //mapData.geoJsonMapScreenshot(outFolder, tablefilename); 481 mapData.getGeoJSONMapScreenshotCommand(outFolder, tablefilename); 477 482 logger.info("---"); 478 483 479 484 // TODO: Remove break. For debugging: breaks after first table -> map conversion. 480 break;485 //break; 481 486 } 482 487 … … 486 491 } catch(Exception e) { 487 492 logger.error(e.getMessage(), e); 488 } 493 } finally { 494 SafeProcess.DEBUG = oldDebugMode; 495 } 489 496 } 490 497 }
Note:
See TracChangeset
for help on using the changeset viewer.