private void processIndicies(XmlNode layerNode, FeatureLayer l)
{
XmlNode pointsIndex = tryGetNodeByName(layerNode.ChildNodes, "points_index");
if (pointsIndex != null)
{
l.DefaultPointsIndexSettings =
new IndexSettings(int.Parse(pointsIndex.Attributes["max_depth"].Value, CultureInfo.InvariantCulture),
double.Parse(pointsIndex.Attributes["box_square_threshold"].Value, CultureInfo.InvariantCulture),
int.Parse(pointsIndex.Attributes["min_shape_count"].Value, CultureInfo.InvariantCulture));
}
XmlNode polylinesIndex = tryGetNodeByName(layerNode.ChildNodes, "polylines_index");
if (polylinesIndex != null)
{
l.DefaultPolylinesIndexSettings =
new IndexSettings(int.Parse(polylinesIndex.Attributes["max_depth"].Value, CultureInfo.InvariantCulture),
double.Parse(polylinesIndex.Attributes["box_square_threshold"].Value, CultureInfo.InvariantCulture),
int.Parse(polylinesIndex.Attributes["min_shape_count"].Value, CultureInfo.InvariantCulture));
}
XmlNode polygonsIndex = tryGetNodeByName(layerNode.ChildNodes, "polygons_index");
if (polygonsIndex != null)
{
l.DefaultPolygonsIndexSettings =
new IndexSettings(int.Parse(polygonsIndex.Attributes["max_depth"].Value, CultureInfo.InvariantCulture),
double.Parse(polygonsIndex.Attributes["box_square_threshold"].Value, CultureInfo.InvariantCulture),
int.Parse(polygonsIndex.Attributes["min_shape_count"].Value, CultureInfo.InvariantCulture));
}
}