/** * Add GeoReferencing global attributes (GDAL's spatial_ref and GeoTransform). * They will be used for datasets with unsupported NetCDF CF projection. * @param writer * @param crs * @param transform */ private void addGlobalAttributes(NetcdfFileWriter writer, CoordinateReferenceSystem crs, MathTransform transform) { writer.addGroupAttribute(null, getSpatialRefAttribute(crs)); writer.addGroupAttribute(null, getGeoTransformAttribute(transform)); }
/** * Add GeoReferencing global attributes (GDAL's spatial_ref and GeoTransform). They will be used * for datasets with unsupported NetCDF CF projection. * * @param writer * @param crs * @param transform */ private void addGlobalAttributes( NetcdfFileWriter writer, CoordinateReferenceSystem crs, MathTransform transform) { writer.addGroupAttribute(null, getSpatialRefAttribute(crs)); writer.addGroupAttribute(null, getGeoTransformAttribute(transform)); }
/** * Add the gridMapping attribute * * @param writer * @param crs * @param transform * @param var * @param gridMapping */ private void setGeoreferencingAttributes(NetcdfFileWriter writer, CoordinateReferenceSystem crs, MathTransform transform, Variable var) { // Adding GDAL Attributes spatial_ref and GeoTransform writer.addVariableAttribute(var, getSpatialRefAttribute(crs)); writer.addVariableAttribute(var, getGeoTransformAttribute(transform)); }
/** * Add the gridMapping attribute * * @param writer * @param crs * @param transform * @param var * @param gridMapping */ private void setGeoreferencingAttributes( NetcdfFileWriter writer, CoordinateReferenceSystem crs, MathTransform transform, Variable var) { // Adding GDAL Attributes spatial_ref and GeoTransform writer.addVariableAttribute(var, getSpatialRefAttribute(crs)); writer.addVariableAttribute(var, getGeoTransformAttribute(transform)); }