/** * Create a ProjectionImpl from the projection * * @param proj projection * @return a ProjectionImpl representing the projection */ static public ProjectionImpl factory(Projection proj) { if (proj instanceof ProjectionImpl) { return (ProjectionImpl) proj; } return new ProjectionAdapter(proj); }
/** * Returns the domain of validity declared by the netCDF projection, or {@code null} if none. * * @see ucar.unidata.geoloc.ProjectionImpl#getDefaultMapAreaLL() */ @Override public Extent getDomainOfValidity() { final LatLonRect domain = ProjectionAdapter.factory(projection).getDefaultMapAreaLL(); if (domain != null) { return new SimpleGeographicBoundingBox( domain.getLonMin(), domain.getLonMax(), domain.getLatMin(), domain.getLatMax()); } return null; }
/** * Create a ProjectionImpl from the projection * * @param proj projection * @return a ProjectionImpl representing the projection */ static public ProjectionImpl factory(Projection proj) { if (proj instanceof ProjectionImpl) { return (ProjectionImpl) proj; } return new ProjectionAdapter(proj); }
/** * Create a ProjectionImpl from the projection * * @param proj projection * @return a ProjectionImpl representing the projection */ static public ProjectionImpl factory(Projection proj) { if (proj instanceof ProjectionImpl) { return (ProjectionImpl) proj; } return new ProjectionAdapter(proj); }
/** * Create a ProjectionImpl from the projection * * @param proj projection * @return a ProjectionImpl representing the projection */ static public ProjectionImpl factory(Projection proj) { if (proj instanceof ProjectionImpl) { return (ProjectionImpl) proj; } return new ProjectionAdapter(proj); }
/** copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new ProjectionAdapter( proj); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new ProjectionAdapter(proj); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new ProjectionAdapter(proj); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new ProjectionAdapter(proj); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }