code: function(str) {
              var ring, linestring, linearring;
              var rings = OpenLayers.String.trim(str).split(this.regExes.parenComma);
              var components = [];
              for(var i=0, len=rings.length; i<len; ++i) {
                  ring = rings[i].replace(this.regExes.trimParens, '$1');
                  linestring = this.parse.linestring.apply(this, [ring]).geometry;
                  linearring = new OpenLayers.Geometry.LinearRing(linestring.components);
                  components.push(linearring);
              }
              return new OpenLayers.Feature.Vector(
                  new OpenLayers.Geometry.Polygon(components)
              );
          }
docs: Return a polygon feature given a polygon WKT fragment.
  @param {String} str A WKT fragment representing the polygon
  @returns {OpenLayers.Feature.Vector} A polygon feature
  @private