cdm/src/main/java/ucar/unidata/geoloc/projection/LambertConformal.java
public String toWKS() {
    StringBuilder sbuff = new StringBuilder();
    sbuff.append("PROJCS[\"").append(getName()).append("\",");
    if (true) {
      sbuff.append("GEOGCS[\"Normal Sphere (r=6371007)\",");
      sbuff.append("DATUM[\"unknown\",");
      sbuff.append("SPHEROID[\"sphere\",6371007,0]],");
    } else {
      sbuff.append("GEOGCS[\"WGS 84\",");
      sbuff.append("DATUM[\"WGS_1984\",");
      sbuff.append("SPHEROID[\"WGS 84\",6378137,298.257223563],");
      sbuff.append("TOWGS84[0,0,0,0,0,0,0]],");
    }
    sbuff.append("PRIMEM[\"Greenwich\",0],");
    sbuff.append("UNIT[\"degree\",0.0174532925199433]],");
    sbuff.append("PROJECTION[\"Lambert_Conformal_Conic_1SP\"],");
    sbuff.append("PARAMETER[\"latitude_of_origin\",").append(getOriginLat()).append("],");  // LOOK assumes getOriginLat = getParellel
    sbuff.append("PARAMETER[\"central_meridian\",").append(getOriginLon()).append("],");
    sbuff.append("PARAMETER[\"scale_factor\",1],");
    sbuff.append("PARAMETER[\"false_easting\",").append(falseEasting).append("],");
    sbuff.append("PARAMETER[\"false_northing\",").append(falseNorthing).append("],");

    return sbuff.toString();
  }
public String toWKS() {
    StringBuilder sbuff = new StringBuilder();
    sbuff.append("PROJCS[\"").append(getName()).append("\",");
    if (true) {
      sbuff.append("GEOGCS[\"Normal Sphere (r=6371007)\",");
      sbuff.append("DATUM[\"unknown\",");
      sbuff.append("SPHEROID[\"sphere\",6371007,0]],");
    } else {
      sbuff.append("GEOGCS[\"WGS 84\",");
      sbuff.append("DATUM[\"WGS_1984\",");
      sbuff.append("SPHEROID[\"WGS 84\",6378137,298.257223563],");
      sbuff.append("TOWGS84[0,0,0,0,0,0,0]],");
    }
    sbuff.append("PRIMEM[\"Greenwich\",0],");
    sbuff.append("UNIT[\"degree\",0.0174532925199433]],");
    sbuff.append("PROJECTION[\"Lambert_Conformal_Conic_1SP\"],");
    sbuff.append("PARAMETER[\"latitude_of_origin\",").append(getOriginLat()).append("],");  // LOOK assumes getOriginLat = getParellel
    sbuff.append("PARAMETER[\"central_meridian\",").append(getOriginLon()).append("],");
    sbuff.append("PARAMETER[\"scale_factor\",1],");
    sbuff.append("PARAMETER[\"false_easting\",").append(falseEasting).append("],");
    sbuff.append("PARAMETER[\"false_northing\",").append(falseNorthing).append("],");

    return sbuff.toString();
  }
public String toWKS ( ) { StringBuilder sbuff = new StringBuilder ( ) ; sbuff . append ( "PROJCS[\"" ) . append ( getName ( ) ) . append ( "\"," ) ; if ( true ) { sbuff . append ( "GEOGCS[\"Normal Sphere (r=6371007)\"," ) ; sbuff . append ( "DATUM[\"unknown\"," ) ; sbuff . append ( "SPHEROID[\"sphere\",6371007,0]]," ) ; } else { sbuff . append ( "GEOGCS[\"WGS 84\"," ) ; sbuff . append ( "DATUM[\"WGS_1984\"," ) ; sbuff . append ( "SPHEROID[\"WGS 84\",6378137,298.257223563]," ) ; sbuff . append ( "TOWGS84[0,0,0,0,0,0,0]]," ) ; } sbuff . append ( "PRIMEM[\"Greenwich\",0]," ) ; sbuff . append ( "UNIT[\"degree\",0.0174532925199433]]," ) ; sbuff . append ( "PROJECTION[\"Lambert_Conformal_Conic_1SP\"]," ) ; sbuff . append ( "PARAMETER[\"latitude_of_origin\"," ) . append ( getOriginLat ( ) ) . append ( "]," ) ; // LOOK assumes getOriginLat = getParellel
 sbuff . append ( "PARAMETER[\"central_meridian\"," ) . append ( getOriginLon ( ) ) . append ( "]," ) ; sbuff . append ( "PARAMETER[\"scale_factor\",1]," ) ; sbuff . append ( "PARAMETER[\"false_easting\"," ) . append ( falseEasting ) . append ( "]," ) ; sbuff . append ( "PARAMETER[\"false_northing\"," ) . append ( falseNorthing ) . append ( "]," ) ; return sbuff . toString ( ) ; }
Create a WKS string

@return WKS string
Create a WKS string