final GeographicCRS gcs = createGeographicCoordinateSystem(metadata);
// was the projection user defined?
// in such case we need to set the remaining parameters.
if (projUserDefined) {
final GeodeticDatum tempDatum = ((GeodeticDatum) gcs.getDatum());
final DefaultEllipsoid tempEll = (DefaultEllipsoid) tempDatum
.getEllipsoid();
double inverseFlattening = tempEll.getInverseFlattening();
double semiMajorAxis = tempEll.getSemiMajorAxis();
// setting missing parameters
parameters.parameter("semi_minor").setValue(