Changeset 73


Ignore:
Timestamp:
07/17/2009 04:26:18 PM (4 years ago)
Author:
Wuaast
Message:

Edits:
Now the coordinates will be parsed in a right way, so x is x and y is y.

Adds:
Testcase for testing the changes

Location:
spatial.streams.kml/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • spatial.streams.kml/src/main/java/sapient/features/streams/kml/converter/CoordinateConverter.java

    r11 r73  
    1717                        StringBuffer sb = new StringBuffer(); 
    1818                        for(Coordinate c : p.listCoordinates()) { 
    19                                 sb.append(c.y).append(",") 
    20                                   .append(c.x).append(",") 
     19                                sb.append(c.x).append(",") 
     20                                  .append(c.y).append(",") 
    2121                                  .append(c.z).append(" "); 
    2222                        } 
     
    9999                        // lon = x  
    100100                        // lat / lon / height 
    101                         c.y = Double.parseDouble(split[0]); 
    102                         c.x = Double.parseDouble(split[1]); 
     101                        c.x = Double.parseDouble(split[0]); 
     102                        c.y = Double.parseDouble(split[1]); 
    103103                        c.z = Double.parseDouble(split[2]); 
    104104                         
Note: See TracChangeset for help on using the changeset viewer.