diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-03-28 13:29:29 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2019-03-28 21:00:22 +0100 |
| commit | 27bae3c269fb266daed557abaf86abc1a950ede5 (patch) | |
| tree | 84bb452b87884a29b88c64d3c38fcd4eac7c2220 /docs/source | |
| parent | fec376c3eb0e17443c4338f217b70278247973df (diff) | |
| download | PROJ-27bae3c269fb266daed557abaf86abc1a950ede5.tar.gz PROJ-27bae3c269fb266daed557abaf86abc1a950ede5.zip | |
Doc: Add FAQ question about inconsistent axis ordering
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/faq.rst | 60 | ||||
| -rw-r--r-- | docs/source/references.bib | 13 |
2 files changed, 73 insertions, 0 deletions
diff --git a/docs/source/faq.rst b/docs/source/faq.rst index d6f118ce..e6a2e54a 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -96,3 +96,63 @@ erroneous transformations. For compatibility reasons PROJ supports several WKT dialects (see :option:`projinfo -o`). If possible WKT2 should be used. + +Why is the axis ordering in PROJ not consistent? +-------------------------------------------------------------------------------- + +PROJ respects the axis ordering as it was defined by the authority in charge of +a given coordinate reference system. This is in accordance to the ISO19111 standard +:cite:`ISO19111`. Unfortunately most GIS software on the market doesn't follow this +standard. Before version 6, PROJ did not respect the standard either. This causes +some problems while the rest of the industry conforms to the standard. PROJ intends +to spearhead this effort, hopefully setting a good example for the rest of the +geospatial industry. + +Customarily in GIS the first component in a coordinate tuple has been aligned with +the east/west direction and the second component with the north/south direction. +For many coordinate reference systems this is also what is defined by the authority. +There are however exceptions, especially when dealing with coordinate systems that +don't align with the cardinal directions of a compass. For example it is not +obvious which coordinate component aligns to which axis in a skewed coordinate +system with a 45 degrees angle against the north direction. Similarly, a geocentric +cartesain coordinate system usually has the z-component aligned with the rotational +axis of the earth and hence the axis points towards north. Both cases are +incompatible with the convention of always having the x-component be the east/west +axis, the y-component the north/south axis and the z-component the up/down axis. + +In most cases coordinate reference systems with geodetic coordinates expect the +input ordered as latitude/longitude (typically with the EPSG dataset), however, +internally PROJ expects an longitude/latitude ordering for all projections. This +is generally hidden for users but in a few cases it is exposed at the surface +level of PROJ, most prominently in the :program:`proj` utility which expects +longitude/latitude ordering of input date (unless :program:`proj -r` is used). + +In case of doubt about the axis order of a specific CRS :program:`projinfo` is +able to provide an answer. Simply look up the CRS and examine the axis specification +of the Well-Known Text output: + +.. code-block:: console + + projinfo EPSG:4326 + PROJ.4 string: + +proj=longlat +datum=WGS84 +no_defs +type=crs + + WKT2_2018 string: + GEOGCRS["WGS 84", + DATUM["World Geodetic System 1984", + ELLIPSOID["WGS 84",6378137,298.257223563, + LENGTHUNIT["metre",1]]], + PRIMEM["Greenwich",0, + ANGLEUNIT["degree",0.0174532925199433]], + CS[ellipsoidal,2], + AXIS["geodetic latitude (Lat)",north, + ORDER[1], + ANGLEUNIT["degree",0.0174532925199433]], + AXIS["geodetic longitude (Lon)",east, + ORDER[2], + ANGLEUNIT["degree",0.0174532925199433]], + USAGE[ + SCOPE["unknown"], + AREA["World"], + BBOX[-90,-180,90,180]], + ID["EPSG",4326]] diff --git a/docs/source/references.bib b/docs/source/references.bib index 43b187b2..9829495f 100644 --- a/docs/source/references.bib +++ b/docs/source/references.bib @@ -160,6 +160,19 @@ Url = {https://www.iogp.org/bookstore/product/coordinate-conversions-and-transformation-including-formulas/} } +@TechReport{ISO19111, + Title = {{Geographic information -- Referencing by coordinates}}, + Author = {ISO}, + Year = {2019}, + Type = {Standard}, + Key = {ISO 19111:2019}, + Month = Jan, + Volume = {2019}, + Address = {Geneva, CH}, + Institution = {International Organization for Standardization}, + Url = {http://docs.opengeospatial.org/as/18-005r4/18-005r4.html} +} + @Article{Jenny2015, Title = {A compromise aspect-adaptive cylindrical projection for world maps}, Author = {Bernhard Jenny and Bojan Šavrič and Tom Patterson}, |
