use of uk.me.parabola.mkgmap.build.LayerFilterChain in project mkgmap by openstreetmap.
the class LineSplitterFilterTest method test.
private void test(List<Coord> points) {
MapLine l = new MapLine();
l.setPoints(points);
FilterConfig config = new FilterConfig() {
{
setResolution(24);
setLevel(0);
}
};
LayerFilterChain chain = new LayerFilterChain(config);
LineSplitterFilter filter = new LineSplitterFilter();
filter.init(config);
chain.addFilter(filter);
TestFilter testFilter = new TestFilter(l);
chain.addFilter(testFilter);
chain.doFilter(l);
testFilter.check();
}
Aggregations