diff --git a/src/ImportGML_FUEL_update.sh b/src/ImportGML_FUEL_update.sh index 86647cd..4d46ce9 100644 --- a/src/ImportGML_FUEL_update.sh +++ b/src/ImportGML_FUEL_update.sh @@ -4,6 +4,7 @@ java -cp .:osmCoverage.jar:hayashi_0225.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.fuel.DbExist java -cp .:osmCoverage.jar:hayashi_0225.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.fuel.Fuel java -cp .:osmCoverage.jar:hayashi_0225.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.fuel.ToPostgis +java -cp .:osmCoverage.jar:hayashi_0225.jar:hsqldb_2.2.9.jar:postgresql-9.4.1212.jar osm.jp.coverage.fuel.ToCartoCSV # java -cp hsqldb_2.2.9.jar org.hsqldb.util.DatabaseManager # db_driver=org.hsqldb.jdbcDriver diff --git a/src/fuel.activity.violet.html b/src/fuel.activity.violet.html index 1fcc293..afcb3bb 100644 --- a/src/fuel.activity.violet.html +++ b/src/fuel.activity.violet.html @@ -313,7 +313,7 @@ - + 1 @@ -384,90 +384,83 @@ Create & insert + + + + + 1 + + 255 + 255 + 255 + 255 + + + 0 + 0 + 0 + 255 + + + + + + + + 1 + + + + + ToCartoCSV.main() + + + + + + + + 1 + + + + + + + + + 1 + + + + + t_fuel.csv + + + 255 + 228 + 181 + 255 + + + + + + + 1 + + + + - - + + - - - - - 1 - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - 1 - - - - - - - - - - - + - + 1 @@ -477,12 +470,12 @@ - - + + - + - + 1 @@ -492,12 +485,12 @@ - - - - + + + + - + 1 @@ -506,31 +499,28 @@ - - - + + + - + - + 1 - - - - - - + + + + + + + + + + + + - - 1 - - - - - - - - + 1 @@ -539,13 +529,28 @@ + + + + + + + + 1 + + + + + + + - - + + - + - + 1 @@ -554,46 +559,46 @@ - - - - - + + + + + - + + 1 + + + + + + + + + + + + + + 1 - - - - - - - - 1 - - - - - - - - - - - + + + + - + 1 - - - - + + + + - + 1 @@ -603,12 +608,12 @@ - - - - + + + + - + 1 @@ -617,13 +622,22 @@ - - - - - + + + + + - + + 1 + + + + + + + + 1 @@ -632,43 +646,22 @@ - - - - - - - - 1 - - - - - - - - - - - - + + + + + - + 1 - - - - - - - + - - - - + + + + - + 1 @@ -678,29 +671,12 @@ - - - - - - - - - 1 - - - - - - - - - - - - - - + + + + + + 1 @@ -709,37 +685,28 @@ - - - - - - - - 1 - - - - - - - - + + + + + + + 1 - + - - + + - - - - + + + + 1 @@ -748,15 +715,45 @@ - - - - - - - + + + + + + + + 1 + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + - + 1 @@ -765,13 +762,52 @@ - - + + + + + + + + 1 + + + + + + + + + + + + + + + 1 + + + + + + + + + 1 + + + + + + + + + - - - - + + + + 1 @@ -780,11 +816,88 @@ + + + + + + + + + + 1 + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + 1 + + + + + + + ]]>

- embedded diagram image +AAwSwDdSU///9u4Htsr6YPR4s1LbKrzAUrUvA3LeDe7qW4xww/X2dc0um2R07zTMef8wR7hHJAzG +yFsmXgk0CPS+6g1xR9Y54vv6UjO7wXSTYOcl0LzW4NUSNWtGQwoqqZG/EUPXETzpmsL9jSccj6Ut +p0Ch7fl80pw85+l5np7+Tj18fZ7zPM+UxsZG44CCBFCQkKnHHnts/vz5xgEFCaAgIVOHDx+uqakx +DihIAAUJoCABFCQMmuPHj//4xz82DgrSIAAoSMhUV1dXcXHxO++8YygUJAAKEjK1ceNGx9MoSIMA +oCBhAA4fPjx69GjjoCABUJAwAO3t7QZBQQKgIGFgTp48aRAUJAAKEgYgFosdP37cOChIABQkZKqq +qmrlypXGQUECoCAhU8ePHy8uLk4mk4ZCQQKgICFTjz322OHDh42DggRAQQIoSA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UUsFquurm5sbEwmk9FtaMeNGzdOmzZt9uzZLS0tBgpQkAD8VUNDQ3Fx +cSKR6Orq6usxNTU14TH19fWGC1CQAPKxYcqUKdF+6pMnT1ZVVc2cObOgoCAnJ2fatGkrV648fPhw +9MiWlpZYLCYiAQUJkNVaW1uLi4ujfNy6dWuYzrnIuHHjXnjhhVREhsfYnQ0oSIDsVVFRkUgkonzM +6VcqIjdt2nT33XcbOkBBAmSj5ubmWCzW1dV18uTJiRMn9l+Q48aNO378eLRgSUnJG2+8YQABBQmQ +daqqqqqrq6OJnAxUVlZGC27YsOGhhx7q7u42hoCCBMgu5eXljY2NYWLmzJmZFOS0adOiBffs2VNa +Wnr06FFjCChIgOxSUFAQXfN61KhROZmJFgxL5ebm7tu3zyWzAQUJkGVv7heKcKAFGS0bCvLYsWOG +EVCQAFkktQ1yoHuxOzo6om2QH3zwgWEEFCRAFkl9DnKgR9Ls3r27tLQ0FKQTQwIKEiC7pI7FPnny +ZK/nEu9xNp+2trZowTVr1sTj8X3nGUZAQQJkkdT5IM8N5IzinZ2dU6dOraursw0SUJAA2Sh1TZoo +IouKinrd+lhbW5taZP369WVlZdEGSJ+DBBQkQNZJvy72ufO7s1etWjV9+vTo6OySkpLKysrUzuvg +zTffDJX58ssvRwXpWGxAQQJko4aGhilTpqQish8hHydPnlxTU7PvAueDBBQkQPZGZFFR0VNPPRV9 +JvJinZ2d69evD49Jz0fXpAEUJEBWa21traiomDRp0urVq0NQRhsXOzo6du/evWbNmqlTp5aVlaV2 +Xgfvvfee62IDChKAc+++++6yZctmzJiRn5+fk5OTm5tbWloaj8ejI6/T87Gzs9NwAQoSgL86e/bs +sWPHWlpa9vXh6NGjtj4CChKAnjo7O0+cOHHo0KEoJcPtBx98EMrSoTOAggQAQEECADA0/H+8A/Uj +Tni3EQAAAABJRU5ErkJg" /> \ No newline at end of file diff --git a/src/osm/jp/api/HttpPOST.java b/src/osm/jp/api/HttpPOST.java index 8ca75b8..da4f204 100644 --- a/src/osm/jp/api/HttpPOST.java +++ b/src/osm/jp/api/HttpPOST.java @@ -12,15 +12,15 @@ * @author 68user http://X68000.q-e-d.net/~68user/ */ public class HttpPOST { - //public static String host = "http://api06.dev.openstreetmap.org"; - //public static String host = "http://api.openstreetmap.org"; - public static String host = "http://overpass-api.de"; - - public static void main(String[] args) throws MalformedURLException, ProtocolException, IOException { - double minlat = 35.13d; - double maxlat = 35.66d; + //public static String host = "http://api06.dev.openstreetmap.org"; + //public static String host = "http://api.openstreetmap.org"; + public static String host = "http://overpass-api.de"; + + public static void main(String[] args) throws MalformedURLException, ProtocolException, IOException { + double minlat = 35.13d; + double maxlat = 35.66d; double minlon = 138.99d; - double maxlon = 139.79d; + double maxlon = 139.79d; getCapabilities(new File("output.xml"), "highway", "bus_stop", minlat, maxlat, minlon, maxlon); getCapabilities(new File("output.xml"), "highway", "disused:bus_stop", minlat, maxlat, minlon, maxlon); getCapabilities(new File("output.xml"), "amenity", "bus_station", minlat, maxlat, minlon, maxlon); @@ -28,18 +28,18 @@ getCapabilities(new File("output.xml"), "public_transport", "stop_position", minlat, maxlat, minlon, maxlon); } - public static void getCapabilities(File oFile, String key, String value, double minLat, double maxLat, double minLon, double maxLon) throws MalformedURLException, ProtocolException, IOException { - if (oFile.isFile()) { - oFile.delete(); - } + public static void getCapabilities(File oFile, String key, String value, double minLat, double maxLat, double minLon, double maxLon) throws MalformedURLException, ProtocolException, IOException { + if (oFile.isFile()) { + oFile.delete(); + } - BufferedWriter hw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(oFile), "UTF-8")); - getCapabilities(hw, key, value, minLat, maxLat, minLon, maxLon); + BufferedWriter hw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(oFile), "UTF-8")); + getCapabilities(hw, key, value, minLat, maxLat, minLon, maxLon); hw.close(); - } + } - public static void getCapabilities(BufferedWriter hw, String key, String value, double minLat, double maxLat, double minLon, double maxLon) throws MalformedURLException, ProtocolException, IOException { - System.out.println(host + "/api/interpreter"); + public static void getCapabilities(BufferedWriter hw, String key, String value, double minLat, double maxLat, double minLon, double maxLon) throws MalformedURLException, ProtocolException, IOException { + System.out.println(host + "/api/interpreter"); URL url = new URL(host + "/api/interpreter"); int responsecode = 0; @@ -64,17 +64,17 @@ outputWriter(pw, " "); outputWriter(pw, ""); pw.close(); // closeで送信完了 - + try { - TimeUnit.SECONDS.sleep(1); - } catch (InterruptedException e) {} + TimeUnit.SECONDS.sleep(1); + } catch (InterruptedException e) {} responsecode = urlconn.getResponseCode(); System.out.println("レスポンスコード[" + responsecode + "] " + "レスポンスメッセージ[" + urlconn.getResponseMessage() + "]"); Map> headers = urlconn.getHeaderFields(); for (Map.Entry> bar : headers.entrySet()) { - System.out.print("\t" + bar.getKey() +"\t: "); // キーを取得 + System.out.print("\t" + bar.getKey() +"\t: "); // キーを取得 List vals = bar.getValue(); // 値を取得 for(String str : vals) { System.out.print("["+ str +"],"); @@ -86,34 +86,34 @@ // レスポンスコード[500] レスポンスメッセージ[Internal server error] // レスポンスコード[504] レスポンスメッセージ[Gateway Timeout] try { - TimeUnit.MINUTES.sleep(5); - } catch (InterruptedException e) {} + TimeUnit.MINUTES.sleep(5); + } catch (InterruptedException e) {} } else { System.out.println("\n---- ボディ ----"); - + BufferedReader reader = new BufferedReader(new InputStreamReader(urlconn.getInputStream(), "UTF-8")); while (true) { String line = reader.readLine(); if (line == null) { break; } - hw.write(line); - hw.newLine(); + hw.write(line); + hw.newLine(); } reader.close(); } urlconn.disconnect(); try { - TimeUnit.SECONDS.sleep(5); - } catch (InterruptedException e) {} + TimeUnit.SECONDS.sleep(5); + } catch (InterruptedException e) {} } while ((responsecode == 429) || (responsecode == 504)); - } + } - public static void outputWriter(PrintWriter pw, String text) { - System.out.println("\t" + text); - pw.print(text); - } + public static void outputWriter(PrintWriter pw, String text) { + System.out.println("\t" + text); + pw.print(text); + } } diff --git a/src/osm/jp/coverage/fuel/ToCartoCSV.java b/src/osm/jp/coverage/fuel/ToCartoCSV.java new file mode 100644 index 0000000..e474855 --- /dev/null +++ b/src/osm/jp/coverage/fuel/ToCartoCSV.java @@ -0,0 +1,60 @@ +package osm.jp.coverage.fuel; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.io.UnsupportedEncodingException; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; + +import jp.co.areaweb.tools.database.DatabaseTool; + +/** + * PostGISデータをCarto用のCSVファイルに出力する。 + * 出力ファイル名: "fuel.csv" + * テーブル名: t_fuel + * インデックス: ix_fuel_geom + * gid PostGISの識別ID + * fixed OSMのバス停が周辺に存在するかどうか、存在しない場合は0,存在する場合は1。ブランド有りは50。 + * geom PostGIS形式の位置情報(4612:) + * @author yuu + * + */ +public class ToCartoCSV { + public static final String CSV_FILE_NAME = "t_fuel"; + + public static void main (String[] argv) throws Exception { + outputDb(DatabaseTool.openDb("postgis")); + } + + public static void outputDb(Connection con) throws Exception { + File csvFile = new File(CSV_FILE_NAME+".csv"); + try (BufferedWriter ow = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(csvFile), "UTF-8"))) { + System.out.println("idref,score,lon,lat"); + ow.write("idref,score,lon,lat"); + ow.newLine(); + + PreparedStatement ps8 = con.prepareStatement("SELECT idref,ST_X(ST_TRANSFORM(geom,4612)) as lon, ST_Y(ST_TRANSFORM(geom,4612)) as lat,fixed FROM t_fuel"); + try (ResultSet rset8 = ps8.executeQuery()) { + while (rset8.next()) { + String idref = rset8.getString("idref"); + Double lat = rset8.getDouble("lat"); + Double lon = rset8.getDouble("lon"); + int score = rset8.getInt("fixed"); + + String osm_node; + osm_node = "\""+ idref +"\",\""+ score +"\",\""+ Double.toString(lon) +"\",\""+ Double.toString(lat) +"\""; + System.out.println(osm_node); + ow.write(osm_node); + ow.newLine(); + } + } + ow.flush(); + } + } +}