⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pj_krovak.c

📁 开源投影系统 Cartographic Projections library originally written by Gerald Evenden then of the USGS. The
💻 C
字号:
/****************************************************************************** * $Id: PJ_krovak.c,v 1.4 2002/12/15 22:31:04 warmerda Exp $ * * Project:  PROJ.4 * Purpose:  Implementation of the krovak (Krovak) projection. *           Definition: http://www.ihsenergy.com/epsg/guid7.html#1.4.3 * Author:   Thomas Flemming, tf@ttqv.com * ****************************************************************************** * Copyright (c) 2001, Thomas Flemming, tf@ttqv.com * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ****************************************************************************** * * $Log: PJ_krovak.c,v $ * Revision 1.4  2002/12/15 22:31:04  warmerda * handle lon_0, k, and prime meridian properly * * Revision 1.3  2002/12/15 00:13:30  warmerda * lat_0 may now be set by user, but still defaults to 49d30N * * Revision 1.2  2002/12/14 19:35:21  warmerda * updated headers * */#define PROJ_PARMS__ \	double	C_x;#define PJ_LIB__#include <projects.h>#include <string.h>#include <stdio.h>PJ_CVSID("$Id: PJ_krovak.c,v 1.4 2002/12/15 22:31:04 warmerda Exp $");	PROJ_HEAD(krovak, "Krovak") "\n\tPCyl., Sph.";/**   NOTES: According to EPSG the full Krovak projection method should have          the following parameters.  Within PROJ.4 the azimuth, and pseudo          standard parallel are hardcoded in the algorithm and can't be           altered from outside.  The others all have defaults to match the          common usage with Krovak projection.  lat_0 = latitude of centre of the projection           lon_0 = longitude of centre of the projection    ** = azimuth (true) of the centre line passing through the centre of the projection  ** = latitude of pseudo standard parallel     k  = scale factor on the pseudo standard parallel    x_0 = False Easting of the centre of the projection at the apex of the cone    y_0 = False Northing of the centre of the projection at the apex of the cone **/FORWARD(s_forward); /* spheroid *//* calculate xy from lat/lon */	char errmess[255];	char tmp[16];/* Constants, identical to inverse transform function */	double s45, s90, e2, e, alfa, uq, u0, g, k, k1, n0, ro0, ad, a, s0, n;	double gfi, u, fi0, lon17, lamdd, deltav, s, d, eps, ro;	s45 = 0.785398163397448;    /* 45

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -