@Override public void leafAdded(OpendapLeaf leaf, boolean hasNestedDatasets) { if (hasNestedDatasets) { return; } if (leaf.getDataset().getGeospatialCoverage() != null) { useRegionFilter.setEnabled(true); } filterLeaf(leaf); }
@Override public boolean accept(OpendapLeaf leaf) { ThreddsMetadata.GeospatialCoverage geospatialCoverage = leaf.getDataset().getGeospatialCoverage(); if (geospatialCoverage == null) { return true; } Double eastBound = eastBoundProperty.getValue(); Double westBound = westBoundProperty.getValue(); Double northBound = northBoundProperty.getValue(); Double southBound = southBoundProperty.getValue(); LatLonPointImpl northWest = new LatLonPointImpl(northBound, westBound); LatLonPointImpl southEast = new LatLonPointImpl(southBound, eastBound); LatLonRect latLonRect = new LatLonRect(northWest, southEast); return latLonRect.intersect(geospatialCoverage.getBoundingBox()) != null; }
ThreddsMetadata.GeospatialCoverage geo = ds.getGeospatialCoverage(); if (geo != null) { Element geoElem = new Element("Spatial_Coverage", defNS);
ThreddsMetadata.GeospatialCoverage geo = ds.getGeospatialCoverage(); Element geoElem = new Element("Spatial_Coverage", defNS); rootElem.addContent( geoElem);
ThreddsMetadata.GeospatialCoverage geo = ds.getGeospatialCoverage(); if (geo != null) { Element geoElem = new Element("Spatial_Coverage", defNS);
ThreddsMetadata.GeospatialCoverage geo = ds.getGeospatialCoverage(); if (geo != null) { Element geoElem = new Element("Spatial_Coverage", defNS);
ThreddsMetadata.GeospatialCoverage geo = ds.getGeospatialCoverage(); Element geoElem = new Element("Spatial_Coverage", defNS); rootElem.addContent( geoElem);
ThreddsMetadata.GeospatialCoverage geo = ds.getGeospatialCoverage(); Element geoElem = new Element("Spatial_Coverage", defNS); rootElem.addContent( geoElem);
ThreddsMetadata.GeospatialCoverage gc = ds.getGeospatialCoverage(); if (null != gc) rootElem.addContent( writeGeospatialCoverage( gc));
ThreddsMetadata.GeospatialCoverage gc = ds.getGeospatialCoverage(); if (null != gc) rootElem.addContent( writeGeospatialCoverage( gc));
ThreddsMetadata.GeospatialCoverage gc = ds.getGeospatialCoverage(); if (null != gc) rootElem.addContent( writeGeospatialCoverage( gc));