diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-11-29 21:37:57 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-11-30 18:22:51 +0100 |
| commit | e8d2f811b4f9ce1bf561c939e731ba4656dd8afb (patch) | |
| tree | 10eb82bf5c0094ad36580ff7c19041c9da73cebc | |
| parent | fb9c269f4fdbbfd58aeaefb90f482e9f33d94764 (diff) | |
| download | PROJ-e8d2f811b4f9ce1bf561c939e731ba4656dd8afb.tar.gz PROJ-e8d2f811b4f9ce1bf561c939e731ba4656dd8afb.zip | |
Doc: clarifications regarding grid packages (fixes #1751)
- Content partly borrowed from @kbevers ' suggestions of
https://github.com/OSGeo/PROJ/issues/1751#issuecomment-558976968
- Remove mention about Swiss grids. Included in the europe package
- Remove section about HARN / HPGN grids. Those have been included
in the north-america package, and there is no longer any point in
mentionning the particularities of how ancient ones had to be
used with PROJ.4
- Remove section about obsolete proj_defs.dat
| -rw-r--r-- | docs/source/resource_files.rst | 115 |
1 files changed, 41 insertions, 74 deletions
diff --git a/docs/source/resource_files.rst b/docs/source/resource_files.rst index a6fd9f12..d40f683a 100644 --- a/docs/source/resource_files.rst +++ b/docs/source/resource_files.rst @@ -23,17 +23,35 @@ A proj installation includes a SQLite database of transformation information that must be accessible for the library to work properly. The library will print an error if the database can't be found. -External resources +Transformation grids +------------------------------------------------------------------------------- + +Grid files are important for shifting and transforming between datums. + +PROJ supports CTable2, NTv1 and NTv2 files for horizontal grid corrections and +the GTX file format for vertical corrections. Details about the formats can be +found in the `GDAL documentation <http://gdal.org/>`_. GDAL reads and writes +all formats. Using GDAL for construction of new grids is recommended. + +External resources and packaged grids ------------------------------------------------------------------------------- -For a functioning PROJ installation of the +proj-datumgrid +++++++++++++++ + +For a functioning PROJ, installation of the `proj-datumgrid <https://github.com/OSGeo/proj-datumgrid>`_ is needed. If you have installed PROJ from a package system chances are that this will already be done for you. The *proj-datumgrid* package provides transformation grids that are essential for many of the predefined transformations in PROJ. Which grids are included in the package can be seen on the `proj-datumgrid repository <https://github.com/OSGeo/proj-datumgrid>`_ as well -as descriptions of those grids. +as descriptions of those grids. This is the main grid package and the only one +that is required. It includes various older grids that is mostly needed for +legacy reasons. Without this package, the test suite fails miserably. + +Regional packages ++++++++++++++++++ In addition to the default *proj-datumgrid* package regional packages are also distributed. These include grids and init-files that are valid within the given @@ -47,22 +65,34 @@ At the moment three regional resource file packages are distributed: * `Oceania <https://github.com/OSGeo/proj-datumgrid/tree/master/oceania#proj-datumgrid-oceania>`_ * `North America <https://github.com/OSGeo/proj-datumgrid/tree/master/north-america#proj-datumgrid-north-america>`_ +If someone supplies grids relevant for Africa, South-America, Asia or Antarctica +we will create new regional packages. + Click the links to jump to the relevant README files for each package. Details on the content of the packages maintained there. Links to the resource packages can be found in the :ref:`download section <download>`. -.. _transformation_grids: +World package ++++++++++++++ -Transformation grids -------------------------------------------------------------------------------- +The `world package <https://github.com/OSGeo/proj-datumgrid/tree/master/world#proj-datumgrid-world>`_ +includes grids that have global extent, e.g. the global geoid model EGM08. -Grid files are important for shifting and transforming between datums. +-latest packages +++++++++++++++++ -PROJ supports CTable2, NTv1 and NTv2 files for horizontal grid corrections and -the GTX file format for vertical corrections. Details about the formats can be -found in the `GDAL documentation <http://gdal.org/>`_. GDAL reads and writes -all formats. Using GDAL for construction of new grids is recommended. +All packages above come in different versions, e.g proj-datumgrid-1.8 or +proj-datumgrid-europe-1.4. The -latest packages are symbolic links to the +latest version of a given packages. That means that the link +https://download.osgeo.org/proj/proj-datumgrid-north-america-latest.zip is +equivalent to https://download.osgeo.org/proj/proj-datumgrid-north-america-1.2.zip +(as of the time of writing this). + +.. _transformation_grids: + +Other transformation grids +------------------------------------------------------------------------------- Below is a given a list of grid resources for various countries which are not included in the grid distributions mentioned above. @@ -72,22 +102,6 @@ Free grids Below is a list of grids distributed under a free and open license. -Switzerland -................................................................................ - -Background in ticket `#145 <https://github.com/OSGeo/PROJ/issues/145>`__ - -We basically have two shift grids available. An official here: - -`Swiss CHENyx06 dataset in NTv2 format <https://shop.swisstopo.admin.ch/en/products/geo_software/GIS_info>`__ - -And a derived in a temporary location which is probably going to disappear soon. - -Main problem seems to be there's no mention of distributivity of the grid from -the official website. It just tells: "you can use freely". The "contact" link -is also broken, but maybe someone could make a phone call to ask for rephrasing -that. - Hungary ................................................................................ @@ -134,45 +148,6 @@ Spain `Spanish grids <http://www.ign.es/ign/layoutIn/herramientas.do#DATUM>`__ for ED50. - -HARN -+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -With the support of `i-cubed <http://www.i3.com>`__, Frank Warmerdam has -written tools to translate the HPGN grids from NOAA/NGS from ``.los/.las`` format -into NTv2 format for convenient use with PROJ. This project included -implementing a `.los/.las reader <https://github.com/OSGeo/gdal/tree/trunk/gdal/frmts/raw/loslasdataset.cpp>`__ -for GDAL, and an `NTv2 reader/writer <https://github.com/OSGeo/gdal/tree/trunk/gdal/frmts/raw/ntv2dataset.cpp>`__. -Also, a script to do the bulk translation was implemented in -https://github.com/OSGeo/gdal/tree/trunk/gdal/swig/python/samples/loslas2ntv2.py. -The command to do the translation was: - -:: - - loslas2ntv2.py -auto *hpgn.los - -As GDAL uses NAD83/WGS84 as a pivot datum, the sense of the HPGN datum shift offsets were negated to map from HPGN to NAD83 instead of the other way. The files can be used with PROJ like this: - -:: - - cs2cs +proj=latlong +datum=NAD83 - +to +proj=latlong +nadgrids=./azhpgn.gsb +ellps=GRS80 - -:: - - # input: - -112 34 - -:: - - # output: - 111d59'59.996"W 34d0'0.006"N -0.000 - -This was confirmed against the `NGS HPGN calculator -<http://www.ngs.noaa.gov/cgi-bin/nadcon2.prl>`__. - -The grids are available at https://download.osgeo.org/proj/hpgn_ntv2.zip - HTDP +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -398,11 +373,3 @@ Below is a list of the init files that are packaged with PROJ. nad27 State plane coordinate systems, North American Datum 1927 nad83 State plane coordinate systems, North American Datum 1983 ======== ================================================================ - - -The defaults file -------------------------------------------------------------------------------- - -Before PROJ 6.0, a ``proj_def.dat`` file could be used to supply default -parameters to PROJ. It has been removed due to the confusion and errors it -caused. |
