Search in sources :

Example 6 with PrimeMeridian

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);
}
Also used : Ellipsoid(org.opengis.referencing.datum.Ellipsoid) PrimeMeridian(org.opengis.referencing.datum.PrimeMeridian)

Aggregations

PrimeMeridian (org.opengis.referencing.datum.PrimeMeridian)6 EllipsoidalCS (org.opengis.referencing.cs.EllipsoidalCS)3 Ellipsoid (org.opengis.referencing.datum.Ellipsoid)3 GeodeticDatum (org.opengis.referencing.datum.GeodeticDatum)3 Angle (javax.measure.quantity.Angle)2 CartesianCS (org.opengis.referencing.cs.CartesianCS)2 CoordinateSystem (org.opengis.referencing.cs.CoordinateSystem)2 Unit (javax.measure.Unit)1 Convention (org.apache.sis.io.wkt.Convention)1 BursaWolfParameters (org.apache.sis.referencing.datum.BursaWolfParameters)1 DefaultGeodeticDatum (org.apache.sis.referencing.datum.DefaultGeodeticDatum)1 UnavailableFactoryException (org.apache.sis.referencing.factory.UnavailableFactoryException)1 DependsOnMethod (org.apache.sis.test.DependsOnMethod)1 Test (org.junit.Test)1 Identifier (org.opengis.metadata.Identifier)1 GeneralParameterValue (org.opengis.parameter.GeneralParameterValue)1 ParameterValue (org.opengis.parameter.ParameterValue)1 ParameterValueGroup (org.opengis.parameter.ParameterValueGroup)1 IdentifiedObject (org.opengis.referencing.IdentifiedObject)1 GeodeticCRS (org.opengis.referencing.crs.GeodeticCRS)1