/** true if isGeoXY or isLatLon * @return true if isGeoXY or isLatLon */ public boolean isGeoReferencing() { return isGeoXY() || isLatLon(); }
/** true if isGeoXY or isLatLon * @return true if isGeoXY or isLatLon */ public boolean isGeoReferencing() { return isGeoXY() || isLatLon(); }
/** true if isGeoXY or isLatLon * @return true if isGeoXY or isLatLon */ public boolean isGeoReferencing() { return isGeoXY() || isLatLon(); }
public static Document genCoordRefSysAsGML( ucar.nc2.dataset.CoordinateSystem coordSys ) { if ( coordSys == null ) throw new IllegalArgumentException( "CoordinateSystem must be non-null."); if ( ! coordSys.isGeoReferencing()) throw new IllegalArgumentException( "CoordinateSystem must be a georeferencing CS."); /*Element xyCrsElem; if ( coordSys.isGeoXY()) { xyCrsElem = genProjectedCRS( coordSys.getProjection()); } */ if ( !coordSys.isGeoXY()) { coordSys.getLatAxis(); coordSys.getLonAxis(); } Element rootElem = new Element( "CompoundCRS", gmlNS ); rootElem.addContent( "" ); rootElem.addNamespaceDeclaration( gmlNS ); rootElem.addNamespaceDeclaration( xlinkNS ); // rootElem.setAttribute( "version", this.getVersion() ); return new Document( rootElem ); }
return new Geographic(netcdfCS, axes); if (netcdfCS.isGeoXY()) { return new Projected(netcdfCS, axes);
public static Document genCoordRefSysAsGML( ucar.nc2.dataset.CoordinateSystem coordSys ) { if ( coordSys == null ) throw new IllegalArgumentException( "CoordinateSystem must be non-null."); if ( ! coordSys.isGeoReferencing()) throw new IllegalArgumentException( "CoordinateSystem must be a georeferencing CS."); Element xyCrsElem; if ( coordSys.isGeoXY()) { xyCrsElem = genProjectedCRS( coordSys.getProjection()); } else { coordSys.getLatAxis(); coordSys.getLonAxis(); } Element rootElem = new Element( "CompoundCRS", gmlNS ); rootElem.addContent( "" ); rootElem.addNamespaceDeclaration( gmlNS ); rootElem.addNamespaceDeclaration( xlinkNS ); // rootElem.setAttribute( "version", this.getVersion() ); return new Document( rootElem ); }
if (cs.isGeoXY()) { xaxis = cs.getXaxis(); yaxis = cs.getYaxis();
this.ds = cs.getNetcdfDataset(); if (cs.isGeoXY()) { horizXaxis = xAxis = cs.getXaxis(); horizYaxis = yAxis = cs.getYaxis();
if (cs.isGeoXY()) { xaxis = cs.getXaxis(); yaxis = cs.getYaxis();
if (cs.isGeoXY()) { xaxis = cs.getXaxis(); yaxis = cs.getYaxis();
this.ds = cs.getNetcdfDataset(); if (cs.isGeoXY()) { horizXaxis = xAxis = cs.getXaxis(); horizYaxis = yAxis = cs.getYaxis();
if (cs.isGeoXY()) { xaxis = cs.getXaxis(); yaxis = cs.getYaxis();
if (cs.isGeoXY()) { xaxis = cs.getXaxis(); yaxis = cs.getYaxis();
this.ds = cs.getNetcdfDataset(); if (cs.isGeoXY()) { horizXaxis = xAxis = cs.getXaxis(); horizYaxis = yAxis = cs.getYaxis();
if (cs.isGeoXY()) { xaxis = cs.getXaxis(); yaxis = cs.getYaxis();