Skip to content

Commit 4ce78dd

Browse files
authored
Rename PROJ.4 to PROJ (closes #174) (#329)
1 parent 47301be commit 4ce78dd

File tree

14 files changed

+57
-65
lines changed

14 files changed

+57
-65
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pyproj
22

3-
Python interface to [PROJ](http://proj4.org).
3+
Python interface to [PROJ](http://proj.org) (cartographic projections and coordinate transformations library).
44

55
[![Join the chat at https://gitter.im/pyproj4-pyproj/community](https://badges.gitter.im/pyproj4-pyproj/community.svg)](https://gitter.im/pyproj4-pyproj/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
66
[![Build Status](https://travis-ci.org/pyproj4/pyproj.svg)](https://travis-ci.org/pyproj4/pyproj)

docs/api/transformer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Transformer
44

55
The `pyproj.Transformer` has the capabilities of performing 2D, 3D, and 4D (time)
66
transformations. It can do anything that the PROJ command line programs
7-
`proj <https://proj4.org/apps/proj.html>`, `cs2cs <https://proj4.org/apps/cs2cs.html>`,
8-
and `cct <https://proj4.org/apps/cct.html>` can do.
7+
`proj <https://proj.org/apps/proj.html>`, `cs2cs <https://proj.org/apps/cs2cs.html>`,
8+
and `cct <https://proj.org/apps/cct.html>` can do.
99
This means that it allows translation between any pair of definable coordinate systems,
1010
including support for datum transformation.
1111

1212

1313
.. warning:: The axis order may be swapped if the source and destination
1414
CRS's are defined as having the first coordinate component point in a
1515
northerly direction (See PROJ FAQ on
16-
`axis order <https://proj4.org/faq.html#why-is-the-axis-ordering-in-proj-not-consistent>`_).
16+
`axis order <https://proj.org/faq.html#why-is-the-axis-ordering-in-proj-not-consistent>`_).
1717
You can check the axis order with the `pyproj.CRS` class. If you prefer to
1818
keep your axis order as always x,y, you can use the `always_xy` option when
1919
creating the :class:`~pyproj.transformer.Transformer`.

docs/history.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ Change Log
8080

8181
2.0.0
8282
~~~~~
83-
* Update to PROJ.4 version 6.0.0 & removed support for older PROJ.4 versions.
83+
* Update to PROJ version 6.0.0 & removed support for older PROJ versions.
8484
* Added pyproj.CRS class.
8585
* Updated pyproj.Proj & pyproj.transform to accept any input from CRS.from_user_input.
86-
* Removed internal PROJ.4 source code.
86+
* Removed internal PROJ source code.
8787
* Changed default for preserve_units to be True in pyproj.Proj class initialization.
88-
* Modified logic for searching for the PROJ.4 data directory to not conflict with older versions of PROJ.4.
88+
* Modified logic for searching for the PROJ data directory to not conflict with older versions of PROJ.
8989
* Added pyproject.toml.
9090

9191
1.9.6

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pyproj Documentation
22
====================
33

4-
Python interface to `PROJ.4 <https://proj4.org/>`_.
4+
Python interface to `PROJ <https://proj.org/>`_ (cartographic projections and coordinate transformations library).
55

66
.. note:: Minimum supported PROJ version is 6.1.0
77

docs/installation.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ for getting setup.
2626
Installing from source
2727
======================
2828

29-
Setup PROJ.4
29+
Setup PROJ
3030
------------
3131

32-
PROJ.4 6.1.0 is required when building from source.
33-
You can download PROJ.4 from https://download.osgeo.org/proj
34-
or from https://github.com/OSGeo/proj.4.
35-
Installation instructions can be fount at https://proj4.org/.
32+
PROJ 6.1.0 is required when building from source.
33+
You can download PROJ from https://download.osgeo.org/proj
34+
or from https://github.com/OSGeo/PROJ.
35+
Installation instructions can be fount at https://proj.org/.
3636

37-
In the setup.py, the order for searching for PROJ.4 is:
37+
In the setup.py, the order for searching for PROJ is:
3838

3939
1. The PROJ_DIR environment variable
40-
2. The internal PROJ.4 directory (pyproj/proj_dir)
40+
2. The internal PROJ directory (pyproj/proj_dir)
4141
3. The `proj` executable on the PATH.
4242

4343
For best results, set the PROJ_DIR environment variable to
44-
point to location of PROJ.4 installation before running setup.py.
44+
point to location of PROJ installation before running setup.py.
4545

4646
Examples of how to set the PROJ_DIR environment variable:
4747

@@ -53,12 +53,12 @@ Linux::
5353

5454
export PROJ_DIR=/usr/local
5555

56-
If you have a previous version of PROJ.4 installed alongside the current
57-
version of PROJ.4 (6.1.0), the best way to avoid conflicts is to:
56+
If you have a previous version of PROJ installed alongside the current
57+
version of PROJ (6.1.0), the best way to avoid conflicts is to:
5858

59-
1. Remove the previous PROJ.4 from PATH & unset old PROJ_LIB environment variable (temporarily)
60-
2. Install PROJ.4 to the internal PROJ.4 directory (pyproj/proj_dir)
61-
3. Set the environment variable PROJ_DIR to point to the internal PROJ.4 directory
59+
1. Remove the previous PROJ from PATH & unset old PROJ_LIB environment variable (temporarily)
60+
2. Install PROJ to the internal PROJ directory (pyproj/proj_dir)
61+
3. Set the environment variable PROJ_DIR to point to the internal PROJ directory
6262
4. Set the environment variable PROJ_WHEEL=true
6363
5. Build pyproj
6464

pyproj/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
"""
33
Cython wrapper to provide python interfaces to
4-
PROJ.4 (https://github.com/OSGeo/proj.4/wiki) functions.
4+
PROJ (https://proj.org) functions.
55
66
Performs cartographic transformations and geodetic computations.
77

pyproj/_crs.pyx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ cdef _to_wkt(PJ_CONTEXT* projctx, PJ* projobj, version=WktVersion.WKT2_2018, pre
8282

8383
cdef _to_proj4(PJ_CONTEXT* projctx, PJ* projobj, version):
8484
"""
85-
Convert the projection to a PROJ.4 string.
85+
Convert the projection to a PROJ string.
8686
8787
Parameters
8888
----------
8989
version: ~pyproj.enums.ProjVersion
90-
The version of the PROJ.4 output.
90+
The version of the PROJ string output.
9191
9292
Returns
9393
-------
94-
str: The PROJ.4 string.
94+
str: The PROJ string.
9595
"""
96-
# get the output PROJ.4 format
96+
# get the output PROJ string format
9797
supported_prj_types = {
9898
ProjVersion.PROJ_4: PJ_PROJ_4,
9999
ProjVersion.PROJ_5: PJ_PROJ_5,
@@ -1206,17 +1206,17 @@ cdef class CoordinateOperation(Base):
12061206

12071207
def to_proj4(self, version=ProjVersion.PROJ_5):
12081208
"""
1209-
Convert the projection to a PROJ.4 string.
1209+
Convert the projection to a PROJ string.
12101210
12111211
Parameters
12121212
----------
12131213
version: ~pyproj.enums.ProjVersion
1214-
The version of the PROJ.4 output.
1214+
The version of the PROJ string output.
12151215
Default is :attr:`~pyproj.enums.ProjVersion.PROJ_5`.
12161216
12171217
Returns
12181218
-------
1219-
str: The PROJ.4 string.
1219+
str: The PROJ string.
12201220
"""
12211221
return _to_proj4(self.projctx, self.projobj, version)
12221222

@@ -1500,21 +1500,21 @@ cdef class _CRS(Base):
15001500

15011501
def to_proj4(self, version=ProjVersion.PROJ_4):
15021502
"""
1503-
Convert the projection to a PROJ.4 string.
1503+
Convert the projection to a PROJ string.
15041504
15051505
.. warning:: You will likely lose important projection
15061506
information when converting to a PROJ string from
1507-
another format. See: https://proj4.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
1507+
another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
15081508
15091509
Parameters
15101510
----------
15111511
version: ~pyproj.enums.ProjVersion
1512-
The version of the PROJ.4 output.
1512+
The version of the PROJ string output.
15131513
Default is :attr:`~pyproj.enums.ProjVersion.PROJ_4`.
15141514
15151515
Returns
15161516
-------
1517-
str: The PROJ.4 string.
1517+
str: The PROJ string.
15181518
"""
15191519
return _to_proj4(self.projctx, self.projobj, version)
15201520

pyproj/_datadir.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from pyproj.exceptions import ProjError
88

99
cdef void pyproj_log_function(void *user_data, int level, const char *error_msg):
1010
"""
11-
Log function for proj.4 errors with CRS class.
11+
Log function for catching PROJ errors.
1212
"""
1313
if level == PJ_LOG_ERROR:
1414
ProjError.internal_proj_error = pystrdecode(error_msg)

pyproj/_proj.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from pyproj._datadir cimport get_pyproj_context
55
from pyproj.exceptions import ProjError
66

77

8-
# # version number strings for proj.4 and Geod
8+
# # version number string for PROJ
99
proj_version_str = "{0}.{1}.{2}".format(
1010
PROJ_VERSION_MAJOR,
1111
PROJ_VERSION_MINOR,

pyproj/crs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
This module interfaces with proj.4 to produce a pythonic interface
3+
This module interfaces with PROJ to produce a pythonic interface
44
to the coordinate reference system (CRS) information through the CRS
55
class.
66
@@ -51,7 +51,7 @@
5151

5252

5353
def _from_dict(projparams):
54-
# convert a dict to a proj4 string.
54+
# convert a dict to a proj string.
5555
pjargs = []
5656
for key, value in projparams.items():
5757
# the towgs84 as list
@@ -132,7 +132,7 @@ class CRS(_CRS):
132132
srs: str
133133
The string form of the user input used to create the CRS.
134134
name: str
135-
The name of the CRS (from `proj_get_name <https://proj4.org/development/reference/functions.html#_CPPv313proj_get_namePK2PJ>`_).
135+
The name of the CRS (from `proj_get_name <https://proj.org/development/reference/functions.html#_CPPv313proj_get_namePK2PJ>`_).
136136
type_name: str
137137
The name of the type of the CRS object.
138138
@@ -427,7 +427,7 @@ def to_dict(self):
427427
428428
.. warning:: You will likely lose important projection
429429
information when converting to a PROJ string from
430-
another format. See: https://proj4.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
430+
another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
431431
432432
Returns
433433
-------

0 commit comments

Comments
 (0)