public ThreddsMetadata.GeospatialCoverage extractGeospatial(FeatureDatasetPoint fd) { LatLonRect llbb = fd.getBoundingBox(); if (llbb != null) { return new ThreddsMetadata.GeospatialCoverage(llbb, null, 0.0, 0.0); } return null; }
static public ThreddsMetadata.GeospatialCoverage extractGeospatial(FeatureDatasetPoint fd) { LatLonRect llbb = fd.getBoundingBox(); if (llbb != null) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc; } return null; }
static public ThreddsMetadata.GeospatialCoverage extractGeospatial(FeatureDatasetPoint fd) { LatLonRect llbb = fd.getBoundingBox(); if (llbb != null) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc; } return null; }
static public ThreddsMetadata.GeospatialCoverage extractGeospatial(FeatureDatasetPoint fd) { LatLonRect llbb = fd.getBoundingBox(); if (llbb != null) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc; } return null; }
@Override public void finishConstruction() { super.finishConstruction(); finish(); ThreddsMetadata tmi = getLocalMetadataInheritable(); // pull out ACDD metadata from feature collection and put into the catalog MetadataExtractorAcdd acdd = new MetadataExtractorAcdd( Attribute.makeMap(fd.getGlobalAttributes()), this, tmi); acdd.extract(); finish(); // spatial coverage if (fd.getBoundingBox() == null) { // pull out catalog BB, put into the feature collection. this will override ACDD thredds.catalog.ThreddsMetadata.GeospatialCoverage coverage = getGeospatialCoverage(); if (coverage != null) ((PointDatasetImpl) fd).setBoundingBox(coverage.getBoundingBox()); // override in fd } else if (getGeospatialCoverage() == null) { tmi.setGeospatialCoverage( MetadataExtractor.extractGeospatial(fd)); } tmi.addVariables(MetadataExtractor.extractVariables(fd)); finish(); }
LatLonRect bb = fdp.getBoundingBox(); if (bb != null) rootElem.addContent(writeBoundingBox(bb));
LatLonRect bb = fdp.getBoundingBox(); if (bb != null) rootElem.addContent(writeBoundingBox(bb));