repo_name
stringclasses
10 values
file_path
stringlengths
29
222
content
stringlengths
24
926k
extention
stringclasses
5 values
PROJ
data/projects/PROJ/src/projections/imw_p.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(imw_p, "International Map of the World Polyconic") "\n\tMod. Polyconic, Ell\n\tlat_1= and lat_2= [lon_1=]"; #define TOL 1e-10 #define EPS 1e-10 namespace { // anonymous namespace enum Mode { NONE_IS_ZERO = 0, /* phi_1...
cpp
PROJ
data/projects/PROJ/src/projections/putp3.cpp
#include <errno.h> #include "proj.h" #include "proj_internal.h" namespace { // anonymous namespace struct pj_putp3_data { double A; }; } // anonymous namespace PROJ_HEAD(putp3, "Putnins P3") "\n\tPCyl, Sph"; PROJ_HEAD(putp3p, "Putnins P3'") "\n\tPCyl, Sph"; #define C 0.79788456 #define RPISQ 0.1013211836 stat...
cpp
PROJ
data/projects/PROJ/src/projections/imoll_o.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(imoll_o, "Interrupted Mollweide Oceanic View") "\n\tPCyl, Sph"; /* This projection is a variant of the Interrupted Mollweide projection that emphasizes ocean areas. This projection is a compilation of 6 separate sub-project...
cpp
PROJ
data/projects/PROJ/src/projections/mbtfpp.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(mbtfpp, "McBride-Thomas Flat-Polar Parabolic") "\n\tCyl, Sph"; #define CSy .95257934441568037152 #define FXC .92582009977255146156 #define FYC 3.40168025708304504493 #define C23 .66666666666666666666 #define C13 .33333333333333333333 #define ...
cpp
PROJ
data/projects/PROJ/src/projections/bipc.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" #include <math.h> PROJ_HEAD(bipc, "Bipolar conic of western hemisphere") "\n\tConic Sph"; #define EPS 1e-10 #define EPS10 1e-10 #define ONEEPS 1.000000001 #define NITER 10 #define lamB -.34894976726250681539 #define n .630558448812746...
cpp
PROJ
data/projects/PROJ/src/projections/loxim.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(loxim, "Loximuthal") "\n\tPCyl Sph"; #define EPS 1e-8 namespace { // anonymous namespace struct pj_loxim_data { double phi1; double cosphi1; double tanphi1; }; } // anonymous namespace static PJ_XY loxim_s_for...
cpp
PROJ
data/projects/PROJ/src/projections/nell_h.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(nell_h, "Nell-Hammer") "\n\tPCyl, Sph"; #define NITER 9 #define EPS 1e-7 static PJ_XY nell_h_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; (void)P; xy.x = 0.5 * lp.lam * (1. + cos(lp.phi)); xy...
cpp
PROJ
data/projects/PROJ/src/projections/eqearth.cpp
/* Equal Earth is a projection inspired by the Robinson projection, but unlike the Robinson projection retains the relative size of areas. The projection was designed in 2018 by Bojan Savric, Tom Patterson and Bernhard Jenny. Publication: Bojan Savric, Tom Patterson & Bernhard Jenny (2018). The Equal Earth map project...
cpp
PROJ
data/projects/PROJ/src/projections/ortho.cpp
#include "proj.h" #include "proj_internal.h" #include <errno.h> #include <math.h> PROJ_HEAD(ortho, "Orthographic") "\n\tAzi, Sph&Ell"; namespace pj_ortho_ns { enum Mode { N_POLE = 0, S_POLE = 1, EQUIT = 2, OBLIQ = 3 }; } namespace { // anonymous namespace struct pj_ortho_data { double sinph0; double cosph0;...
cpp
PROJ
data/projects/PROJ/src/projections/nsper.cpp
#include "proj.h" #include "proj_internal.h" #include <errno.h> #include <math.h> /* Note: EPSG Guidance 7-2 describes a Vertical Perspective method (EPSG::9838), * that extends 'nsper' with ellipsoidal development, and a ellipsoidal height * of topocentric origin for the projection plan. */ namespace pj_nsper_ns...
cpp
PROJ
data/projects/PROJ/src/projections/rpoly.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" namespace { // anonymous namespace struct pj_rpoly_data { double phi1; double fxa; double fxb; int mode; }; } // anonymous namespace PROJ_HEAD(rpoly, "Rectangular Polyconic") "\n\tConic, Sph, no inv\n\tlat_ts="; #def...
cpp
PROJ
data/projects/PROJ/src/projections/igh.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(igh, "Interrupted Goode Homolosine") "\n\tPCyl, Sph"; /* This projection is a compilation of 12 separate sub-projections. Sinusoidal projections are found near the equator and Mollweide projections are found at higher latit...
cpp
PROJ
data/projects/PROJ/src/projections/ccon.cpp
/****************************************************************************** * Copyright (c) 2017, Lukasz Komsta * * 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,...
cpp
PROJ
data/projects/PROJ/src/projections/urmfps.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(urmfps, "Urmaev Flat-Polar Sinusoidal") "\n\tPCyl, Sph\n\tn="; PROJ_HEAD(wag1, "Wagner I (Kavrayskiy VI)") "\n\tPCyl, Sph"; namespace { // anonymous namespace struct pj_urmfps { double n, C_y; }; } // anonymous namespac...
cpp
PROJ
data/projects/PROJ/src/projections/bacon.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" #define HLFPI2 2.46740110027233965467 /* (pi/2)^2 */ #define EPS 1e-10 namespace { // anonymous namespace struct pj_bacon { int bacn; int ortl; }; } // anonymous namespace PROJ_HEAD(apian, "Apian Globular I") "\n\tMisc Sph, n...
cpp
PROJ
data/projects/PROJ/src/projections/natearth2.cpp
/* The Natural Earth II projection was designed by Tom Patterson, US National Park Service, in 2012, using Flex Projector. The polynomial equation was developed by Bojan Savric and Bernhard Jenny, College of Earth, Ocean, and Atmospheric Sciences, Oregon State University. Port to PROJ.4 by Bojan Savric, 4 April 2016 */...
cpp
PROJ
data/projects/PROJ/src/projections/fahey.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(fahey, "Fahey") "\n\tPcyl, Sph"; #define TOL 1e-6 static PJ_XY fahey_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; (void)P; xy.x = tan(0.5 * lp.phi); xy.y = 1.819152 * xy.x; xy.x = 0.81915...
cpp
PROJ
data/projects/PROJ/src/projections/mbt_fps.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(mbt_fps, "McBryde-Thomas Flat-Pole Sine (No. 2)") "\n\tCyl, Sph"; #define MAX_ITER 10 #define LOOP_TOL 1e-7 #define C1 0.45503 #define C2 1.36509 #define C3 1.41546 #define C_x 0.22248 #define C_y 1.44492 #define C1_2 0.3333333333333333333333...
cpp
PROJ
data/projects/PROJ/src/projections/aitoff.cpp
/****************************************************************************** * Project: PROJ.4 * Purpose: Implementation of the aitoff (Aitoff) and wintri (Winkel Tripel) * projections. * Author: Gerald Evenden (1995) * Drazen Tutic, Lovro Gradiser (2015) - add inverse * Thoma...
cpp
PROJ
data/projects/PROJ/src/projections/nzmg.cpp
/****************************************************************************** * Project: PROJ.4 * Purpose: Implementation of the nzmg (New Zealand Map Grid) projection. * Very loosely based upon DMA code by Bradford W. Drew * Author: Gerald Evenden * ***********************************************...
cpp
PROJ
data/projects/PROJ/src/projections/mill.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(mill, "Miller Cylindrical") "\n\tCyl, Sph"; static PJ_XY mill_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; (void)P; xy.x = lp.lam; xy.y = log(tan(M_FORTPI + lp.phi * .4)) * 1.25; return (...
cpp
PROJ
data/projects/PROJ/src/projections/tcc.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(tcc, "Transverse Central Cylindrical") "\n\tCyl, Sph, no inv"; #define EPS10 1.e-10 static PJ_XY tcc_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; const double b = cos(lp.phi) * sin(lp.lam); const...
cpp
PROJ
data/projects/PROJ/src/projections/cass.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(cass, "Cassini") "\n\tCyl, Sph&Ell"; #define C1 .16666666666666666666 #define C2 .00833333333333333333 #define C3 .04166666666666666666 #define C4 .33333333333333333333 #define C5 .06666666666666666666 namespace { // anony...
cpp
PROJ
data/projects/PROJ/src/projections/wag2.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(wag2, "Wagner II") "\n\tPCyl, Sph"; #define C_x 0.92483 #define C_y 1.38725 #define C_p1 0.88022 #define C_p2 0.88550 static PJ_XY wag2_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; lp.phi = aasin(P->c...
cpp
PROJ
data/projects/PROJ/src/projections/natearth.cpp
/* The Natural Earth projection was designed by Tom Patterson, US National Park Service, in 2007, using Flex Projector. The shape of the original projection was defined at every 5 degrees and piece-wise cubic spline interpolation was used to compute the complete graticule. The code here uses polynomial functions instea...
cpp
PROJ
data/projects/PROJ/src/projections/gnom.cpp
#include <errno.h> #include <float.h> #include <math.h> #include "geodesic.h" #include "proj.h" #include "proj_internal.h" PROJ_HEAD(gnom, "Gnomonic") "\n\tAzi, Sph"; #define EPS10 1.e-10 namespace pj_gnom_ns { enum Mode { N_POLE = 0, S_POLE = 1, EQUIT = 2, OBLIQ = 3 }; } namespace { // anonymous namespace struc...
cpp
PROJ
data/projects/PROJ/src/projections/comill.cpp
/* The Compact Miller projection was designed by Tom Patterson, US National Park Service, in 2014. The polynomial equation was developed by Bojan Savric and Bernhard Jenny, College of Earth, Ocean, and Atmospheric Sciences, Oregon State University. Port to PROJ.4 by Bojan Savric, 4 April 2016 */ #include <math.h> #in...
cpp
PROJ
data/projects/PROJ/src/projections/sch.cpp
/****************************************************************************** * Project: SCH Coordinate system * Purpose: Implementation of SCH Coordinate system * References : * 1. Hensley. Scott. SCH Coordinates and various transformations. June 15, *2000. * 2. Buckley, Sean Monroe. Radar interfer...
cpp
PROJ
data/projects/PROJ/src/projections/poly.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(poly, "Polyconic (American)") "\n\tConic, Sph&Ell"; namespace { // anonymous namespace struct pj_poly_data { double ml0; double *en; }; } // anonymous namespace #define TOL 1e-10 #define CONV 1e-10 #define N_ITER 1...
cpp
PROJ
data/projects/PROJ/src/projections/eck1.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(eck1, "Eckert I") "\n\tPCyl, Sph"; #define FC 0.92131773192356127802 #define RP 0.31830988618379067154 static PJ_XY eck1_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; (void)P; xy.x = FC * lp.lam * (...
cpp
PROJ
data/projects/PROJ/src/projections/lagrng.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(lagrng, "Lagrange") "\n\tMisc Sph\n\tW="; #define TOL 1e-10 namespace { // anonymous namespace struct pj_lagrng { double a1; double a2; double hrw; double hw; double rw; double w; }; } // anonymous n...
cpp
PROJ
data/projects/PROJ/src/projections/vandg4.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(vandg4, "van der Grinten IV") "\n\tMisc Sph, no inv"; #define TOL 1e-10 static PJ_XY vandg4_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; double x1, t, bt, ct, ft, bt2, ct2, dt, dt2; (void)P; ...
cpp
PROJ
data/projects/PROJ/src/projections/s2.cpp
/****************************************************************************** * Project: PROJ * Purpose: Implementing the S2 family of projections in PROJ * Author: Marcus Elia, <marcus at geopi.pe> * ****************************************************************************** * Copyright (c) 2021, Marcus...
cpp
PROJ
data/projects/PROJ/src/projections/isea.cpp
/* * This code was entirely written by Nathan Wagner * and is in the public domain. */ #include <errno.h> #include <float.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits> #include "proj.h" #include "proj_internal.h" #include <math.h> #define DEG36 0.62831853071795...
cpp
PROJ
data/projects/PROJ/src/projections/adams.cpp
/* * Implementation of the Guyou, Pierce Quincuncial, Adams Hemisphere in a * Square, Adams World in a Square I & II projections. * * Based on original code from libproj4 written by Gerald Evenden. Adapted to * modern PROJ by Kristian Evers. Original code found in file src/proj_guyou.c, * see * https://github.co...
cpp
PROJ
data/projects/PROJ/src/projections/chamb.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" typedef struct { double r, Az; } VECT; namespace { // anonymous namespace struct pj_chamb { struct { /* control point data */ double phi, lam; double cosphi, sinphi; VECT v; PJ_XY p; } c[3];...
cpp
PROJ
data/projects/PROJ/src/projections/fouc_s.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(fouc_s, "Foucaut Sinusoidal") "\n\tPCyl, Sph"; #define MAX_ITER 10 #define LOOP_TOL 1e-7 namespace { // anonymous namespace struct pj_fouc_s_data { double n, n1; }; } // anonymous namespace static PJ_XY fouc_s_s_forwa...
cpp
PROJ
data/projects/PROJ/src/projections/cc.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(cc, "Central Cylindrical") "\n\tCyl, Sph"; #define EPS10 1.e-10 static PJ_XY cc_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; if (fabs(fabs(lp.phi) - M_HALFPI) <= EPS10) { proj_errno_set(P, PROJ...
cpp
PROJ
data/projects/PROJ/src/projections/col_urban.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(col_urban, "Colombia Urban") "\n\tMisc\n\th_0="; // Notations and formulas taken from IOGP Publication 373-7-2 - // Geomatics Guidance Note number 7, part 2 - March 2020 namespace { // anonymous namespace struct pj_col_ur...
cpp
PROJ
data/projects/PROJ/src/projections/nell.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(nell, "Nell") "\n\tPCyl, Sph"; #define MAX_ITER 10 #define LOOP_TOL 1e-7 static PJ_XY nell_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; int i; (void)P; const double k = 2. * sin(lp.phi); ...
cpp
PROJ
data/projects/PROJ/src/projections/putp6.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" namespace { // anonymous namespace struct pj_putp6 { double C_x, C_y, A, B, D; }; } // anonymous namespace PROJ_HEAD(putp6, "Putnins P6") "\n\tPCyl, Sph"; PROJ_HEAD(putp6p, "Putnins P6'") "\n\tPCyl, Sph"; #define EPS 1e-10 #defi...
cpp
PROJ
data/projects/PROJ/src/projections/larr.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(larr, "Larrivee") "\n\tMisc Sph, no inv"; #define SIXTH .16666666666666666 static PJ_XY larr_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; (void)P; xy.x = 0.5 * lp.lam * (1. + sqrt(cos(lp.phi))); ...
cpp
PROJ
data/projects/PROJ/src/projections/oea.cpp
#include "proj.h" #include "proj_internal.h" #include <errno.h> #include <math.h> PROJ_HEAD(oea, "Oblated Equal Area") "\n\tMisc Sph\n\tn= m= theta="; namespace { // anonymous namespace struct pj_oea { double theta; double m, n; double two_r_m, two_r_n, rm, rn, hm, hn; double cp0, sp0; }; } // anonym...
cpp
PROJ
data/projects/PROJ/src/projections/urm5.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(urm5, "Urmaev V") "\n\tPCyl, Sph, no inv\n\tn= q= alpha="; namespace { // anonymous namespace struct pj_urm5 { double m, rmn, q3, n; }; } // anonymous namespace static PJ_XY urm5_s_forward(PJ_LP lp, PJ *P) { /* Spheroi...
cpp
PROJ
data/projects/PROJ/src/projections/mod_ster.cpp
/* based upon Snyder and Linck, USGS-NMD */ #include "proj.h" #include "proj_internal.h" #include <errno.h> #include <math.h> PROJ_HEAD(mil_os, "Miller Oblated Stereographic") "\n\tAzi(mod)"; PROJ_HEAD(lee_os, "Lee Oblated Stereographic") "\n\tAzi(mod)"; PROJ_HEAD(gs48, "Modified Stereographic of 48 U.S.") "\n\tAzi(m...
cpp
PROJ
data/projects/PROJ/src/projections/krovak.cpp
/* * Project: PROJ * 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,...
cpp
PROJ
data/projects/PROJ/src/projections/tcea.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(tcea, "Transverse Cylindrical Equal Area") "\n\tCyl, Sph"; static PJ_XY tcea_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; xy.x = cos(lp.phi) * sin(lp.lam) / P->k0; xy.y = P->k0 * (atan2(tan(lp.phi)...
cpp
PROJ
data/projects/PROJ/src/projections/latlong.cpp
/****************************************************************************** * Project: PROJ.4 * Purpose: Stub projection implementation for lat/long coordinates. We * don't actually change the coordinates, but we want proj=latlong * to act sort of like a projection. * Author: Frank Warm...
cpp
PROJ
data/projects/PROJ/src/projections/august.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(august, "August Epicycloidal") "\n\tMisc Sph, no inv"; #define M 1.333333333333333 static PJ_XY august_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; double t, c1, c, x1, x12, y1, y12; (void)P; ...
cpp
PROJ
data/projects/PROJ/src/projections/aea.cpp
/****************************************************************************** * Project: PROJ.4 * Purpose: Implementation of the aea (Albers Equal Area) projection. * and the leac (Lambert Equal Area Conic) projection * Author: Gerald Evenden (1995) * Thomas Knudsen (2016) - revise/add re...
cpp
PROJ
data/projects/PROJ/src/projections/eqdc.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" #include <math.h> namespace { // anonymous namespace struct pj_eqdc_data { double phi1; double phi2; double n; double rho; double rho0; double c; double *en; int ellips; }; } // anonymous namespace PRO...
cpp
PROJ
data/projects/PROJ/src/projections/tobmerc.cpp
#include <float.h> #include <math.h> #include "proj.h" #include "proj_internal.h" #include <math.h> PROJ_HEAD(tobmerc, "Tobler-Mercator") "\n\tCyl, Sph"; static PJ_XY tobmerc_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ PJ_XY xy = {0.0, 0.0}; double cosphi; if (fabs(lp.phi) >= M_HALFPI) { ...
cpp
PROJ
data/projects/PROJ/src/projections/putp5.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" namespace { // anonymous namespace struct pj_putp5_data { double A, B; }; } // anonymous namespace PROJ_HEAD(putp5, "Putnins P5") "\n\tPCyl, Sph"; PROJ_HEAD(putp5p, "Putnins P5'") "\n\tPCyl, Sph"; #define C 1.01346 #define D 1.2...
cpp
PROJ
data/projects/PROJ/src/projections/wink1.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(wink1, "Winkel I") "\n\tPCyl, Sph\n\tlat_ts="; namespace { // anonymous namespace struct pj_wink1_data { double cosphi1; }; } // anonymous namespace static PJ_XY wink1_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forwar...
cpp
PROJ
data/projects/PROJ/src/projections/tpeqd.cpp
#include "proj.h" #include "proj_internal.h" #include <errno.h> #include <math.h> PROJ_HEAD(tpeqd, "Two Point Equidistant") "\n\tMisc Sph\n\tlat_1= lon_1= lat_2= lon_2="; namespace { // anonymous namespace struct pj_tpeqd { double cp1, sp1, cp2, sp2, ccs, cs, sc, r2z0, z02, dlam2; double hz0, thz0, rhshz0, c...
cpp
PROJ
data/projects/PROJ/src/projections/eck2.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(eck2, "Eckert II") "\n\tPCyl, Sph"; #define FXC 0.46065886596178063902 #define FYC 1.44720250911653531871 #define C13 0.33333333333333333333 #define ONEEPS 1.0000001 static PJ_XY eck2_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */ ...
cpp
PROJ
data/projects/PROJ/src/projections/hammer.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(hammer, "Hammer & Eckert-Greifendorff") "\n\tMisc Sph, \n\tW= M="; #define EPS 1.0e-10 namespace { // anonymous namespace struct pq_hammer { double w; double m, rm; }; } // anonymous namespace static PJ_XY hammer_...
cpp
PROJ
data/projects/PROJ/src/projections/cea.cpp
#include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" namespace { // anonymous namespace struct pj_cea_data { double qp; double *apa; }; } // anonymous namespace PROJ_HEAD(cea, "Equal Area Cylindrical") "\n\tCyl, Sph&Ell\n\tlat_ts="; #define EPS 1e-10 static PJ_XY cea_e_forward...
cpp
PROJ
data/projects/PROJ/src/projections/eck4.cpp
#include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(eck4, "Eckert IV") "\n\tPCyl, Sph"; // C_x = 2 / sqrt(4 * M_PI + M_PI * M_PI) constexpr double C_x = .42223820031577120149; // C_y = 2 * sqrt(M_PI / (4 + M_PI)) constexpr double C_y = 1.32650042817700232218; // RC_y = 1. / C_y constexpr dou...
cpp
PROJ
data/projects/PROJ/test/fuzzers/proj_crs_to_crs_fuzzer.cpp
/****************************************************************************** * * Project: proj.4 * Purpose: Fuzzer * Author: Even Rouault, even.rouault at spatialys.com * ****************************************************************************** * Copyright (c) 2017, Even Rouault <even.rouault at spat...
cpp
PROJ
data/projects/PROJ/test/postinstall/c_app/c_app.c
#include <proj.h> #include <stdio.h> int test_transform() { PJ *P; PJ_COORD a, b; P = proj_create_crs_to_crs( PJ_DEFAULT_CTX, "EPSG:4326", "+proj=utm +zone=32 +datum=WGS84", /* or EPSG:32632 */ NULL); if (0 == P) { fprintf(stderr, "Oops\n"); return 1; } /...
c
PROJ
data/projects/PROJ/test/postinstall/cpp_app/cpp_app.cpp
#include <iostream> #include <proj.h> int test_transform() { PJ *P; PJ_COORD a, b; P = proj_create_crs_to_crs( PJ_DEFAULT_CTX, "EPSG:4326", "+proj=utm +zone=32 +datum=WGS84", // or EPSG:32632 NULL); if (0 == P) { std::cerr << "Oops" << std::endl; return 1; } ...
cpp
PROJ
data/projects/PROJ/test/unit/test_coordinates.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2023, ...
cpp
PROJ
data/projects/PROJ/test/unit/main.cpp
/****************************************************************************** * * Project: PROJ * Purpose: gtest main * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even Rouault <even dot ...
cpp
PROJ
data/projects/PROJ/test/unit/pj_phi2_test.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test pj_phi2 function. * Author: Kurt Schwehr <schwehr@google.com> * ****************************************************************************** * Copyright (c) 2018, Google Inc. * * Permission i...
cpp
PROJ
data/projects/PROJ/test/unit/test_operation.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_datum.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_grids.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test grids.hpp * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2020, Even Rouault <even ...
cpp
PROJ
data/projects/PROJ/test/unit/test_metadata.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/include_proj_h_from_c.c
/****************************************************************************** * * Project: PROJ * Purpose: Dummy test to check that we can include proj.h from a pure C file * Author: Even Rouault * ****************************************************************************** * Copyright (c) 2018, Even Rou...
c
PROJ
data/projects/PROJ/test/unit/test_primitives.hpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2018 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
hpp
PROJ
data/projects/PROJ/test/unit/proj_angular_io_test.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test that in- and output units behave correctly, especially * angular units that need special treatment. * Author: Kristian Evers <kristianevers@gmail.com> * ********************************...
cpp
PROJ
data/projects/PROJ/test/unit/proj_context_test.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test functions in proj_context namespae * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) ...
cpp
PROJ
data/projects/PROJ/test/unit/test_fork.c
/****************************************************************************** * * Project: PROJ * Purpose: Test behavior of database access across fork() * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyrig...
c
PROJ
data/projects/PROJ/test/unit/gie_self_tests.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2017, Thomas Knudsen * Copyright (...
cpp
PROJ
data/projects/PROJ/test/unit/proj_errno_string_test.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Unit test for proj_errno_string() * Author: Kristian Evers <kristianevers@gmail.com> * ****************************************************************************** * Copyright (c) 2018, Kristian Eve...
cpp
PROJ
data/projects/PROJ/test/unit/gtest_include.h
/****************************************************************************** * * Project: PROJ * Purpose: Wrapper for gtest/gtest.h * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even Rou...
h
PROJ
data/projects/PROJ/test/unit/test_common.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_misc.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2021, Even Rouault <even dot rouaul...
cpp
PROJ
data/projects/PROJ/test/unit/test_crs.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_defmodel.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test deformation model * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2020, Even Rouaul...
cpp
PROJ
data/projects/PROJ/test/unit/test_factory.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_operationfactory.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_io.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_tinshift.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test TIN shift * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2020, Even Rouault <even ...
cpp
PROJ
data/projects/PROJ/test/unit/test_c_api.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/unit/test_network.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test networking * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2019, Even Rouault <even...
cpp
PROJ
data/projects/PROJ/test/unit/test_util.cpp
/****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, ...
cpp
PROJ
data/projects/PROJ/test/benchmark/bench_proj_trans.cpp
/****************************************************************************** * Project: PROJ * Purpose: Benchmark * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyright (c) 2022, Even Rouault, <even.rouault at spa...
cpp
PROJ
data/projects/PROJ/include/proj/metadata.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/util.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/nn.hpp
#pragma once /* * Copyright (c) 2015 Dropbox, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
hpp
PROJ
data/projects/PROJ/include/proj/coordinatesystem.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/crs.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/coordinateoperation.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/coordinates.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2023, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/io.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/common.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/datum.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2018, Even ...
hpp
PROJ
data/projects/PROJ/include/proj/internal/datum_internal.hpp
/****************************************************************************** * * Project: PROJ * Purpose: ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2023, Even ...
hpp