Enum NetCDFCoordinateReferenceSystemType
- Object
-
- Enum<NetCDFCoordinateReferenceSystemType>
-
- NetCDFCoordinateReferenceSystemType
-
- All Implemented Interfaces:
Serializable
,Comparable<NetCDFCoordinateReferenceSystemType>
public enum NetCDFCoordinateReferenceSystemType extends Enum<NetCDFCoordinateReferenceSystemType>
Enum used to represent different coordinate reference systems stored within a NetCDF dataset. NetCDF CF supports several types of projections through grid mapping.Unsupported projections will be specified through the spatial_ref and GeoTransform global attributes defined by GDAL.
- Author:
- Daniele Romagnoli, GeoSolutions SAS
- See Also:
- NetCDF CF, Appendix F: Grid Mappings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetCDFCoordinateReferenceSystemType.NetCDFCoordinate
Contains basic information related to a NetCDF Coordinate such as: - short name (as an instance: x) - long name (as an instance: x coordinate of projection) - standard name (as an instance: projection_x_coordinate) - the name of the associated dimension (as an instance: x) - the unit of measure of that coordinate (as an instance: m)
-
Enum Constant Summary
-
Method Summary
-
-
-
Enum Constant Detail
-
WGS84
public static final NetCDFCoordinateReferenceSystemType WGS84
-
SPATIAL_REF
public static final NetCDFCoordinateReferenceSystemType SPATIAL_REF
-
ALBERS_EQUAL_AREA
public static final NetCDFCoordinateReferenceSystemType ALBERS_EQUAL_AREA
-
LAMBERT_AZIMUTHAL_EQUAL_AREA
public static final NetCDFCoordinateReferenceSystemType LAMBERT_AZIMUTHAL_EQUAL_AREA
-
LAMBERT_CONFORMAL_CONIC_1SP
public static final NetCDFCoordinateReferenceSystemType LAMBERT_CONFORMAL_CONIC_1SP
-
LAMBERT_CONFORMAL_CONIC_2SP
public static final NetCDFCoordinateReferenceSystemType LAMBERT_CONFORMAL_CONIC_2SP
-
MERCATOR_1SP
public static final NetCDFCoordinateReferenceSystemType MERCATOR_1SP
-
MERCATOR_2SP
public static final NetCDFCoordinateReferenceSystemType MERCATOR_2SP
-
TRANSVERSE_MERCATOR
public static final NetCDFCoordinateReferenceSystemType TRANSVERSE_MERCATOR
-
ORTHOGRAPHIC
public static final NetCDFCoordinateReferenceSystemType ORTHOGRAPHIC
-
POLAR_STEREOGRAPHIC
public static final NetCDFCoordinateReferenceSystemType POLAR_STEREOGRAPHIC
-
STEREOGRAPHIC
public static final NetCDFCoordinateReferenceSystemType STEREOGRAPHIC
-
ROTATED_POLE
public static final NetCDFCoordinateReferenceSystemType ROTATED_POLE
-
-
Method Detail
-
values
public static NetCDFCoordinateReferenceSystemType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NetCDFCoordinateReferenceSystemType c : NetCDFCoordinateReferenceSystemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetCDFCoordinateReferenceSystemType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
parseCRS
public static NetCDFCoordinateReferenceSystemType parseCRS(CoordinateReferenceSystem crs)
Return a properNetCDFCoordinateReferenceSystemType
depending on the input OGCCoordinateReferenceSystem
instance.
-
getCoordinates
public NetCDFCoordinateReferenceSystemType.NetCDFCoordinate[] getCoordinates()
Return the set ofNetCDFCoordinateReferenceSystemType.NetCDFCoordinate
s for this NetCDF CRS type. As an instance, WGS84 type uses Latitude,Longitude while Mercator uses GeoY,GeoX. Default implementation returnsNetCDFCoordinateReferenceSystemType.NetCDFCoordinate.YX_COORDS
since most part of the CRS Type are projected.
-
getNetCDFProjection
public abstract NetCDFProjection getNetCDFProjection()
Return aNetCDFProjection
instance for this specific CRS type. Note that WGS84 CRS and SPATIAL_REF won't return a NetCDF CF projection.
-
getCoordinates
public NetCDFCoordinateReferenceSystemType.NetCDFCoordinate[] getCoordinates(CoordinateReferenceSystem crs)
Return the set ofNetCDFCoordinateReferenceSystemType.NetCDFCoordinate
s for the current NetCDF CRS type, taking into account a reference crs.
-
-