jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • GeoTools
  • GEOT-1554

Orhographic reprojection fails if given an elliptical datum in the CRS

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.3.1
  • Fix Version/s: 2.7.5
  • Component/s: referencing
  • Labels:
    None

Description

If the CRS for an orthographic projection is given along with a datum, then an assumption is made that you are wanting an elliptical orthographic projection, and the projection fails.

An orthographic projection is spherical by definition, so elliptical is invalid, however, all other tools out there (proj, notably), just assume spherical based on the semi_major axis if an ellipsoid datum is given. Geotools should work the same way.

By programatically defining an ortho CRS based on the WGS84 datum, this WKT is produced:

PROJCS["Orthographic.WGS84.lat32.87894.lon-96.99886",
GEOGCS["WGS84",
DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH]],
PROJECTION["Orthographic"],
PARAMETER["central_meridian", -96.99886],
PARAMETER["latitude_of_origin", 32.87894000000001],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH]]

However, attempting to use this CRS fails, stating that it can't use an elliptical datum. The work around is to manually add the semi_major and semi_minor radius definitions:

PROJCS["Orthographic.WGS84.lat32.87894.lon-96.99886",
GEOGCS["WGS84",
DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH]],
PROJECTION["Orthographic"],
PARAMETER["semi_major", 6378137.0],
PARAMETER["semi_minor", 6378137.0],
PARAMETER["central_meridian", -96.99886],
PARAMETER["latitude_of_origin", 32.87894000000001],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH]]

But as I said before, this shouldn't be necessary, as all other software out there just ignores any definition of the semi_minor axis when an ellipsoid is given.

-Judd

Issue Links

depends upon

Task - A task that needs to be done. GEOT-2117 Review GeoToolkit fixes

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Open - The issue is open and ready for the assignee to start work on it.
is related to

Improvement - An improvement or enhancement to an existing feature or task. GEOT-1182 Add support for cylindrical equidistant on elliptical datum

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

  • All
  • Comments
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Judd Taylor
Vote (0)
Watch (0)

Dates

  • Created:
    29/Oct/07 4:37 PM
    Updated:
    21/Dec/11 10:38 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.