Skip to content

Commit 60a6000

Browse files
committed
Explicitly create doubles when splitting dateline polygons
1 parent ef7736a commit 60a6000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schemas-parse/src/main/groovy/org/cedar/schemas/parse/ISOParser.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ class ISOParser {
328328
else if (west > east) {
329329
builder = MultiPolygon.newBuilder()
330330
coordinates = [
331-
[[[-180.0, south], [east, south], [east, north], [-180.0, north], [-180.0, south]]],
332-
[[[west, south], [180.0, south], [180.0, north], [west, north], [west, south]]]
331+
[[[-180.0d, south], [east, south], [east, north], [-180.0d, north], [-180.0d, south]]],
332+
[[[west, south], [180.0d, south], [180.0d, north], [west, north], [west, south]]]
333333
]
334334
}
335335
else {

0 commit comments

Comments
 (0)