Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Mar 4, 2024
1 parent a33f3b8 commit 48c4f60
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,28 +653,4 @@ void testManyAttr() {
)
), collector);
}

@Test
void testOsmFeat() throws GeometryException {
var pointSourceFeature = newReaderFeature(newPoint(0, 0), Map.of());
assertEquals(0, pointSourceFeature.area());
assertEquals(0, pointSourceFeature.length());

var fc = factory.get(pointSourceFeature);
fc.line("layer").setZoomRange(0, 10);
fc.polygon("layer").setZoomRange(0, 10);
assertFalse(fc.iterator().hasNext(), "silently fail coercing to line/polygon");
fc.point("layer").setZoomRange(0, 10);
fc.centroid("layer").setZoomRange(0, 10);
fc.pointOnSurface("layer").setZoomRange(0, 10);
var iter = fc.iterator();
for (int i = 0; i < 3; i++) {
assertTrue(iter.hasNext(), "item " + i);
var item = iter.next();
assertEquals(GeometryType.POINT, item.getGeometryType());
assertEquals(newPoint(0.5, 0.5), item.getGeometry());
}

assertFalse(iter.hasNext());
}
}

0 comments on commit 48c4f60

Please sign in to comment.