Commit 6310cfc3 authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Force '.' as decimal separator for BBox-WKT

parent 96c59f97
......@@ -24,6 +24,7 @@ import de.hft.stuttgart.citydoctor2.utils.visitors.MinMaxExtentVisitor;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
/**
* An axis aligned bounding box represented by its two corners
......@@ -201,7 +202,7 @@ public class BoundingBox {
double maxX = Math.max(x1, x2);
double maxY = Math.max(y1, y2);
return String.format("POLYGON((%.3f %.3f, %.3f %.3f, %.3f %.3f, %.3f %.3f, %.3f %.3f))",
return String.format(Locale.ROOT,"POLYGON((%.3f %.3f, %.3f %.3f, %.3f %.3f, %.3f %.3f, %.3f %.3f))",
minX, minY,
maxX, minY,
maxX, maxY,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment