Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IGeoResource.resolve()


            Rectangle screenSize = new Rectangle( upperLeft );
            screenSize.add( bottomRight );
          IMapDisplay mapDisplay = currentContext.getMapDisplay();
           
          
             AbstractGridCoverage2DReader reader = (AbstractGridCoverage2DReader) geoResource.resolve( AbstractGridCoverage2DReader.class, monitor);
             if( reader == null ){
                 return; // unable to connect!
             }
             CoordinateReferenceSystem destinationCRS = currentContext.getCRS();
             ReferencedEnvelope bounds = (ReferencedEnvelope) currentContext.getImageBounds();
View Full Code Here


             }
             CoordinateReferenceSystem destinationCRS = currentContext.getCRS();
             ReferencedEnvelope bounds = (ReferencedEnvelope) currentContext.getImageBounds();
             bounds=bounds.transform(destinationCRS, true);
            
             ParameterValueGroup group = geoResource.resolve( ParameterValueGroup.class, monitor);
             if(group==null){
                 group=reader.getFormat().getReadParameters();
             }
             else{
                 // temporary fix for image-io (JG: what is the nature of this fix?)
View Full Code Here

            GridGeometry2D geom=new GridGeometry2D(range, displayToLayer, destinationCRS );

            currentContext.setStatus(ILayer.WORKING);
            setState( STARTING );
           
            GridCoverageLoader loader = geoResource.resolve(GridCoverageLoader.class, monitor);
            if( loader == null ){
                // unable to load in memory
                return;
            }
            GridCoverage2D coverage = (GridCoverage2D) loader.load(geom, monitor);
View Full Code Here

        setState(STARTING);

        IGeoResource handle = getContext().getLayer().findGeoResource(TileSet.class);

        try {
            TileSet tileset = handle.resolve(TileSet.class, new SubProgressMonitor(monitor, 30));
            AbstractOpenWebService server = null;

            if (handle.canResolve(WebMapServer.class)) {
                server = handle.resolve(WebMapServer.class, new SubProgressMonitor(monitor, 30));
            }
View Full Code Here

        try {
            TileSet tileset = handle.resolve(TileSet.class, new SubProgressMonitor(monitor, 30));
            AbstractOpenWebService server = null;

            if (handle.canResolve(WebMapServer.class)) {
                server = handle.resolve(WebMapServer.class, new SubProgressMonitor(monitor, 30));
            }
            if (handle.canResolve(TiledWebMapServer.class)) {
                server = handle.resolve(TiledWebMapServer.class,
                        new SubProgressMonitor(monitor, 30));
            }
View Full Code Here

            if (handle.canResolve(WebMapServer.class)) {
                server = handle.resolve(WebMapServer.class, new SubProgressMonitor(monitor, 30));
            }
            if (handle.canResolve(TiledWebMapServer.class)) {
                server = handle.resolve(TiledWebMapServer.class,
                        new SubProgressMonitor(monitor, 30));
            }

            // determine the bounds that need to be rendered
            ReferencedEnvelope bounds = getRenderBounds();
View Full Code Here

            final IGeoResource resource = getContext().getGeoResource();
            if (resource == null || !resource.canResolve(JGTtmsGeoResource.class)) {
                getContext().setStatus(ILayer.DONE);
                return;
            }
            JGTtmsGeoResource jgtTmsGeoResource = resource.resolve(JGTtmsGeoResource.class, monitor);
            JGTtmsProperties tmsProperties = jgtTmsGeoResource.getTmsProperties();
            RasterSymbolizer rasterSymbolizer = CommonFactoryFinder.getStyleFactory(null).createRasterSymbolizer();

            // double scale = getContext().getViewportModel().getScaleDenominator();
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.