Examples of FeatureType


Examples of ucar.nc2.constants.FeatureType

  }

  public void testdataTypeInherit() {
    InvCatalogImpl cat = TestCatalogAll.open("TestInherit.0.6.xml", true);
    InvDataset ds = null;
    FeatureType s = null;
    String val = null;

    ds = cat.findDatasetByID("top");
    s = ds.getDataType();
    assert (s == null) : s;
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

  }

  public void testAuthorityInherit() {
    InvCatalogImpl cat = TestCatalogAll.open("TestInherit.0.6.xml", true);
    InvDataset ds = null;
    FeatureType s = null;
    String val = null;

    ds = cat.findDatasetByID("top");
    val = ds.getAuthority();
    assert (val == null) : val;
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

    // this call must be thread safe - done by implementation
    return useFactory.open(wantFeatureType, ncd, analysis, task, errlog);
  }

  static private FeatureDataset wrapUnknown(NetcdfDataset ncd, ucar.nc2.util.CancelTask task, Formatter errlog) throws IOException {
    FeatureType ft = findFeatureType(ncd);
    if (ft != null)
      return wrap(ft, ncd, task, errlog);

    // analyse the coordsys rank
    if (isGrid(ncd.getCoordinateSystems())) {
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

    String fType = elem.getAttribute("type").getValue()// LOOK, may be multiple types
    String uri = elem.getAttribute("url").getValue();

    if (debug) System.out.printf("CdmrFeatureDataset endpoint %s%n ftype= %s uri=%s%n", endpoint, fType, uri);

    FeatureType ft = FeatureType.getType(fType);

    if (ft == null || ft == FeatureType.NONE || ft == FeatureType.GRID) {
      CdmRemote ncremote = new CdmRemote(uri);
      NetcdfDataset ncd = new NetcdfDataset(ncremote, null);
      return new GridDataset(ncd);
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

  }

  public void testdataTypeInherit() {
    InvCatalogImpl cat = TestCatalogAll.open(urlString, true);
    InvDataset ds = null;
    FeatureType s = null;
    String val = null;

    ds = cat.findDatasetByID("top");
    s = ds.getDataType();
    assert (s == null) : s;

    ds = cat.findDatasetByID("nest1");
    s = ds.getDataType();
    assert (s == FeatureType.GRID) : s;

    ds = cat.findDatasetByID("nest11");
    s = ds.getDataType();
    assert (s == FeatureType.GRID) : s;

    ds = cat.findDatasetByID("nest12");
    s = ds.getDataType();
    assert (s.toString().equalsIgnoreCase("Image")) : s;

    ds = cat.findDatasetByID("nest121");
    s = ds.getDataType();
    assert (s == FeatureType.GRID) : s;
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

  }

  public void testAuthorityInherit() {
    InvCatalogImpl cat = TestCatalogAll.open(urlString, true);
    InvDataset ds = null;
    FeatureType s = null;
    String val = null;

    ds = cat.findDatasetByID("top");
    val = ds.getAuthority();
    assert val.equals("ucar") : val;
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

    VNames vn = getVariableNames(ds, errlog);

    String levVarName = null;
    String levDimName = null;
    boolean hasStruct = Evaluator.hasRecordStructure(ds);
    FeatureType ft = Evaluator.getFeatureType(ds, ":thredds_data_type", errlog);
    if (null == ft) {
      if ((ds.findDimension("manLevel") != null) && (ds.findVariable("prMan") != null)) {
        ft = FeatureType.STATION_PROFILE;
        levVarName = "prMan";
        levDimName = "manLevel";
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

    String id = dsElem.getAttributeValue("ID");
    String serviceName = dsElem.getAttributeValue("serviceName");
    String urlPath = dsElem.getAttributeValue("urlPath");
    String restrictAccess = dsElem.getAttributeValue("restrictAccess");

    FeatureType dataType = null;
    if (dataTypeName != null) {
      dataType = FeatureType.getType( dataTypeName.toUpperCase());
      if (dataType == null) {
        factory.appendWarning(" ** warning: non-standard data type = "+dataTypeName+"\n");
      }
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

      String datasetTypes = pointElem.getAttributeValue("datasetTypes");
      if (null != datasetTypes)
        config.pointConfig.addDatasetType(datasetTypes);
    }

    FeatureType ft = FeatureType.getType(featureType);
    InvDatasetFeatureCollection ds = InvDatasetFeatureCollection.factory( parent, name, path, ft, config);
    if (ds == null) {
      logger.error( "featureCollection "+name+" must have a valid featureType attribute, found "+featureType);
      return null;
    }
View Full Code Here

Examples of ucar.nc2.constants.FeatureType

    Element dataTypeElem = parent.getChild("dataType", defNS);
    if (dataTypeElem != null) {
      String dataTypeName = dataTypeElem.getText();
      if ((dataTypeName != null) && (dataTypeName.length() > 0)) {
        FeatureType dataType = FeatureType.getType( dataTypeName.toUpperCase());
        if (dataType == null) {
          factory.appendWarning(" ** warning: non-standard data type = "+dataTypeName+"\n");
        }
        tmg.setDataType( dataType);
      }
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.