klmUtils
Class BuildKmlTree
java.lang.Object
klmUtils.BuildKmlTree
public class BuildKmlTree
- extends java.lang.Object
This program gathers all kmls in a directory structure by grouping them per directory.
for instance:
- tgg
- boreholedata
- side_scan_sonar
- projectA.kml
- projectB.kml
if tgg is selected, the folowing kml's are made:
- tgg.kml, containing tgg\boreholedata.kml and tgg\side_scan_sonar.kml
- tgg
- boreholedata.kml, containing boreholedata\before_2010.kml and boreholedata\2011.kml
- boreholedata
- side_scan_sonar.kml containing side_scan_sonar\projectA.kml and side_scan_sonar\projectB.kml
- side_scan_sonar
- projectA.kml
- projectB.kml
WARNING: if a directory contains a kml file and a subdirectory with the same name, the kml file is overwritten!!!
Method Summary |
static java.io.File |
getDir(java.lang.String path,
java.lang.String header)
|
static void |
main(java.lang.String[] args)
|
private static boolean |
processDir(java.lang.String dir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildKmlTree
public BuildKmlTree()
main
public static void main(java.lang.String[] args)
processDir
private static boolean processDir(java.lang.String dir)
getDir
public static java.io.File getDir(java.lang.String path,
java.lang.String header)