PROJ
PROJ is a generic coordinate transformation software, that transforms coordinates from one coordinate reference system (CRS) to another. This includes cartographic projections as well as geodetic transformations.
For more information on the PROJ project please see the web page at:
The PROJ mailing list can be found at:
https://lists.osgeo.org/mailman/listinfo/proj/
See the NEWS file for changes between versions.
The following command line utilities are included in the PROJ package:
proj
: for cartographic projection of geodetic coordinates.cs2cs
: for transformation from one CRS to another CRS.geod
: for geodesic (great circle) computations.cct
: for generic Coordinate Conversions and Transformations.gie
: the Geospatial Integrity Investigation Environment.projinfo
: for geodetic object and coordinate operation queries.projsync
: for synchronizing PROJ datum and transformation support data.
More information on the utilities can be found on the PROJ website.
Installation
Consult the Installation page of the official documentation. For builds on the master branch, install.rst might be more up-to-date.
Distribution files and format
Sources are distributed in one or more files. The principle elements of the system are stored in a compressed tar file named proj-x.y.z.tar.gz
where "x" will indicate the major release number, "y" indicates the minor release number, and "z" indicates the patch number of the release.
In addition to the PROJ software package, distributions of datum conversion grid files and PROJ parameter files are also available. The grid package is distributed under the name proj-data-x.y.zip
, where "x" is the major release version and "y" is the minor release version numbers. The resource packages can be downloaded from the PROJ website.
More info on the contents of the proj-data package can be found at the PROJ-data GitHub repository.
The resource file packages should be extracted to PROJ_LIB
where PROJ will find them after installation. The default location of PROJ_LIB
on UNIX-based systems is /usr/local/share/proj
but it may be changed to a different directory. On Windows you have to define PROJ_LIB
yourself.
As an alternative to installing the data package on the local system, the resource files can be retrieved on-the-fly from the PROJ CDN. A network-enabled PROJ build, will automatically fetch resource files that are not present locally from the CDN.
Citing PROJ in publications
See CITATION
from https://github.com/OSGeo/PROJ
------
Installation
These pages describe how to install PROJ on your computer without compiling it yourself. Below are guides for installing on Windows, Linux and Mac OS X. This is a good place to get started if this is your first time using PROJ. More advanced users may want to compile the software themselves.
Installation from package management systems
Cross platform
PROJ is also available via cross platform package managers.
Conda
The conda package manager includes several PROJ packages. We recommend installing from the conda-forge
channel:
conda install -c conda-forge proj
Using conda
you can also install the PROJ data package. Here's how to install the proj-data package:
conda install -c conda-forge proj-data
Available is also the legacy packages proj-datumgrid-europe
, proj-datumgrid-north-america
, proj-datumgrid-oceania
and proj-datumgrid-world
.
Tip
Read more about the various datumgrid packages available :ref:`here<datumgrid>`.
Docker
A Docker image with just PROJ binaries and a full compliment of grid shift files is available on DockerHub. Get the package with:
docker pull osgeo/proj
Windows
The simplest way to install PROJ on Windows is to use the OSGeo4W software distribution. OSGeo4W provides easy access to many popular open source geospatial software packages. After installation you can use PROJ from the OSGeo4W shell. To install PROJ do the following:
Note
If you have already installed software via OSGeo4W on your computer, or if you have already installed QGIS on your computer, it is likely that PROJ is already installed. Type "OSGeo4W Shell" in your start menu and check whether that gives a match.
- Download either the 32 bit or 64 bit installer.
- Run the OSGeo4W setup program.
- Select "Advanced Install" and press Next.
- Select "Install from Internet" and press Next.
- Select a installation directory. The default suggestion is fine in most cases. Press Next.
- Select "Local package directory". The default suggestion is fine in most cases. Press Next.
- Select "Direct connection" and press Next.
- Choose the download.osgeo.org server and press Next.
- Find "proj" under "Commandline_Utilities" and click the package in the "New" column until the version you want to install appears.
- Press next to install PROJ.
You should now have a "OSGeo" menu in your start menu. Within that menu you can find the "OSGeo4W Shell" where you have access to all the OSGeo4W applications, including proj.
For those who are more inclined to the command line, steps 2--10 above can be accomplished by executing the following command:
C:\temp\osgeo4w-setup-x86-64.exe -q -k -r -A -s https://download.osgeo.org/osgeo4w/ -a x86_64 -P proj
Linux
How to install PROJ on Linux depends on which distribution you are using. Below is a few examples for some of the more common Linux distributions:
Debian
On Debian and similar systems (e.g. Ubuntu) the APT package manager is used:
sudo apt-get install proj-bin
Fedora
On Fedora the :program:`dnf` package manager is used:
sudo dnf install proj
Red Hat
On Red Hat based system packages are installed with :program:`yum`:
sudo yum install proj
Mac OS X
On OS X PROJ can be installed via the Homebrew package manager:
brew install proj
PROJ is also available from the MacPorts system:
sudo ports install proj
Compilation and installation from source code
The classic way of installing PROJ is via the source code distribution. The most recent version is available from the :ref:`download page<current_release>`.
The following guides show how to compile and install the software using CMake.
Note
Support for Autotools was maintained until PROJ 8.2 (see :ref:`RFC7`). PROJ 9.0 and later releases only support builds using CMake.
Build requirements
- C99 compiler
- C++11 compiler
- CMake >= 3.9
- SQLite3 >= 3.11: headers and library for target architecture, and sqlite3 executable for build architecture.
- libtiff >= 4.0 (optional but recommended)
- curl >= 7.29.0 (optional but recommended)
Build steps
With the CMake build system you can compile and install PROJ on more or less any platform. After unpacking the source distribution archive step into the source- tree:
cd proj-{PROJVERSION}
Create a build directory and step into it:
mkdir build cd build
From the build directory you can now configure CMake, build and install the binaries:
cmake .. cmake --build . cmake --build . --target install
On Windows, one may need to specify generator:
cmake -G "Visual Studio 15 2017" ..
If the SQLite3 dependency is installed in a custom location, specify the paths to the include directory and the library:
cmake -DSQLITE3_INCLUDE_DIR=/opt/SQLite/include -DSQLITE3_LIBRARY=/opt/SQLite/lib/libsqlite3.so ..
Alternatively, the custom prefix for SQLite3 can be specified:
cmake -DCMAKE_PREFIX_PATH=/opt/SQLite ..
Tests are run with:
ctest
With a successful install of PROJ we can now install data files using the :program:`projsync` utility:
projsync --system-directory
which will download all resource files currently available for PROJ. If less than the entire collection of resource files is needed the call to :program:`projsync` can be modified to suit the users needs. See :ref:`projsync` for more options.
Note
The use of :program:`projsync` requires that network support is enabled (the default option). If the resource files are not installed using :program:`projsync` PROJ will attempt to fetch them automatically when a transformation needs a specific data file. This requires that :envvar:`PROJ_NETWORK` is set to ON
.
As an alternative on systems where network access is disabled, the :ref:`proj-data <datumgrid>` package can be downloaded and added to the :envvar:`PROJ_LIB` directory.
from https://github.com/OSGeo/PROJ/blob/master/docs/source/install.rst
https://proj.org/install.html
---------------
PROJ¶
PROJ is a generic coordinate transformation software that transforms geospatial coordinates from one coordinate reference system (CRS) to another. This includes cartographic projections as well as geodetic transformations. PROJ is released under the X/MIT open source license
PROJ includes command line applications for easy conversion of coordinates from text files or directly from user input. In addition to the command line utilities PROJ also exposes an application programming interface, or API in short. The API lets developers use the functionality of PROJ in their own software without having to implement similar functionality themselves.
PROJ started purely as a cartography application letting users convert geodetic coordinates into projected coordinates using a number of different cartographic projections. Over the years, as the need has become apparent, support for datum shifts has slowly worked its way into PROJ as well. Today PROJ supports more than a hundred different map projections and can transform coordinates between datums using all but the most obscure geodetic techniques.
You can download the source code for PROJ on the download section and find links to prepackaged executables in the installation section.
In addition to this website the PROJ documentation is also available in PDF form.
from https://proj.org/
No comments:
Post a Comment