/usr/lib/python2.7/dist-packages/geographiclib/constants.py is in python-geographiclib 1.45-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """constants.py: transcription of GeographicLib::Constants class."""
# constants.py
#
# This is a translation of the GeographicLib::Constants class to python. See
# the documentation for the C++ class for more information at
#
# http://geographiclib.sourceforge.net/html/annotated.html
#
# Copyright (c) Charles Karney (2011) <charles@karney.com> and licensed under
# the MIT/X11 License. For more information, see
# http://geographiclib.sourceforge.net/
######################################################################
class Constants(object):
"""
WGS84 constants:
WGS84_a, the equatorial radius in meters
WGS84_f, the flattening of the ellipsoid
"""
WGS84_a = 6378137.0 # meters
WGS84_f = 1/298.257223563
|