Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.ID


   * the style to a .sld file beside the associated layer file.
   * Does nothing for non-file based layers.
   */
  private void oneClickExport(){
    IGeoResource geoResource = getSelectedLayer().getGeoResource();
        ID id = geoResource.getID();
    if (id.isFile()) {
      try {
        File file = id.toFile();
        SLDTransformer aTransformer = new SLDTransformer();
        aTransformer.setIndentation(StyleEditor.INDENT);
        String xml = aTransformer.transform(getSLD());
        File newFile = new File(file.getParent(), FilenameUtils
            .getBaseName(file.getAbsolutePath())
View Full Code Here


    public boolean canRender( IRenderContext context ) {
        if( context instanceof ICompositeRenderContext ){
            return false;
        }
        IGeoResource geoResource = context.getGeoResource();
        ID id = context.getGeoResource().getID();
        if( id.isMemory() ){
            // image already in memory don't double cache!
            // (this could be handled by not allowing the temp entry
            //  to resolve to GridCoverageLoader - so this check is a safety)
            return false;
        }       
View Full Code Here

     */
    public MemoryGridCoverageMetrics( IRenderContext context2, MemoryGridCoverageMetricsFactory factory) {
        super( context2, factory, listExpectedStyleIds());
        this.resolutionMetric = RES_DENSE; // reads more then is required for the screen!
       
        ID id = context.getGeoResource().getID();
        //Boolean memory = (Boolean) context.getLayer().getStyleBlackboard().get("org.locationtech.udig.style.cache");       
        if( id.isMemory() ){
            // we would not really want to use GridCoverageLoader on an in memory image
            this.latencyMetric = LATENCY_MEMORY;
            this.timeToDrawMetric = DRAW_IMAGE_MEMORY;
        }
        else {
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.ID

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.