巨大森林を分割する
Revisión | e6692cd0b0c5142c5908bb2a1d28639724794342 (tree) |
---|---|
Tiempo | 2013-08-18 14:15:32 |
Autor | hayashi.yuu <hayashi.yuu@gmai...> |
Commiter | hayashi.yuu |
WAY分割に成功(outerのみ)
@@ -1319,6 +1319,7 @@ | ||
1319 | 1319 | <nd ref='-5' idref='-18' cnt='0.0' /> |
1320 | 1320 | <nd ref='1715711433' idref='-18' cnt='1.0' /> |
1321 | 1321 | <nd ref='-17' idref='-18' cnt='2.0' /> |
1322 | + <nd ref='-1' idref='-18' cnt='3.0' /> | |
1322 | 1323 | <tag id='-18' k='fixme' v='way(id=-18)' /> |
1323 | 1324 | </way> |
1324 | 1325 | <way id='-16' action='modify' visible='true'> |
@@ -1330,6 +1331,7 @@ | ||
1330 | 1331 | <nd ref='1715711430' idref='-16' cnt='5.0' /> |
1331 | 1332 | <nd ref='1715711432' idref='-16' cnt='6.0' /> |
1332 | 1333 | <nd ref='-15' idref='-16' cnt='7.0' /> |
1334 | + <nd ref='-4' idref='-16' cnt='8.0' /> | |
1333 | 1335 | <tag id='-16' k='fixme' v='way(id=-16)' /> |
1334 | 1336 | </way> |
1335 | 1337 | <way id='-14' action='modify' visible='true'> |
@@ -1774,12 +1776,14 @@ | ||
1774 | 1776 | <nd ref='1705779772' idref='-14' cnt='438.0' /> |
1775 | 1777 | <nd ref='1049473666' idref='-14' cnt='439.0' /> |
1776 | 1778 | <nd ref='-13' idref='-14' cnt='440.0' /> |
1779 | + <nd ref='-5' idref='-14' cnt='441.0' /> | |
1777 | 1780 | <tag id='-14' k='fixme' v='way(id=-14)' /> |
1778 | 1781 | </way> |
1779 | 1782 | <way id='-12' action='modify' visible='true'> |
1780 | 1783 | <nd ref='-2' idref='-12' cnt='0.0' /> |
1781 | 1784 | <nd ref='1710768775' idref='-12' cnt='1.0' /> |
1782 | 1785 | <nd ref='-11' idref='-12' cnt='2.0' /> |
1786 | + <nd ref='-2' idref='-12' cnt='3.0' /> | |
1783 | 1787 | <tag id='-12' k='fixme' v='way(id=-12)' /> |
1784 | 1788 | </way> |
1785 | 1789 | <way id='-10' action='modify' visible='true'> |
@@ -1796,6 +1800,7 @@ | ||
1796 | 1800 | <nd ref='1724722606' idref='-10' cnt='10.0' /> |
1797 | 1801 | <nd ref='1724722605' idref='-10' cnt='11.0' /> |
1798 | 1802 | <nd ref='-9' idref='-10' cnt='12.0' /> |
1803 | + <nd ref='-3' idref='-10' cnt='13.0' /> | |
1799 | 1804 | <tag id='-10' k='fixme' v='way(id=-10)' /> |
1800 | 1805 | </way> |
1801 | 1806 | <way id='-8' action='modify' visible='true'> |
@@ -2187,6 +2192,7 @@ | ||
2187 | 2192 | <nd ref='1710909178' idref='-8' cnt='385.0' /> |
2188 | 2193 | <nd ref='1050517744' idref='-8' cnt='386.0' /> |
2189 | 2194 | <nd ref='-7' idref='-8' cnt='387.0' /> |
2195 | + <nd ref='-6' idref='-8' cnt='388.0' /> | |
2190 | 2196 | <tag id='-8' k='fixme' v='way(id=-8)' /> |
2191 | 2197 | </way> |
2192 | 2198 | <way id='159740689' action='delete' timestamp='2012-04-22T01:32:46Z' uid='621319' user='hayashi' visible='true' version='22' changeset='11379488'> |
@@ -331,13 +331,12 @@ public class RelationCutter { | ||
331 | 331 | ps.setInt(3, DbBigrelation.OSM_NODE); |
332 | 332 | ResultSet rset = ps.executeQuery(); |
333 | 333 | if (rset.next()) { |
334 | - double lon = rset.getLong("NODE.lon"); | |
334 | + double lon = rset.getDouble("NODE.lon"); | |
335 | 335 | Logger.logger.info("対応する分割点があります。("+ lastnode.lat +","+ lon +")"); |
336 | 336 | |
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))"); | |
338 | 338 | ps2.setDouble(1, lastnode.lat); |
339 | 339 | ps2.setDouble(2, lon); |
340 | - ps2.setInt(3, DbBigrelation.OSM_NODE); | |
341 | 340 | ResultSet rset2 = ps2.executeQuery(); |
342 | 341 | while (rset2.next()) { |
343 | 342 | long wayid = rset2.getLong("NDREF.idref"); |