code: function(layer) {
          var result = [];
          var cache = this.wfsCache[layer.id];
          for (var i=0, len=cache.featureTypes.length; i<len; i++) {
              var typeName = cache.featureTypes[i];
              var properties = typeName.properties;
              for (var j=0, lenj=properties.length; j < lenj; j++) {
                  var property = properties[j];
                  var type = property.type;
                  if ((type.indexOf('LineString') >= 0) ||
                      (type.indexOf('GeometryAssociationType') >=0) ||
                      (type.indexOf('GeometryPropertyType') >= 0) ||
                      (type.indexOf('Point') >= 0) ||
                      (type.indexOf('Polygon') >= 0) ) {
                          result.push(property);
                  }
              }
          }
          return result;
      }
docs: Method: getGeometryAttributes
  Look up the geometry attributes from the WFS DescribeFeatureType response
  
  Parameters:
  layer - {<OpenLayers.Layer.WMS>} The layer for which to look up the
  geometry attributes.
  
  Returns:
  Array({Object}) Array of geometry attributes