if (null != llbb) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc; if (null != llbb) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc;
if (null != llbb) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc; if (null != llbb) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc;
if (null != llbb) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc; if (null != llbb) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); gc.setBoundingBox(llbb); return gc;
/** * ******************************************************************** */ /* testing public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(false); catFactory.registerMetadataConverter( MetadataType.THREDDS, new ThreddsMetadata.Parser()); InvCatalogImpl cat = (InvCatalogImpl) catFactory.readXML("file:///C:/dev/thredds/catalog/test/data/enhancedCat.xml"); System.out.println("\nDump=\n" + cat.dump()); StringBuffer buff = new StringBuffer(); boolean isValid = cat.check( buff); System.out.println("catalog <" + cat.getName()+ "> "+ (isValid ? "is" : "is not") + " valid"); System.out.println(" messages=\n" + buff.toString()); if (isValid) System.out.println("\nBack to XML=\n" + catFactory.writeXML( cat)); } */ static public void main(String[] args) throws IOException { GeospatialCoverage gc = new GeospatialCoverage(); LatLonRect bb = new LatLonRect(); gc.setBoundingBox(bb); gc.toXML(System.out); }
/** * ******************************************************************** */ /* testing public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(false); catFactory.registerMetadataConverter( MetadataType.THREDDS, new ThreddsMetadata.Parser()); InvCatalogImpl cat = (InvCatalogImpl) catFactory.readXML("file:///C:/dev/thredds/catalog/test/data/enhancedCat.xml"); System.out.println("\nDump=\n" + cat.dump()); StringBuffer buff = new StringBuffer(); boolean isValid = cat.check( buff); System.out.println("catalog <" + cat.getName()+ "> "+ (isValid ? "is" : "is not") + " valid"); System.out.println(" messages=\n" + buff.toString()); if (isValid) System.out.println("\nBack to XML=\n" + catFactory.writeXML( cat)); } */ static public void main(String[] args) throws IOException { GeospatialCoverage gc = new GeospatialCoverage(); LatLonRect bb = new LatLonRect(); gc.setBoundingBox(bb); gc.toXML(System.out); }
/** * ******************************************************************** */ /* testing public static void main (String[] args) throws Exception { InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(false); catFactory.registerMetadataConverter( MetadataType.THREDDS, new ThreddsMetadata.Parser()); InvCatalogImpl cat = (InvCatalogImpl) catFactory.readXML("file:///C:/dev/thredds/catalog/test/data/enhancedCat.xml"); System.out.println("\nDump=\n" + cat.dump()); StringBuffer buff = new StringBuffer(); boolean isValid = cat.check( buff); System.out.println("catalog <" + cat.getName()+ "> "+ (isValid ? "is" : "is not") + " valid"); System.out.println(" messages=\n" + buff.toString()); if (isValid) System.out.println("\nBack to XML=\n" + catFactory.writeXML( cat)); } */ static public void main(String[] args) throws IOException { GeospatialCoverage gc = new GeospatialCoverage(); LatLonRect bb = new LatLonRect(); gc.setBoundingBox(bb); gc.toXML(System.out); }
static public ThreddsMetadata.GeospatialCoverage extractGeospatial(GridDataset gridDataset) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); LatLonRect llbb = null; CoordinateAxis1D vaxis = null; for(GridDataset.Gridset gridset : gridDataset.getGridsets()) { GridCoordSystem gsys = gridset.getGeoCoordSystem(); if (llbb == null) llbb = gsys.getLatLonBoundingBox(); CoordinateAxis1D vaxis2 = gsys.getVerticalAxis(); if (vaxis == null) vaxis = vaxis2; else if ((vaxis2 != null) && (vaxis2.getSize() > vaxis.getSize())) vaxis = vaxis2; } if (llbb != null) gc.setBoundingBox(llbb); if (vaxis != null) gc.setVertical(vaxis); return gc; }
static public ThreddsMetadata.GeospatialCoverage extractGeospatial(GridDataset gridDataset) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); LatLonRect llbb = null; CoordinateAxis1D vaxis = null; for(GridDataset.Gridset gridset : gridDataset.getGridsets()) { GridCoordSystem gsys = gridset.getGeoCoordSystem(); if (llbb == null) llbb = gsys.getLatLonBoundingBox(); CoordinateAxis1D vaxis2 = gsys.getVerticalAxis(); if (vaxis == null) vaxis = vaxis2; else if ((vaxis2 != null) && (vaxis2.getSize() > vaxis.getSize())) vaxis = vaxis2; } if (llbb != null) gc.setBoundingBox(llbb); if (vaxis != null) gc.setVertical(vaxis); return gc; }
static public ThreddsMetadata.GeospatialCoverage extractGeospatial(GridDataset gridDataset) { ThreddsMetadata.GeospatialCoverage gc = new ThreddsMetadata.GeospatialCoverage(); LatLonRect llbb = null; CoordinateAxis1D vaxis = null; for(GridDataset.Gridset gridset : gridDataset.getGridsets()) { GridCoordSystem gsys = gridset.getGeoCoordSystem(); if (llbb == null) llbb = gsys.getLatLonBoundingBox(); CoordinateAxis1D vaxis2 = gsys.getVerticalAxis(); if (vaxis == null) vaxis = vaxis2; else if ((vaxis2 != null) && (vaxis2.getSize() > vaxis.getSize())) vaxis = vaxis2; } if (llbb != null) gc.setBoundingBox(llbb); if (vaxis != null) gc.setVertical(vaxis); return gc; }
@Override public ThreddsMetadata.GeospatialCoverage getGeospatialCoverage() { ThreddsMetadata.GeospatialCoverage geospatialCoverage = new ThreddsMetadata.GeospatialCoverage(); geospatialCoverage.setBoundingBox(new LatLonRect( new LatLonPointImpl(upperLeftLat, upperLeftLon), new LatLonPointImpl(bottomRightLat, bottomRightLon))); return geospatialCoverage; } });
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; }