OSGeo / PROJ

PROJ - Cartographic Projections and Coordinate Transformations Library
https://proj.org
Other
1.67k stars 761 forks source link

Add Quadrilateralized Spherical Cube (QSC) projection (patch attached). #179

Closed proj4-bot closed 9 years ago

proj4-bot commented 9 years ago

Reported by marlam on 13 Jul 2012 08:26 UTC The attached patch (which applies to SVN revision 2226, current as of 2012-07-13) adds support for the Quadrilateralized Spherical Cube (QSC) projection.

This projection is designed to be used with a cube model that subdivides the ellipsoid into six areas. The projection then maps each area to a square map (the corresponding cube side).

Such a cube model is very well suited for planetary-scale terrain rendering, as it allows quadtree-based data management.

A cube model can also use Gnomonic projection, but this introduces strong angle and area distortions. In contrast, QSC projection is an equal-area projection and at the same time introduces only limited angle distortions.

Migrated-From: https://trac.osgeo.org/proj/ticket/179

proj4-bot commented 9 years ago

Comment by marlam on 20 Aug 2012 11:08 UTC Software that uses this patch is now available at http://ecm-planet.sourceforge.net/.

proj4-bot commented 9 years ago

Comment by marlam on 14 Nov 2012 08:20 UTC To clarify: there seem to be two different projections under the name of "Quadrilateralized Spherical Cube".

The first one was proposed in (1) and is also known as the COBE QSC since it was used by the NASA Cosmic Background Explorer (COBE) project. It is an approximately equal-area projection.

The second one was proposed in (2), building on the work of (1). Unlike the COBE QSC, it is an exactly equal-area projection with a closed form expression.

This patch implements (2), as indicated by the source code comment at the top of the file.

See also (3) Sec. 5.6.2 and 5.6.3 for a description of both and some analysis.

(1) Chan F., ONeill E.: Feasibility Study of a Quadrilateralized Spherical Cube Earth Data Base. Tech. Rep. EPRF 2-75 (CSC), Environmental Prediction Research Facility, Apr. 1975.

(2) ONeill E., Laubscher R.: Extended Studies of a Quadrilateralized Spherical Cube Earth Data Base. Tech. Rep. NEPRF 3-76 (CSC), Naval Environmental Prediction Research Facility, May 1976.

(3) Calabretta, M. and Greisen, E.: Representations of celestial coordinates in FITS. Astronomy & Astrophysics 395, 3, 10771122, 2002.

proj4-bot commented 9 years ago

Comment by warmerdam on 6 Dec 2013 03:16 UTC Added in trunk (2ed14f8a (SVN rev2409)). I still need to run autogen.sh on my reference system.

After reading the comments at the beginning of PJ_qsc.c I'm not sure my choosen test point in testvarious was very appropriate.

I'd appreciate it if author (marlam) could add appropriate user documentation for this projection at:

http://trac.osgeo.org/proj/wiki/ProjList

proj4-bot commented 9 years ago

Comment by marlam on 6 Dec 2013 10:14 UTC Thank you.

I added user documentation to the Wiki as you suggested: [[wiki:proj=qsc]].

Perhaps this is useful to choose a different test for testvarious? I'm not entirely sure what the purpose of testvarious is, so I have no suggestion myself.

proj4-bot commented 9 years ago

Comment by warmerdam on 6 Dec 2013 20:47 UTC The documentation looks great. I have rerun autogen.sh so I think this is now complete and it should appear in the 4.9 final release.

proj4-bot commented 9 years ago

Attachment added by marlam on 13 Jul 2012 08:26 UTC https://trac.osgeo.org/proj/attachment/ticket/179/0001-Add-the-Quadrilateralized-Spherical-Cube-QSC-project.patch