Package org.locationtech.udig.catalog.internal.wmt.wmtsource

Examples of org.locationtech.udig.catalog.internal.wmt.wmtsource.CSSource


public class CSSourceTest {
   
    @Test
    public void testInit() {
        CSSource csSource = (CSSource) WMTSourceFactory.createSource(null,
                WMTSource.getRelatedServiceUrl(CSSource.class),
                "tile.openstreetmap.org/{z}/{x}/{y}.png/2/18", true);
       
        assertEquals(19, csSource.getScaleList().length);
        assertTrue(Double.isNaN(csSource.getScaleList()[0]));
        assertTrue(Double.isNaN(csSource.getScaleList()[1]));
        assertTrue(!Double.isNaN(csSource.getScaleList()[2]));
       
        assertEquals("http://tile.openstreetmap.org/0/1/2.png", csSource.getTileUrl(0, 1, 2));
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.internal.wmt.wmtsource.CSSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.