@Override public boolean canConvert( IUnit other ) { return getReferencedObject().canConvert( other ); }
if ( !axis[i].getUnits().canConvert( Unit.METRE ) ) { throw new XMLParsingException( adapter, rootElement, "The units of all axis of a (cartesian) cs must be convertable to metres. Axis " LOG.debug( "Could not check axis [1]: " + axis[1] + " because it has no units." ); } else { if ( !( axis[0].getUnits().canConvert( Unit.RADIAN ) && axis[1].getUnits().canConvert( Unit.RADIAN ) ) ) { throw new XMLParsingException( adapter, rootElement, "The axis of the geodetic (Geographic) crs are not consistent: " LOG.debug( "Could not check axis [2]: " + axis[2] + " because it has no units." ); } else { if ( !axis[2].getUnits().canConvert( Unit.METRE ) ) { throw new XMLParsingException( adapter, rootElement, "The units of the third axis of the ellipsoidal CS type must be convertable to metre it is not: " throw new XMLParsingException( adapter, rootElement, "A vertical cs can only have 1 axis." ); if ( !axis[0].getUnits().canConvert( Unit.METRE ) ) { throw new XMLParsingException( adapter, rootElement, "The axis of the vertical crs is not convertable to metre, other values are currently not supported: "
double gwLongitude = adapter.getRequiredNodeAsDouble( gwLongitudeElem, new XPath( ".", nsContext ) ); IUnit unit = parseUnitOfMeasure( gwLongitudeElem ); if ( unit != null && !unit.canConvert( Unit.RADIAN ) ) { LOG.error( "The primemeridian must have RADIAN as a base unit." );
IUnit targetUnit = targetAxis.getUnits(); if ( !( Unit.RADIAN.equals( targetUnit ) || Unit.METRE.equals( targetUnit ) ) ) { if ( !( targetUnit.canConvert( Unit.RADIAN ) || targetUnit.canConvert( Unit.METRE ) ) ) { throw new TransformationException( Messages.getMessage(
+ " does not have any axis. Hence it is invalid." ); if ( !axis[0].getUnits().canConvert( Unit.METRE ) ) { throw new ServiceInitException( "The crs with code: "
if ( !secondUnit.canConvert( unit ) ) { throw new XMLParsingException( adapter, param, "Ellispoid axis can only contain comparable unit, supplied are: "