Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.ID


        HashSet<IService> searchScope = new HashSet<IService>();
        searchScope.addAll(this.services);
        try {
            monitor.beginTask(Messages.CatalogImpl_finding, searchScope.size() * 10);
            SERVICE: for( IService service : searchScope ) {
                ID serviceID = service.getID();
                if (check(service, ast)) {
                    result.add(service);
                }
                //Iterator< ? extends IGeoResource> resources;
                SubProgressMonitor submonitor = new SubProgressMonitor(monitor, 10);
                try {
                    List< ? extends IGeoResource> members = service.resources(submonitor);
                    if (members == null) {
                        continue SERVICE;
                    }
                    for( IGeoResource resource : members ) {
                        ID resoruceID = resource.getID();
                        try {
                            if (check(resource, ast, bbox)) {
                                result.add(resource);
                            }
                        } catch (Throwable t) {
View Full Code Here


    public URL getIdentifier() {
        return metadata.getSource();
    }

    public ID getID() {
        return new ID(getIdentifier());
    }
View Full Code Here

    public List<IService> checkMembers( List<IService> constructServiceList ) {
        List<IService> catalogServices = new ArrayList<IService>();

        for( IService service : constructServiceList ) {

            ID id = service.getID();
            IService found = getById(IService.class, id, new NullProgressMonitor());

            if (!(found == null)) {
                catalogServices.add(service);
            }
View Full Code Here

     * </p>
     * @return base name if available
     */
    @Override
    public String getTitle() {
        ID id = resource.getID();
       
        return id.toBaseFile();
    }
View Full Code Here

    public List<IService> checkNonMembers( List<IService> constructServiceList ) {
        List<IService> catalogServices = new ArrayList<IService>();

        for( IService service : constructServiceList ) {

            ID id = service.getID();
            IService found = getById(IService.class, id, new NullProgressMonitor());

            if (found == null) {
                catalogServices.add(service);
            }
View Full Code Here

     */
    public URL getIdentifier() {
        return url;
    }
    public ID getID() {
      return new ID( getIdentifier() );   
    }
View Full Code Here

     * @param typename
     */
    public OracleGeoResource( OracleServiceImpl parent, String typename ) {
        this.service = parent;
        this.typename = typename;
        this.id = new ID(service.getID(), typename );
    }
View Full Code Here

        }
        else {
            this.resolutionMetric = RES_PIXEL;
        }
        // DATA SOURCE PERFORMANCE INDICATORS
        ID id = context.getGeoResource().getID();
        Boolean memory = (Boolean) context.getLayer().getStyleBlackboard().get("org.locationtech.udig.style.cache");
       
        if( id.isMemory() ){
            this.latencyMetric = LATENCY_MEMORY;
            this.timeToDrawMetric = DRAW_DATA_MEMORY;
        }
        else if( Boolean.TRUE.equals( memory ) ){
            this.latencyMetric = LATENCY_MEMORY_CACHE;
            this.timeToDrawMetric = DRAW_DATA_MEMORY;
        }
        else if( id.isFile() ){
            this.latencyMetric = LATENCY_LOCAL;
            this.timeToDrawMetric = DRAW_DATA_RAW;
        }
        else if( id.isJDBC() || id.isWFS() ){
            this.latencyMetric = LATENCY_NETWORK;
            this.timeToDrawMetric = DRAW_DATA_RAW;
        }
    }
View Full Code Here

        File mapFile = jGrassMapEnvironment.getMapFile();
        try {
            URL identifier = getIdentifier();
            URI uri = identifier.toURI();
            String asciiString = uri.toASCIIString();
            return new ID(asciiString, identifier, mapFile, uri, "grass");
            // return new ID(getIdentifier());
        } catch (URISyntaxException e) {
            e.printStackTrace();
        }
        return new ID(mapFile, "grass");
    }
View Full Code Here

        }
        return null;
    }

    public ID getID() {
        return new ID(getIdentifier());
    }
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.