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

Examples of org.locationtech.udig.catalog.internal.wmt.tile.WWTile$WWTileFactory


        WWSource wwSource = new WWSource(quadTileSet);
       
        assertEquals(2, wwSource.getZoomLevel(0).getMaxTilePerColNumber());
        assertEquals(4, wwSource.getZoomLevel(0).getMaxTilePerRowNumber());
       
        WWTile tile1 = new WWTile(0, 0, wwSource.getZoomLevel(0), wwSource);       
        assertEquals(new Envelope(-180, -90, -90, 0), tile1.getBounds());
       
        WWTile tile2 = tile1.getRightNeighbour();       
        assertEquals(new Envelope(-90, 0, -90, 0), tile2.getBounds());
       
        WWTile tile3 = tile1.getLowerNeighbour();       
        assertEquals(new Envelope(-180, -90, 0, 90), tile3.getBounds());
        assertEquals("0/0/1", tile3.getTileName().toString());
       
        WWTile tile4 = tile3.getRightNeighbour();       
        assertEquals(new Envelope(-90, 0, 0, 90), tile4.getBounds());
       
        assertEquals(tile4, tile4.getLowerNeighbour().getLowerNeighbour());
       
    }
View Full Code Here


        Element rootElement = QuadTileSetTest.getRootElement();
        QuadTileSet quadTileSet = new QuadTileSet(rootElement.getChild("ChildLayerSet").getChild("QuadTileSet"), "");
       
        WWSource wwSource = new WWSource(quadTileSet);
       
        assertEquals(new WWTile(0, 1, wwSource.getZoomLevel(0), wwSource).getTileName().toString(),
                ((WWTile) wwSource.getTileFactory().getTileFromCoordinate(90, -180, wwSource.getZoomLevel(0), wwSource)).getTileName().toString());
       
        assertEquals(new WWTile(0, 1, wwSource.getZoomLevel(0), wwSource).getTileName().toString(),
                ((WWTile) wwSource.getTileFactory().getTileFromCoordinate(89, -180, wwSource.getZoomLevel(0), wwSource)).getTileName().toString());
       
        assertEquals(new WWTile(0, 0, wwSource.getZoomLevel(0), wwSource).getTileName().toString(),
                ((WWTile) wwSource.getTileFactory().getTileFromCoordinate(-89, -180, wwSource.getZoomLevel(0), wwSource)).getTileName().toString());
       
   
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.internal.wmt.tile.WWTile$WWTileFactory

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.