|
||||
File indexing completed on 2025-01-18 09:35:39
0001 // Boost.Geometry (aka GGL, Generic Geometry Library) 0002 // This file is manually converted from PROJ4 0003 0004 // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands. 0005 0006 // This file was modified by Oracle on 2017, 2018. 0007 // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates. 0008 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle 0009 0010 // Use, modification and distribution is subject to the Boost Software License, 0011 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 0012 // http://www.boost.org/LICENSE_1_0.txt) 0013 0014 // This file is converted from PROJ4, http://trac.osgeo.org/proj 0015 // PROJ4 is originally written by Gerald Evenden (then of the USGS) 0016 // PROJ4 is maintained by Frank Warmerdam 0017 // PROJ4 is converted to Geometry Library by Barend Gehrels (Geodan, Amsterdam) 0018 0019 // Original copyright notice: 0020 0021 // Permission is hereby granted, free of charge, to any person obtaining a 0022 // copy of this software and associated documentation files (the "Software"), 0023 // to deal in the Software without restriction, including without limitation 0024 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 0025 // and/or sell copies of the Software, and to permit persons to whom the 0026 // Software is furnished to do so, subject to the following conditions: 0027 0028 // The above copyright notice and this permission notice shall be included 0029 // in all copies or substantial portions of the Software. 0030 0031 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 0032 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0033 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 0034 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 0035 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 0036 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 0037 // DEALINGS IN THE SOFTWARE. 0038 0039 #ifndef BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_UNITS_HPP 0040 #define BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_UNITS_HPP 0041 0042 #include <boost/geometry/srs/projections/impl/projects.hpp> 0043 0044 namespace boost { namespace geometry { namespace projections { 0045 namespace detail { 0046 0047 // Originally defined in projects.h 0048 struct pj_units_type 0049 { 0050 std::string id; /* units keyword */ 0051 std::string to_meter; /* multiply by value to get meters */ 0052 double numerator; 0053 double denominator; 0054 std::string name; /* comments */ 0055 }; 0056 0057 /* Field 2 that contains the multiplier to convert named units to meters 0058 ** may be expressed by either a simple floating point constant or a 0059 ** numerator/denomenator values (e.g. 1/1000) */ 0060 0061 static const pj_units_type pj_units[] = 0062 { 0063 { "km", "1000.", 1000.0, 1.0, "Kilometer" }, 0064 { "m", "1.", 1.0, 1.0, "Meter" }, 0065 { "dm", "1/10", 1.0, 10.0, "Decimeter" }, 0066 { "cm", "1/100", 1.0, 100.0, "Centimeter" }, 0067 { "mm", "1/1000", 1.0, 1000.0, "Millimeter" }, 0068 { "kmi", "1852.", 1852.0, 1.0, "International Nautical Mile" }, 0069 { "in", "0.0254", 0.0254, 1.0, "International Inch" }, 0070 { "ft", "0.3048", 0.3048, 1.0, "International Foot" }, 0071 { "yd", "0.9144", 0.9144, 1.0, "International Yard" }, 0072 { "mi", "1609.344", 1609.344, 1.0, "International Statute Mile" }, 0073 { "fath", "1.8288", 1.8288, 1.0, "International Fathom" }, 0074 { "ch", "20.1168", 20.1168, 1.0, "International Chain" }, 0075 { "link", "0.201168", 0.201168, 1.0, "International Link" }, 0076 { "us-in", "1./39.37", 1.0, 39.37, "U.S. Surveyor's Inch" }, 0077 { "us-ft", "0.304800609601219", 0.304800609601219, 1.0, "U.S. Surveyor's Foot" }, 0078 { "us-yd", "0.914401828803658", 0.914401828803658, 1.0, "U.S. Surveyor's Yard" }, 0079 { "us-ch", "20.11684023368047", 20.11684023368047, 1.0, "U.S. Surveyor's Chain" }, 0080 { "us-mi", "1609.347218694437", 1609.347218694437, 1.0, "U.S. Surveyor's Statute Mile" }, 0081 { "ind-yd", "0.91439523", 0.91439523, 1.0, "Indian Yard" }, 0082 { "ind-ft", "0.30479841", 0.30479841, 1.0, "Indian Foot" }, 0083 { "ind-ch", "20.11669506", 20.11669506, 1.0, "Indian Chain" } 0084 }; 0085 0086 } // detail 0087 }}} // namespace boost::geometry::projections 0088 0089 #endif // BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_UNITS_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |