Skip to content

Commit

Permalink
Fix latitude longitude assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Guido Grune <[email protected]>
  • Loading branch information
gg-dim committed Aug 9, 2024
1 parent 545311b commit c941b67
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public static FeatureCollection convertToFeatureCollection(de.jena.udp.model.geo
de.jena.udp.model.geojson.LineString fls = (de.jena.udp.model.geojson.LineString) f;
fls.getCoordinates().forEach(c -> {
Coordinates coordinates = new Coordinates();
coordinates.latitude = c[0];
coordinates.longitude = c[1];
coordinates.longitude = c[0];
coordinates.latitude = c[1];

ls.coordinates.add(coordinates);
});
Expand All @@ -97,8 +97,8 @@ public static FeatureCollection convertToFeatureCollection(de.jena.udp.model.geo

for (Double[] p : c) {
Coordinates coordinates = new Coordinates();
coordinates.latitude = p[0];
coordinates.longitude = p[1];
coordinates.longitude = p[0];
coordinates.latitude = p[1];
list.add(coordinates);
}

Expand All @@ -113,8 +113,8 @@ public static FeatureCollection convertToFeatureCollection(de.jena.udp.model.geo
de.jena.udp.model.geojson.Point fp = (de.jena.udp.model.geojson.Point) f.getGeometry();
EList<Double> co = fp.getCoordinates();
Coordinates coordinates = new Coordinates();
coordinates.latitude = co.get(0);
coordinates.longitude = co.get(1);
coordinates.longitude = co.get(0);
coordinates.latitude = co.get(1);
pg.coordinates = coordinates;
castFeature.geometry = pg;
fc.features.add(castFeature);
Expand All @@ -126,8 +126,8 @@ public static FeatureCollection convertToFeatureCollection(de.jena.udp.model.geo

for (Double[] p : fmp.getCoordinates()) {
Coordinates coordinates = new Coordinates();
coordinates.latitude = p[0];
coordinates.longitude = p[1];
coordinates.longitude = p[0];
coordinates.latitude = p[1];
pg.coordinates.add(coordinates);
}

Expand All @@ -143,8 +143,8 @@ public static FeatureCollection convertToFeatureCollection(de.jena.udp.model.geo
ArrayList<Coordinates> list = new ArrayList<Coordinates>();
for (Double[] p : c) {
Coordinates coordinates = new Coordinates();
coordinates.latitude = p[0];
coordinates.longitude = p[1];
coordinates.longitude = p[0];
coordinates.latitude = p[1];
list.add(coordinates);
}
mls.coordinates.add(list);
Expand Down

0 comments on commit c941b67

Please sign in to comment.