double dCenterLon = 80; QString strProj = QString( "+proj=geos +h=35785831.0 +lon_0=%1 +a=6400000" ).arg( dCenterLon ); projCtx _ctx = pj_ctx_alloc(); projPJ _projection = = pj_init_plus_ctx( _ctx, qPrintable( strProj ) ); int vLon; //I have int vLat; //I have int x; //I have to calculte this int y; //I have to calculte this int nResolution; //I have int dColumnOffset; //I have int dLineOffset; //I have projUV data; data.u = vLon * DEG_TO_RAD; data.v = vlat * DEG_TO_RAD; data = pj_fwd( data, _projection ); x=( data.u / nResolution ) + dColumnOffset + 0.5; y=( data.v / nResolution * -1 ) + dLineOffset + 0.5;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)