• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revisióncca2a644aeebd42888eead42349dc40da34e1489 (tree)
Tiempo2012-06-27 10:51:46
Autorhayashi <hayashi.yuu@gmai...>
Commiterhayashi

Log Message

busStop GML の修正

Cambiar Resumen

Diferencia incremental

--- a/src/hayashi/kiban/ConvAdmPt25000.java
+++ b/src/hayashi/kiban/ConvAdmPt25000.java
@@ -30,19 +30,19 @@ public class ConvAdmPt25000 {
3030 </lfSpanTo>
3131
3232 <devDate>
33- <jps:position>
34- <jps:date8601>2011-01-31</jps:date8601>
35- </jps:position>
33+ <jps:position>
34+ <jps:date8601>2011-01-31</jps:date8601>
35+ </jps:position>
3636 </devDate>
3737
3838 <orgGILvl>25000</orgGILvl>
3939 <vis>表示</vis>
4040
4141 <pos id="K6_2" uuid="fgoid:10-00150-11-1002-1530-g">
42- <jps:CRS uuidref="fguuid:jgd2000.bl"/>
43- <jps:position>
44- <jps:coordinate>37.055674 139.338021</jps:coordinate>
45- </jps:position>
42+ <jps:CRS uuidref="fguuid:jgd2000.bl"/>
43+ <jps:position>
44+ <jps:coordinate>37.055674 139.338021</jps:coordinate>
45+ </jps:position>
4646 </pos>
4747
4848 <type>その他</type>
--- a/src/hayashi/kiban/ConvBusstopGML.java
+++ b/src/hayashi/kiban/ConvBusstopGML.java
@@ -39,7 +39,8 @@ public class ConvBusstopGML {
3939 * @throws FileNotFoundException
4040 * @throws TransformerException
4141 * @throws SAXException
42- * @throws ParserConfigurationException */
42+ * @throws ParserConfigurationException
43+ */
4344 public static void main(String[] args) throws FileNotFoundException, ClassNotFoundException, SQLException, IOException, ParserConfigurationException, SAXException, TransformerException
4445 {
4546 int index = 0;
@@ -61,31 +62,29 @@ public class ConvBusstopGML {
6162 /**
6263 * バス停データ変換のメイン処理
6364 */
65+ if (updateDb) {
66+ File dbdir = new File("database");
67+ if (dbdir.isDirectory()) {
68+ dbdir.delete();
69+ }
70+ dbdir.mkdir();
71+ }
72+ ConvBusstopGML.initDb(con);
6473
6574 int fcounter = 0;
6675 if (args.length > index) {
6776 File iFile = new File(args[index]);
6877 fcounter++;
6978
70- ConvBusstopGML.initDb(con);
7179 inputFile(con, iFile);
7280 String iStr = iFile.getName();
7381 outputDb(con, iStr.substring(0, iStr.length() - 4));
7482 }
7583 else {
76- if (updateDb) {
77- File dbdir = new File("database");
78- if (dbdir.isDirectory()) {
79- dbdir.delete();
80- }
81- dbdir.mkdir();
82- }
83-
8484 File dir = new File(".");
8585 File[] files = dir.listFiles();
8686
8787 for (File iFile : files) {
88- ConvBusstopGML.initDb(con);
8988 if (checkFile(iFile)) {
9089 fcounter++;
9190 inputFile(con, iFile);