use of org.opengis.referencing.datum.PrimeMeridian in project sis by apache.
the class CRSBuilder method verify.
/**
* Verifies if the user-defined datum created from GeoTIFF values
* matches the given datum created from the EPSG geodetic dataset.
* This method does not verify the EPSG code of the given datum.
*
* @param datum the datum created from the EPSG geodetic dataset.
* @param angularUnit unit of measurement declared in the GeoTIFF file.
* @param linearUnit unit of measurement declared in the GeoTIFF file.
*/
private void verify(final GeodeticDatum datum, final Unit<Angle> angularUnit, final Unit<Length> linearUnit) {
final PrimeMeridian pm = datum.getPrimeMeridian();
verifyIdentifier(datum, pm, GeoKeys.PrimeMeridian);
verify(pm, angularUnit);
final Ellipsoid ellipsoid = datum.getEllipsoid();
verifyIdentifier(datum, ellipsoid, GeoKeys.Ellipsoid);
verify(ellipsoid, linearUnit);
}
Aggregations