Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.ICatalog.members()


        public Object[] getElements( Object arg0 ) {
            // add the service to the catalog
            ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
            try {
                ArrayList<IResolve> finalCatalogMembers = new ArrayList<IResolve>();
                List< ? extends IResolve> allCatalogMembers = catalog.members(null);
                for( IResolve resolve : allCatalogMembers ) {
                    if (resolve instanceof JGrassService) {
                        finalCatalogMembers.add(resolve);
                    }
                }
View Full Code Here


        public Object[] getElements( Object arg0 ) {
            // add the service to the catalog
            ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
            ArrayList<IResolve> neededCatalogMembers = null;
            try {
                List< ? extends IResolve> allCatalogMembers = catalog.members(null);
                // for jgrass locations we extract the mapset out of the
                // locations = from
                // JGrassService
                neededCatalogMembers = new ArrayList<IResolve>();
                for( IResolve catalogMember : allCatalogMembers ) {
View Full Code Here

        public Object[] getElements( Object arg0 ) {
            // add the service to the catalog
            ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
            ArrayList<IResolve> neededCatalogMembers = null;
            try {
                List< ? extends IResolve> allCatalogMembers = catalog.members(null);
                // for jgrass locations add the service
                neededCatalogMembers = new ArrayList<IResolve>();
                for( IResolve catalogMember : allCatalogMembers ) {
                    if (catalogMember.canResolve(DataStore.class)) {
                        neededCatalogMembers.add(catalogMember);
View Full Code Here

    public void testNormal() throws Exception {
        Object context = getContext();
       
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
       
        List members = catalog.members(new DummyMonitor());
        if (!members.isEmpty()) {
            //clear the catalog
            for (Iterator itr = members.iterator(); itr.hasNext();) {
                IService service = (IService)itr.next();
                catalog.remove(service);
View Full Code Here

            for (Iterator itr = members.iterator(); itr.hasNext();) {
                IService service = (IService)itr.next();
                catalog.remove(service);
            }
        }
        members = catalog.members(new DummyMonitor());
        assertTrue(members.isEmpty());

        runMapImport(context);
       
        IMap map = ApplicationGIS.getActiveMap();
View Full Code Here

    public void testMultiResource() throws Exception {
        Object context = DummyMultiResourceService.url;
       
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
       
        List members = catalog.members(new DummyMonitor());
        if (!members.isEmpty()) {
            //clear the catalog
            for (Iterator itr = members.iterator(); itr.hasNext();) {
                IService service = (IService)itr.next();
                catalog.remove(service);
View Full Code Here

            for (Iterator itr = members.iterator(); itr.hasNext();) {
                IService service = (IService)itr.next();
                catalog.remove(service);
            }
        }
        members = catalog.members(new DummyMonitor());
        assertTrue(members.isEmpty());
       

        final WorkflowWizard workflowWizard = mapImport.getDialog().getWorkflowWizard();
    workflowWizard.getWorkflow()
View Full Code Here

              CoordinateReferenceSystem crs = ds.getSchema().getCoordinateReferenceSystem();
              if (!CRS.equalsIgnoreMetadata(result, crs))
                ds.forceSchemaCRS(result);
              ICatalog catalog = CatalogPlugin.getDefault()
                  .getLocalCatalog();
              List<IResolve> members = catalog
                  .members(new NullProgressMonitor());
              for (IResolve resolve : members) {
                ShapefileDataStore store = resolve.resolve(
                    ShapefileDataStore.class,
                    new NullProgressMonitor());
View Full Code Here

            File file=new File(r.getURI().toFileString());
            deleteFile(file);
        }
       
        ICatalog localCatalog = CatalogPlugin.getDefault().getLocalCatalog();
        List< ? extends IResolve> services = localCatalog.members(null);
        for( IResolve resolve : services ) {
            localCatalog.remove((IService) resolve);
        }
       
       
View Full Code Here

    }

    private void getCoverageResources() throws IOException {
        itemsMap.clear();
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
        List< ? extends IResolve> allCatalogMembers = catalog.members(null);
        for( IResolve catalogMember : allCatalogMembers ) {
            if (catalogMember instanceof IGeoResource && catalogMember.canResolve(GridCoverage.class)) {
                itemsMap.put(catalogMember.getTitle(), (IGeoResource) catalogMember);
            }
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.