private void addIndiciesElements(FeatureLayer layer, XmlDocument doc, XmlElement layerElement)
{
XmlElement pointsIndexElement = doc.CreateElement("points_index");
layerElement.AppendChild(pointsIndexElement);
addAttribute(doc, pointsIndexElement, "box_square_threshold", layer.DefaultPointsIndexSettings.BoxSquareThreshold.ToString(CultureInfo.InvariantCulture));
addAttribute(doc, pointsIndexElement, "max_depth", layer.DefaultPointsIndexSettings.MaxDepth.ToString(CultureInfo.InvariantCulture));
addAttribute(doc, pointsIndexElement, "min_shape_count", layer.DefaultPointsIndexSettings.MinFeatureCount.ToString(CultureInfo.InvariantCulture));
XmlElement polylinesIndexElement = doc.CreateElement("polylines_index");
layerElement.AppendChild(polylinesIndexElement);
addAttribute(doc, polylinesIndexElement, "box_square_threshold", layer.DefaultPolylinesIndexSettings.BoxSquareThreshold.ToString(CultureInfo.InvariantCulture));
addAttribute(doc, polylinesIndexElement, "max_depth", layer.DefaultPolylinesIndexSettings.MaxDepth.ToString(CultureInfo.InvariantCulture));
addAttribute(doc, polylinesIndexElement, "min_shape_count", layer.DefaultPolylinesIndexSettings.MinFeatureCount.ToString(CultureInfo.InvariantCulture));
XmlElement polygonsIndexElement = doc.CreateElement("polygons_index");
layerElement.AppendChild(polygonsIndexElement);
addAttribute(doc, polygonsIndexElement, "box_square_threshold", layer.DefaultPolygonsIndexSettings.BoxSquareThreshold.ToString(CultureInfo.InvariantCulture));
addAttribute(doc, polygonsIndexElement, "max_depth", layer.DefaultPolygonsIndexSettings.MaxDepth.ToString(CultureInfo.InvariantCulture));
addAttribute(doc, polygonsIndexElement, "min_shape_count", layer.DefaultPolygonsIndexSettings.MinFeatureCount.ToString(CultureInfo.InvariantCulture));
}