summaryrefslogtreecommitdiff
path: root/boost/geometry/srs/projections/impl/pj_units.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/srs/projections/impl/pj_units.hpp')
-rw-r--r--boost/geometry/srs/projections/impl/pj_units.hpp44
1 files changed, 23 insertions, 21 deletions
diff --git a/boost/geometry/srs/projections/impl/pj_units.hpp b/boost/geometry/srs/projections/impl/pj_units.hpp
index 98e1fa4c9f..9be92977cf 100644
--- a/boost/geometry/srs/projections/impl/pj_units.hpp
+++ b/boost/geometry/srs/projections/impl/pj_units.hpp
@@ -49,6 +49,8 @@ struct pj_units_type
{
std::string id; /* units keyword */
std::string to_meter; /* multiply by value to get meters */
+ double numerator;
+ double denominator;
std::string name; /* comments */
};
@@ -58,27 +60,27 @@ struct pj_units_type
static const pj_units_type pj_units[] =
{
- { "km", "1000.", "Kilometer" },
- { "m", "1.", "Meter" },
- { "dm", "1/10", "Decimeter" },
- { "cm", "1/100", "Centimeter" },
- { "mm", "1/1000", "Millimeter" },
- { "kmi", "1852.0", "International Nautical Mile" },
- { "in", "0.0254", "International Inch" },
- { "ft", "0.3048", "International Foot" },
- { "yd", "0.9144", "International Yard" },
- { "mi", "1609.344", "International Statute Mile" },
- { "fath", "1.8288", "International Fathom" },
- { "ch", "20.1168", "International Chain" },
- { "link", "0.201168", "International Link" },
- { "us-in", "1./39.37", "U.S. Surveyor's Inch" },
- { "us-ft", "0.304800609601219", "U.S. Surveyor's Foot" },
- { "us-yd", "0.914401828803658", "U.S. Surveyor's Yard" },
- { "us-ch", "20.11684023368047", "U.S. Surveyor's Chain" },
- { "us-mi", "1609.347218694437", "U.S. Surveyor's Statute Mile" },
- { "ind-yd", "0.91439523", "Indian Yard" },
- { "ind-ft", "0.30479841", "Indian Foot" },
- { "ind-ch", "20.11669506", "Indian Chain" }
+ { "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" }
};
} // detail