} catch (FactoryException e) {
Logging.recoverableException(CRS.class, "getHorizontalCRS", e);
horizontalCS = new DefaultEllipsoidalCS(properties, axis0, axis1);
}
properties = CRSUtilities.changeDimensionInName(crs, "3D", "2D");
GeographicCRS horizontalCRS;
try {
horizontalCRS = ReferencingFactoryFinder.getCRSFactory(null).
createGeographicCRS(properties, datum, horizontalCS);
} catch (FactoryException e) {
Logging.recoverableException(CRS.class, "getHorizontalCRS", e);