@Test public void testIsGeostationaryCRS() { assertThat(GeostationarySatellite.isGeostationaryCRS(sphericalGeosCRS), is(true)); assertThat(GeostationarySatellite.isGeostationaryCRS(ellipsoidalGeosCRS), is(true)); assertThat( GeostationarySatellite.isGeostationaryCRS(DefaultGeographicCRS.WGS84), is(false)); assertThat(GeostationarySatellite.isGeostationaryCRS(null), is(false)); }
static boolean isGeostationaryCRS(CoordinateReferenceSystem crs) { if (crs == null) { return false; } String code = crs.getName().getCode(); return ("GEOS".equals(code) || "Geostationary_Satellite".equals(code)); }
GeostationarySatellite extends MapProjection { static boolean isGeostationaryCRS(CoordinateReferenceSystem crs) { if (crs == null) { return false; } String code = crs.getName().getCode(); return ("GEOS".equals(code) || "Geostationary_Satellite".equals(code)); } }
GeostationarySatellite extends MapProjection { static boolean isGeostationaryCRS(CoordinateReferenceSystem crs) { if (crs == null) { return false; } String code = crs.getName().getCode(); return ("GEOS".equals(code) || "Geostationary_Satellite".equals(code)); } GeostationarySatellite(ParameterValueGroup parameters); }
GeostationarySatellite extends MapProjection { static boolean isGeostationaryCRS(CoordinateReferenceSystem crs) { if (crs == null) { return false; } String code = crs.getName().getCode(); return ("GEOS".equals(code) || "Geostationary_Satellite".equals(code)); } GeostationarySatellite(ParameterValueGroup parameters); @Override ParameterDescriptorGroup getParameterDescriptors(); @Override ParameterValueGroup getParameterValues(); static Envelope2D circumscribeFullDisk(CoordinateReferenceSystem geosCRS); static Envelope2D inscribeFullDiskEstimate(CoordinateReferenceSystem geosCRS); }
GeostationarySatellite extends MapProjection { static boolean isGeostationaryCRS(CoordinateReferenceSystem crs) { if (crs == null) { return false; } String code = crs.getName().getCode(); return ("GEOS".equals(code) || "Geostationary_Satellite".equals(code)); } GeostationarySatellite(ParameterValueGroup parameters); @Override ParameterDescriptorGroup getParameterDescriptors(); @Override ParameterValueGroup getParameterValues(); static Envelope2D circumscribeFullDisk(CoordinateReferenceSystem geosCRS); static Envelope2D inscribeFullDiskEstimate(CoordinateReferenceSystem geosCRS);  }