Java Code Examples for ucar.nc2.constants.FeatureType#NONE

The following examples show how to use ucar.nc2.constants.FeatureType#NONE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CatalogTree_setNewRootDatasetsTest.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private InvDatasetImpl createDataset(InvCatalogImpl catalog, String datasetName, final String serviceName) {
    final InvDatasetImpl dapDataset =
            new InvDatasetImpl(null, datasetName, FeatureType.NONE, serviceName, "http://wherever.you.want.bc");
    dapDataset.setCatalog(catalog);
    final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant", "irrelevant");
    dapDataset.addAccess(new InvAccessImpl(dapDataset, "http://y.z", dapService));
    dapDataset.finish();
    return dapDataset;
}
 
Example 2
Source File: CatalogTree_appendToNodeTest.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private InvDatasetImpl createDataset(InvCatalogImpl catalog, String datasetName, final String serviceName) {
    final InvDatasetImpl dapDataset = new InvDatasetImpl(null, datasetName, FeatureType.NONE, serviceName, "http://wherever.you.want.bc");
    dapDataset.setCatalog(catalog);
    final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant", "irrelevant");
    dapDataset.addAccess(new InvAccessImpl(dapDataset, "http://y.z", dapService));
    dapDataset.finish();
    return dapDataset;
}
 
Example 3
Source File: CatalogTree_appendNodeUnitTest.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private InvDatasetImpl createDataset(String[] serviceTypeNames) throws URISyntaxException {
    final InvDatasetImpl dapDataset = new InvDatasetImpl(null, "datasetName", FeatureType.NONE, serviceTypeNames[0], "http://wherever.you.want.bc");

    final InvCatalogImpl catalog = new InvCatalogImpl("catalogName", "1.0", new URI("http://x.y"));
    dapDataset.setCatalog(catalog);

    for (String serviceName : serviceTypeNames) {
        final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant", "irrelevant");
        final InvAccessImpl invAccess = new InvAccessImpl(dapDataset, "http://y.z", dapService);
        dapDataset.addAccess(invAccess);
    }

    dapDataset.finish();
    return dapDataset;
}
 
Example 4
Source File: CatalogTree_simpleDifferentTests.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private InvDataset createDataset(InvCatalog catalog, String datasetName, final String serviceName) {
    final InvDatasetImpl dapDataset =
            new InvDatasetImpl(null, datasetName, FeatureType.NONE, serviceName, "http://wherever.you.want.bc");
    dapDataset.setCatalog(catalog);
    final InvService dapService = new InvService(serviceName, serviceName, "irrelevant", "irrelevant",
                                                 "irrelevant");
    dapDataset.addAccess(new InvAccessImpl(dapDataset, "http://y.z", dapService));
    dapDataset.finish();
    return dapDataset;
}