private CoordinateTransform makeUTMProjection ( NetcdfDataset ds ) { int zone = ( int ) findAttributeDouble ( ds , "P_ALP" ) ; double ycent = findAttributeDouble ( ds , "YCENT" ) ; //double lon0 = findAttributeDouble( "X_CENT"); //double lat0 = findAttributeDouble( "Y_CENT"); /** * Construct a UTM Projection. * @param zone - UTM zone * @param if ycent < 0, then isNorth = False */ boolean isNorth = true ; if ( ycent < 0 ) isNorth = false ; UtmProjection utm = new UtmProjection ( zone , isNorth ) ; return new ProjectionCT ( "UTM" , "EPSG" , utm ) ; }
Intend to use EPSG system parameters