aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-03-11 15:40:53 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-03-11 15:40:53 +0100
commit7ddd7937085524bcfb09ae7eb2a2865e9de6b987 (patch)
tree7ebcef9efb94693c610a72960a05754d338e0dc3
parenta3f5d6dff3587d3a1225c607359c241107232470 (diff)
downloadPROJ-7ddd7937085524bcfb09ae7eb2a2865e9de6b987.tar.gz
PROJ-7ddd7937085524bcfb09ae7eb2a2865e9de6b987.zip
Various typo fixes
-rw-r--r--docs/source/contributing.rst10
-rwxr-xr-xscripts/fix_typos.sh2
-rw-r--r--scripts/typos_whitelist.txt1
-rw-r--r--src/PJ_imw_p.c2
-rw-r--r--src/PJ_unitconvert.c2
-rw-r--r--src/gie.c2
-rw-r--r--src/pj_ell_set.c2
-rw-r--r--src/pj_internal.c2
-rw-r--r--src/proj_4D_api.c2
9 files changed, 12 insertions, 13 deletions
diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst
index 5f55ed9a..e7a1d711 100644
--- a/docs/source/contributing.rst
+++ b/docs/source/contributing.rst
@@ -172,7 +172,7 @@ pj-prefix pattern. Unless there are obvious reasons not to.
Legalese
~~~~~~~~
-Commiters are the front line gatekeepers to keep the code base clear of
+Committers are the front line gatekeepers to keep the code base clear of
improperly contributed code. It is important to the PROJ users,
developers and the OSGeo foundation to avoid contributing any code to
the project without it being clearly licensed under the project license.
@@ -180,9 +180,9 @@ the project without it being clearly licensed under the project license.
Generally speaking the key issues are that those providing code to be
included in the repository understand that the code will be released
under the MIT/X license, and that the person providing the code has the
-right to contribute the code. For the commiter themselves understanding
+right to contribute the code. For the committer themselves understanding
about the license is hopefully clear. For other contributors, the
-commiter should verify the understanding unless the commiter is very
+committer should verify the understanding unless the committer is very
comfortable that the contributor understands the license (for instance
frequent contributors).
@@ -199,7 +199,7 @@ license.
All unusual situations need to be discussed and/or documented.
-Commiters should adhere to the following guidelines, and may be
+Committers should adhere to the following guidelines, and may be
personally legally liable for improperly contributing code to the source
repository:
@@ -237,6 +237,6 @@ Acknowledgements
The *code contribution* section of this CONTRIBUTING file is inspired by
`PDAL's <https://github.com/PDAL/PDAL/blob/master/CONTRIBUTING.md>`__
-and the *legalese* section is modified from `GDAL commiter
+and the *legalese* section is modified from `GDAL committer
guidelines <https://trac.osgeo.org/gdal/wiki/rfc3_commiters>`__
diff --git a/scripts/fix_typos.sh b/scripts/fix_typos.sh
index 9fdb21cf..0e1b5a10 100755
--- a/scripts/fix_typos.sh
+++ b/scripts/fix_typos.sh
@@ -47,7 +47,7 @@ if ! test -d fix_typos; then
fi
EXCLUDED_FILES="*configure,config.status,config.sub,*/autom4te.cache/*,libtool,aclocal.m4,depcomp,ltmain.sh,*.pdf,./m4/*,./nad/epsg,./fix_typos/*"
-WORDS_WHITE_LIST="metres,als,lsat,twon,ang"
+WORDS_WHITE_LIST="metres,als,lsat,twon,ang,PJD_ERR_UNKNOW_UNIT_ID,PJD_ERR_LSAT_NOT_IN_RANGE,COLOR_GRAT"
python3 fix_typos/codespell/codespell.py -w -i 3 -q 2 -S $EXCLUDED_FILES \
-x scripts/typos_whitelist.txt --words-white-list=$WORDS_WHITE_LIST \
diff --git a/scripts/typos_whitelist.txt b/scripts/typos_whitelist.txt
index 8b137891..e69de29b 100644
--- a/scripts/typos_whitelist.txt
+++ b/scripts/typos_whitelist.txt
@@ -1 +0,0 @@
-
diff --git a/src/PJ_imw_p.c b/src/PJ_imw_p.c
index bad98456..b731f656 100644
--- a/src/PJ_imw_p.c
+++ b/src/PJ_imw_p.c
@@ -105,7 +105,7 @@ static LP e_inverse (XY xy, PJ *P) { /* Ellipsoidal, inverse */
XY t;
double yc = 0.0;
int i = 0;
- const int N_MAX_ITER = 1000; /* Arbitrarily choosen number... */
+ const int N_MAX_ITER = 1000; /* Arbitrarily chosen number... */
lp.phi = Q->phi_2;
lp.lam = xy.x / cos(lp.phi);
diff --git a/src/PJ_unitconvert.c b/src/PJ_unitconvert.c
index bedeb02b..a076b76c 100644
--- a/src/PJ_unitconvert.c
+++ b/src/PJ_unitconvert.c
@@ -75,7 +75,7 @@ typedef double (*tconvert)(double);
struct TIME_UNITS {
char *id; /* units keyword */
- tconvert t_in; /* unit -> mod. julian date funtion pointer */
+ tconvert t_in; /* unit -> mod. julian date function pointer */
tconvert t_out; /* mod. julian date > unit function pointer */
char *name; /* comments */
};
diff --git a/src/gie.c b/src/gie.c
index 19c0b0da..1079c7fb 100644
--- a/src/gie.c
+++ b/src/gie.c
@@ -1931,7 +1931,7 @@ static int pj_cart_selftest (void) {
if (proj_angular_output (P, PJ_INV)) return 123;
/* We specified "no_defs" but didn't give any ellipsoid info */
- /* pj_init_ctx should defualt to WGS84 */
+ /* pj_init_ctx should default to WGS84 */
if (P->a != 6378137.0) return 124;
if (P->f != 1.0/298.257223563) return 125;
proj_destroy(P);
diff --git a/src/pj_ell_set.c b/src/pj_ell_set.c
index d1f8f601..1f9bbd91 100644
--- a/src/pj_ell_set.c
+++ b/src/pj_ell_set.c
@@ -20,7 +20,7 @@ static const PJ_ELLPS *pj_find_ellps (char *name);
/***************************************************************************************/
int pj_ellipsoid (PJ *P) {
/****************************************************************************************
- This is a replacement for the clasic PROJ pj_ell_set function. The main difference
+ This is a replacement for the classic PROJ pj_ell_set function. The main difference
is that pj_ellipsoid augments the PJ object with a copy of the exact tags used to
define its related ellipsoid.
diff --git a/src/pj_internal.c b/src/pj_internal.c
index 9b96444c..40f06bd6 100644
--- a/src/pj_internal.c
+++ b/src/pj_internal.c
@@ -209,7 +209,7 @@ consuming their surrounding whitespace.
/* First collapse repeated whitespace (including +/;) */
for (i = j = 0, ws = 0; j < n; j++) {
- /* Eliminate prefix '+', only if preceeded by whitespace */
+ /* Eliminate prefix '+', only if preceded by whitespace */
/* (i.e. keep it in 1.23e+08) */
if ((i > 0) && ('+'==c[j]) && ws)
c[j] = ' ';
diff --git a/src/proj_4D_api.c b/src/proj_4D_api.c
index b9f3d9bf..d9fa8c28 100644
--- a/src/proj_4D_api.c
+++ b/src/proj_4D_api.c
@@ -1036,7 +1036,7 @@ PJ_FACTORS proj_factors(PJ *P, PJ_COORD lp) {
Characteristics include meridian, parallel and areal scales, angular
distortion, meridian/parallel, meridian convergence and scale error.
- returns PJ_FACTORS. If unsuccessfull, error number is set and the
+ returns PJ_FACTORS. If unsuccessful, error number is set and the
struct returned contains NULL data.
******************************************************************************/
PJ_FACTORS factors = {0,0,0, 0,0,0, 0,0, 0,0,0,0};