1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_UNITS_HPP
- #define BOOST_GEOMETRY_PROJECTIONS_IMPL_PJ_UNITS_HPP
- #include <boost/geometry/srs/projections/impl/projects.hpp>
- namespace boost { namespace geometry { namespace projections {
- namespace detail {
- struct pj_units_type
- {
- std::string id;
- std::string to_meter;
- double numerator;
- double denominator;
- std::string name;
- };
- static const pj_units_type pj_units[] =
- {
- { "km", "1000.", 1000.0, 1.0, "Kilometer" },
- { "m", "1.", 1.0, 1.0, "Meter" },
- { "dm", "1/10", 1.0, 10.0, "Decimeter" },
- { "cm", "1/100", 1.0, 100.0, "Centimeter" },
- { "mm", "1/1000", 1.0, 1000.0, "Millimeter" },
- { "kmi", "1852.", 1852.0, 1.0, "International Nautical Mile" },
- { "in", "0.0254", 0.0254, 1.0, "International Inch" },
- { "ft", "0.3048", 0.3048, 1.0, "International Foot" },
- { "yd", "0.9144", 0.9144, 1.0, "International Yard" },
- { "mi", "1609.344", 1609.344, 1.0, "International Statute Mile" },
- { "fath", "1.8288", 1.8288, 1.0, "International Fathom" },
- { "ch", "20.1168", 20.1168, 1.0, "International Chain" },
- { "link", "0.201168", 0.201168, 1.0, "International Link" },
- { "us-in", "1./39.37", 1.0, 39.37, "U.S. Surveyor's Inch" },
- { "us-ft", "0.304800609601219", 0.304800609601219, 1.0, "U.S. Surveyor's Foot" },
- { "us-yd", "0.914401828803658", 0.914401828803658, 1.0, "U.S. Surveyor's Yard" },
- { "us-ch", "20.11684023368047", 20.11684023368047, 1.0, "U.S. Surveyor's Chain" },
- { "us-mi", "1609.347218694437", 1609.347218694437, 1.0, "U.S. Surveyor's Statute Mile" },
- { "ind-yd", "0.91439523", 0.91439523, 1.0, "Indian Yard" },
- { "ind-ft", "0.30479841", 0.30479841, 1.0, "Indian Foot" },
- { "ind-ch", "20.11669506", 20.11669506, 1.0, "Indian Chain" }
- };
- }
- }}}
- #endif
|