Changeset 275 for tools

Show
Ignore:
Timestamp:
03/11/09 15:51:25 (18 months ago)
Author:
anton
Message:

Stupid coordinates bug fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/routingservice/trunk/src/jp/co/orkney/restlet/util/IOHelper.java

    r272 r275  
    760760                        wkt = wkt.split("MULTILINESTRING\\(\\(")[1].split("\\)\\)")[0]; 
    761761                        String wkts[] = wkt.split("\\)\\("); 
    762                          
    763                         Point point = new Point(); 
    764                          
     762                                                 
    765763                        for (int i = 0; i < wkts.length; i++) 
    766764                        { 
     
    768766                                for (int j = 0; j < wkt2.length; j++) 
    769767                                { 
     768                                        Point point = new Point(); 
    770769                                        point.setX(new BigDecimal(wkt2[j].split(" ")[0])); 
    771770                                        point.setY(new BigDecimal(wkt2[j].split(" ")[1])); 
     771                                        edge.addPoint(point); 
    772772                                } 
     773 
    773774                        } 
    774775                         
    775                         edge.addPoint(point); 
    776776                        edges.add(edge); 
    777777                        ++k;