Fix lat/lon vs. lon/lat issues
[gpl/argeo-suite.git] / org.argeo.app.geo / src / org / argeo / app / geo / GpxUtils.java
index dcd205ab39ab33d5f990f860db245e5407b55631..44afa2c01f0a9341700aa644a4324ef207407d8b 100644 (file)
@@ -68,7 +68,7 @@ public class GpxUtils {
                                                Double latitude = Double.parseDouble(attributes.getValue("lat"));
                                                Double longitude = Double.parseDouble(attributes.getValue("lon"));
                                                // TODO elevation in 3D context
-                                               Coordinate coordinate = new Coordinate(longitude, latitude);
+                                               Coordinate coordinate = new Coordinate(latitude, longitude);
                                                coordinates.add(coordinate);
                                        }
                                }
@@ -107,7 +107,7 @@ public class GpxUtils {
                        throw new IllegalArgumentException("Unsupported format " + clss);
                }
        }
-       
+
        /** @deprecated Use {@link #parseGpxTrackTo(InputStream, Class)} instead. */
        @Deprecated
        public static SimpleFeature parseGpxToPolygon(InputStream in) throws IOException {