• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

巨大森林を分割する


Commit MetaInfo

Revisióne6692cd0b0c5142c5908bb2a1d28639724794342 (tree)
Tiempo2013-08-18 14:15:32
Autorhayashi.yuu <hayashi.yuu@gmai...>
Commiterhayashi.yuu

Log Message

WAY分割に成功(outerのみ)

Cambiar Resumen

Diferencia incremental

--- a/new.osm
+++ b/new.osm
@@ -1319,6 +1319,7 @@
13191319 <nd ref='-5' idref='-18' cnt='0.0' />
13201320 <nd ref='1715711433' idref='-18' cnt='1.0' />
13211321 <nd ref='-17' idref='-18' cnt='2.0' />
1322+ <nd ref='-1' idref='-18' cnt='3.0' />
13221323 <tag id='-18' k='fixme' v='way(id=-18)' />
13231324 </way>
13241325 <way id='-16' action='modify' visible='true'>
@@ -1330,6 +1331,7 @@
13301331 <nd ref='1715711430' idref='-16' cnt='5.0' />
13311332 <nd ref='1715711432' idref='-16' cnt='6.0' />
13321333 <nd ref='-15' idref='-16' cnt='7.0' />
1334+ <nd ref='-4' idref='-16' cnt='8.0' />
13331335 <tag id='-16' k='fixme' v='way(id=-16)' />
13341336 </way>
13351337 <way id='-14' action='modify' visible='true'>
@@ -1774,12 +1776,14 @@
17741776 <nd ref='1705779772' idref='-14' cnt='438.0' />
17751777 <nd ref='1049473666' idref='-14' cnt='439.0' />
17761778 <nd ref='-13' idref='-14' cnt='440.0' />
1779+ <nd ref='-5' idref='-14' cnt='441.0' />
17771780 <tag id='-14' k='fixme' v='way(id=-14)' />
17781781 </way>
17791782 <way id='-12' action='modify' visible='true'>
17801783 <nd ref='-2' idref='-12' cnt='0.0' />
17811784 <nd ref='1710768775' idref='-12' cnt='1.0' />
17821785 <nd ref='-11' idref='-12' cnt='2.0' />
1786+ <nd ref='-2' idref='-12' cnt='3.0' />
17831787 <tag id='-12' k='fixme' v='way(id=-12)' />
17841788 </way>
17851789 <way id='-10' action='modify' visible='true'>
@@ -1796,6 +1800,7 @@
17961800 <nd ref='1724722606' idref='-10' cnt='10.0' />
17971801 <nd ref='1724722605' idref='-10' cnt='11.0' />
17981802 <nd ref='-9' idref='-10' cnt='12.0' />
1803+ <nd ref='-3' idref='-10' cnt='13.0' />
17991804 <tag id='-10' k='fixme' v='way(id=-10)' />
18001805 </way>
18011806 <way id='-8' action='modify' visible='true'>
@@ -2187,6 +2192,7 @@
21872192 <nd ref='1710909178' idref='-8' cnt='385.0' />
21882193 <nd ref='1050517744' idref='-8' cnt='386.0' />
21892194 <nd ref='-7' idref='-8' cnt='387.0' />
2195+ <nd ref='-6' idref='-8' cnt='388.0' />
21902196 <tag id='-8' k='fixme' v='way(id=-8)' />
21912197 </way>
21922198 <way id='159740689' action='delete' timestamp='2012-04-22T01:32:46Z' uid='621319' user='hayashi' visible='true' version='22' changeset='11379488'>
--- a/src/osm/jp/RelationCutter.java
+++ b/src/osm/jp/RelationCutter.java
@@ -331,13 +331,12 @@ public class RelationCutter {
331331 ps.setInt(3, DbBigrelation.OSM_NODE);
332332 ResultSet rset = ps.executeQuery();
333333 if (rset.next()) {
334- double lon = rset.getLong("NODE.lon");
334+ double lon = rset.getDouble("NODE.lon");
335335 Logger.logger.info("対応する分割点があります。("+ lastnode.lat +","+ lon +")");
336336
337- PreparedStatement ps2 = con.prepareStatement("SELECT NDREF.idref FROM NDREF,NODE WHERE ((NODE.lat=?) and (NODE.lon=?) and (NODE.osmtype=?) and (NDREF.ref=NODE.idref))");
337+ PreparedStatement ps2 = con.prepareStatement("SELECT NDREF.idref FROM NDREF,NODE WHERE ((NODE.lat=?) and (NODE.lon=?) and (NDREF.ref=NODE.idref))");
338338 ps2.setDouble(1, lastnode.lat);
339339 ps2.setDouble(2, lon);
340- ps2.setInt(3, DbBigrelation.OSM_NODE);
341340 ResultSet rset2 = ps2.executeQuery();
342341 while (rset2.next()) {
343342 long wayid = rset2.getLong("NDREF.idref");