title: Saving and restoring geometries in OpenLayers
body: <p><em>Context: I'm a just-hours-old newbie at OpenLayers, please be gentle.</em></p>
  
  <p>Fundamentally, I have a map with some drawn objects on it.  If I understand things correctly, I have a number of OpenLayer.Feature.Vector (layers?) with a number of OpenLayer.Geometry "things" (like LinearRing) on it.</p>
  
  <p>At the moment, I seem to be able to get a nice representation of the geometry, using .toString().  Yes, I suspect I'm doing it wrong -- feel free to point me in the right direction.</p>
  
  <p>This yields a very human readable, and database storable, strings such as:</p>
  
  <ul>
  <li><p>POINT(-104.74560546875 44.2841796875)</p></li>
  <li><p>POLYGON((-96.52783203125 44.6796875,-96.52783203125 45.734375,-92.22119140625 45.734375,-92.22119140625 44.6796875,-96.52783203125 44.6796875))</p></li>
  <li><p>LINESTRING(-105.71240234375 44.6796875,-106.06396484375 42.658203125,-103.55908203125 42.7021484375,-103.47119140625 45.55859375,-104.65771484375 45.20703125)</p></li>
  </ul>
  
  <p><strong>Is there an inverse way of getting these <em>back</em> into the object format from whence they came?</strong></p>
  
  <p>I'd love to be using JSON, but can't seem to get GeoJSON to accept my OpenLayer.Feature.Vector object (which is what the CLASS_NAME property says it is when I peer inside).</p>
  
  <p>Many thanks.</p>