/** * true if it has X and Y CoordinateAxis, and a CoordTransform Projection * @return true if it has X and Y CoordinateAxis, and a CoordTransform Projection */ public boolean isGeoXY() { if ((xAxis == null) || (yAxis == null)) return false; if (null == getProjection()) return false; if (projection instanceof LatLonProjection) return false; return true; }
/** * true if it has X and Y CoordinateAxis, and a CoordTransform Projection * @return true if it has X and Y CoordinateAxis, and a CoordTransform Projection */ public boolean isGeoXY() { if ((xAxis == null) || (yAxis == null)) return false; return null != getProjection() && !(projection instanceof LatLonProjection); }
/** * true if it has X and Y CoordinateAxis, and a CoordTransform Projection * @return true if it has X and Y CoordinateAxis, and a CoordTransform Projection */ public boolean isGeoXY() { if ((xAxis == null) || (yAxis == null)) return false; return null != getProjection() && !(projection instanceof LatLonProjection); }
protected CoverageCSImpl(NetcdfDataset ds, CoordinateSystem cs, CoverageCSFactory fac) { this.ds = ds; this.cs = cs; this.fac = fac; // set canonical area ProjectionImpl projOrig = cs.getProjection(); if (projOrig != null) { projection = projOrig.constructCopy(); projection.setDefaultMapArea(getBoundingBox()); // LOOK too expensive for 2D } }
/** * Returns a wrapper around the netCDF projection. * * @throws IllegalStateException if the netCDF coordinate system does not define a projection. */ @Override public synchronized Projection getConversionFromBase() { if (projection == null) { final ucar.unidata.geoloc.Projection p = delegate().getProjection(); if (p == null) { throw new IllegalStateException("Projection is unspecified."); } projection = new NetcdfProjection(p, getBaseCRS(), this); } return projection; }
protected CoverageCSImpl(NetcdfDataset ds, CoordinateSystem cs, CoverageCSFactory fac) { this.ds = ds; this.cs = cs; this.fac = fac; // set canonical area ProjectionImpl projOrig = cs.getProjection(); if (projOrig != null) { projection = projOrig.constructCopy(); projection.setDefaultMapArea(getBoundingBox()); // LOOK too expensive for 2D } }
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 (null == cs.getProjection()) { if (sbuff != null) { sbuff.format("%s: NO projection found%n", cs.getName()); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole)) { if (!SimpleUnit.kmUnit.isCompatible(xaxis.getUnitsString())) {
if (null == cs.getProjection()) { if (sbuff != null) { sbuff.format("%s: NO projection found%n", cs.getName()); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole)) { if (!SimpleUnit.kmUnit.isCompatible(xaxis.getUnitsString())) {
horizYaxis = yAxis = cs.getYaxis(); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole) && !(p instanceof RotatedLatLon)) { ProjectionImpl projOrig = cs.getProjection(); if (projOrig != null) { proj = projOrig.constructCopy();
if (null == cs.getProjection()) { if (sbuff != null) { sbuff.format("%s: NO projection found%n", cs.getName()); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole)) { if (!SimpleUnit.kmUnit.isCompatible(xaxis.getUnitsString())) {
horizYaxis = yAxis = cs.getYaxis(); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole) && !(p instanceof RotatedLatLon)) { ProjectionImpl projOrig = cs.getProjection(); if (projOrig != null) { proj = projOrig.constructCopy();
horizYaxis = yAxis = cs.getYaxis(); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole) && !(p instanceof RotatedLatLon)) { ProjectionImpl projOrig = cs.getProjection(); if (projOrig != null) { proj = projOrig.constructCopy();
if (null == cs.getProjection()) { if (errlog != null) { errlog.format("%s: NO projection found%n", cs.getName()); yaxis = cs.getYaxis(); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole)) { if (!SimpleUnit.kmUnit.isCompatible(xaxis.getUnitsString())) {
return; if (null == cs.getProjection()) { if (errlog != null) errlog.format("%s: NO projection found%n", cs.getName()); return; yaxis = cs.getYaxis(); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole)) { if (!SimpleUnit.kmUnit.isCompatible(xaxis.getUnitsString())) { this.orgProj = cs.getProjection();
if (null == cs.getProjection()) { if (errlog != null) { errlog.format("%s: NO projection found%n", cs.getName()); yaxis = cs.getYaxis(); ProjectionImpl p = cs.getProjection(); if (!(p instanceof RotatedPole)) { if (!SimpleUnit.kmUnit.isCompatible(xaxis.getUnitsString())) {