pj_latlong.cpp
来自「projapi是一个关于GIS行业投影转换的程序库」· C++ 代码 · 共 39 行
CPP
39 行
#include "stdafx.h"
/* very loosely based upon DMA code by Bradford W. Drew */#define PJ_LIB__#include "projects.h"
PROJ_HEAD(latlong, "Lat/long (Geodetic)") "\n\t";PROJ_HEAD(longlat, "Lat/long (Geodetic)") "\n\t";FORWARD(forward); xy.x = lp.lam / P->a; xy.y = lp.phi / P->a; return xy;}INVERSE(inverse); lp.phi = xy.y * P->a; lp.lam = xy.x * P->a; return lp;}FREEUP; if (P) pj_dalloc(P); }ENTRY0(latlong) P->is_latlong = 1; P->x0 = 0.0; P->y0 = 0.0; P->inv = inverse; P->fwd = forward;ENDENTRY(P)ENTRY0(longlat) P->is_latlong = 1; P->x0 = 0.0; P->y0 = 0.0; P->inv = inverse; P->fwd = forward;ENDENTRY(P)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?