repo_name stringclasses 10
values | file_path stringlengths 29 222 | content stringlengths 24 926k | extention stringclasses 5
values |
|---|---|---|---|
PROJ | data/projects/PROJ/src/conversions/unitconvert.cpp | /***********************************************************************
Unit conversion pseudo-projection for use with
transformation pipelines.
Kristian Evers, 2017-05-16
************************************************************************
A pseudo-proj... | cpp |
PROJ | data/projects/PROJ/src/iso19111/metadata.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/datum.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/static.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/common.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/factory.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/coordinatesystem.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/crs.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/util.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/coordinates.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2023, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/internal.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/io.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/c_api.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: C API wrapper of C++ API
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even Roua... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/oputils.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/src/iso19111/operation/projbasedoperation.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/vectorofvaluesparams.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/coordinateoperationfactory.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/esriparammappings.cpp | // This file was generated by scripts/build_esri_projection_mapping.py. DO NOT
// EDIT !
/******************************************************************************
*
* Project: PROJ
* Purpose: Mappings between ESRI projection and parameters names and WKT2
* Author: Even Rouault <even dot rouault at spatia... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/oputils.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/transformation.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/operationmethod_private.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/src/iso19111/operation/singleoperation.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/concatenatedoperation.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/vectorofvaluesparams.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/src/iso19111/operation/esriparammappings.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/src/iso19111/operation/conversion.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/iso19111/operation/coordinateoperation_private.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/src/iso19111/operation/coordinateoperation_internal.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/src/iso19111/operation/parammappings.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/src/iso19111/operation/parammappings.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: ISO19111:2019 implementation
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even ... | cpp |
PROJ | data/projects/PROJ/src/apps/optargpm.h | /***********************************************************************
OPTARGPM - a header-only library for decoding
PROJ.4 style command line options
Thomas Knudsen, 2017-09-10
************************************************************************
For PROJ.4 command... | h |
PROJ | data/projects/PROJ/src/apps/cct.cpp | /***********************************************************************
The cct 4D Transformation program
************************************************************************
cct is a 4D equivalent to the "proj" projection program.
cct is an acronym meaning "Coordinate Conversion and Transform... | cpp |
PROJ | data/projects/PROJ/src/apps/geod_interface.cpp | #include "geod_interface.h"
#include "proj.h"
#include "proj_internal.h"
void geod_ini(void) { geod_init(&GlobalGeodesic, geod_a, geod_f); }
void geod_pre(void) {
double lat1 = phi1 / DEG_TO_RAD, lon1 = lam1 / DEG_TO_RAD,
azi1 = al12 / DEG_TO_RAD;
geod_lineinit(&GlobalGeodesicLine, &GlobalGeodesic,... | cpp |
PROJ | data/projects/PROJ/src/apps/geod_interface.h | #if !defined(GEOD_INTERFACE_H)
#define GEOD_INTERFACE_H
#include "geodesic.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef GEOD_IN_GEOD_SET
#define GEOD_EXTERN extern
#else
#define GEOD_EXTERN
#endif
GEOD_EXTERN struct geodesic {
double A, FLAT, LAM1, PHI1, ALPHA12, LAM2, PHI2, ALPHA21, DIST;
} GEODESIC;
#de... | h |
PROJ | data/projects/PROJ/src/apps/gie.cpp | /***********************************************************************
gie - The Geospatial Integrity Investigation Environment
************************************************************************
The Geospatial Integrity Investigation Environment "gie" is a modest
regression testing environment for the... | cpp |
PROJ | data/projects/PROJ/src/apps/utils.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: Utilities for command line arguments
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 201... | cpp |
PROJ | data/projects/PROJ/src/apps/cs2cs.cpp | /******************************************************************************
* Project: PROJ.4
* Purpose: Mainline program sort of like ``proj'' for converting between
* two coordinate systems.
* Author: Frank Warmerdam, warmerda@home.com
*
********************************************************... | cpp |
PROJ | data/projects/PROJ/src/apps/proj.cpp | /* <<<< Cartographic projection filter program >>>> */
#include "proj.h"
#include "emess.h"
#include "proj_experimental.h"
#include "proj_internal.h"
#include "utils.h"
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <proj/crs.hpp>
#include <vector>
#if define... | cpp |
PROJ | data/projects/PROJ/src/apps/emess.h | /* Error message processing header file */
#ifndef EMESS_H
#define EMESS_H
struct EMESS {
char *File_name, /* input file name */
*Prog_name; /* name of program */
int File_line; /* approximate line read
where error occurred */
};
#ifdef EMESS_ROUTINE /* use type... | h |
PROJ | data/projects/PROJ/src/apps/emess.cpp | /* Error message processing */
#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifndef _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#endif
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "proj_co... | cpp |
PROJ | data/projects/PROJ/src/apps/proj_strtod.cpp | /***********************************************************************
proj_strtod: Convert string to double, accepting underscore separators
Thomas Knudsen, 2017-01-17/09-19
************************************************************************
Conventionally, PROJ.4 does not honor locale ... | cpp |
PROJ | data/projects/PROJ/src/apps/proj_strtod.h | /* Internal header for proj_strtod.c */
double proj_strtod(const char *str, char **endptr);
double proj_atof(const char *str);
| h |
PROJ | data/projects/PROJ/src/apps/geod.cpp | /* <<<< Geodesic filter program >>>> */
#include "emess.h"
#include "geod_interface.h"
#include "proj.h"
#include "proj_internal.h"
#include "utils.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#define MAXLINE 200
#define MAX_PARGS 50
#define TAB putchar('\t')
static int fullout = 0, /* output full set... | cpp |
PROJ | data/projects/PROJ/src/apps/projsync.cpp | /******************************************************************************
* Project: PROJ
* Purpose: Downloader tool
* Author: Even Rouault, <even.rouault at spatialys.com>
*
******************************************************************************
* Copyright (c) 2020, Even Rouault, <even.rouault ... | cpp |
PROJ | data/projects/PROJ/src/apps/geod_set.cpp | #define GEOD_IN_GEOD_SET
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "emess.h"
#include "geod_interface.h"
#include "proj.h"
#include "proj_internal.h"
void geod_set(int argc, char **argv) {
paralist *start = nullptr, *curr;
double es;
char *name;
/* put arguments into interna... | cpp |
PROJ | data/projects/PROJ/src/apps/projinfo.cpp | /******************************************************************************
*
* Project: PROJ
* Purpose: projinfo utility
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 2018, Even Rouault <eve... | cpp |
PROJ | data/projects/PROJ/src/apps/utils.h | /******************************************************************************
*
* Project: PROJ
* Purpose: Utilities for command line arguments
* Author: Even Rouault <even dot rouault at spatialys dot com>
*
******************************************************************************
* Copyright (c) 201... | h |
PROJ | data/projects/PROJ/src/projections/mbtfpq.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(mbtfpq, "McBryde-Thomas Flat-Polar Quartic") "\n\tCyl, Sph";
#define NITER 20
#define EPS 1e-7
#define ONETOL 1.000001
#define C 1.70710678118654752440
#define RC 0.58578643762690495119
#define FYC 1.87475828462269495505
#define RYC 0.5334020... | cpp |
PROJ | data/projects/PROJ/src/projections/patterson.cpp | /*
* Copyright (c) 2014 Bojan Savric
*
* 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 applicable law or agreed to... | cpp |
PROJ | data/projects/PROJ/src/projections/denoy.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(denoy, "Denoyer Semi-Elliptical") "\n\tPCyl, no inv, Sph";
#define C0 0.95
#define C1 -0.08333333333333333333
#define C3 0.00166666666666666666
#define D1 0.9
#define D5 0.03
static PJ_XY denoy_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forw... | cpp |
PROJ | data/projects/PROJ/src/projections/bertin1953.cpp | /*
Created by Jacques Bertin in 1953, this projection was the go-to choice
of the French cartographic school when they wished to represent phenomena
on a global scale.
Formula designed by Philippe Rivière, 2017.
https://visionscarto.net/bertin-projection-1953
Port to PROJ by Philippe Rivière, 21 September... | cpp |
PROJ | data/projects/PROJ/src/projections/putp2.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(putp2, "Putnins P2") "\n\tPCyl, Sph";
#define C_x 1.89490
#define C_y 1.71848
#define C_p 0.6141848493043784
#define EPS 1e-10
#define NITER 10
#define PI_DIV_3 1.0471975511965977
static PJ_XY putp2_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal... | cpp |
PROJ | data/projects/PROJ/src/projections/gstmerc.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(gstmerc,
"Gauss-Schreiber Transverse Mercator (aka Gauss-Laborde Reunion)")
"\n\tCyl, Sph&Ell\n\tlat_0= lon_0= k_0=";
namespace { // anonymous namespace
struct pj_gstmerc_data {
double lamc;
double phic;
... | cpp |
PROJ | data/projects/PROJ/src/projections/rouss.cpp | /*
** libproj -- library of cartographic projections
**
** Copyright (c) 2003, 2006 Gerald I. Evenden
*/
/*
** 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... | cpp |
PROJ | data/projects/PROJ/src/projections/gins8.cpp |
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(gins8, "Ginsburg VIII (TsNIIGAiK)") "\n\tPCyl, Sph, no inv";
#define Cl 0.000952426
#define Cp 0.162388
#define C12 0.08333333333333333
static PJ_XY gins8_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0, 0.0};
double t = lp.phi *... | cpp |
PROJ | data/projects/PROJ/src/projections/igh_o.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(igh_o, "Interrupted Goode Homolosine Oceanic View") "\n\tPCyl, Sph";
/*
This projection is a variant of the Interrupted Goode Homolosine
projection that emphasizes ocean areas. The projection is a
compilation of 12 separate... | cpp |
PROJ | data/projects/PROJ/src/projections/crast.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(crast, "Craster Parabolic (Putnins P4)") "\n\tPCyl, Sph";
#define XM 0.97720502380583984317
#define RXM 1.02332670794648848847
#define YM 3.06998012383946546542
#define RYM 0.32573500793527994772
#define THIRD 0.333333333333333333
static PJ_X... | cpp |
PROJ | data/projects/PROJ/src/projections/gall.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(gall, "Gall (Gall Stereographic)") "\n\tCyl, Sph";
#define YF 1.70710678118654752440
#define XF 0.70710678118654752440
#define RYF 0.58578643762690495119
#define RXF 1.41421356237309504880
static PJ_XY gall_s_forward(PJ_LP lp, PJ *P) { /* Sp... | cpp |
PROJ | data/projects/PROJ/src/projections/nicol.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(nicol, "Nicolosi Globular") "\n\tMisc Sph, no inv";
#define EPS 1e-10
static PJ_XY nicol_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0, 0.0};
(void)P;
if (fabs(lp.lam) < EPS) {
xy.x = 0;
... | cpp |
PROJ | data/projects/PROJ/src/projections/eck5.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(eck5, "Eckert V") "\n\tPCyl, Sph";
#define XF 0.44101277172455148219
#define RXF 2.26750802723822639137
#define YF 0.88202554344910296438
#define RYF 1.13375401361911319568
static PJ_XY eck5_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forwar... | cpp |
PROJ | data/projects/PROJ/src/projections/qsc.cpp | /*
* This implements the Quadrilateralized Spherical Cube (QSC) projection.
*
* Copyright (c) 2011, 2012 Martin Lambers <marlam@marlam.de>
*
* The QSC projection was introduced in:
* [OL76]
* E.M. O'Neill and R.E. Laubscher, "Extended Studies of a Quadrilateralized
* Spherical Cube Earth Data Base", Naval Envi... | cpp |
PROJ | data/projects/PROJ/src/projections/ob_tran.cpp |
#include <errno.h>
#include <math.h>
#include <stddef.h>
#include <string.h>
#include "proj.h"
#include "proj_internal.h"
namespace { // anonymous namespace
struct pj_ob_tran_data {
struct PJconsts *link;
double lamp;
double cphip, sphip;
};
} // anonymous namespace
PROJ_HEAD(ob_tran, "General Oblique T... | cpp |
PROJ | data/projects/PROJ/src/projections/boggs.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(boggs, "Boggs Eumorphic") "\n\tPCyl, no inv, Sph";
#define NITER 20
#define EPS 1e-7
#define FXC 2.00276
#define FXC2 1.11072
#define FYC 0.49931
static PJ_XY boggs_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0, 0.... | cpp |
PROJ | data/projects/PROJ/src/projections/bonne.cpp |
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
#include <math.h>
PROJ_HEAD(bonne, "Bonne (Werner lat_1=90)")
"\n\tConic Sph&Ell\n\tlat_1=";
#define EPS10 1e-10
namespace { // anonymous namespace
struct pj_bonne_data {
double phi1;
double cphi1;
double am1;
double m1;
double *en;
... | cpp |
PROJ | data/projects/PROJ/src/projections/healpix.cpp | /******************************************************************************
* Project: PROJ.4
* Purpose: Implementation of the HEALPix and rHEALPix projections.
* For background see
*<http://code.scenzgrid.org/index.php/p/scenzgrid-py/source/tree/master/docs/rhealpix_dggs.pdf>.
* Authors: Alex Raichev... | cpp |
PROJ | data/projects/PROJ/src/projections/omerc.cpp | /*
** Copyright (c) 2003, 2006 Gerald I. Evenden
*/
/*
** 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, modif... | cpp |
PROJ | data/projects/PROJ/src/projections/wink2.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(wink2, "Winkel II") "\n\tPCyl, Sph\n\tlat_1=";
namespace { // anonymous namespace
struct pj_wink2_data {
double cosphi1;
};
} // anonymous namespace
#define MAX_ITER 10
#define LOOP_TOL 1e-7
static PJ_XY wink2_s_forwa... | cpp |
PROJ | data/projects/PROJ/src/projections/vandg.cpp | // Changes to handle +over are: Copyright 2011-2014 Morelli Informatik
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(vandg, "van der Grinten (I)") "\n\tMisc Sph";
#define TOL 1.e-10
#define THIRD .33333333333333333333
#define C2_27 .07407407407407407407 // 2/27
#define PI4_3 4.18879020478639098458 // 4*p... | cpp |
PROJ | data/projects/PROJ/src/projections/tmerc.cpp | /*
* Transverse Mercator implementations
*
* In this file two transverse mercator implementations are found. One of Gerald
* Evenden/John Snyder origin and one of Knud Poder/Karsten Engsager origin. The
* former is regarded as "approximate" in the following and the latter is
* "exact". This word... | cpp |
PROJ | data/projects/PROJ/src/projections/calcofi.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(calcofi, "Cal Coop Ocean Fish Invest Lines/Stations")
"\n\tCyl, Sph&Ell";
/* Conversions for the California Cooperative Oceanic Fisheries Investigations
Line/Station coordinate system following the algorithm of:
Eber, L.E., and R.P. Hewitt. ... | cpp |
PROJ | data/projects/PROJ/src/projections/som.cpp | /******************************************************************************
* This implements the Space Oblique Mercator (SOM) projection, used by the
* Multi-angle Imaging SpectroRadiometer (MISR) products, from the NASA EOS
*Terra platform among others (e.g. ASTER).
*
* This code was originally developed for... | cpp |
PROJ | data/projects/PROJ/src/projections/times.cpp | /******************************************************************************
* Project: PROJ.4
* Purpose: Implementation of the Times projection.
* Author: Kristian Evers <kristianevers@gmail.com>
*
******************************************************************************
* Copyright (c) 2016, Kristia... | cpp |
PROJ | data/projects/PROJ/src/projections/goode.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(goode, "Goode Homolosine") "\n\tPCyl, Sph";
#define Y_COR 0.05280
#define PHI_LIM 0.71093078197902358062
C_NAMESPACE PJ *pj_sinu(PJ *), *pj_moll(PJ *);
namespace { // anonymous namespace
struct pj_goode_data {
PJ *sin... | cpp |
PROJ | data/projects/PROJ/src/projections/eck3.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(eck3, "Eckert III") "\n\tPCyl, Sph";
PROJ_HEAD(putp1, "Putnins P1") "\n\tPCyl, Sph";
PROJ_HEAD(wag6, "Wagner VI") "\n\tPCyl, Sph";
PROJ_HEAD(kav7, "Kavrayskiy VII") "\n\tPCyl, Sph";
namespace { // anonymous namespace
struct... | cpp |
PROJ | data/projects/PROJ/src/projections/airy.cpp | /******************************************************************************
* Project: PROJ.4
* Purpose: Implementation of the airy (Airy) projection.
* Author: Gerald Evenden (1995)
* Thomas Knudsen (2016) - revise/add regression tests
*
*********************************************************... | cpp |
PROJ | data/projects/PROJ/src/projections/lcc.cpp |
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
#include <math.h>
PROJ_HEAD(lcc, "Lambert Conformal Conic")
"\n\tConic, Sph&Ell\n\tlat_1= and lat_2= or lat_0, k_0=";
#define EPS10 1.e-10
namespace { // anonymous namespace
struct pj_lcc_data {
double phi1;
double phi2;
double n;
doubl... | cpp |
PROJ | data/projects/PROJ/src/projections/sterea.cpp | /*
** libproj -- library of cartographic projections
**
** Copyright (c) 2003 Gerald I. Evenden
*/
/*
** 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
** wi... | cpp |
PROJ | data/projects/PROJ/src/projections/merc.cpp |
#include <float.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
#include <math.h>
PROJ_HEAD(merc, "Mercator") "\n\tCyl, Sph&Ell\n\tlat_ts=";
PROJ_HEAD(webmerc, "Web Mercator / Pseudo Mercator") "\n\tCyl, Ell\n\t";
static PJ_XY merc_e_forward(PJ_LP lp, PJ *P) { /* Ellipsoidal, forward */
PJ_XY... | cpp |
PROJ | data/projects/PROJ/src/projections/moll.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(moll, "Mollweide") "\n\tPCyl, Sph";
PROJ_HEAD(wag4, "Wagner IV") "\n\tPCyl, Sph";
PROJ_HEAD(wag5, "Wagner V") "\n\tPCyl, Sph";
#define MAX_ITER 30
#define LOOP_TOL 1e-7
namespace { // anonymous namespace
struct pj_moll_dat... | cpp |
PROJ | data/projects/PROJ/src/projections/robin.cpp |
#include "proj.h"
#include "proj_internal.h"
#include <math.h>
PROJ_HEAD(robin, "Robinson") "\n\tPCyl, Sph";
#define V(C, z) (C.c0 + z * (C.c1 + z * (C.c2 + z * C.c3)))
#define DV(C, z) (C.c1 + 2 * z * C.c2 + z * z * 3. * C.c3)
/*
note: following terms based upon 5 deg. intervals in degrees.
Some background on the... | cpp |
PROJ | data/projects/PROJ/src/projections/geos.cpp | /*
** libproj -- library of cartographic projections
**
** Copyright (c) 2004 Gerald I. Evenden
** Copyright (c) 2012 Martin Raspaud
**
** See also (section 4.4.3.2):
** https://www.cgms-info.org/documents/pdf_cgms_03.pdf
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of thi... | cpp |
PROJ | data/projects/PROJ/src/projections/lcca.cpp | /*****************************************************************************
Lambert Conformal Conic Alternative
-----------------------------------
This is Gerald Evenden's 2003 implementation of an alternative
"almost" LCC, which has been in use historically, but which
sh... | cpp |
PROJ | data/projects/PROJ/src/projections/lask.cpp |
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(lask, "Laskowski") "\n\tMisc Sph, no inv";
#define a10 0.975534
#define a12 -0.119161
#define a32 -0.0143059
#define a14 -0.0547009
#define b01 1.00384
#define b21 0.0802894
#define b03 0.0998909
#define b41 0.000199025
#define b23 -0.0285500
#define b05 -0.049... | cpp |
PROJ | data/projects/PROJ/src/projections/hatano.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(hatano, "Hatano Asymmetrical Equal Area") "\n\tPCyl, Sph";
#define NITER 20
#define EPS 1e-7
#define ONETOL 1.000001
#define CN 2.67595
#define CSz 2.43763
#define RCN 0.37369906014686373063
#define RCS 0.41023453108141924738
#define FYCN 1.7... | cpp |
PROJ | data/projects/PROJ/src/projections/imoll.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(imoll, "Interrupted Mollweide") "\n\tPCyl, Sph";
/*
This projection is a compilation of 6 separate sub-projections.
It is related to the Interrupted Goode Homolosine projection,
but uses Mollweide at all latitudes.
Each su... | cpp |
PROJ | data/projects/PROJ/src/projections/sts.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(kav5, "Kavrayskiy V") "\n\tPCyl, Sph";
PROJ_HEAD(qua_aut, "Quartic Authalic") "\n\tPCyl, Sph";
PROJ_HEAD(fouc, "Foucaut") "\n\tPCyl, Sph";
PROJ_HEAD(mbt_s, "McBryde-Thomas Flat-Polar Sine (No. 1)") "\n\tPCyl, Sph";
namespac... | cpp |
PROJ | data/projects/PROJ/src/projections/vandg2.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
namespace { // anonymous namespace
struct pj_vandg2 {
int vdg3;
};
} // anonymous namespace
PROJ_HEAD(vandg2, "van der Grinten II") "\n\tMisc Sph, no inv";
PROJ_HEAD(vandg3, "van der Grinten III") "\n\tMisc Sph, no inv";
#define... | cpp |
PROJ | data/projects/PROJ/src/projections/laea.cpp |
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
#include <math.h>
PROJ_HEAD(laea, "Lambert Azimuthal Equal Area") "\n\tAzi, Sph&Ell";
namespace pj_laea_ns {
enum Mode { N_POLE = 0, S_POLE = 1, EQUIT = 2, OBLIQ = 3 };
}
namespace { // anonymous namespace
struct pj_laea_data {
double sinb1;
do... | cpp |
PROJ | data/projects/PROJ/src/projections/gn_sinu.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(gn_sinu, "General Sinusoidal Series") "\n\tPCyl, Sph\n\tm= n=";
PROJ_HEAD(sinu, "Sinusoidal (Sanson-Flamsteed)") "\n\tPCyl, Sph&Ell";
PROJ_HEAD(eck6, "Eckert VI") "\n\tPCyl, Sph";
PROJ_HEAD(mbtfps, "McBryde-Thomas Flat-Polar... | cpp |
PROJ | data/projects/PROJ/src/projections/stere.cpp |
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
#include <math.h>
PROJ_HEAD(stere, "Stereographic") "\n\tAzi, Sph&Ell\n\tlat_ts=";
PROJ_HEAD(ups, "Universal Polar Stereographic") "\n\tAzi, Ell\n\tsouth";
namespace { // anonymous namespace
enum Mode { S_POLE = 0, N_POLE = 1, OBLIQ = 2, EQUIT = 3 };
} ... | cpp |
PROJ | data/projects/PROJ/src/projections/sconics.cpp |
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
#include <math.h>
namespace pj_sconics_ns {
enum Type {
EULER = 0,
MURD1 = 1,
MURD2 = 2,
MURD3 = 3,
PCONIC = 4,
TISSOT = 5,
VITK1 = 6
};
}
namespace { // anonymous namespace
struct pj_sconics_data {
double n;
double r... | cpp |
PROJ | data/projects/PROJ/src/projections/somerc.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(somerc, "Swiss. Obl. Mercator") "\n\tCyl, Ell\n\tFor CH1903";
namespace { // anonymous namespace
struct pj_somerc {
double K, c, hlf_e, kR, cosp0, sinp0;
};
} // anonymous namespace
#define EPS 1.e-10
#define NITER 6
... | cpp |
PROJ | data/projects/PROJ/src/projections/wag7.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(wag7, "Wagner VII") "\n\tMisc Sph, no inv";
static PJ_XY wag7_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0, 0.0};
(void)P; /* Shut up compiler warnnings about unused P */
xy.y = 0.90630778703664996 * si... | cpp |
PROJ | data/projects/PROJ/src/projections/collg.cpp |
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(collg, "Collignon") "\n\tPCyl, Sph";
#define FXC 1.12837916709551257390
#define FYC 1.77245385090551602729
#define ONEEPS 1.0000001
static PJ_XY collg_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0, 0.0};
(void... | cpp |
PROJ | data/projects/PROJ/src/projections/putp4p.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
namespace { // anonymous namespace
struct pj_putp4p_data {
double C_x, C_y;
};
} // anonymous namespace
PROJ_HEAD(putp4p, "Putnins P4'") "\n\tPCyl, Sph";
PROJ_HEAD(weren, "Werenskiold I") "\n\tPCyl, Sph";
static PJ_XY putp4p_s_f... | cpp |
PROJ | data/projects/PROJ/src/projections/ocea.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(ocea, "Oblique Cylindrical Equal Area")
"\n\tCyl, Sph"
"lonc= alpha= or\n\tlat_1= lat_2= lon_1= lon_2=";
namespace { // anonymous namespace
struct pj_ocea {
double rok;
double rtk;
double sinphi;
double ... | cpp |
PROJ | data/projects/PROJ/src/projections/wag3.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(wag3, "Wagner III") "\n\tPCyl, Sph\n\tlat_ts=";
#define TWOTHIRD 0.6666666666666666666667
namespace { // anonymous namespace
struct pj_wag3 {
double C_x;
};
} // anonymous namespace
static PJ_XY wag3_s_forward(PJ_LP l... | cpp |
PROJ | data/projects/PROJ/src/projections/aeqd.cpp | /******************************************************************************
* Project: PROJ.4
* Purpose: Implementation of the aeqd (Azimuthal Equidistant) projection.
* Author: Gerald Evenden
*
******************************************************************************
* Copyright (c) 1995, Gerald Eve... | cpp |
PROJ | data/projects/PROJ/src/projections/labrd.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(labrd, "Laborde") "\n\tCyl, Sph\n\tSpecial for Madagascar\n\tlat_0=";
#define EPS 1.e-10
namespace { // anonymous namespace
struct pj_opaque {
double kRg, p0s, A, C, Ca, Cb, Cc, Cd;
};
} // anonymous namespace
static P... | cpp |
PROJ | data/projects/PROJ/src/projections/eqc.cpp |
#include <errno.h>
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
namespace { // anonymous namespace
struct pj_eqc_data {
double rc;
};
} // anonymous namespace
PROJ_HEAD(eqc, "Equidistant Cylindrical (Plate Carree)")
"\n\tCyl, Sph\n\tlat_ts=[, lat_0=0]";
static PJ_XY eqc_s_forward(PJ_LP lp, P... | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.