Examples of WMTRenderJob


Examples of org.locationtech.udig.catalog.internal.wmt.WMTRenderJob

    public void testCutExtentInTiles() throws Exception {
        WMTLayerProperties layerProp = new WMTLayerProperties(null);
       
        ReferencedEnvelope env = new ReferencedEnvelope(-200, 220, -90, 95, DefaultGeographicCRS.WGS84);
       
        WMTRenderJob renderJob1 = WMTRenderJob.createRenderJob(
                env,
                150000000,
                source);
       
        Map<String, Tile> tiles = source.cutExtentIntoTiles(renderJob1, 50, true, layerProp, 1000);
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wmt.WMTRenderJob

            // Scale
            double scale = getContext().getViewportModel().getScaleDenominator();
            WMTPlugin.trace("[BasicWMTRender.render] Scale: " + scale); //$NON-NLS-1$
           
            WMTRenderJob renderJob = null;
            try {
                renderJob = WMTRenderJob.createRenderJob(mapExtent, scale, wmtSource);
            } catch (Exception exc) {
                throw new UnsupportedOperationException(Messages.Render_Error_Projection);
            }
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wmt.WMTRenderJob

        assertEquals("Robben Island (0.5m)", quadTileSet.getName());
       
        WWSource wwSource = new WWSource(quadTileSet);
       
        // extent is not covered from QuadTileSet
        WMTRenderJob renderJob1 = WMTRenderJob.createRenderJob(
                new ReferencedEnvelope(1, 2, 48, 49, DefaultGeographicCRS.WGS84),
                10000,
                wwSource);
       
        Map<String, Tile> tiles1 = wwSource.cutExtentIntoTiles(renderJob1,
                50,
                true, null, 1000);
        assertEquals(true, tiles1.isEmpty());
       
        // bounds of the QuadTileSet are inside the extent
        WMTRenderJob renderJob2 = WMTRenderJob.createRenderJob(
                new ReferencedEnvelope(18.34, 18.4, -33.85, -33.5, DefaultGeographicCRS.WGS84),
                20000000,
                wwSource);
        Map<String, Tile> tiles2 = wwSource.cutExtentIntoTiles(renderJob2,
                50,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.