usingnamespaceSystem;usingnamespaceNETGeographicLib;intmain(array<System::String^>^/*args*/){try{constdoublelat1=40+58/60.0,lat2=39+56/60.0,// standard parallelsk1=1,// scalelon0=-77-45/60.0;// Central meridian// Set up basic projectionAlbersEqualArea^albers=gcnewAlbersEqualArea(Constants::WGS84::EquatorialRadius,Constants::WGS84::Flattening,lat1,lat2,k1);{// Sample conversion from geodetic to Albers Equal Areadoublelat=39.95,lon=-75.17;// Philadelphiadoublex,y;albers->Forward(lon0,lat,lon,x,y);Console::WriteLine(String::Format("X: {0} Y: {1}",x,y));}{// Sample conversion from Albers Equal Area grid to geodeticdoublex=220e3,y=-53e3;doublelat,lon;albers->Reverse(lon0,x,y,lat,lon);Console::WriteLine(String::Format("Latitude: {0} Longitude: {1}",lat,lon));}}catch(GeographicErr^e){Console::WriteLine(String::Format("Caught exception: {0}",e->Message));return-1;}return0;}