Search in sources :

Example 1 with LayerFilterChain

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();
}
Also used : MapLine(uk.me.parabola.mkgmap.general.MapLine) LayerFilterChain(uk.me.parabola.mkgmap.build.LayerFilterChain)

Aggregations

LayerFilterChain (uk.me.parabola.mkgmap.build.LayerFilterChain)1 MapLine (uk.me.parabola.mkgmap.general.MapLine)1