code: function(geometry) {
          var type = geometry.CLASS_NAME.split('.')[2].toLowerCase();
          if (!this.extract[type]) {
              return null;
          }
          if (this.internalProjection && this.externalProjection) {
              geometry = geometry.clone();
              geometry.transform(this.internalProjection, this.externalProjection);
          }                       
          var wktType = type == 'collection' ? 'GEOMETRYCOLLECTION' : type.toUpperCase();
          var data = wktType + '(' + this.extract[type].apply(this, [geometry]) + ')';
          return data;
      }
docs: Method: extractGeometry
  Entry point to construct the WKT for a single Geometry object.
  
  Parameters:
  geometry - {<OpenLayers.Geometry.Geometry>}
  
  Returns:
  {String} A WKT string of representing the geometry