public class NetCDFProjection extends Object
Modifier and Type | Field and Description |
---|---|
static NetCDFProjection |
ALBERS_EQUAL_AREA
Currently supported NetCDF projections.
|
static NetCDFProjection |
LAMBERT_AZIMUTHAL_EQUAL_AREA |
static NetCDFProjection |
LAMBERT_CONFORMAL_CONIC_1SP |
static NetCDFProjection |
LAMBERT_CONFORMAL_CONIC_2SP |
static NetCDFProjection |
MERCATOR_1SP |
static NetCDFProjection |
MERCATOR_2SP |
static NetCDFProjection |
ORTHOGRAPHIC |
static String |
PARAMS_SEPARATOR |
static NetCDFProjection |
POLAR_STEREOGRAPHIC |
static NetCDFProjection |
ROTATED_POLE |
static NetCDFProjection |
STEREOGRAPHIC |
static NetCDFProjection |
TRANSVERSE_MERCATOR |
Constructor and Description |
---|
NetCDFProjection(String projectionName,
String ogcName,
Map<String,String> parametersMapping)
NetCDF CF projection constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return the NetCDF CF GridMapping name
|
ParameterValueGroup |
getNetcdfParameters(ParameterValueGroup ogcParameters)
Subclasses override this if they wish to adjust OGC parameters before they are written to
NetCDF.
|
String |
getOGCName()
Return the OGC/GeoTools projection name
|
ParameterValueGroup |
getOgcParameters(ParameterValueGroup netcdfParameters)
Subclasses override this if they wish to adjust OGC parameters after they are read from
NetCDF.
|
Map<String,String> |
getParameters()
Returns the underlying unmodifiable Referencing to NetCDF parameters mapping.
|
static NetCDFProjection |
getSupportedProjection(String projectionName)
Get a NetCDF Projection definition referred by name
|
static CoordinateReferenceSystem |
lookForDatasetCRS(NetcdfDataset dataset)
Look for a dataset global
CoordinateReferenceSystem definition provided through a
spatial_ref global attribute. |
static CoordinateReferenceSystem |
lookForVariableCRS(NetcdfDataset dataset,
CoordinateReferenceSystem defaultCrs)
Look for a CoordinateReferenceSystem defined into a variable
|
static CoordinateReferenceSystem |
lookupForCustomEpsg(CoordinateReferenceSystem crs)
Check if any custom EPSG maps the provided crs and return that one
|
static CoordinateReferenceSystem |
parseProjection(NetcdfDataset dataset)
Look for a SPATIAL_REF global attribute and parsing it (as WKT) to setup a
CoordinateReferenceSystem |
static CoordinateReferenceSystem |
parseProjection(Variable var)
Extract the georeferencing projection information from the specified variable and setup a
CoordinateReferenceSystem instance |
static CoordinateReferenceSystem |
parseProjection(Variable var,
NetCDFProjection.CRSParser crsParser)
Extract the georeferencing projection information from the specified variable and setup a
CoordinateReferenceSystem instance |
public static final String PARAMS_SEPARATOR
public static final NetCDFProjection ALBERS_EQUAL_AREA
public static final NetCDFProjection MERCATOR_1SP
public static final NetCDFProjection MERCATOR_2SP
public static final NetCDFProjection LAMBERT_AZIMUTHAL_EQUAL_AREA
public static final NetCDFProjection TRANSVERSE_MERCATOR
public static final NetCDFProjection ORTHOGRAPHIC
public static final NetCDFProjection POLAR_STEREOGRAPHIC
public static final NetCDFProjection STEREOGRAPHIC
public static final NetCDFProjection LAMBERT_CONFORMAL_CONIC_1SP
public static final NetCDFProjection LAMBERT_CONFORMAL_CONIC_2SP
public static final NetCDFProjection ROTATED_POLE
public Map<String,String> getParameters()
public String getName()
public String getOGCName()
public ParameterValueGroup getOgcParameters(ParameterValueGroup netcdfParameters)
getNetcdfParameters(ParameterValueGroup)
.netcdfParameters
- parameter values read from NetCDFpublic ParameterValueGroup getNetcdfParameters(ParameterValueGroup ogcParameters)
getOgcParameters(ParameterValueGroup)
.ogcParameters
- parameter values used for OGC projectionpublic static NetCDFProjection getSupportedProjection(String projectionName)
public static CoordinateReferenceSystem parseProjection(Variable var) throws FactoryException
CoordinateReferenceSystem
instanceFactoryException
public static CoordinateReferenceSystem parseProjection(Variable var, NetCDFProjection.CRSParser crsParser) throws FactoryException
CoordinateReferenceSystem
instanceFactoryException
public static CoordinateReferenceSystem parseProjection(NetcdfDataset dataset)
CoordinateReferenceSystem
dataset
- public static CoordinateReferenceSystem lookupForCustomEpsg(CoordinateReferenceSystem crs) throws FactoryException
FactoryException
public static CoordinateReferenceSystem lookForVariableCRS(NetcdfDataset dataset, CoordinateReferenceSystem defaultCrs) throws FactoryException
dataset
- defaultCrs
- FactoryException
public static CoordinateReferenceSystem lookForDatasetCRS(NetcdfDataset dataset)
CoordinateReferenceSystem
definition provided through a
spatial_ref global attribute.dataset
- Copyright © 1996–2019 Geotools. All rights reserved.