title: Use boost to convert degrees minutes seconds radians boost_1_48_0
body: <p>I have got this code to work:</p>
  
  <pre><code>typedef model::point&lt;double, 2, cs::spherical_equatorial&lt;degree&gt; &gt; degree_point;
  
  degree_point FlindersSE(-37.0, 144.0);
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>quantity&lt;plane_angle&gt; Flinders = 0.375 * radians; //this works 0.375 radians
  </code></pre>
  
  <p>But I would like to do degrees minutes and seconds &amp; convert to radians then back again.</p>
  
  <p>I have spent a day  trying to understand how the boost system works - examples are a bit thin on the ground, so I was wondering if someone could show a quick example?</p>
  
  <p>Thanks in advance 8+)</p>
  
  <p>Edit</p>
  
  <pre><code>//quantity&lt;degree_base_unit&gt; FlindersSDeg2.value(-37.0);
  //quantity&lt; angle::arcminute_base_unit&gt; FlindersSMin = 57.0;
  //quantity&lt; angle::arcsecond_base_unit&gt; FlindersSSec = 3.72030;
  </code></pre>
  
  <p>I guess I need a better understanding of how declaration works. :)</p>
  
  <p>Edit2:</p>
  
  <p>Thanks very much - maybe I spent a whole looking for ways to do it with boost &amp; the facility wasn't there ! I thought it might have been because I found this obsolete code here <a href="http://www.boost.org/doc/libs/1_47_0/libs/geometry/doc/doxy/doxygen_input/sourcecode/doxygen_1.cpp" rel="nofollow">http://www.boost.org/doc/libs/1_47_0/libs/geometry/doc/doxy/doxygen_input/sourcecode/doxygen_1.cpp</a></p>
  
  <pre><code>void example_dms()
  {
  /*
  Extension, other coordinate system:
  // Construction with degree/minute/seconds
  boost::geometry::dms&lt;boost::geometry::east&gt; d1(4, 53, 32.5);
  
  // Explicit conversion to double.
  std::cout &lt;&lt; d1.as_value() &lt;&lt; std::endl;
  
  // Conversion to string, with optional strings
  std::cout &lt;&lt; d1.get_dms(" deg ", " min ", " sec") &lt;&lt; std::endl;
  
  // Combination with latitude/longitude and cardinal directions
  {
      using namespace boost::geometry;
      point_ll&lt;double, boost::geometry::cs::geographic&lt;boost::geometry::degree&gt; &gt;        canberra(
          latitude&lt;&gt;(dms&lt;south&gt;(35, 18, 27)),
          longitude&lt;&gt;(dms&lt;east&gt;(149, 7, 27.9)));
      std::cout &lt;&lt; canberra &lt;&lt; std::endl;
  }
  */
  }
  </code></pre>